/* ============================================================
   TV-Radio redesign — app styles
   Built on PDFLike design tokens (see design-system/colors_and_type.css)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--pdf-bg);
  color: var(--pdf-fg-2);
  font-family: var(--pdf-font-body);
  font-size: var(--pdf-size-body);
  line-height: var(--pdf-leading-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input { font-family: inherit; }

/* Ambient lavender blobs behind every page (PDFLike signature) */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-blobs::before, .bg-blobs::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  background: var(--pdf-blob);
  border-radius: 50%;
  filter: blur(40px);
}
.bg-blobs::before { top: -200px; left: -200px; }
.bg-blobs::after  { bottom: -260px; right: -240px;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }

/* ─────────── App shell ─────────── */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 110px; /* room for mini-player */
}

.container {
  max-width: var(--pdf-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────── Header ─────────── */
.header {
  position: sticky; top: 0;
  z-index: 50;
  height: var(--pdf-header-h);
  background: var(--pdf-surface);
  box-shadow: var(--pdf-elev-header);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 22px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
  user-select: none;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent, var(--pdf-violet));
  display: grid; place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name .dot { color: var(--accent, var(--pdf-violet)); }
.brand-tag {
  font-family: var(--pdf-font-body);
  font-size: 11px;
  color: var(--pdf-fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Tabs Radio / TV */
.modes {
  display: flex;
  background: var(--pdf-bg);
  border-radius: var(--pdf-radius-pill);
  padding: 4px;
  gap: 2px;
}
.mode-btn {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 15px;
  color: var(--pdf-fg-3);
  padding: 8px 18px;
  border-radius: var(--pdf-radius-pill);
  display: flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.mode-btn[aria-pressed="true"] {
  background: var(--pdf-surface);
  color: var(--pdf-fg-1);
  box-shadow: 0 1px 4px rgba(135,127,168,0.18);
}
.mode-btn:hover { color: var(--pdf-fg-1); }
.mode-btn svg { width: 16px; height: 16px; }

/* Search */
.search {
  flex: 1;
  display: flex; align-items: center;
  background: var(--pdf-bg);
  border-radius: var(--pdf-radius-pill);
  padding: 0 18px;
  height: 44px;
  max-width: 360px;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.search:focus-within {
  background: var(--pdf-surface);
  border-color: var(--accent, var(--pdf-violet));
}
.search svg { width: 18px; height: 18px; color: var(--pdf-fg-3); flex-shrink: 0; }
.search input {
  border: none; background: none; outline: none;
  width: 100%;
  margin-left: 10px;
  font-size: 14px;
  color: var(--pdf-fg-1);
}
.search input::placeholder { color: var(--pdf-fg-3); }

/* Favourites dropdown */
.fav-wrap { position: relative; }
.fav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-md, 12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 500;
  overflow: hidden;
}
.fav-dropdown.is-open { display: block; }
.fav-dd-header {
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pdf-fg-3);
  border-bottom: 1px solid var(--pdf-divider);
}
.fav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--pdf-fg-1);
  transition: background .12s;
  position: relative;
}
.fav-dd-item:hover { background: var(--pdf-bg); }
.fav-dd-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pdf-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fav-dd-logo img { width: 100%; height: 100%; object-fit: cover; }
.fav-dd-initials { font-size: 11px; font-weight: 600; color: var(--pdf-fg-3); }
.fav-dd-name { font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-dd-remove {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--pdf-fg-3);
  opacity: 0;
  transition: opacity .12s, background .12s, color .12s;
}
.fav-dd-item:hover .fav-dd-remove { opacity: 1; }
.fav-dd-remove:hover { background: var(--pdf-bg); color: var(--pdf-red, #e53e3e); }
.fav-dd-empty { padding: 16px 14px; font-size: 13px; color: var(--pdf-fg-3); text-align: center; }

/* Fav button active state (in header and on page) */
.icon-btn.is-fav svg,
.ph-icon-btn.is-fav svg { stroke: var(--pdf-red, #e53e3e); fill: var(--pdf-red, #e53e3e); }

/* Quick search dropdown */
.search--quick { position: relative; }
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-md, 12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 500;
  overflow: hidden;
}
.search-dropdown.is-open { display: block; }
.search-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--pdf-fg-1);
  transition: background .12s;
}
.search-dd-item:hover { background: var(--pdf-bg); }
.search-dd-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pdf-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-dd-logo img { width: 100%; height: 100%; object-fit: cover; }
.search-dd-initials { font-size: 11px; font-weight: 600; color: var(--pdf-fg-3); }
.search-dd-name { font-size: 14px; line-height: 1.3; }
.search-dd-empty { padding: 12px 14px; font-size: 13px; color: var(--pdf-fg-3); }

/* Header right actions */
.header-actions {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--pdf-radius-pill);
  color: var(--pdf-fg-2);
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn:hover { background: var(--pdf-bg); color: var(--accent, var(--pdf-violet)); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--pdf-linkedin);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent, var(--pdf-violet));
  color: #fff;
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 14px;
  letter-spacing: var(--pdf-track-wide);
  padding: 10px 20px;
  border-radius: var(--pdf-radius-lg);
  transition: filter .15s, transform .08s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pdf-bg);
  color: var(--pdf-fg-1);
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--pdf-radius-lg);
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: #ECECEC; }
.btn-ghost svg { width: 16px; height: 16px; }

