:root {
  --shell-bg: #07080c;
  --shell-panel: #0e1017;
  --shell-panel-2: #131620;
  --shell-line: #292d37;
  --shell-text: #f7f8fb;
  --shell-muted: #9298a8;
  --shell-accent: var(--accent, #f32046);
  --accent-strong: var(--accent-bright, #ff354d);
}

body.has-radio-dock { padding-bottom: 76px; }

.global-header-placeholder { min-height: 72px; }
.global-header-placeholder .site-header { position: sticky; top: 0; }

.global-alert-button { position: relative; }
.global-alert-button .alert-count {
  position: absolute;
  top: 7px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #090a0e;
  border-radius: 999px;
  background: var(--shell-accent);
  color: white;
  font: 800 9px/1 Inter, sans-serif;
}

.global-popover {
  position: fixed;
  z-index: 320;
  top: var(--popover-top, 68px);
  right: max(20px, calc((100vw - 1440px) / 2 + 20px));
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - var(--popover-top, 68px) - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #303443;
  border-radius: 4px;
  background: #111420;
  color: var(--shell-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.global-popover.open { opacity: 1; visibility: visible; transform: none; }
.global-popover-head {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2f3b;
  font: 800 15px/1 Inter, sans-serif;
}
.global-popover-head small { color: #757c8e; }
.global-theme-option {
  width: 100%;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #232734;
  background: transparent;
  color: var(--shell-text, #eef0f4);
  text-align: left;
  font-family: Inter, sans-serif;
  cursor: pointer;
}
.global-theme-option:hover { background: #171b28; }
.global-theme-swatch { flex: none; width: 30px; height: 30px; border: 2px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.global-theme-swatch[data-swatch="redline"] { background: linear-gradient(135deg, #f1283f 50%, #161a22 50%); }
.global-theme-swatch[data-swatch="aegean"] { background: linear-gradient(135deg, #0ba7ea 50%, #161a22 50%); }
.global-theme-swatch[data-swatch="volt"] { background: linear-gradient(135deg, #d6ff2e 50%, #161a22 50%); }
.global-theme-option > span:nth-child(2) { flex: 1; min-width: 0; }
.global-theme-option b { display: block; font: 750 13px/1.2 Inter, sans-serif; }
.global-theme-option > span:nth-child(2) > span { display: block; margin-top: 2px; color: #8f96a4; font: 550 10px/1.2 Inter, sans-serif; }
.global-theme-option svg { width: 15px; color: var(--shell-accent); opacity: 0; }
.global-theme-option.active svg { opacity: 1; }
.global-brand-row { padding: 13px 15px 15px; }
.global-brand-row p { margin: 0 0 9px; color: #8f96a4; font: 850 9px/1 Inter, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.global-brand-row div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.global-brand-row button {
  padding: 9px 4px;
  border: 1px solid #363b46;
  border-radius: 2px;
  background: transparent;
  color: #c6cad3;
  font: 600 10px/1 Inter, sans-serif;
  cursor: pointer;
}
.global-brand-row button b { font-weight: 900; }
.global-brand-row button:hover { border-color: #5b616f; color: white; }
.global-brand-row button.active { border-color: var(--shell-accent); color: white; background: color-mix(in srgb, var(--shell-accent) 14%, transparent); }
.global-alert-item {
  width: 100%;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #202431;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.global-alert-item:last-child { border-bottom: 0; }
.global-alert-item:hover { background: #171b28; }
.global-alert-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shell-accent) 17%, #161925);
  color: var(--shell-accent);
}
.global-alert-icon svg { width: 17px; }
.global-alert-item b, .global-alert-item span, .global-alert-item small { display: block; }
.global-alert-item b { margin: 1px 0 4px; font: 750 13px/1.3 Inter, sans-serif; }
.global-alert-item span { color: #b7bcc9; font: 500 12px/1.35 Inter, sans-serif; }
.global-alert-item small { margin-top: 4px; color: var(--shell-accent); font: 700 10px/1 Inter, sans-serif; }

.global-search {
  position: fixed;
  z-index: 350;
  inset: 0;
  padding: 78px 18px 18px;
  display: grid;
  align-items: start;
  justify-items: center;
  background: rgba(3, 4, 7, .88);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
}
.global-search.open { opacity: 1; visibility: visible; }
.global-search-dialog {
  width: min(760px, 100%);
  border: 1px solid #313641;
  border-radius: 3px;
  background: #0d0f15;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.global-search-form { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #2b2f38; }
.global-search-form label { min-width: 0; padding: 0 18px; display: flex; align-items: center; gap: 12px; }
.global-search-form svg { width: 21px; color: var(--shell-accent); }
.global-search-form input {
  min-width: 0;
  width: 100%;
  height: 64px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: 650 17px/1 Inter, sans-serif;
}
.global-search-form button { width: 64px; border: 0; border-left: 1px solid #2b2f38; background: transparent; color: #9ca2ae; cursor: pointer; }
.global-search-form button:hover { color: white; background: #171a21; }
.global-search-results { padding: 8px; }
.global-search-result {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 9px;
  color: white;
  text-decoration: none;
}
.global-search-result:hover { background: #171a22; }
.global-search-result img { width: 82px; height: 52px; object-fit: cover; }
.global-search-result b, .global-search-result small { display: block; }
.global-search-result b { font: 750 14px/1.25 Inter, sans-serif; }
.global-search-result small { margin-top: 5px; color: #8f96a4; font: 550 11px/1 Inter, sans-serif; }
.global-search-result svg { width: 17px; color: #6f7684; }
.global-search-empty { padding: 34px 20px; color: #8f96a4; text-align: center; font: 550 13px/1.5 Inter, sans-serif; }

.platform-push {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #2c303c;
  border-bottom: 1px solid #2c303c;
  background: linear-gradient(115deg, color-mix(in srgb, var(--shell-accent) 14%, #090a0f) 0%, #0b0d15 46%, #090a0f 100%);
  color: var(--shell-text, #eef0f4);
}
.platform-push::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  background: repeating-linear-gradient(90deg, transparent 0 46px, white 46px 47px), repeating-linear-gradient(0deg, transparent 0 46px, white 46px 47px);
}
.platform-push-inner {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 58px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: 48px;
}
.platform-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--shell-accent); font: 850 10px/1 Inter, sans-serif; letter-spacing: .16em; }
.platform-eyebrow i { width: 18px; height: 2px; background: var(--shell-accent); }
.platform-push-copy h2 { margin: 13px 0 10px; font: 900 clamp(30px, 4vw, 52px)/.92 "Barlow Condensed", Inter, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.platform-push-copy h2 em { color: var(--shell-accent); font-style: normal; }
.platform-push-copy > p { margin: 0 0 22px; max-width: 60ch; color: #9aa0ad; font: 550 12px/1.65 Inter, sans-serif; }
.platform-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid #2c303c; background: #2c303c; }
.platform-chips span { padding: 13px 14px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #0d1018; }
.platform-chips span:hover { background: #12151f; }
.platform-chips svg { grid-row: 1 / 3; width: 19px; color: var(--shell-accent); }
.platform-chips b { font: 800 12px/1.2 Inter, sans-serif; }
.platform-chips small { color: #8f96a4; font: 550 9px/1.3 Inter, sans-serif; }
.platform-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.platform-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--shell-accent);
  background: var(--shell-accent);
  color: white;
  text-align: left;
  font-family: Inter, sans-serif;
  cursor: pointer;
}
html[data-theme="volt"] .platform-store { color: #111; }
.platform-store.ghost { border-color: #3b404d; background: transparent; color: var(--shell-text, #eef0f4); }
.platform-store.ghost:hover { border-color: #5b616f; }
.platform-store svg { width: 18px; }
.platform-store small { display: block; opacity: .75; font: 750 8px/1 Inter, sans-serif; letter-spacing: .1em; }
.platform-store b { display: block; margin-top: 2px; font: 900 13px/1 Inter, sans-serif; letter-spacing: .04em; }
.platform-push-art { position: relative; min-height: 250px; }
.art-tv { position: relative; width: min(100%, 400px); margin-left: auto; }
.art-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 2px solid #3a3f4c;
  background: linear-gradient(130deg, color-mix(in srgb, var(--shell-accent) 34%, #0a0c12) 0%, #0d1019 55%, #171b26 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.art-live { justify-self: start; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgba(4, 5, 8, .72); font: 850 8px/1 Inter, sans-serif; letter-spacing: .12em; }
.art-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--shell-accent); animation: radio-dock-pulse 1.15s ease-in-out infinite; }
.art-lockup { justify-self: center; }
.art-score { justify-self: center; color: #c9cdd6; font: 800 10px/1 Inter, sans-serif; letter-spacing: .08em; }
.art-score b { color: var(--shell-accent); }
.art-progress { position: relative; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .16); }
.art-progress i { position: absolute; inset: 0; background: var(--shell-accent); transform: translateX(-100%); animation: radio-load 3.2s linear infinite; }
.art-stand { width: 92px; height: 10px; margin: 0 auto; border: 2px solid #3a3f4c; border-top: 0; }
.art-phone {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 84px;
  padding: 7px 6px;
  border: 2px solid #3a3f4c;
  border-radius: 12px;
  background: #0a0c12;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.art-phone-screen {
  aspect-ratio: 9 / 16;
  padding: 8px 7px;
  display: grid;
  align-content: space-between;
  border-radius: 6px;
  background: linear-gradient(160deg, #141824 0%, color-mix(in srgb, var(--shell-accent) 28%, #0b0d14) 100%);
}
.art-phone-tag { justify-self: start; padding: 3px 5px; background: rgba(4, 5, 8, .72); font: 850 6px/1 Inter, sans-serif; letter-spacing: .12em; }
.art-phone-bars { display: grid; gap: 4px; }
.art-phone-bars i { height: 3px; background: rgba(255, 255, 255, .3); }
.art-phone-bars i:first-child { background: var(--shell-accent); }

@media (max-width: 900px) {
  .platform-push-inner { grid-template-columns: 1fr; gap: 34px; padding: 40px 16px 46px; }
  .platform-push-art { min-height: 0; }
  .art-tv { margin: 0 auto; }
  .art-phone { right: max(-4px, calc((100% - 400px) / 2 - 12px)); }
  .platform-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.radio-dock {
  position: fixed;
  z-index: 500;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  border-top: 1px solid #343843;
  background: linear-gradient(90deg, color-mix(in srgb, var(--shell-accent) 13%, #0a0b10) 0%, rgba(8, 9, 13, .97) 34%, rgba(8, 9, 13, .97) 100%);
  color: white;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .38);
  backdrop-filter: blur(16px);
}
.radio-dock::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--shell-accent) 0%, transparent 58%); }
.radio-dock-inner {
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.2fr) auto;
  align-items: center;
  gap: 24px;
}
.radio-dock-station { min-width: 0; display: flex; align-items: center; gap: 12px; }
.radio-dock-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--shell-accent);
}
.radio-dock-mark svg { width: 21px; }
.radio-dock-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.radio-dock-copy { min-width: 0; }
.radio-dock-copy small, .radio-dock-copy b, .radio-dock-copy span { display: block; }
.radio-dock-copy small { margin-bottom: 3px; color: var(--shell-accent); font: 850 9px/1 Inter, sans-serif; letter-spacing: .13em; }
.radio-dock-live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--shell-accent); vertical-align: 1px; }
.radio-dock.playing .radio-dock-live-dot { animation: radio-dock-pulse 1.15s ease-in-out infinite; }
@keyframes radio-dock-pulse { 50% { opacity: .3; } }
.radio-dock-copy b { overflow: hidden; font: 800 13px/1.2 Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.radio-dock-copy span { margin-top: 3px; overflow: hidden; color: #8f96a4; font: 550 10px/1 Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.radio-dock-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.radio-dock-elapsed { min-width: 42px; color: #8f96a4; text-align: right; font: 800 11px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.radio-dock.playing .radio-dock-elapsed { color: #e8eaef; }
.radio-main-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--shell-accent);
  color: white;
  cursor: pointer;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--shell-accent) 15%, transparent);
}
.radio-main-toggle svg { width: 19px; fill: currentColor; }
.radio-level { display: flex; align-items: center; gap: 3px; }
.radio-level i { width: 3px; height: 8px; background: #4d525e; }
.radio-level i:nth-child(2) { height: 15px; }
.radio-level i:nth-child(3) { height: 21px; }
.radio-level i:nth-child(4) { height: 12px; }
.radio-dock.playing .radio-level i { background: var(--shell-accent); animation: radio-level 650ms ease-in-out infinite alternate; }
.radio-dock.playing .radio-level i:nth-child(2) { animation-delay: -200ms; }
.radio-dock.playing .radio-level i:nth-child(3) { animation-delay: -400ms; }
@keyframes radio-level { to { transform: scaleY(.35); } }
.radio-progress { height: 2px; position: relative; overflow: hidden; background: #2e323b; }
.radio-progress::after { content: ""; position: absolute; inset: 0; background: var(--shell-accent); transform: translateX(-100%); }
.radio-dock.loading .radio-progress::after { animation: radio-load 1.1s linear infinite; }
.radio-dock.playing .radio-progress::after { animation: radio-load 2.6s linear infinite; }
@keyframes radio-load { to { transform: translateX(100%); } }
.radio-dock-actions { display: flex; align-items: center; gap: 8px; }
.radio-volume { display: flex; align-items: center; gap: 7px; color: #a1a7b3; }
.radio-volume svg { width: 17px; }
.radio-volume input { width: 92px; accent-color: var(--shell-accent); }
.radio-page-link, .radio-close {
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #363b46;
  border-radius: 2px;
  background: transparent;
  color: #d8dbe2;
  text-decoration: none;
  font: 750 10px/1 Inter, sans-serif;
  cursor: pointer;
}
.radio-page-link:hover, .radio-close:hover { border-color: #5b616f; color: white; }
.radio-page-link svg, .radio-close svg { width: 15px; }
.radio-close { width: 38px; padding: 0; }
.radio-dock.minimized { left: auto; width: 68px; height: 68px; right: 14px; bottom: 14px; border: 0; background: transparent; box-shadow: none; }
.radio-dock.minimized .radio-dock-inner { padding: 0; display: block; }
.radio-dock.minimized .radio-dock-station, .radio-dock.minimized .radio-level, .radio-dock.minimized .radio-progress, .radio-dock.minimized .radio-dock-actions, .radio-dock.minimized .radio-dock-elapsed { display: none; }
.radio-dock.minimized::before { display: none; }
.radio-dock.minimized .radio-dock-controls { display: block; }
.radio-dock.minimized .radio-main-toggle { width: 58px; height: 58px; }

.radio-error { color: #ff9cac !important; }
body[data-page="radio"] { padding-bottom: 0; }
body[data-page="radio"] .radio-dock { opacity: 0; pointer-events: none; transform: translateY(100%); }

@media (max-width: 760px) {
  body.has-radio-dock { padding-bottom: 67px; }
  .global-popover { top: var(--popover-top, 63px); right: 14px; }
  .radio-dock { height: 67px; bottom: 64px; }
  .radio-dock-at-bottom .radio-dock { bottom: 0; }
  .radio-dock-inner { padding: 0 12px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .radio-dock-mark { width: 38px; height: 38px; }
  .radio-dock-copy span { display: none; }
  .radio-dock-controls { display: block; }
  .radio-level, .radio-progress, .radio-volume, .radio-page-link span, .radio-dock-elapsed { display: none; }
  .radio-main-toggle { width: 42px; height: 42px; box-shadow: none; }
  .radio-dock-actions { gap: 5px; }
  .radio-page-link, .radio-close { width: 36px; height: 36px; padding: 0; }
  .radio-dock.minimized { right: 10px; bottom: 76px; }
  .radio-dock-at-bottom .radio-dock.minimized { bottom: 10px; }
  .global-search { padding-top: 64px; }
  .global-search-result { grid-template-columns: 64px 1fr auto; }
  .global-search-result img { width: 64px; height: 46px; }
}

@media (max-width: 590px) {
  .header-shell { grid-template-columns: 42px minmax(0, 1fr) 80px; }
  .header-actions { width: 80px; display: grid; grid-template-columns: 36px 36px; gap: 8px; }
  .header-actions > *:not(.global-alert-button):not(.avatar-button) { display: none !important; }
  .header-actions .global-alert-button { display: grid !important; width: 36px; height: 36px; }
  .header-actions .avatar-button { width: 36px; height: 36px; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .radio-dock.playing .radio-level i, .radio-dock.loading .radio-progress::after, .radio-dock.playing .radio-progress::after, .radio-dock.playing .radio-dock-live-dot { animation: none; }
}
