:root {
  --paper: rgba(250, 251, 253, 0.9);
  --text: #10233d;
  --muted: #5f718b;
  --line: rgba(16, 35, 61, 0.12);
  --line-strong: rgba(16, 35, 61, 0.2);
  --accent: #b08a57;
  --accent-strong: #8f6c3e;
  --accent-cool: #8ea4ba;
  --shadow: 0 28px 72px rgba(15, 23, 42, 0.08);
  --dock-height: 144px;
  --channel-row-pad-right: 16px;
  --channel-row-inner-pad-y: 10px;
  --surface-strong: #10233d;
  --surface-strong-2: #18304f;
  --surface-soft: rgba(255, 255, 255, 0.74);
  --ticker-text: #f8fafc;
  --page-max: 1720px;
}

body[data-theme="dark"] {
  --paper: rgba(13, 24, 42, 0.92);
  --text: #edf3fb;
  --muted: #9bb0ca;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  --surface-strong: #091423;
  --surface-strong-2: #10233d;
  --surface-soft: rgba(255, 255, 255, 0.06);
  --ticker-text: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(176, 138, 87, 0.13), transparent 22%),
    radial-gradient(circle at left center, rgba(142, 164, 186, 0.16), transparent 26%),
    linear-gradient(180deg, #edf1f6 0%, #f5f7fa 48%, #edf1f5 100%);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top right, rgba(176, 138, 87, 0.14), transparent 22%),
    radial-gradient(circle at left center, rgba(142, 164, 186, 0.12), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0c1727 48%, #08111d 100%);
}

body.has-player {
  padding-bottom: calc(var(--dock-height) + 28px);
}

body[data-consent-required="true"] {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(var(--page-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.site-header,
.hero-frame,
.ticker,
.channel-section,
.site-footer,
.player-dock {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  width: 100%;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header-inner {
  width: min(var(--page-max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 112px;
  height: 34px;
  display: flex;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a,
.theme-toggle,
.session-button,
.player-control-button,
.player-volume-button {
  padding: 10px 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  border: 1px solid transparent;
  background: transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.session-button:hover,
.session-button:focus-visible,
.player-control-button:hover,
.player-control-button:focus-visible,
.player-volume-button:hover,
.player-volume-button:focus-visible,
.player-control-button.is-active,
.player-volume-button.is-muted {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.main-nav a.is-current {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.main-nav a.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.theme-toggle {
  cursor: pointer;
  min-width: 90px;
}

.session-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 800;
}

.account-anchor-name {
  display: inline-block;
  max-width: min(30vw, 320px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-anchor-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, white 6%);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  z-index: 35;
}

.account-anchor:hover .account-anchor-tooltip,
.account-anchor:focus-visible .account-anchor-tooltip,
.account-anchor.is-open .account-anchor-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logout-form {
  margin: 0;
}

.session-button {
  cursor: pointer;
  min-width: 90px;
}

.hero {
  width: 100%;
  margin: 0;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(176, 138, 87, 0.16), rgba(142, 164, 186, 0.12));
  border-top: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 2.4s ease;
}

.hero-image.is-visible {
  opacity: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #d9c29b;
}

.ticker {
  margin-top: 22px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-strong-2));
  color: var(--ticker-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-window {
  overflow: hidden;
}

.ticker-marquee {
  display: flex;
  width: max-content;
  animation: tickerLoop var(--ticker-duration, 60s) linear infinite;
}

.ticker-track {
  display: flex;
  gap: 34px;
  flex-shrink: 0;
  padding: 15px 17px 15px 0;
}

.ticker-track span {
  white-space: nowrap;
  padding-left: 18px;
  position: relative;
  font-weight: 700;
}

.ticker-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
}

@keyframes tickerLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.channel-section {
  margin-top: 22px;
  padding: 28px;
  background: var(--paper);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-top h2,
.player-meta h3,
.channel-name {
  font-family: "Sora", sans-serif;
}

.section-top h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1;
  text-transform: lowercase;
  font-weight: 700;
  white-space: nowrap;
}

.section-copy {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

.channel-list {
  display: grid;
  gap: 10px;
}

.spot-section {
  margin-top: 22px;
}

.spot-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spot-control-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.spot-control-row,
.spot-engine-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spot-control-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 800;
}

.spot-engine-toggle input {
  display: none;
}

.spot-engine-card,
.spot-engine-toggle {
  cursor: pointer;
}

.spot-engine-toggle strong {
  color: #2f7d52;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.spot-range {
  width: 100%;
}

.spot-list-shell {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.spot-list-head,
.spot-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 120px;
  align-items: center;
  gap: 16px;
}

.spot-list-head {
  padding: 14px 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.spot-list {
  display: grid;
}

.spot-item {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: grab;
}

.spot-item:first-child {
  border-top: 0;
}

.spot-item.is-next {
  background: color-mix(in srgb, var(--spot-highlight, var(--accent-strong)) 10%, var(--surface-soft) 90%);
  box-shadow: inset 3px 0 0 var(--spot-highlight, var(--accent-strong));
  border-color: color-mix(in srgb, var(--spot-highlight, var(--accent-strong)) 52%, var(--line) 48%);
}

.spot-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.spot-item.is-disabled {
  opacity: 0.34;
}

.spot-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  cursor: inherit;
}

.spot-grip {
  flex: 0 0 auto;
  width: 16px;
  height: 100%;
  min-height: 24px;
  cursor: inherit;
  opacity: 0.55;
  background:
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) 0 2px / 8px 8px repeat-y,
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) 8px 2px / 8px 8px repeat-y;
}

.spot-item.dragging .spot-grip {
  cursor: grabbing;
}

.spot-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Sora", sans-serif;
}

.spot-status-toggle,
.spot-play-button {
  justify-self: start;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  cursor: pointer;
}

.spot-list-shell.is-engine-off {
  opacity: 0.62;
}

.spot-list-shell.is-engine-off .spot-item.is-next {
  box-shadow: none;
}

.spot-status-toggle:disabled,
.spot-play-button:disabled {
  cursor: default;
  opacity: 0.56;
}

.spot-status-toggle.is-active,
.spot-status-toggle:hover,
.spot-status-toggle:focus-visible,
.spot-play-button:hover,
.spot-play-button:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.spot-status-toggle.is-active {
  box-shadow: inset 0 0 0 1px rgba(47, 125, 82, 0.14);
}

.spot-empty,
.spot-feedback {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
}

.spot-empty {
  display: none;
  border-top: 1px solid var(--line);
}

.spot-empty.is-visible {
  display: block;
}

.spot-feedback {
  display: none;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.spot-feedback.is-visible {
  display: block;
}

.spot-feedback.is-error {
  color: #b33a3a;
}

.spot-feedback.is-success {
  color: #2f7d52;
}

.jingle-placeholder {
  margin-top: 22px;
}

.auth-gate-section {
  min-height: 0;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 440px);
  gap: 26px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 86%, transparent), color-mix(in srgb, var(--surface-soft) 94%, transparent));
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.auth-copy h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.auth-copy p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="dark"] .auth-field input {
  background: rgba(7, 15, 27, 0.55);
}

.auth-field input:focus-visible {
  outline: 0;
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.auth-submit {
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-soft) 75%, var(--accent-cool) 25%);
}

.auth-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-feedback.is-error {
  color: #b33a3a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.footer-link-button,
.legal-modal-close,
.legal-tab {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  cursor: pointer;
}

.legal-modal-close {
  min-width: 38px;
  width: 38px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.footer-link-button:hover,
.footer-link-button:focus-visible,
.legal-modal-close:hover,
.legal-modal-close:focus-visible,
.legal-tab:hover,
.legal-tab:focus-visible,
.legal-tab.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.legal-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.legal-modal.is-visible {
  display: block;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 24, 0.46);
  backdrop-filter: blur(6px);
}

.legal-modal-dialog {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 44px);
  margin: 22px auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-modal-header,
.legal-modal-tabs,
.legal-consent-form {
  padding: 18px 22px;
}

.legal-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-modal-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
}

.legal-modal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.legal-modal-body {
  padding: 0 22px 22px;
  overflow: auto;
}

.legal-document {
  display: none;
  padding: 18px 0 2px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-document.is-active {
  display: block;
}

.legal-document h2 {
  margin: 18px 0 10px;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.legal-document p,
.legal-document ul {
  margin: 0 0 14px;
}

.legal-document ul {
  padding-left: 22px;
}

.legal-document-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.legal-document-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.legal-consent-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.legal-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--text);
}

.legal-check input {
  margin-top: 2px;
}

.legal-actions {
  display: flex;
  justify-content: flex-end;
}

.legal-feedback {
  margin-top: -2px;
  display: none;
}

.legal-feedback.is-visible {
  display: block;
}

.legal-feedback.is-success {
  color: #2f7d52;
}

.channel-row {
  width: 100%;
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr) 120px 84px;
  gap: 18px;
  align-items: stretch;
  min-height: 96px;
  padding: 0 var(--channel-row-pad-right) 0 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 246, 250, 0.97));
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body[data-theme="dark"] .channel-row {
  background: linear-gradient(180deg, rgba(18, 30, 49, 0.96), rgba(12, 22, 38, 0.96));
}