/* ─────────── Section ─────────── */
.section {
  margin-top: 56px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 26px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
}
.section-sub {
  display: block;
  font-family: var(--pdf-font-body);
  font-size: 14px;
  color: var(--pdf-fg-3);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.section-link {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 14px;
  color: var(--accent, var(--pdf-violet));
  display: inline-flex; align-items: center; gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ─────────── Station card (style 0 — outlined, circular logo left) ─────────── */
.grid {
  display: grid;
  gap: var(--card-gap, 12px);
  grid-template-columns: repeat(var(--grid-cols, 4), minmax(0, 1fr));
}

.station-card {
  display: flex; align-items: center;
  gap: 14px;
  padding: var(--card-pad-y, 14px) var(--card-pad-x, 16px);
  border-radius: var(--pdf-radius-md);
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  transition: box-shadow .15s, border-color .15s, transform .08s;
  cursor: pointer;
  position: relative;
  min-height: var(--card-min-h, 84px);
}
.station-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(135,127,168,0.20);
}
.station-card:hover .station-name { color: var(--accent, var(--pdf-violet)); }
.station-card.is-playing {
  border-color: var(--accent, var(--pdf-violet));
  box-shadow: 0 0 0 1px var(--accent, var(--pdf-violet));
}

/* Filled variant */
.cards-filled .station-card {
  background: #F6F4FF;
  border-color: transparent;
}
.cards-filled .station-card:hover { background: #EFEAFF; }

/* Shadow variant */
.cards-shadow .station-card {
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(135,127,168,0.10);
}
.cards-shadow .station-card:hover {
  box-shadow: 0 8px 28px rgba(135,127,168,0.22);
}

.station-logo {
  width: var(--logo-size, 70px);
  height: auto;
  border-radius: 10%;
  display: grid; place-items: center;
  background: var(--logo-bg, #F2F0FA);
  color: var(--logo-fg, var(--pdf-fg-1));
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.station-logo svg { width: 100%; height: 100%; display: block; }
.station-logo.is-square { border-radius: 12px; }

.station-body { flex: 1; min-width: 0; }
.station-name {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 15px;
  color: var(--pdf-fg-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.station-meta {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  line-height: 1.3;
  margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station-listeners {
  font-family: var(--pdf-font-body);
  font-size: 11px;
  color: var(--pdf-fg-3);
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 2px;
}
.station-listeners svg { width: 10px; height: 10px; }

.play-overlay {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent, var(--pdf-violet));
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .15s, transform .15s;
}
.station-card:hover .play-overlay,
.station-card.is-playing .play-overlay { opacity: 1; transform: scale(1); }
.play-overlay svg { width: 14px; height: 14px; margin-left: 1px; }

/* Equalizer animation for "now playing" cards */
.eq {
  display: inline-flex; gap: 2px; align-items: flex-end;
  height: 12px;
}
.eq span {
  display: block;
  width: 2px;
  background: var(--accent, var(--pdf-violet));
  border-radius: 1px;
  animation: eqbar 1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.eq span:nth-child(2) { height: 100%; animation-delay: -0.4s; }
.eq span:nth-child(3) { height: 40%; animation-delay: -0.6s; }
.eq span:nth-child(4) { height: 80%; animation-delay: -0.8s; }
@keyframes eqbar {
  0%,100% { transform: scaleY(0.4); }
  50%     { transform: scaleY(1); }
}

/* Density variants */
.density-compact { --card-gap: 8px; --card-pad-y: 10px; --card-pad-x: 12px; --logo-size: 44px; --card-min-h: 64px; }
.density-regular { --card-gap: 12px; --card-pad-y: 14px; --card-pad-x: 16px; --logo-size: 56px; --card-min-h: 84px; }
.density-comfy   { --card-gap: 16px; --card-pad-y: 18px; --card-pad-x: 20px; --logo-size: 64px; --card-min-h: 100px; }

/* ─────────── Hero (Home) ─────────── */
.hero {
  position: relative;
  padding: 56px 24px 8px;
}
.hero-eyebrow {
  font-family: var(--pdf-font-body);
  font-size: 13px;
  color: var(--accent, var(--pdf-violet));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-h1 {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pdf-fg-1);
  margin: 0 0 16px;
  max-width: 820px;
  text-wrap: balance;
}
.hero-h1 .accent { color: var(--accent, var(--pdf-violet)); }
.hero-sub {
  font-family: var(--pdf-font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--pdf-fg-2);
  max-width: 580px;
  margin: 0 0 28px;
}
.hero-search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-pill);
  padding: 8px 8px 8px 22px;
  max-width: 620px;
  box-shadow: var(--pdf-elev-card);
}
.hero-search .search-dropdown { top: calc(100% + 8px); border-radius: 16px; }
.hero-search svg.search-i { width: 20px; height: 20px; color: var(--pdf-fg-3); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: none; outline: none; background: none;
  font-size: 16px;
  padding: 12px 0;
  color: var(--pdf-fg-1);
}
.hero-search input::placeholder { color: var(--pdf-fg-3); }
.hero-search .btn-primary {
  padding: 12px 24px;
  border-radius: 50px;
}

/* Hero stats row */
.hero-stats {
  display: flex; gap: 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(196,196,196,0.4);
  max-width: 620px;
}
.stat-num {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 22px;
  color: var(--pdf-fg-1);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  margin-top: 4px;
}

/* Hero visual side */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero-visual {
  position: relative;
  height: 360px;
}
.hero-cards {
  position: absolute;
  inset: 0;
}
.hero-cards .floating {
  position: absolute;
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 28px rgba(135,127,168,0.22);
  width: 240px;
}
.floating .station-logo { width: 40px; height: 40px; font-size: 14px; }
.floating-name { font-family: var(--pdf-font-display); font-weight: 700; font-size: 13px; color: var(--pdf-fg-1); }
.floating-meta { font-size: 11px; color: var(--pdf-fg-3); margin-top: 2px; }
.floating-1 { top: 20px; left: 40px; transform: rotate(-4deg); }
.floating-2 { top: 90px; right: 0; transform: rotate(3deg); }
.floating-3 { top: 200px; left: 10px; transform: rotate(2deg); }
.floating-4 { bottom: 20px; right: 30px; transform: rotate(-3deg); }

/* ─────────── Chips ─────────── */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pdf-radius-pill);
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 13px;
  color: var(--pdf-fg-2);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.chip:hover { border-color: var(--accent, var(--pdf-violet)); color: var(--pdf-fg-1); }
.chip[aria-pressed="true"] {
  background: var(--accent, var(--pdf-violet));
  border-color: var(--accent, var(--pdf-violet));
  color: #fff;
}
.chip .count {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 500;
}
.chip[aria-pressed="true"] .count { opacity: 0.85; }
.chip-divider {
  width: 1px;
  background: var(--pdf-divider);
  margin: 4px 8px;
}

/* Genre tile */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.genre-tile {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-md);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}
.genre-tile:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(135,127,168,0.18);
  transform: translateY(-1px);
}
.genre-tile .genre-emoji {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--genre-bg, #F2F0FA);
  color: var(--genre-fg, var(--accent, var(--pdf-violet)));
}
.genre-tile .genre-emoji svg { width: 20px; height: 20px; }
.genre-name {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 15px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
}
.genre-count {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
}

/* City pill */
.cities-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.city-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-pill);
  padding: 10px 16px;
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 14px;
  color: var(--pdf-fg-1);
  cursor: pointer;
  transition: all .15s;
}
.city-pill:hover { border-color: var(--accent, var(--pdf-violet)); color: var(--accent, var(--pdf-violet)); }
.city-pill .city-count {
  font-size: 12px;
  color: var(--pdf-fg-3);
  font-weight: 500;
}

