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

.noscript { padding: 40px; text-align: center; color: var(--text-sub); font-size: 1.1rem; }

:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --bg-hover: #1c1c28;
  --bg-surface: #222230;
  --bg-inset: #141420;
  --text: #eaeaef;
  --text-sub: #9898a8;
  --text-muted: #5c5c6e;
  --text-dim: #3c3c4e;
  --accent: #e5a00d;
  --accent-hover: #f0b323;
  --accent-glow: rgba(229, 160, 13, 0.35);
  --accent-gradient: linear-gradient(135deg, #e5a00d, #f0c040);
  --border: #1a1a26;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.06);
  --max-w: 1200px;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.hidden { display: none !important; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(229,160,13,0.2); }
  50% { box-shadow: 0 0 40px rgba(229,160,13,0.4); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin { to { transform: rotate(360deg); } }

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ==================== TOP HEADER ==================== */
.top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header.scrolled {
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.header-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.header-logo:hover .header-logo-icon { transform: scale(1.08); }

.header-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 30%, #a8e063 70%, #56ab2f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.header-link.active { color: var(--accent); }

.header-link .nav-symbol { font-size: 0.85rem; opacity: 0.7; }
.header-link.active .nav-symbol { opacity: 1; }

.header-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

.header-search input {
  width: 0;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.header-search.open input {
  width: 200px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  pointer-events: all;
  opacity: 1;
  margin-left: 6px;
}

.header-search.open input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-search.open .search-toggle {
  background: var(--accent);
  color: #fff;
}

.header-search input::placeholder { color: var(--text-muted); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-sub);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==================== LAYOUT ==================== */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.content-fade {
  animation: contentFade 0.3s ease;
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==================== HERO ==================== */
.hero-banner {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(229,160,13,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(180,120,20,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 70%, rgba(100,60,10,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #0d0d18 40%, #0a0a0f 100%);
  animation: heroShift 20s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-15px, 15px); }
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  padding: 0 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(229,160,13,0.12);
  border: 1px solid rgba(229,160,13,0.25);
  border-radius: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-banner-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

.hero-banner-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: #fff;
}

.hero-banner-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-banner-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.hero-banner-btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.hero-banner-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.hero-banner-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-banner-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.hero-banner-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 0;
}

/* ==================== CONTENT SECTIONS ==================== */
.section {
  padding: 40px 0;
}

.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-head a,
.section-head .view-all {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.section-head a:hover,
.section-head .view-all:hover { opacity: 0.8; }

/* ==================== CARD ROW (HORIZONTAL SCROLL) ==================== */
.card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-row::-webkit-scrollbar { height: 0; }

.card-row-item {
  flex: 0 0 150px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.card-row-item:nth-child(1) { animation-delay: 0.05s; }
.card-row-item:nth-child(2) { animation-delay: 0.1s; }
.card-row-item:nth-child(3) { animation-delay: 0.15s; }
.card-row-item:nth-child(4) { animation-delay: 0.2s; }
.card-row-item:nth-child(5) { animation-delay: 0.25s; }
.card-row-item:nth-child(6) { animation-delay: 0.3s; }
.card-row-item:nth-child(7) { animation-delay: 0.35s; }
.card-row-item:nth-child(8) { animation-delay: 0.4s; }
.card-row-item:nth-child(9) { animation-delay: 0.45s; }
.card-row-item:nth-child(10) { animation-delay: 0.5s; }
.card-row-item:nth-child(11) { animation-delay: 0.55s; }
.card-row-item:nth-child(12) { animation-delay: 0.6s; }

.card-row-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.card-row-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.card-row-item:hover::after {
  border-color: rgba(229,160,13,0.25);
}

.card-row-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-inset), var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}

.card-row-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(229,160,13,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-row-item:hover .card-row-thumb::before { opacity: 1; }

.card-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-row-item:hover .card-row-thumb img { transform: scale(1.12); }

.card-row-fallback {
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.card-row-item:hover .card-row-fallback { opacity: 1; }

.card-row-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #000;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.card-row-item:hover .card-row-play {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-row-body { padding: 14px 14px 16px; }

.card-row-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  color: var(--text);
  transition: color 0.2s ease;
}

.card-row-item:hover .card-row-name { color: #fff; }
.card-row-name.playing { color: var(--accent); }

.card-row-tags {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== STATION LIST (ROWS) ==================== */
.station-list {
  display: flex;
  flex-direction: column;
}

.station-row {
  display: grid;
  grid-template-columns: 40px 52px 1fr auto 44px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.station-row:nth-child(1) { animation-delay: 0.05s; }
.station-row:nth-child(2) { animation-delay: 0.08s; }
.station-row:nth-child(3) { animation-delay: 0.11s; }
.station-row:nth-child(4) { animation-delay: 0.14s; }
.station-row:nth-child(5) { animation-delay: 0.17s; }
.station-row:nth-child(6) { animation-delay: 0.2s; }
.station-row:nth-child(7) { animation-delay: 0.23s; }
.station-row:nth-child(8) { animation-delay: 0.26s; }

.station-row::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.station-row:last-child::before { display: none; }

.station-row:hover {
  background: rgba(229,160,13,0.04);
  transform: translateX(4px);
}

.station-row:hover::before { opacity: 0.3; }

.station-row.playing {
  background: rgba(229,160,13,0.06);
}

.station-row.playing::before {
  background: var(--accent);
  opacity: 0.25;
}

.station-num {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: color 0.2s ease;
}

.station-row:hover .station-num,
.station-row.playing .station-num { color: var(--accent); }

.station-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-inset), var(--bg-surface));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.station-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-row:hover .station-thumb { transform: scale(1.05); }
.station-row:hover .station-thumb img { transform: scale(1.12); }

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

.station-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  transition: color 0.2s ease;
}

.station-row:hover .station-name { color: #fff; }
.station-row.playing .station-name { color: var(--accent); }

.station-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.station-meta span {
  font-variant-numeric: tabular-nums;
}

.station-action {
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 6px;
}

.station-row:hover .station-action { color: var(--accent); }
.station-action:hover { transform: scale(1.2); }

/* ==================== TV GRID (FEATURED ON HOMEPAGE) ==================== */
.tv-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tv-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.tv-card:nth-child(1) { animation-delay: 0.1s; }
.tv-card:nth-child(2) { animation-delay: 0.15s; }
.tv-card:nth-child(3) { animation-delay: 0.2s; }
.tv-card:nth-child(4) { animation-delay: 0.25s; }

.tv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.tv-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.tv-card:hover::after {
  border-color: rgba(229,160,13,0.25);
}

.tv-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-inset), var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.tv-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(229,160,13,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tv-card:hover .tv-card-thumb::before { opacity: 1; }

.tv-card-logo {
  width: 70%;
  height: 55%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-card:hover .tv-card-logo { transform: scale(1.15); }

.tv-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tv-card:hover .tv-card-thumb::after { opacity: 1; }

.tv-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
}

.tv-card:hover .tv-card-play { opacity: 1; }

.tv-card-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #000;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.6);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.tv-card:hover .tv-card-play-btn { transform: scale(1); }

.tv-card-body { padding: 16px; }

.tv-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  transition: color 0.2s ease;
}

.tv-card:hover .tv-card-name { color: #fff; }

.tv-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tv-genre-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(229,160,13,0.1);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==================== TV LAYOUT (SIDEBAR + PLAYER) ==================== */
.tv-layout {
  display: flex;
  height: 100%;
  padding-top: 60px;
  overflow: hidden;
}

.tv-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tv-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.tv-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.tv-sidebar-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.tv-sidebar-search {
  padding: 16px 20px 12px;
}

.tv-sidebar-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
}

.tv-sidebar-search input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tv-sidebar-search input::placeholder { color: var(--text-muted); }

.tv-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
}

.tv-sidebar-list::-webkit-scrollbar { width: 4px; }
.tv-sidebar-list::-webkit-scrollbar-track { background: transparent; }
.tv-sidebar-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.tv-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tv-sidebar-item:hover {
  background: rgba(255,255,255,0.06);
}

.tv-sidebar-item.active {
  background: rgba(229,160,13,0.1);
}

.tv-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.tv-sidebar-item-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.tv-sidebar-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-sidebar-item-info {
  flex: 1;
  min-width: 0;
}

.tv-sidebar-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.tv-sidebar-item:hover .tv-sidebar-item-name { color: #fff; }
.tv-sidebar-item.active .tv-sidebar-item-name { color: var(--accent); }

.tv-sidebar-item-genre {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.tv-sidebar-item-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  flex-shrink: 0;
}

.tv-sidebar-item-live.playing {
  background: #22c55e;
  opacity: 1;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* TV Player Area */
.tv-player-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tv-player-container {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tv-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.tv-player-placeholder-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.tv-player-placeholder-text {
  font-size: 0.9rem;
}

.tv-player-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.tv-player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tv-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 32px 12px 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
  cursor: default;
}
.tv-player-wrapper:hover .tv-controls,
.tv-controls.show { opacity: 1; }

.tv-player-wrapper.fullscreen .tv-controls { opacity: 0; }
.tv-player-wrapper.fullscreen .tv-controls.show { opacity: 1; }

.tv-progress {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 4px;
}
.tv-progress-buffer {
  position: absolute;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  pointer-events: none;
}
.tv-progress-played {
  position: absolute;
  left: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}
.tv-progress-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  margin: 0;
  padding: 0;
  outline: none;
}
.tv-progress-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-top: -4px;
}
.tv-progress:hover .tv-progress-input::-webkit-slider-thumb {
  opacity: 1;
}
.tv-progress-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
}

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

.tv-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
}
.tv-ctrl-btn:hover { background: rgba(255,255,255,0.12); }

.tv-time {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}
.tv-time-sep { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin: 0 2px; }

.tv-spacer { flex: 1; }

.tv-vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}.tv-vol-slider {
  width: 0;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  outline: none;
  cursor: pointer;
}
.tv-vol-wrap:hover .tv-vol-slider {
  width: 60px;
  opacity: 1;
}
.tv-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  margin-top: -4px;
}
.tv-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
}
.tv-vol-slider::-webkit-slider-runnable-track { height: 4px; }
.tv-vol-slider::-moz-range-track { height: 4px; background: rgba(255,255,255,0.25); border: none; }

