/* Music discovery layer: editorial nightlife browsing with fast, usable routes. */
:root {
  --home-acid: #c8ff45;
  --home-orange: #ff6a2a;
  --home-cream: #f6f0e6;
  --home-ink: #070909;
  --home-line: rgba(246, 240, 230, .16);
}

body:has(.calendar-shell) {
  background:
    radial-gradient(circle at 13% -4%, rgba(200, 255, 69, .08), transparent 24%),
    radial-gradient(circle at 88% 1%, rgba(255, 106, 42, .08), transparent 22%),
    linear-gradient(90deg, rgba(246, 240, 230, .025) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(246, 240, 230, .018) 1px, transparent 1px) 0 0 / 64px 64px,
    #060808 !important;
}

.home-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-live-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-acid);
}

.home-live-signal i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(200, 255, 69, .1), 0 0 14px rgba(200, 255, 69, .7);
  animation: home-signal-pulse 1.8s ease-in-out infinite;
}

.home-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.home-hero-action {
  min-height: 44px;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 240, 230, .26);
  border-radius: 6px;
  color: var(--home-cream);
  background: rgba(8, 12, 12, .82);
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.home-hero-action:hover,
.home-hero-action:focus-visible {
  border-color: var(--home-acid);
  color: var(--home-acid);
  transform: translateY(-1px);
}

.home-hero-action-primary,
.home-hero-action-primary:hover,
.home-hero-action-primary:focus-visible {
  border-color: var(--home-acid);
  color: var(--home-ink);
  background: var(--home-acid);
}

.home-sound-shortcuts {
  margin-top: 17px;
  border-top: 1px solid var(--home-line);
  padding-top: 13px;
}

.home-sound-shortcuts p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-sound-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-sound-shortcuts button {
  min-height: 32px;
  border: 1px solid rgba(246, 240, 230, .18);
  border-radius: 999px;
  color: var(--home-cream);
  background: rgba(246, 240, 230, .035);
  padding: 6px 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.home-sound-shortcuts button:hover,
.home-sound-shortcuts button:focus-visible,
.home-sound-shortcuts button.is-active {
  border-color: var(--home-acid);
  color: var(--home-ink);
  background: var(--home-acid);
}

.highlight-rail-controls {
  display: inline-flex;
  gap: 5px;
  margin-left: auto;
}

.highlight-rail-controls button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(246, 240, 230, .24);
  border-radius: 50%;
  color: var(--home-cream);
  background: rgba(8, 12, 12, .9);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.highlight-rail-controls button:hover,
.highlight-rail-controls button:focus-visible {
  border-color: var(--home-acid);
  color: var(--home-ink);
  background: var(--home-acid);
}

.calendar-shell .highlight-heading span {
  color: var(--home-ink);
  background: var(--home-cream);
}

.calendar-shell .highlight-date {
  color: var(--home-ink);
  background: var(--home-acid);
}

.calendar-shell .highlight-view-all {
  color: var(--home-acid);
}

.calendar-shell .highlight-card {
  border-color: rgba(246, 240, 230, .2);
  background-color: #080a0a;
}

.calendar-shell .highlight-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 12px 0 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--home-acid), var(--home-orange));
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .2s ease, transform .24s ease;
}