/* TV card */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
  gap: var(--card-gap, 12px);
}
.tv-card {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: all .15s;
}
.tv-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(135,127,168,0.20);
}
.tv-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2540 0%, #050028 100%);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.tv-thumb .tv-logo-mark {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.tv-thumb::before {
  content: "LIVE";
  position: absolute;
  top: 8px; left: 8px;
  background: var(--pdf-red);
  color: #fff;
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 3px;
}
.tv-card .tv-meta-row {
  display: flex; align-items: center; justify-content: space-between;
}
.tv-name {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 15px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
}
.tv-now {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─────────── Mini player (bottom bar) ─────────── */
.miniplayer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: var(--pdf-surface);
  box-shadow: 0 -6px 30px rgba(135,127,168,0.20);
  z-index: 60;
  display: flex; align-items: center;
}
.miniplayer.is-floating {
  left: 50%;
  right: auto;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 40px));
  height: 72px;
  border-radius: var(--pdf-radius-xl);
  padding: 0 12px;
  box-shadow: 0 12px 40px rgba(135,127,168,0.28);
}
.miniplayer.is-minimal {
  height: 56px;
}
.miniplayer-inner {
  max-width: var(--pdf-container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.miniplayer.is-floating .miniplayer-inner { padding: 0 8px; }
.mp-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.mp-left .station-logo { width: 48px; height: 48px; font-size: 14px; flex-shrink: 0; }
.miniplayer.is-minimal .mp-left .station-logo { width: 36px; height: 36px; font-size: 12px; }
.mp-info { min-width: 0; }
.mp-name {
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-bold);
  font-size: 14px;
  color: var(--pdf-fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-track {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mp-controls {
  display: flex; align-items: center; gap: 25px;
}
.mp-btn {
  width: 50px; 
  height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--pdf-fg-2);
  transition: background .15s, color .15s;
}
.mp-btn:hover { background: var(--pdf-bg); color: var(--accent, var(--pdf-violet)); }
.mp-btn svg { width: 28px; height: 28px; }
.mp-play {
  width: 48px; height: 48px;
  background: var(--accent, var(--pdf-violet));
  color: #fff;
}
.mp-play:hover { background: var(--accent, var(--pdf-violet)); filter: brightness(1.08); color: #fff; }
.mp-play svg { width: 20px; height: 20px; }

.mp-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.volume {
  display: flex; align-items: center; gap: 8px;
  width: 140px;
}
.volume input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 4px;
  background: var(--pdf-divider);
  border-radius: 2px;
  outline: none;
}
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  background: var(--accent, var(--pdf-violet));
  border-radius: 50%;
  cursor: pointer;
}
.miniplayer.is-minimal .volume { display: none; }
.miniplayer.is-minimal .mp-right .icon-btn:not(.always) { display: none; }

/* ─────────── Radio station page ─────────── */
.player-hero {
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-xl);
  padding: 40px;
  box-shadow: var(--pdf-elev-card);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
.ph-cover {
  width: 280px; height: 280px;
  border-radius: var(--pdf-radius-lg);
  display: grid; place-items: center;
  background: var(--logo-bg, #F2F0FA);
  color: var(--logo-fg, var(--accent, var(--pdf-violet)));
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(135,127,168,0.25);
}
/* ph-logo: default fills the cover */
.ph-logo-full {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.ph-logo-full img { width: 100%; height: 100%; object-fit: cover; }
/* ph-logo-full text placeholder — font-size inherited from .ph-cover */
.ph-logo-full span { font-size: 64px; }

/* ph-logo: mini badge in top-left when track artwork is shown */
.ph-logo-mini {
  position: absolute;
  top: 12px; left: 12px;
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--logo-bg, #F2F0FA);
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  display: grid; place-items: center;
  z-index: 2;
}
.ph-logo-mini img { width: 100%; height: 100%; object-fit: cover; }
.ph-logo-mini span {
  font-family: var(--pdf-font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--pdf-violet);
}
.ph-cover svg { width: 100%; height: 100%; }
.ph-cover .now-eq {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.96);
  padding: 6px 10px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.ph-cover .now-eq .eq { height: 10px; }
.ph-cover .now-eq span:first-of-type {
  font-family: var(--pdf-font-display);
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.08em; color: var(--accent, var(--pdf-violet));
  text-transform: uppercase;
}

.ph-body { min-width: 0; }
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ph-eyebrow .live-dot {
  width: 8px; height: 8px;
  background: var(--pdf-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(254,35,48,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(254,35,48,0.18); }
  50%     { box-shadow: 0 0 0 6px rgba(254,35,48,0.05); }
}
.ph-title {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--pdf-fg-1);
  margin: 0 0 8px;
  line-height: 1.05;
}
.ph-tagline {
  font-family: var(--pdf-font-body);
  font-size: 16px;
  color: var(--pdf-fg-2);
  margin: 0 0 20px;
  max-width: 540px;
}
.ph-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.ph-tag {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  background: var(--pdf-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.ph-now-block {
  background: var(--pdf-bg);
  border-radius: var(--pdf-radius-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.ph-now-cover {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #877FA8, #544884);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ph-now-cover svg { width: 22px; height: 22px; }
.ph-now-body { flex: 1; min-width: 0; }
.ph-now-label {
  font-family: var(--pdf-font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, var(--pdf-violet));
  font-weight: 700;
}
.ph-now-track {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-now-artist {
  font-family: var(--pdf-font-body);
  font-size: 13px;
  color: var(--pdf-fg-2);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ph-actions {
  display: flex; align-items: center; gap: 12px;
}
.ph-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent, var(--pdf-violet));
  color: #fff;
  border: 2px solid;
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border-radius: var(--pdf-radius-pill);
  transition: filter .15s, transform .08s;
}
.ph-play:hover { filter: brightness(1.08); }
.ph-play:active { transform: translateY(1px); }
.ph-play svg { width: 18px; height: 18px; }
.ph-play.is-playing { background: var(--pdf-bg); color: var(--accent, var(--pdf-violet)); border: 2px solid var(--accent, var(--pdf-violet)); }

.ph-icon-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--pdf-bg);
  border-radius: 50%;
  color: var(--pdf-fg-2);
  transition: all .15s;
  text-decoration: none;
}
.ph-icon-btn:hover { background: #ECECEC; color: var(--accent, var(--pdf-violet)); }
.ph-icon-btn svg { width: 18px; height: 18px; }
.ph-icon-btn svg[width="30"] { width: 30px; height: 30px; }
.ph-icon-btn.is-fav { color: var(--pdf-red); }

/* Two-column body */
.station-body-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}

.panel {
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-xl);
  padding: 28px;
  box-shadow: 0 0 20px rgba(135,127,168,0.08);
}
.panel + .panel { margin-top: 20px; }
.rc-grid + .panel, .panel + .rc-grid { margin-top: 20px; }
.rc-grid .panel { margin-top: 0 !important; }

.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 700px) {
  .rc-grid { grid-template-columns: 1fr; }
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.panel-title {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.01em;
}

.seo-body { font-size: 14px; line-height: 1.7; color: var(--pdf-fg-2); padding: 0; }
.tv-panel .seo-body { padding: 24px 24px 28px; }
.seo-body h2 { font-family: var(--pdf-font-display); font-size: 17px; font-weight: 700; color: var(--pdf-fg-1); margin: 24px 0 10px; }
.seo-body p { margin: 0 0 12px; }
.seo-body p:last-child { margin-bottom: 0; }

/* FAQ accordion (seo-body) */
.faq-list { display: grid; gap: 10px; margin-top: 8px; }
.faq-item {
  overflow: hidden;
  background: var(--pdf-bg);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .18s ease, background .18s ease;
}
.faq-item.is-open { background: #f0f4ff; border-color: var(--pdf-divider); }
.faq-question {
  position: relative;
  width: 100%;
  padding: 14px 48px 14px 16px;
  text-align: left;
  color: var(--pdf-fg-1);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--pdf-font-display);
  cursor: pointer;
}
.faq-question::before,
.faq-question::after {
  position: absolute;
  top: 50%; right: 18px;
  width: 12px; height: 2px;
  content: "";
  background: var(--pdf-fg-3);
  transition: transform .16s ease;
}
.faq-question::after  { transform: translateY(-50%) rotate(90deg); }
.faq-question::before { transform: translateY(-50%); }
.faq-item.is-open .faq-question::after { transform: translateY(-50%) rotate(0); }
.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--pdf-fg-2);
}
.faq-item.is-open .faq-answer { display: block; }

/* Track history */
.track-list { display: flex; flex-direction: column; }
.track-row {
  display: grid;
  grid-template-columns: 48px 48px auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pdf-divider);
}
.track-row:last-child { border-bottom: none; }
.track-row .track-time {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  font-variant-numeric: tabular-nums;
}
.track-row .track-cover {
  width: 40px; height: 40px;
  border-radius: 4px;
  background: var(--pdf-bg);
  display: grid; place-items: center;
  color: var(--pdf-fg-3);
  overflow: hidden;
  flex-shrink: 0;
}
.track-row .track-cover svg { width: 16px; height: 16px; }
.track-row .track-meta { min-width: 0; }
.track-row .track-title {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--pdf-fg-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-row .track-artist {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-row .track-action {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--pdf-fg-3);
  opacity: 0;
  transition: opacity .15s;
}
.track-row:hover .track-action { opacity: 1; }
.track-row .track-action:hover { background: var(--pdf-bg); color: var(--accent, var(--pdf-violet)); }
.track-row .track-action svg { width: 14px; height: 14px; }

/* Schedule */
.schedule-day {
  display: flex; gap: 6px;
  margin-bottom: 18px;
}
.day-pill {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pdf-bg);
  color: var(--pdf-fg-3);
  cursor: pointer;
  transition: all .15s;
}
.day-pill[aria-pressed="true"] {
  background: var(--accent, var(--pdf-violet));
  color: #fff;
}
.schedule-list { display: flex; flex-direction: column; gap: 4px; }
.schedule-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pdf-divider);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row.is-now {
  background: linear-gradient(90deg, rgba(94,73,253,0.06), transparent);
  border-radius: 8px;
  padding-left: 12px; padding-right: 12px;
  margin-left: -12px;
}
.sch-time {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pdf-fg-1);
  font-variant-numeric: tabular-nums;
}
.sch-title {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--pdf-fg-1);
}
.sch-host {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  margin-top: 1px;
}
.sch-badge {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent, var(--pdf-violet));
  background: rgba(94,73,253,0.10);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Program list (schedule panel) */