.tv-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tv-track-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 36px;
}
.tv-track-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(20,20,30,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
  min-width: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.tv-track-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-8px);
}
.tv-track-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.tv-track-menu-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.tv-track-menu-item.active {
  color: var(--accent);
  background: rgba(229,160,13,0.1);
}
.tv-track-menu-item .check {
  width: 14px;
  text-align: center;
  color: var(--accent);
  flex-shrink: 0;
}

.tv-player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.7);
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 2;
}

.tv-player-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--bg-surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tv-player-info {
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-player-channel-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.tv-player-channel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* TV Search Page (grid fallback) */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}


/* ==================== BOTTOM PLAYER BAR ==================== */
.player-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  max-width: 900px;
  width: calc(100% - 32px);
  height: 80px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  gap: 16px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.player-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  flex-shrink: 0;
}

.player-art {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
}

.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-art img[src=""], .player-art img:not([src]) { display: none; }
.player-art img[src=""] ~ .player-art-fallback,
.player-art img:not([src]) ~ .player-art-fallback,
.player-art.no-img .player-art-fallback { display: flex; }
.player-art-fallback { display: none; font-size: 1.1rem; color: var(--text-muted); position: absolute; }

.player-art.spin { animation: spin 4s linear infinite; }

.player-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.player-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.player-tags {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

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

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.player-btn:hover { color: #fff; transform: scale(1.1); }

.player-play {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #000 !important;
}

.player-play:hover:not(:disabled) { transform: scale(1.08); background: var(--accent-hover); }

.player-play:disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3) !important;
  cursor: not-allowed;
  transform: none;
}