.channel-row:hover,
.channel-row:focus-visible,
.channel-row.is-active {
  transform: translateY(-2px);
  border-color: rgba(176, 138, 87, 0.36);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
}

.channel-row:disabled,
.channel-row.is-disabled {
  opacity: 0.54;
  cursor: default;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.channel-row.is-locked {
  opacity: 0.68;
  cursor: default;
}

.channel-row.is-locked:hover,
.channel-row.is-locked:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.channel-visual {
  width: 100%;
  align-self: stretch;
  aspect-ratio: 2 / 1;
  height: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.channel-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.channel-copy,
.channel-duration {
  min-width: 0;
  padding-top: var(--channel-row-inner-pad-y);
  padding-bottom: var(--channel-row-inner-pad-y);
}

.channel-name {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.channel-description {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.channel-duration {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.channel-action {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
  padding-top: var(--channel-row-inner-pad-y);
  padding-bottom: var(--channel-row-inner-pad-y);
}

.site-footer {
  margin-top: 22px;
  padding: 18px 24px;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.player-dock {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 40;
}

body[data-theme="light"] .player-dock {
  background: rgba(13, 24, 42, 0.94);
  color: #edf3fb;
  border-color: rgba(255, 255, 255, 0.12);
  --player-on-air-bar: #c8ae7e;
  --player-on-air-label: rgba(237, 243, 251, 0.66);
  --player-button-hover: rgba(255, 255, 255, 0.08);
  --player-button-line: rgba(255, 255, 255, 0.16);
  --player-control-muted: rgba(237, 243, 251, 0.68);
  --player-seek-track: rgba(255, 255, 255, 0.14);
  --player-volume-track: rgba(255, 255, 255, 0.16);
  --player-thumb: #edf3fb;
  --player-control-hover-text: #edf3fb;
}

body[data-theme="dark"] .player-dock {
  background: rgba(250, 251, 253, 0.96);
  color: #10233d;
  border-color: rgba(16, 35, 61, 0.12);
  --player-on-air-bar: #8f6c3e;
  --player-on-air-label: rgba(16, 35, 61, 0.56);
  --player-button-hover: rgba(16, 35, 61, 0.05);
  --player-button-line: rgba(16, 35, 61, 0.14);
  --player-control-muted: rgba(16, 35, 61, 0.62);
  --player-seek-track: rgba(16, 35, 61, 0.12);
  --player-volume-track: rgba(16, 35, 61, 0.12);
  --player-thumb: #10233d;
  --player-control-hover-text: #10233d;
}

.player-dock.hidden {
  display: none;
}

.player-dock-inner {
  min-height: var(--dock-height);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 1fr;
  gap: 0 18px;
  align-items: center;
  padding: 7px 22px 9px;
}

.player-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.player-time {
  min-width: 38px;
  font-size: 0.72rem;
  color: var(--player-control-muted);
  letter-spacing: 0.04em;
}

.player-seek,
.player-volume-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.player-seek {
  background: linear-gradient(to right, var(--player-on-air-bar) 0%, var(--player-on-air-bar) var(--player-seek-progress, 0%), var(--player-seek-track) var(--player-seek-progress, 0%), var(--player-seek-track) 100%);
}

.player-volume-range {
  background: linear-gradient(to right, var(--player-on-air-bar) 0%, var(--player-on-air-bar) var(--player-volume-progress, 82%), var(--player-volume-track) var(--player-volume-progress, 82%), var(--player-volume-track) 100%);
}

.player-seek::-webkit-slider-thumb,
.player-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 8px;
  border-radius: 0;
  border: 0;
  background: var(--player-on-air-bar);
  opacity: 0;
  transition: opacity 0.16s ease;
  cursor: pointer;
}

.player-seek::-moz-range-thumb,
.player-volume-range::-moz-range-thumb {
  width: 14px;
  height: 8px;
  border-radius: 0;
  border: 0;
  background: var(--player-on-air-bar);
  opacity: 0;
  transition: opacity 0.16s ease;
  cursor: pointer;
}

.player-seek::-moz-range-track,
.player-volume-range::-moz-range-track {
  height: 4px;
  border: 0;
  background: transparent;
}

.player-seek:hover::-webkit-slider-thumb,
.player-seek:focus-visible::-webkit-slider-thumb,
.player-volume-range:hover::-webkit-slider-thumb,
.player-volume-range:focus-visible::-webkit-slider-thumb,
.player-seek:active::-webkit-slider-thumb,
.player-volume-range:active::-webkit-slider-thumb {
  opacity: 1;
}

.player-seek:hover::-moz-range-thumb,
.player-seek:focus-visible::-moz-range-thumb,
.player-volume-range:hover::-moz-range-thumb,
.player-volume-range:focus-visible::-moz-range-thumb,
.player-seek:active::-moz-range-thumb,
.player-volume-range:active::-moz-range-thumb {
  opacity: 1;
}

.player-meta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.player-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
}

.player-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-meta h3 {
  margin: 0 0 2px;
  font-size: clamp(0.86rem, 1.02vw, 0.98rem);
  color: inherit;
}

.player-meta p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.72rem;
}

.player-on-air {
  display: inline-flex;
  align-items: end;
  gap: 5px;
  height: 14px;
  margin-top: 3px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.player-on-air span {
  width: 3px;
  height: 100%;
  background: var(--player-on-air-bar);
  transform-origin: bottom center;
  animation: playerOnAirBars 2.1s ease-in-out infinite;
  animation-play-state: paused;
}

.player-on-air span:nth-child(2) {
  animation-delay: 0.2s;
}

.player-on-air span:nth-child(3) {
  animation-delay: 0.4s;
}

.player-on-air span:nth-child(4) {
  animation-delay: 0.6s;
}

.player-on-air strong {
  display: inline-flex;
  align-items: center;
  height: 14px;
  margin-left: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--player-on-air-label);
}

.player-on-air.is-active {
  opacity: 1;
  transform: translateY(0);
}

.player-on-air.is-active span {
  animation-play-state: running;
}

@keyframes playerOnAirBars {
  0%, 100% { transform: scaleY(0.32); }
  25% { transform: scaleY(0.62); }
  50% { transform: scaleY(0.42); }
  75% { transform: scaleY(0.72); }
}

body[data-theme="light"] .player-meta p {
  color: #b9c8dd;
}

body[data-theme="dark"] .player-meta p {
  color: #5f718b;
}

.player-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  width: 100%;
  min-height: 48px;
}

.player-schedule {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  gap: 2px;
  justify-self: end;
  text-align: right;
  color: var(--player-control-muted);
  font-family: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.player-transport,
.player-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.player-volume {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
}

.player-transport {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  justify-self: end;
}

.player-control-button,
.player-volume-button {
  color: var(--player-control-muted);
  border-color: var(--player-button-line);
  background: transparent;
  cursor: pointer;
}

.player-control-button:hover,
.player-control-button:focus-visible,
.player-volume-button:hover,
.player-volume-button:focus-visible {
  color: var(--player-control-hover-text);
  border-color: var(--player-button-line);
  background: var(--player-button-hover);
}

.player-volume-button.is-muted {
  color: var(--player-control-hover-text);
  border-color: var(--player-button-line);
  background: var(--player-button-hover);
}

.player-control-button[aria-pressed="true"] {
  color: inherit;
  border-color: color-mix(in srgb, var(--player-on-air-bar) 56%, var(--player-button-line));
  background: color-mix(in srgb, var(--player-on-air-bar) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--player-on-air-bar) 28%, transparent);
}

.player-control-button:disabled {
  cursor: default;
}

.player-control-button.is-locked:disabled {
  opacity: 1;
}

.player-control-button {
  min-width: 68px;
  text-align: center;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.76rem;
}

#playerPlayToggle {
  min-width: 82px;
}

.player-volume-button {
  min-width: 48px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
}

.volume-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.volume-icon-off {
  display: none;
}

.player-volume-button.is-muted .volume-icon-on {
  display: none;
}

.player-volume-button.is-muted .volume-icon-off {
  display: inline-block;
}

.player-volume-range {
  width: 112px;
}

.player-volume-value {
  min-width: 28px;
  text-align: right;
  font-size: 0.74rem;
  color: var(--player-control-muted);
}

#audioPlayer {
  display: none;
}