.program-list { display: flex; flex-direction: column; gap: 0; }
.program-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pdf-divider);
}
.program-item:last-child { border-bottom: none; }
.program-item .prog-img {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pdf-bg);
}
.program-item .prog-body { flex: 1; min-width: 0; }
.program-item .prog-title {
  font-family: var(--pdf-font-display);
  font-weight: 500; font-size: 14px;
  color: var(--pdf-fg-1);
  margin-bottom: 4px;
}
.program-item .prog-slots { display: flex; flex-direction: column; gap: 2px; }
.program-item .prog-slot {
  font-family: var(--pdf-font-body);
  font-size: 12px; color: var(--pdf-fg-3);
}
.program-item .prog-slot strong {
  font-weight: 600; color: var(--pdf-fg-2);
  margin-right: 4px;
}

/* Info side */
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--pdf-divider);
  padding-bottom: 10px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
}
.info-value {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--pdf-fg-1);
  text-align: right;
}
.info-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.info-tags .tag {
  font-size: 11px;
  background: var(--pdf-bg);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Rating */
.rating-block {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px 0;
}
.rc-star-btn:hover svg,
.rc-star-btn.is-active svg,
.rc-form-star:hover svg,
.rc-form-star.is-active svg {
  fill: var(--accent, var(--pdf-violet));
  stroke: var(--accent, var(--pdf-violet));
  color: var(--accent, var(--pdf-violet));
}
.rating-num {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.02em;
}
.rating-stars { display: flex; gap: 2px; color: #FFB200; }
.rating-stars svg { width: 14px; height: 14px; fill: currentColor; }
.rating-count {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  margin-top: 4px;
}

/* Share row */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pdf-bg);
  padding: 10px 14px;
  border-radius: var(--pdf-radius-md);
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--pdf-fg-1);
  transition: all .15s;
}
.share-btn:hover { background: #ECECEC; }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.fb { color: var(--pdf-facebook); }
.share-btn.tw { color: var(--pdf-twitter); }
.share-btn.tg { color: #229ED9; }
.share-btn.vk { color: #0077FF; }

/* Similar grid in side panel */
.similar-list { display: flex; flex-direction: column; gap: 8px; }
.similar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.similar-item:hover { background: var(--pdf-bg); }
.similar-item .station-logo { width: 40px; height: 40px; font-size: 13px; }
.similar-item .similar-name {
  font-family: var(--pdf-font-display);
  font-weight: 500; font-size: 13px;
  color: var(--pdf-fg-1);
}
.similar-item .similar-meta {
  font-size: 11px;
  color: var(--pdf-fg-3);
  margin-top: 1px;
}

/* ─────────── TV page ─────────── */
.tv-player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.tv-player {
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-xl);
  overflow: hidden;
  box-shadow: var(--pdf-elev-card);
}
.tv-screen {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1530 0%, #050028 100%);
  position: relative;
  display: grid; place-items: center;
}
.tv-screen .live-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pdf-red);
  color: #fff;
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tv-screen .live-badge .live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.tv-screen .viewers {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-family: var(--pdf-font-body);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.tv-screen .viewers svg { width: 12px; height: 12px; }

.tv-play-overlay {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: grid; place-items: center;
  color: var(--accent, var(--pdf-violet));
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.tv-play-overlay:hover { transform: scale(1.05); }
.tv-play-overlay svg { width: 36px; height: 36px; margin-left: 4px; }

.tv-screen .channel-name-watermark {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 80px;
  color: rgba(255,255,255,0.07);
  letter-spacing: -0.02em;
  pointer-events: none;
}

.tv-controls {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--pdf-surface);
  border-top: 1px solid var(--pdf-divider);
}
.tv-controls .scrubber {
  flex: 1;
  height: 4px;
  background: var(--pdf-divider);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.tv-controls .scrubber-played {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent, var(--pdf-violet));
  border-radius: 2px;
  width: 35%;
}
.tv-controls .scrubber-played::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--accent, var(--pdf-violet));
  border-radius: 50%;
}
.tv-time {
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
  font-variant-numeric: tabular-nums;
}