.calendar-shell .highlight-card:hover::before,
.calendar-shell .highlight-card:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes home-signal-pulse {
  0%, 100% { opacity: .54; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (min-width: 1100px) {
  .calendar-shell {
    grid-template-columns: 286px minmax(0, 1fr) !important;
    gap: 16px 24px !important;
  }

  .calendar-shell > .primary-nav {
    position: sticky;
    top: 10px;
    z-index: 70;
    justify-content: flex-start !important;
    gap: 3px !important;
    overflow-x: auto;
    border: 1px solid var(--home-line) !important;
    border-radius: 9px !important;
    padding: 5px !important;
    background: rgba(6, 9, 9, .94) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28) !important;
    backdrop-filter: blur(16px) saturate(1.1) !important;
    scrollbar-width: none;
  }

  .calendar-shell > .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .calendar-shell > .primary-nav .nav-link {
    flex: 0 0 auto;
    min-height: 38px;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 0 8px !important;
    color: rgba(246, 240, 230, .72) !important;
    font-size: 13px !important;
  }

  .calendar-shell > .primary-nav .nav-link:hover,
  .calendar-shell > .primary-nav .nav-link.active,
  .calendar-shell > .primary-nav .nav-link[aria-current="page"] {
    border: 0 !important;
    color: var(--home-ink) !important;
    background: var(--home-acid) !important;
  }

  .calendar-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start;
    align-self: start;
    gap: 16px;
    margin: 0 !important;
    border: 1px solid var(--home-line) !important;
    border-radius: 9px !important;
    padding: 18px !important;
    background:
      radial-gradient(circle at 96% 4%, rgba(255, 106, 42, .13), transparent 27%),
      linear-gradient(145deg, rgba(200, 255, 69, .045), transparent 42%),
      #090c0c !important;
  }

  .calendar-shell .masthead-copy {
    width: 100%;
    min-width: 0;
  }

  .calendar-shell .topbar .subhead,
  .calendar-shell .topbar .dispatch-strip {
    display: block !important;
  }

  .calendar-shell .topbar .hero-picture {
    display: none !important;
  }

  .calendar-shell .topbar h1 {
    max-width: 250px !important;
    font-size: 58px !important;
    line-height: .84 !important;
  }

  .calendar-shell .topbar .dispatch-strip {
    width: max-content;
    max-width: 100%;
    margin: 12px 0 0;
    color: var(--home-ink);
    background: var(--home-cream);
    font-size: 10px;
  }

  .calendar-shell .topbar .subhead {
    max-width: 244px !important;
    margin-top: 13px;
    display: -webkit-box !important;
    overflow: hidden;
    color: rgba(246, 240, 230, .68) !important;
    font-size: 12px !important;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .calendar-shell .highlight-wall {
    align-self: stretch;
    min-width: 0;
    margin-top: 0 !important;
  }

  .calendar-shell .highlight-heading {
    min-height: 42px;
    margin-bottom: 10px;
  }

  .calendar-shell .highlight-heading::after {
    display: none;
  }

  .calendar-shell .highlight-list {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(226px, 25%);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 0 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 255, 69, .48) rgba(246, 240, 230, .05);
  }

  .calendar-shell .highlight-card {
    min-height: 344px;
    border-radius: 8px !important;
    padding: 14px;
    scroll-snap-align: start;
  }

  .calendar-shell .highlight-card b {
    font-size: 29px;
  }

  .calendar-shell .calendar-workbench {
    grid-template-columns: 286px minmax(0, 1fr) !important;
    gap: 18px 24px !important;
  }

  .calendar-shell .calendar-left-rail {
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding-right: 3px;
  }

  .calendar-shell .controls {
    position: sticky;
    top: 68px;
    z-index: 32;
    border: 1px solid rgba(200, 255, 69, .18) !important;
    border-radius: 9px !important;
    padding: 12px !important;
    background: rgba(7, 10, 10, .95) !important;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .3) !important;
    backdrop-filter: blur(16px) !important;
  }

  .calendar-shell .quick-filter.active {
    border-color: var(--home-acid) !important;
    color: var(--home-ink) !important;
    background: var(--home-acid) !important;
  }
}

@media (max-width: 1099px) {
  .home-hero-meta {
    margin-bottom: 8px;
  }

  .calendar-shell .topbar .subhead,
  .calendar-shell .topbar .dispatch-strip {
    display: block !important;
  }

  .home-sound-shortcuts > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .home-sound-shortcuts > div::-webkit-scrollbar {
    display: none;
  }

  .home-sound-shortcuts button {
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .calendar-shell > .primary-nav .nav-link,
  .calendar-shell .lang-switcher,
  .calendar-shell .highlight-view-all,
  .calendar-shell .quick-filter,
  .calendar-shell [data-window-shortcut],
  .calendar-shell .live-room-handoff {
    min-height: 44px !important;
  }

  .calendar-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px !important;
    gap: 8px !important;
    border: 1px solid var(--home-line) !important;
    border-radius: 9px !important;
    padding: 11px !important;
    background: rgba(8, 12, 12, .94) !important;
  }

  .calendar-shell .topbar .masthead-copy {
    min-width: 0;
  }

  .home-hero-meta {
    grid-column: 1 / -1;
    font-size: 8px;
  }

  .calendar-shell .topbar h1 {
    font-size: 31px !important;
  }

  .calendar-shell .topbar .dispatch-strip,
  .calendar-shell .topbar .subhead,
  .home-sound-shortcuts {
    display: none !important;
  }

  .home-hero-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .home-hero-action {
    min-height: 44px;
    padding: 8px;
    font-size: 11px;
  }

  .calendar-shell .topbar .hero-picture {
    display: block !important;
    width: 88px !important;
    min-height: 104px;
    aspect-ratio: 4 / 5 !important;
    margin: 0 !important;
    border-radius: 5px !important;
  }

  .calendar-shell .hero-picture::after {
    display: none;
  }

  .calendar-shell .highlight-heading {
    flex-wrap: nowrap;
  }

  .calendar-shell .highlight-heading::after,
  .highlight-rail-controls {
    display: none;
  }

  .calendar-shell .highlight-heading span {
    font-size: 17px;
  }

  .calendar-shell .highlight-list {
    grid-auto-columns: minmax(210px, 68vw);
  }

  .calendar-shell .highlight-card {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-signal i {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .calendar-shell > .primary-nav,
  .calendar-shell .controls {
    background: #070a0a !important;
    backdrop-filter: none !important;
  }
}
