:root {
  color-scheme: light;
  --page: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #edf6f8;
  --ink: #14212b;
  --muted: #61717f;
  --line: #dce8ed;
  --line-strong: #c3d5dc;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-bright: #14b8a6;
  --accent: #f97316;
  --accent-soft: #fff3e8;
  --aqua-soft: #dff8f4;
  --sky-soft: #eaf5ff;
  --favorite: #f59e0b;
  --success: #138a53;
  --danger: #c2410c;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-glass-strong: rgba(255, 255, 255, 0.94);
  --surface-clear: rgba(255, 255, 255, 0.78);
  --surface-hover: #ffffff;
  --field: #ffffff;
  --warm-soft: #fff8f2;
  --active-soft: #fff7ed;
  --success-soft: #dcfce7;
  --danger-soft: #fff0e8;
  --warning-soft: #fff7df;
  --logo-plate: #ffffff;
  --footer-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 50px rgba(18, 33, 43, 0.13);
  --shadow-soft: 0 12px 28px rgba(18, 33, 43, 0.08);
  --radius: 8px;
  --player-height: 96px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1218;
  --surface: #151f28;
  --surface-soft: #1e2b35;
  --ink: #edf7fb;
  --muted: #9badb9;
  --line: #2b3b46;
  --line-strong: #40525e;
  --brand: #2dd4bf;
  --brand-dark: #5eead4;
  --brand-bright: #5eead4;
  --accent: #fb923c;
  --accent-soft: #342416;
  --aqua-soft: #123b3a;
  --sky-soft: #142b3d;
  --favorite: #fbbf24;
  --success: #86efac;
  --danger: #fdba74;
  --surface-glass: rgba(21, 31, 40, 0.9);
  --surface-glass-strong: rgba(23, 34, 44, 0.94);
  --surface-clear: rgba(15, 23, 32, 0.82);
  --surface-hover: #1b2934;
  --field: #101922;
  --warm-soft: #2d241c;
  --active-soft: #34281b;
  --success-soft: #123527;
  --danger-soft: #3b211b;
  --warning-soft: #3a2d14;
  --logo-plate: #ffffff;
  --footer-bg: rgba(13, 20, 27, 0.9);
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  background:
    linear-gradient(145deg, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(25deg, rgba(249, 115, 22, 0.1), transparent 42%),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
  padding-bottom: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  overflow: visible;
  background: linear-gradient(90deg, rgba(15, 23, 32, 0.96), rgba(12, 78, 74, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-navbar .container {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  color: #fff;
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-word {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  line-height: 1;
}

.navbar-toggler {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.navbar-actions {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.navbar-toggler-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

.navbar-collapse {
  order: 2;
  display: flex;
  margin-left: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-shell {
  flex: 1 0 auto;
  padding: 28px 0 42px;
}

.radio-console {
  position: relative;
}

.console-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(13, 19, 28, 0.96), rgba(12, 86, 82, 0.82) 55%, rgba(249, 115, 22, 0.5)),
    url("../images/studio_bg.jpg") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.console-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent), var(--favorite));
  content: "";
}

.kicker {
  margin: 0 0 8px;
  color: #a7fff3;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.console-header p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.34fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.input-shell {
  position: relative;
  min-width: 0;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--muted);
}

.app-input,
.app-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  outline: 0;
}

.app-input {
  padding: 0 14px 0 40px;
}

.app-select {
  padding: 0 36px 0 12px;
}

.app-input:focus,
.app-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16);
}

.view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  min-width: 260px;
  min-height: 48px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-soft), var(--warm-soft));
}

.view-button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.view-button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--surface), var(--aqua-soft));
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.13);
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 16px 0 22px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-glass);
  color: var(--ink);
  padding: 7px 12px;
  font-weight: 720;
  white-space: nowrap;
}

.chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--aqua-soft), var(--active-soft));
  color: var(--brand-dark);
}

.content-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
}

.now-panel {
  overflow: hidden;
}

.now-art {
  display: grid;
  place-items: center;
  min-height: 212px;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.78), rgba(249, 115, 22, 0.36)),
    #111a20;
}

.now-art img {
  width: min(160px, 62%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 24px rgba(10, 20, 30, 0.24));
}

.now-body,
.list-panel {
  padding: 16px;
}

.now-label,
.panel-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.now-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.now-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 720;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.status-pill.is-live {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.is-live .status-dot {
  background: var(--success);
}

.status-pill.is-loading {
  background: var(--aqua-soft);
  color: var(--brand-dark);
}

.status-pill.is-loading .status-dot {
  background: var(--brand);
}

.status-pill.is-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.is-error .status-dot {
  background: var(--danger);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-station {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  padding: 6px;
  color: inherit;
  text-align: left;
}

.mini-station:hover,
.mini-station:focus {
  border-color: var(--brand);
  background: var(--surface-hover);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.11);
}

.mini-station img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface-soft);
}

.mini-title {
  display: block;
  overflow: hidden;
  font-weight: 780;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-subtitle {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--aqua-soft);
  color: var(--brand-dark);
}

.station-area {
  min-width: 0;
}

.station-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.station-summary h2 {
  margin: 0;
  font-size: 1.35rem;
}

.station-summary p {
  margin: 3px 0 0;
  color: var(--muted);
}

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

.station-card {
  position: relative;
  display: grid;
  gap: 13px;
  min-width: 0;
  min-height: 326px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass-strong);
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(18, 33, 43, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.station-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent));
  content: "";
  opacity: 0.82;
}

.station-card:hover,
.station-card:focus-within {
  border-color: var(--brand);
  background: var(--surface-hover);
  box-shadow: 0 18px 34px rgba(18, 33, 43, 0.1);
  transform: translateY(-2px);
}