/* TV Remote — prev/next channel navigation (lives inside .tv-panel in sidebar) */
.tv-remote {
  margin-bottom: 16px;
}
.tv-remote__cat {
  max-width: 140px;
  color: var(--pdf-fg);
  background: var(--pdf-bg);
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-pill);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.tv-remote__cat:focus { border-color: var(--pdf-accent); }
.tv-remote__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tv-remote__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--pdf-radius-md);
  background: var(--pdf-bg);
  border: 1px solid var(--pdf-border);
  color: var(--pdf-fg);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.tv-remote__arrow:hover {
  background: var(--pdf-accent);
  border-color: var(--pdf-accent);
  color: #fff;
}
.tv-remote__current {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-content: center;
}
.tv-remote__logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pdf-bg);
  border: 1px solid var(--pdf-border);
  display: grid;
  place-items: center;
}
.tv-remote__logo img { width: 100%; height: auto; object-fit: cover; }
.tv-remote__logo span { font-size: 11px; font-weight: 700; color: var(--pdf-fg-2); }
.tv-remote__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pdf-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-remote__hint {
  font-size: 11px;
  color: var(--pdf-fg-3);
  text-align: center;
}

/* TV info panel */
.tv-info {
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-xl);
  padding: 32px;
  box-shadow: 0 0 20px rgba(135,127,168,0.08);
  margin-top: 24px;
}
.tv-info-head {
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 24px;
}
.tv-info-logo {
  width: 80px; height: 80px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--logo-bg, #050028);
  color: var(--logo-fg, #fff);
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.tv-info-logo svg { width: 100%; height: 100%; }
.tv-info-title {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.02em;
  margin: 0;
}
.tv-info-desc {
  font-family: var(--pdf-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--pdf-fg-2);
  margin-top: 10px;
  max-width: 720px;
}
.tv-info-actions {
  display: flex; gap: 8px;
  margin-top: 16px;
}

/* TV side panel = schedule */
.tv-sidebar {
  position: sticky;
  top: calc(var(--pdf-header-h) + 16px);
  display: flex; flex-direction: column;
  gap: 16px;
}
.tv-panel {
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-xl);
  box-shadow: 0 0 20px rgba(135,127,168,0.08);
  overflow: hidden;
}
.tv-panel-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--pdf-divider);
  display: flex; align-items: center; justify-content: space-between;
}
.tv-panel-head .panel-title { font-size: 16px; }
.tv-panel-body {
  padding: 8px 20px 16px;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}