.player-rewind, .player-forward {
  width: 28px;
  height: 28px;
}

.player-now {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.player-now:empty { display: none; }

.player-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.player-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.player-icon-btn:hover { color: #fff; transform: scale(1.1); }
.player-icon-btn.active { color: var(--accent); }

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.player-volume .vol-icon { color: rgba(255,255,255,0.5); flex-shrink: 0; }

.player-volume input[type="range"] {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.player-volume input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* ==================== PODCASTS ==================== */
.podcast-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.podcast-cat {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.podcast-cat:hover {
  background: var(--bg-hover);
  transform: translateY(-6px);
  border-color: rgba(229,160,13,0.15);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.podcast-cat-icon { font-size: 2rem; margin-bottom: 8px; }
.podcast-cat-name { font-size: 0.85rem; font-weight: 600; }

/* ==================== MODES ==================== */
#modes-stations { margin-top: 20px; }
.mode-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}
.mode-card:hover {
  background: var(--bg-hover);
  transform: translateY(-6px);
  border-color: var(--mode-color, var(--accent));
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.mode-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.mode-name { font-size: 0.85rem; font-weight: 600; }

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.podcast-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.podcast-card:hover {
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.podcast-art {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-surface);
}
.podcast-art img { width: 100%; height: 100%; object-fit: cover; }
.podcast-name { padding: 10px 12px 2px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-artist { padding: 0 12px 12px; font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ep-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}
.ep-row:hover { background: var(--bg-hover); }
.ep-num { width: 24px; text-align: center; font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; }
.ep-art { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--bg-surface); flex-shrink: 0; }
.ep-art img { width: 100%; height: 100%; object-fit: cover; }
.ep-info { min-width: 0; flex: 1; }
.ep-title { font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.ep-desc { font-size: 0.75rem; color: var(--text-sub); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==================== CHARTS ==================== */
.chart-row {
  display: grid;
  grid-template-columns: 40px 52px 1fr auto auto 60px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  margin-bottom: 4px;
}

.chart-row:hover {
  background: rgba(229,160,13,0.04);
  transform: translateX(4px);
}

.chart-rank {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chart-art {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.chart-art img { width: 100%; height: 100%; object-fit: cover; }

.chart-info { min-width: 0; }

.chart-song {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-peak {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

.chart-weeks {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chart-change {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  min-width: 40px;
}

.chart-change.up { color: #22c55e; }
.chart-change.down { color: #ef4444; }
.chart-change.new { color: var(--accent); }
.chart-change.same { color: var(--text-muted); }

.chart-art-spinner {
  width: 20px;
  height: 20px;
  margin: 16px auto;
  border: 2px solid var(--bg-surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.chart-art-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .header-nav { gap: 0; }
  .header-link { padding: 8px 10px; font-size: 0.8rem; }
  .header-search.open input { width: 140px; }
  .hero-banner-title { font-size: 2.6rem; }
  .tv-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .podcast-cats { grid-template-columns: repeat(2, 1fr); }
  .station-row { grid-template-columns: 36px 48px 1fr auto 40px; }
}

@media (max-width: 768px) {
  .top-header { padding: 0 16px; gap: 12px; }
  .header-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99;
  }
  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .header-link { padding: 10px 14px; width: 100%; justify-content: center; }
  .hamburger { display: flex; }
  .header-search.open input { width: 160px; }
  .hero-banner { height: 60vh; min-height: 380px; }
  .hero-banner-title { font-size: 2rem; }
  .hero-banner-desc { font-size: 0.88rem; }
  .content { padding-bottom: 0; }
  .section-inner { padding: 0 16px; }
  .station-row { grid-template-columns: 32px 44px 1fr auto; }
  .station-num, .station-meta { display: none; }
  .player-bar { width: calc(100% - 16px); padding: 0 14px; gap: 10px; height: 70px; bottom: 10px; }
  .player-left { width: auto; min-width: 0; }
  .player-art { width: 40px; height: 40px; }
  .player-name { font-size: 0.75rem; }
  .player-tags { display: none; }
  .player-icon-btn { display: none; }
  .player-volume input[type="range"] { width: 50px; }
  .tv-layout { flex-direction: column; height: auto; }
  .tv-sidebar { width: 100%; height: auto; max-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
  .tv-player-area { min-height: 400px; }
  .tv-player-container { min-height: 300px; }
}

@media (max-width: 640px) {
  .hero-banner { height: 55vh; min-height: 340px; }
  .hero-banner-title { font-size: 1.6rem; }
  .hero-banner-desc { display: none; }
  .hero-banner-actions { flex-direction: column; }
  .hero-banner-btn { justify-content: center; padding: 12px 20px; }
  .tv-featured-grid { grid-template-columns: 1fr; }
  .podcast-cats { grid-template-columns: 1fr; }
  .card-row-item { flex: 0 0 130px; }
}