@media (max-width: 1220px) {
  .channel-row {
    grid-template-columns: 168px minmax(0, 1fr) 96px 72px;
  }

  .spot-toolbar {
    grid-template-columns: 1fr;
  }

  .player-dock-inner {
    grid-template-columns: 1fr;
  }

  .player-meta,
  .player-controls {
    grid-column: auto;
    grid-row: auto;
  }

  .player-controls {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
  }

  .player-transport,
  .player-volume {
    position: static;
    justify-content: center;
    justify-self: center;
    transform: none;
  }

  .player-schedule {
    position: static;
    transform: none;
    order: 2;
  }
}

@media (max-width: 980px) {
  .section-top {
    flex-direction: column;
    align-items: start;
  }

  .section-top h2 {
    white-space: normal;
  }

  .channel-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .channel-duration,
  .channel-action {
    display: none;
  }

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

  .spot-list-head,
  .spot-item {
    grid-template-columns: minmax(0, 1fr) 108px 100px;
  }

  .legal-modal-dialog {
    width: min(100% - 20px, 1120px);
  }
}

@media (max-width: 860px) {
  .site-header-inner,
  .page-shell {
    width: min(100% - 24px, var(--page-max));
  }

  .page-shell {
    padding-top: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .session-controls {
    width: 100%;
    justify-content: space-between;
  }

  .ticker {
    grid-template-columns: 110px 1fr;
  }

  .legal-modal-header,
  .legal-modal-tabs,
  .legal-consent-form,
  .legal-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .spot-list-head,
  .spot-item {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  :root {
    --dock-height: 196px;
    --channel-row-pad-right: 0px;
    --channel-row-inner-pad-y: 0px;
  }

  .site-header-inner,
  .page-shell {
    width: min(100% - 20px, var(--page-max));
  }

  .site-header-inner,
  .channel-section,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .brand-mark {
    width: 98px;
    height: 30px;
  }

  .main-nav {
    width: 100%;
  }

  .session-controls {
    justify-content: flex-start;
  }

  .account-anchor {
    width: 100%;
  }

  .account-anchor-name {
    max-width: none;
  }

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

  .ticker-label {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .spot-list-head {
    display: none;
  }

  .spot-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spot-status-toggle,
  .spot-play-button {
    width: 100%;
    justify-self: stretch;
  }

  .channel-row {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 132px;
    padding: 0;
  }

  .channel-visual {
    aspect-ratio: 2 / 1;
    min-height: 0;
    height: auto;
  }

  .channel-copy,
  .channel-duration,
  .channel-action {
    display: none;
  }

  .player-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .player-progress {
    gap: 10px;
  }

  .player-meta {
    flex-direction: column;
    gap: 10px;
  }

  .player-controls,
  .player-transport,
  .player-volume {
    justify-items: center;
    justify-content: center;
  }

  .player-volume-range {
    width: min(100%, 180px);
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-link-button,
  .legal-modal-close,
  .legal-tab {
    width: 100%;
  }

  .legal-modal-close {
    width: 100%;
    min-width: 0;
  }

  .legal-modal-dialog {
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .legal-modal-header {
    flex-direction: column;
  }

  .legal-actions {
    justify-content: stretch;
  }

  .legal-actions .auth-submit {
    width: 100%;
  }
}