.tv-panel-body.is-expanded { max-height: none; }
.tv-panel-body:not(.is-expanded)::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--pdf-surface));
  pointer-events: none;
}
.tv-panel-show-all {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-family: var(--pdf-font-display);
  font-weight: var(--pdf-weight-medium);
  font-size: 13px;
  color: var(--accent, var(--pdf-violet));
  border-top: 1px solid var(--pdf-divider);
  cursor: pointer;
  transition: background .15s;
}
.tv-panel-show-all:hover { background: var(--pdf-bg); }
.tv-panel-show-all.is-hidden { display: none; }

.epg-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pdf-divider);
  position: relative;
}
.epg-row:last-child { border-bottom: none; }
.epg-row.is-now { padding-left: 12px; }
.epg-row.is-now::before {
  content: ""; position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--accent, var(--pdf-violet));
  border-radius: 2px;
}
.epg-row.is-past { opacity: 0.55; }
.epg-time {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pdf-fg-1);
  font-variant-numeric: tabular-nums;
}
.epg-title {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--pdf-fg-1);
  letter-spacing: -0.005em;
}
.epg-meta {
  font-family: var(--pdf-font-body);
  font-size: 11px;
  color: var(--pdf-fg-3);
  margin-top: 2px;
}
.epg-now-mark {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent, var(--pdf-violet));
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
}

