/* =============================================================================
   DRPO — Drop Radio · stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-alt: #f2f2f8;
  --ink: #0e0d17;
  --ink-2: #3a3850;
  --ink-3: #6d6b85;
  --line: #e4e3ee;
  --line-2: #efeff6;
  --brand: #7c5cff;
  --brand-dark: #6a48f5;
  --brand-soft: #f0ecff;
  --teal: #0ea5a5;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ok: #16a34a;
  --ok-soft: #e9f8ef;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --bad: #dc2626;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 13, 23, .05), 0 8px 24px rgba(14, 13, 23, .05);
  --shadow-lg: 0 2px 6px rgba(14, 13, 23, .07), 0 24px 60px rgba(14, 13, 23, .10);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.muted { color: var(--ink-3); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--ink-3); }

.primary-nav { display: flex; gap: 26px; margin-left: auto; }
.primary-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cfcee0; background: var(--bg-soft); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255,255, .1); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.8px; margin: 3.6px auto;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 76px;
  background:
    radial-gradient(880px 420px at 78% -10%, rgba(124, 92, 255, .16), transparent 62%),
    radial-gradient(680px 380px at 6% 0%, rgba(14, 165, 165, .12), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-2);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 6px 13px 6px 11px; border-radius: 999px; box-shadow: var(--shadow);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.5vw, 51px);
  font-weight: 700; letter-spacing: -0.035em;
}
.lede { font-size: 17.5px; color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  display: flex; gap: 36px; margin: 36px 0 0; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
.hero-stats dd { margin: 4px 0 0; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats dd.is-text { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ player */
.player {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px;
}
.player-art { grid-column: 1; grid-row: 1; }
.player-frame { grid-column: 2; grid-row: 1; }
.player-body { grid-column: 1 / -1; }
.player-frame {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; line-height: 0;
}
.player-frame iframe {
  display: block; width: 100%; max-width: 560px; height: auto;
  aspect-ratio: 16 / 9; border: 0; background: #fff;
}
#playerAudio { display: none; }

.player-art {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, #7c5cff, #3b1fa8);
  aspect-ratio: 1 / 1; align-self: center; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.player-art-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.player-art-canvas { display: block; width: 100%; height: 100%; }
.live-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; padding: 3px 8px; border-radius: 999px;
}
.live-badge i {
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.player-body { display: flex; flex-direction: column; min-width: 0; }
.player-station {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand);
}
.player-title {
  margin-top: 6px; font-size: 23px; font-weight: 700; letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-artist { font-size: 14.5px; color: var(--ink-3); margin-top: 2px; }

.waveform { display: block; width: 100%; height: 62px; margin: 14px 0 12px; }

.player-controls { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ctl {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.ctl:hover { background: #26243a; transform: scale(1.05); }
.ctl svg { fill: currentColor; }
.ctl:disabled {
  background: #d9d6e4; color: #9a95ab; cursor: not-allowed; transform: none;
}
.ctl:disabled:hover { background: #d9d6e4; transform: none; }
.player-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.player-meta .sep { opacity: .5; }
.player-tags { margin-left: auto; display: flex; gap: 6px; }
.tag {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}

/* ----------------------------------------------------------------- metrics */
.metrics { padding: 56px 0 60px; background: #fff; }
.metrics-head { max-width: 66ch; margin-bottom: 26px; }
.metrics-head h2 { font-size: 26px; }
.metrics-head p { margin-top: 8px; font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.metric {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; min-height: 118px;
  display: flex; flex-direction: column; gap: 6px;
}
.metric-label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.metric-value {
  font-size: 30px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.metric-foot { font-size: 12.5px; color: var(--ink-3); margin-top: auto; }
.metric-foot .up { color: var(--ok); font-weight: 600; }
.metric-foot .down { color: var(--bad); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section { padding: 68px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line-2); }
.section-head { max-width: 64ch; margin-bottom: 30px; }
.section-head h2 { font-size: 30px; }
.section-head p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.status-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--ok-soft); border: 1px solid #cfead9;
  color: #14612f; border-radius: 10px; padding: 11px 16px;
  font-size: 14px; font-weight: 500; margin-bottom: 22px;
}
.status-bar.is-warn { background: var(--warn-soft); border-color: #f6e0bb; color: #8a5205; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.status-bar.is-warn .status-dot { background: var(--warn); }
.status-updated { margin-left: auto; color: inherit; opacity: .7; font-weight: 400; font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card--table { margin-top: 18px; padding-bottom: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 16.5px; }
.pill {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.chart { display: block; width: 100%; height: 200px; }
.chart--tall { height: 218px; }
.chart--map { height: 232px; }
.chart-axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 12px; color: var(--ink-3);
}

/* ------------------------------------------------------------ channel grid */
.channel-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.channel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer; display: flex; flex-direction: column; text-align: left;
  padding: 0; font: inherit; color: inherit;
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.channel.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-lg); }
.channel.is-standby { opacity: .78; }
.channel-art {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #7c5cff, #3b1fa8);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.channel-logo {
  position: relative; z-index: 1;
  width: 62%; height: 62%; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .28));
}
.channel-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.28), transparent 55%);
}
.channel-tag {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(14, 13, 23, .62); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.channel-tag i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.channel-tag.is-standby i { background: #fbbf24; }
.channel-body { padding: 14px 14px 15px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.channel-name {
  font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-show { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-meta {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--ink-3);
}
.channel-listeners { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ charts */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.mix li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 9px 0; }
.mix .mix-row + li { border-top: 1px solid var(--line-2); }
.mix-label { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; }
.mix-label i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.mix-value { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14.5px; }
.mix-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.mix-bar span { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }

.bars li { padding: 9px 0; }
.bars .bars-row + li { border-top: 1px solid var(--line-2); }
.bars-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bars-head b { font-weight: 600; }
.bars-head span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bars-bar { margin-top: 7px; height: 7px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bars-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #a78bfa);
  transition: width .6s ease;
}

/* ------------------------------------------------------------------ tracks */
.tracks li {
  display: grid; grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 14px; align-items: center; padding: 11px 4px;
}
.tracks li + li { border-top: 1px solid var(--line-2); }
.track-rank { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track-main { min-width: 0; }
.track-title {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-channel { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-plays {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ------------------------------------------------------------------ table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }

/* ---------------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; padding: 14px 0;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--ink-2); font-size: 14.5px; }

/* -------------------------------------------------------------------- cta */
.cta { background: #0e0d17; color: #fff; padding: 58px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; }
.cta p { margin-top: 8px; color: rgba(255, 255, 255, .68); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #0a0913; color: rgba(255, 255, 255, .62); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name em { color: rgba(255, 255, 255, .5); }
.footer-brand p { margin-top: 12px; font-size: 14px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer nav a { display: block; font-size: 14px; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-legal a:hover { color: #fff; }

.noscript {
  padding: 14px 20px; background: var(--warn-soft); color: #8a5205;
  border-top: 1px solid #f6e0bb; text-align: center; font-size: 14px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .player { grid-template-columns: 170px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 6px 24px 14px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .header-actions { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .metric-value { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; }
  .player-art { max-width: 180px; aspect-ratio: 1 / 1; }
  .player-frame { grid-column: 1; grid-row: auto; }
  .player-body { grid-column: auto; }
  .player-frame iframe { height: auto; aspect-ratio: 16 / 9; }
  .tracks li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .track-channel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
