:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1118;
  --surface: #121823;
  --surface-strong: #17202e;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #afbac8;
  --accent: #20e38b;
  --accent-2: #4f8dff;
  --accent-3: #ff4d8d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-soft: #edf2f8;
  --surface: #ffffff;
  --surface-strong: #f0f5fb;
  --line: rgba(11, 18, 32, 0.12);
  --text: #111827;
  --muted: #4b5563;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(32, 227, 139, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(79, 141, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #03120a;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .site-header {
  background: rgba(247, 249, 252, 0.9);
}

.nav-shell,
.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #03120a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.theme-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.theme-button:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.theme-button {
  background: transparent;
  cursor: pointer;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 46px;
  padding: 64px 0 44px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 930px;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.pretitle,
.section-label,
.card-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.68rem 1rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.93rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04110a;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 54px;
}

.proof-strip div,
.directory-links a,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.proof-strip strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.proof-strip span,
.directory-links span,
.summary-card span {
  color: var(--muted);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 420px) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  margin: 0 0 42px;
}

.search-panel.compact {
  margin-top: 28px;
}

.search-panel label {
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-section {
  margin: 0 0 62px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.section-intro {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--muted);
}

.section-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.pack-card {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  padding: 1rem;
}

.pack-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 227, 139, 0.48);
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  text-decoration: none;
}

.pack-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

.pack-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

.page-hero {
  padding: 58px 0 34px;
}

.detail-hero {
  max-width: 960px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.directory-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 46px;
}

.directory-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-bottom: 64px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.detail-main h2 {
  margin-top: 0;
}

.keyword-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  color: var(--muted);
}

.track-list {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  max-height: 420px;
  overflow: auto;
}

.track-list-large {
  max-height: 620px;
}

.track-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1rem;
}

.track-browser-header h2 {
  margin-bottom: 0.35rem;
}

.track-browser-header p,
.track-status {
  margin: 0;
  color: var(--muted);
}

.track-status {
  padding: 1rem;
}

.track-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.track-item:last-child {
  border-bottom: 0;
}

.track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-icon {
  flex: 0 0 auto;
  border: 1px solid rgba(32, 227, 139, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.18rem 0.42rem;
  text-transform: uppercase;
}

.track-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-actions {
  display: flex;
  gap: 8px;
}

.button-small {
  min-height: 36px;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.player-modal[hidden] {
  display: none !important;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.player-panel {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.player-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.player-panel iframe {
  display: block;
  width: 100%;
  height: min(68vh, 520px);
  border: 0;
  background: #05070a;
}

body.modal-open {
  overflow: hidden;
}

.detail-side {
  display: grid;
  gap: 12px;
  align-self: start;
}

.summary-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
  color: var(--muted);
}

.site-footer p {
  max-width: 640px;
}

.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-content: start;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .nav-shell,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .track-browser-header,
  .track-item {
    grid-template-columns: 1fr;
  }

  .track-browser-header {
    flex-direction: column;
  }

  .track-actions {
    width: 100%;
  }

  .track-actions .button {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .nav-shell,
  .site-footer,
  main {
    width: min(var(--max), calc(100% - 22px));
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .hero-actions {
    flex-direction: column;
  }
}

/* Media-first presentation layer. Route and control markup stays unchanged. */
.site-header {
  background: rgba(5, 7, 12, 0.92);
  border-bottom-color: rgba(109, 233, 255, 0.18);
}

.brand-mark {
  background: linear-gradient(145deg, #6de9ff 0%, #9a7cff 52%, #ff4f9a 100%);
  color: #07090d;
  box-shadow: 0 0 24px rgba(109, 233, 255, 0.22);
}

.hero {
  min-height: 570px;
  position: relative;
  isolation: isolate;
  gap: 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 233, 255, 0.7), rgba(255, 79, 154, 0.65), transparent);
  z-index: -1;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 780px;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 590px;
}

.hero-media {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(109, 233, 255, 0.35);
  border-radius: 14px;
  background: #090c13;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(154, 124, 255, 0.12);
}

.hero-media::after {
  content: "DJDB / PLAY LOUD";
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px #000;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.05);
}

.proof-strip {
  border-color: rgba(109, 233, 255, 0.2);
  background: linear-gradient(110deg, rgba(109, 233, 255, 0.08), rgba(154, 124, 255, 0.08), rgba(255, 79, 154, 0.07));
}

.proof-strip strong {
  color: #6de9ff;
}

.search-panel,
.track-browser,
.summary-card {
  border-color: rgba(109, 233, 255, 0.18);
  background: rgba(16, 20, 31, 0.88);
}

.search-panel input {
  border-color: rgba(109, 233, 255, 0.22);
  background: #090c13;
}

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.pack-card {
  position: relative;
  min-height: 242px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(29, 35, 54, 0.96), rgba(13, 16, 25, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pack-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -56px;
  top: -58px;
  border: 1px solid rgba(109, 233, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(109, 233, 255, 0.04), 0 0 0 30px rgba(255, 79, 154, 0.035);
  pointer-events: none;
}

.pack-card:hover {
  border-color: rgba(109, 233, 255, 0.62);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 24px rgba(109, 233, 255, 0.08);
}

.card-kicker,
.pretitle,
.section-label {
  color: #6de9ff;
}

.card-link h3 {
  max-width: 88%;
  font-size: 1.16rem;
}

.button-primary {
  background: linear-gradient(135deg, #6de9ff, #9a7cff);
  color: #080a10;
}

.button-secondary:hover,
.section-link:hover {
  border-color: rgba(255, 79, 154, 0.6);
  color: #ff8fbd;
}

.directory-links a {
  background: linear-gradient(145deg, rgba(29, 35, 54, 0.86), rgba(13, 16, 25, 0.94));
}

.directory-links a:hover {
  border-color: rgba(109, 233, 255, 0.58);
}

.track-item {
  background: rgba(255, 255, 255, 0.018);
}

.track-item:hover {
  background: rgba(109, 233, 255, 0.06);
}

@media (max-width: 860px) {
  .hero-media {
    justify-self: stretch;
    max-width: none;
  }
}