/* All channels list (sidebar) */
.ch-list { display: flex; flex-direction: column; gap: 2px; }
.ch-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.ch-item:hover { background: var(--pdf-bg); }
.ch-item.is-active { background: rgba(94,73,253,0.08); }
.ch-item.is-active .ch-name { color: var(--accent, var(--pdf-violet)); font-weight: 700; }
.ch-item .ch-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #050028;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.ch-logo svg { width: 100%; height: 100%; }
.ch-name {
  font-family: var(--pdf-font-display);
  font-weight: 500; font-size: 13px;
  color: var(--pdf-fg-1);
}
.ch-now { font-size: 11px; color: var(--pdf-fg-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─────────── Category page ─────────── */
.cat-head {
  padding: 32px 0 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.breadcrumb {
  font-family: var(--pdf-font-body);
  font-size: 13px;
  color: var(--pdf-fg-3);
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--pdf-fg-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent, var(--pdf-violet)); }
.breadcrumb .sep { opacity: 0.5; }
.cat-title {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--pdf-fg-1);
  margin: 0;
}
.cat-sub {
  font-family: var(--pdf-font-body);
  font-size: 15px;
  color: var(--pdf-fg-2);
  max-width: 640px;
  line-height: 1.5;
  margin: 0;
}

.filter-bar {
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: var(--pdf-surface);
  border-radius: var(--pdf-radius-md);
  border: 1px solid var(--pdf-divider);
}
.filter-label {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pdf-fg-3);
  margin-right: 6px;
}