.station-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16), 0 18px 34px rgba(13, 148, 136, 0.14);
}

.station-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.station-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 154px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-soft), var(--accent-soft));
}

.station-logo {
  width: min(132px, 78%);
  height: min(132px, 78%);
  object-fit: contain;
}

.station-actions,
.station-secondary-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.station-secondary-actions {
  display: flex;
  flex: 0 0 auto;
}

.icon-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-glass);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.action-button {
  gap: 8px;
  padding: 0 14px;
  font-weight: 780;
  white-space: nowrap;
}

.icon-button:hover,
.icon-button:focus,
.action-button:hover,
.action-button:focus {
  border-color: var(--brand);
  background: var(--surface-hover);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.action-button.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
}

.action-button.primary:hover,
.action-button.primary:focus {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.favorite-button.is-favorite,
.player-favorite.is-favorite {
  border-color: rgba(245, 158, 11, 0.42);
  background: var(--warning-soft);
  color: var(--favorite);
}

.station-country {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--aqua-soft), var(--surface));
  color: var(--brand-dark);
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 780;
}

.station-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.station-sender {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.station-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.station-play-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.play-station {
  min-width: 46px;
  height: 46px;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
}

.play-station:hover,
.play-station:focus {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.empty-state {
  display: none;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-glass);
  padding: 26px;
  text-align: center;
}

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

.empty-state h3 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

.player-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1120px;
  min-height: var(--player-height);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(16, 24, 32, 0.97), rgba(11, 77, 74, 0.95)),
    rgba(17, 24, 32, 0.96);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transform: translateY(calc(100% + 28px));
  transition: transform 0.22s ease;
}

.player-bar.is-visible {
  transform: translateY(0);
}

.player-info {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--logo-plate);
  object-fit: contain;
  padding: 7px;
}

.player-copy {
  min-width: 0;
}

.player-title {
  overflow: hidden;
  margin: 0;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-subtitle {
  overflow: hidden;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-bar .icon-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.player-bar .icon-button:hover,
.player-bar .icon-button:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.player-bar .play-toggle {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.player-bar .play-toggle:hover,
.player-bar .play-toggle:focus {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.volume-range {
  width: 118px;
  accent-color: var(--brand);
}

.duration {
  min-width: 48px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-height) + 32px);
  z-index: 140;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #172026, #0f4f4a);
  color: #fff;
  font-weight: 720;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.privacy-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 180;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

body.has-player .privacy-consent {
  bottom: calc(var(--player-height) + 18px);
}

.privacy-consent__panel {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 32, 39, 0.97), rgba(13, 82, 78, 0.97)),
    #102027;
  color: #fff;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.privacy-consent__copy h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.privacy-consent__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.privacy-consent__link {
  display: inline-flex;
  margin-top: 8px;
  color: #99f6e4;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.privacy-consent__link:hover,
.privacy-consent__link:focus {
  color: #fed7aa;
}

.privacy-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.privacy-consent__button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 780;
  white-space: nowrap;
}

.privacy-consent__button:hover,
.privacy-consent__button:focus {
  background: rgba(255, 255, 255, 0.14);
}

.privacy-consent__button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-bright), var(--accent));
}

.privacy-consent__button--primary:hover,
.privacy-consent__button--primary:focus {
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--brand-dark);
}

@media (max-width: 980px) {
  .console-header {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .console-actions {
    justify-content: flex-start;
  }

  .control-strip {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr);
  }

  .view-switch {
    grid-column: 1 / -1;
    min-width: 0;
  }

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

  .side-stack {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .now-art {
    min-height: 178px;
  }
}

@media (max-width: 760px) {
  :root {
    --player-height: 156px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-navbar .container {
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .navbar-brand {
    flex: 1 1 auto;
  }

  .navbar-actions {
    flex: 0 0 auto;
  }

  .navbar-toggler {
    display: inline-flex;
  }

  .navbar-collapse {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 90;
    display: block;
    width: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(15, 32, 39, 0.98), rgba(13, 82, 78, 0.98)),
      #102027;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }

  .navbar-collapse.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .navbar-nav {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 0;
  }

  .nav-link {
    width: 100%;
  }

  .app-shell {
    padding-top: 16px;
  }

  .console-header {
    padding: 20px;
  }

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

  .station-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .station-grid {
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 10px;
  }

  .station-card {
    min-height: 292px;
    padding: 12px;
  }

  .station-play-group .station-sender {
    display: none;
  }

  .station-logo-wrap {
    height: 128px;
  }

  .station-logo {
    width: min(106px, 80%);
    height: min(106px, 80%);
  }

  .player-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-controls {
    justify-content: space-between;
  }

  .volume-control {
    display: none;
  }

  .duration {
    display: none;
  }

  .privacy-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  body.has-player .privacy-consent {
    bottom: calc(var(--player-height) + 14px);
  }

  .privacy-consent__panel {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(100svh - 20px);
    overflow: auto;
    padding: 14px;
  }

  .privacy-consent__actions {
    justify-content: stretch;
  }

  .privacy-consent__button {
    flex: 1 1 180px;
    white-space: normal;
  }

}

@media (max-width: 430px) {
  :root {
    --player-height: 170px;
  }

  .console-header h1 {
    font-size: 2.3rem;
  }

  .console-actions .action-button span {
    display: none;
  }

  .view-switch {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .station-card {
    min-height: 280px;
  }

  .station-logo-wrap {
    height: 116px;
  }

  .station-secondary-actions {
    gap: 6px;
  }

  .player-info {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .player-logo {
    width: 54px;
    height: 54px;
  }

  .player-controls {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .player-controls .icon-button {
    width: 100%;
    min-width: 0;
  }

}