.result-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 14px;
}
.result-count {
  font-family: var(--pdf-font-body);
  font-size: 13px;
  color: var(--pdf-fg-3);
}
.sort-select {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--pdf-fg-1);
  background: transparent;
  border: 1px solid var(--pdf-divider);
  border-radius: var(--pdf-radius-md);
  padding: 6px 32px 6px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23050028' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ─────────── Footer ─────────── */
.footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--pdf-divider);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-h {
  font-family: var(--pdf-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pdf-fg-1);
  margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-family: var(--pdf-font-body);
  font-size: 13px;
  color: var(--pdf-fg-2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent, var(--pdf-violet)); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--pdf-divider);
  display: flex; justify-content: space-between;
  font-family: var(--pdf-font-body);
  font-size: 12px;
  color: var(--pdf-fg-3);
}

/* ─────────── Utility ─────────── */
.scroll-x {
  display: flex; gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
  margin: 0 -24px;
  padding: 0 24px 6px;
}
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--pdf-divider); border-radius: 3px; }

.hide { display: none !important; }

/* ─────────── Player tabs (TV page) ─────────── */
.player-tab {
  font-family: var(--pdf-font-display);
  font-weight: 500;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--pdf-radius-pill);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all .15s;
}
.player-tab.active, .player-tab:disabled {
  background: #fff;
  color: var(--pdf-fg-1);
  border-color: transparent;
}
.player-block { display: none; width: 100%; height: 100%; }
.player-block.active { display: block; }

/* EPG future rows */
.epg-row.is-future { opacity: 0.55; }

/* Mobile responsive */
@media (max-width: 900px) {
  .tv-player-grid { grid-template-columns: 1fr; }
  .tv-sidebar { position: static; }
  .station-body-grid { grid-template-columns: 1fr; }
  .player-hero { grid-template-columns: 1fr; gap: 24px; }
  .ph-cover { width: 100%; height: 240px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tv-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .genres-grid { grid-template-columns: repeat(3, 1fr); }
  .rc-grid { grid-template-columns: 1fr; }
  .hero-search { max-width: 100%; }
  .section-head { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .tv-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Header */
  .modes { display: none; }
  .header-inner { gap: 12px; }
  /* Miniplayer */
  .mp-controls { gap: 12px; }
  .volume { display: none; }
  .mp-info { display: none; }
  /* Radio player hero */
  .ph-actions { flex-wrap: wrap; gap: 8px; }
  .ph-cover { width: 100%; height: auto; aspect-ratio: 1/1; max-width: 280px; margin: 0 auto; }
  /* Panel */
  .panel { padding: 18px; }
  .tv-panel-head { padding: 14px 16px 10px; }
}
@media (max-width: 400px) {
  .genres-grid { grid-template-columns: 1fr 1fr; }
  .tv-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─────────── Pagination ─────────── */
.pagination { margin-top: 32px; }
.pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--pdf-radius-md, 8px);
  border: 1px solid var(--pdf-divider);
  background: var(--pdf-surface);
  color: var(--pdf-fg-1);
  font-size: 14px;
  font-weight: var(--pdf-weight-medium, 500);
  font-family: var(--pdf-font-display);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
a.page-btn:hover {
  border-color: var(--accent, var(--pdf-violet));
  color: var(--accent, var(--pdf-violet));
}
.page-btn--active {
  background: var(--accent, var(--pdf-violet));
  border-color: var(--accent, var(--pdf-violet));
  color: #fff;
  cursor: default;
}
.page-btn--disabled {
  opacity: 0.35;
  cursor: default;
}
.page-btn--dots {
  border: none;
  background: none;
  cursor: default;
  color: var(--pdf-fg-3);
}
