/* ── Invisible Network — Dark Streaming Theme ─────────────── */
/* Design: content is king. Dark, clean, cinematic.            */
/* Inspired by: Apple TV+, HBO Max, Criterion Channel.         */
/* No clutter. No noise. Just content.                         */

:root {
  --bg:         #0a0a0f;
  --bg-raised:  #12121a;
  --bg-card:    #16161f;
  --bg-hover:   #1e1e2a;
  --surface:    #1a1a24;
  --border:     #2a2a36;
  --text:       #e8e8ed;
  --text-muted: #8888a0;
  --text-dim:   #55556a;
  --accent:     #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --live:       #22c55e;
  --live-glow:  rgba(34, 197, 94, 0.3);
  --learn:      #3b82f6;
  --faith:      #a78bfa;
  --radius:     8px;
  --radius-lg:  12px;
  --transition: 180ms ease;
  --font:       -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ── Light Theme ──────────────────────────────────────────── */

[data-theme="light"] {
  --bg:         #f5f5f7;
  --bg-raised:  #ffffff;
  --bg-card:    #ffffff;
  --bg-hover:   #ededf0;
  --surface:    #e8e8ed;
  --border:     #d1d1d6;
  --text:       #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim:   #98989d;
  --accent:     #5856d6;
  --accent-glow: rgba(88, 86, 214, 0.15);
  --live:       #34c759;
  --live-glow:  rgba(52, 199, 89, 0.2);
  --learn:      #007aff;
  --faith:      #af52de;
}

/* ── Theme Toggle Button ─────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Show moon in dark mode, sun in light mode */
.theme-icon--light { display: none; }
.theme-icon--dark { display: inline; }

[data-theme="light"] .theme-icon--light { display: inline; }
[data-theme="light"] .theme-icon--dark { display: none; }

/* Light theme overrides for opaque backgrounds */
[data-theme="light"] .nav {
  background: rgba(245, 245, 247, 0.85);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #e8e8f0 0%, #d8d0e8 40%, #f5f5f7 100%);
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(88, 86, 214, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(175, 82, 222, 0.08) 0%, transparent 60%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

[data-theme="light"] .tv-hero {
  background: linear-gradient(135deg, #e8e8f0 0%, #d8d0e8 40%, #f5f5f7 100%);
}

[data-theme="light"] .music-hero {
  background: linear-gradient(135deg, #e8e8f0 0%, #e0d0f0 50%, #f5f5f7 100%);
}

[data-theme="light"] .books-hero {
  background: linear-gradient(135deg, #e8e8f0 0%, #d0d8e8 50%, #f5f5f7 100%);
}

[data-theme="light"] .games-hero {
  background: linear-gradient(135deg, #e8e8f0 0%, #d0d8f0 50%, #f5f5f7 100%);
}

[data-theme="light"] .game-card-visual {
  opacity: 0.85;
}

[data-theme="light"] .gd-hero {
  opacity: 0.9;
}

[data-theme="light"] .card-visual,
[data-theme="light"] .news-card-visual {
  background: linear-gradient(135deg, #d8d8e8 0%, #c0c8d8 50%, #b0b8d0 100%);
}

[data-theme="light"] .music-player,
[data-theme="light"] .music-player-global {
  background: rgba(245, 245, 247, 0.97);
  border-top-color: #d0d0d8;
}

[data-theme="light"] .music-ctrl-play {
  background: #1a1a24;
  color: #fff;
}

[data-theme="light"] .home-hero-slide {
  background: linear-gradient(135deg, #e8e8f0 0%, #d8d0e8 50%, #f5f5f7 100%);
}

[data-theme="light"] .home-hero-gradient {
  background: linear-gradient(0deg, var(--bg) 0%, transparent 50%),
              linear-gradient(90deg, rgba(245,245,247,0.9) 0%, transparent 60%);
}

[data-theme="light"] .home-hero-title { text-shadow: none; color: #1a1a24; }
[data-theme="light"] .home-hero-synopsis { color: #555; }
[data-theme="light"] .home-hero-genre { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: #555; }
[data-theme="light"] .home-nav-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #555; }
[data-theme="light"] .home-nav-pill:hover { background: rgba(99,102,241,0.08); color: #1a1a24; }
[data-theme="light"] .home-hero-dot { background: rgba(0,0,0,0.2); }

[data-theme="light"] .news-ticker { background: #fff0f0; }
[data-theme="light"] .news-ticker-item { color: #1a1a24; }

[data-theme="light"] .watch-sidebar { background: rgba(245,245,247,0.98); border-left-color: #d0d0d8; }
[data-theme="light"] .watch-placeholder-logo { color: var(--accent); }

[data-theme="light"] .music-queue-panel { background: rgba(245,245,247,0.98); border-color: #d0d0d8; }

[data-theme="light"] .news-hero { background: linear-gradient(135deg, #e8e8f0 0%, #e0e0f0 50%, #f5f5f7 100%); }

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-mark {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.logo-text {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-search {
  margin-left: auto;
  position: relative;
}

.nav-search input {
  width: 240px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}

.nav-search input:focus {
  border-color: var(--accent);
  width: 320px;
}

.nav-search input::placeholder { color: var(--text-dim); }

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}

.search-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  transition: background var(--transition);
}

.search-item:hover { background: var(--bg-hover); }
.search-name { font-weight: 600; font-size: 0.9rem; }
.search-desc { font-size: 0.8rem; color: var(--text-muted); }
.search-live-tag { color: var(--live); }
.search-empty { color: var(--text-dim); text-align: center; }
.search-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }

.nav-link--dim { opacity: 0.55; }
.nav-link--dim:hover { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1033 40%, #0a0a0f 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, var(--accent-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-type-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
}

.hero-meta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-stats strong { color: var(--text); }

.stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

.hero-actions { display: flex; gap: 0.75rem; }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #818cf8;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-hover); }

/* ── Content Shelves ──────────────────────────────────────── */

.shelf {
  padding: 2rem 0 1rem;
}

.shelf-label {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.shelf-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 2rem 1rem;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shelf-rail::-webkit-scrollbar { display: none; }

/* ── Cards ────────────────────────────────────────────────── */

.card {
  flex: 0 0 280px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card--compact { flex: 0 0 200px; }

.card-visual {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.card-visual--sm { height: 100px; }

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  background: var(--live);
  color: #fff;
}

.card-badge--learn { background: var(--learn); }
.card-badge--faith { background: var(--faith); }

.card-type-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
}

.card-season-info {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.card-now-playing {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-transform: capitalize;
}

.card-body { padding: 0.75rem 1rem 1rem; }

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Channel Detail ───────────────────────────────────────── */

.channel-hero {
  padding: 4rem 3rem 3rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1033 50%, #0a0a0f 100%);
}

.channel-hero-content { max-width: 700px; }

.channel-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: var(--live);
  color: #fff;
  margin-bottom: 1rem;
}

.channel-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.channel-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* ── EPG Grid ─────────────────────────────────────────────── */

.epg { padding: 2rem 3rem; }

.epg .section-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.epg-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.epg-slot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  transition: background var(--transition);
}

.epg-slot:hover { background: var(--bg-hover); }

.epg-slot--current {
  background: var(--bg-hover);
  border-left: 3px solid var(--accent);
}

.epg-time {
  flex: 0 0 60px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.epg-info { flex: 1; }

.epg-title {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: capitalize;
  display: block;
}

.epg-daypart {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.epg-duration {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Browse Grid ──────────────────────────────────────────── */

.browse-header {
  padding: 3rem 3rem 1.5rem;
}

.browse-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.browse-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.browse-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-pill:hover { background: var(--bg-hover); color: var(--text); }

.filter-pill--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: 0 3rem 3rem;
}

.browse-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.browse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.browse-card-visual {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.browse-card-body { padding: 1rem; }

.browse-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.browse-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Player ───────────────────────────────────────────────── */

.player { padding: 0; }

.player-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-placeholder {
  text-align: center;
}

.player-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.player-channel {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.player-now {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.player-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.player-btn:hover { opacity: 1; }

.player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.player-progress-fill {
  width: 35%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.player-info {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem 3rem;
}

.player-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.player-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-live-badge {
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: var(--live);
  color: #fff;
}

.upnext-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.upnext-time {
  flex: 0 0 50px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.upnext-title {
  flex: 1;
  text-transform: capitalize;
}

.upnext-daypart {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.player-back {
  display: flex;
  gap: 0.75rem;
  padding: 0 3rem 3rem;
}

/* ── Cinematic Watch Page ────────────────────────────────── */
.watch-cinema {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: calc(100vh - 56px);
  background: #000;
}

.watch-player-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 50vh;
  background: #000;
}

.watch-player {
  width: 100%;
  height: 100%;
}

.watch-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
}

.watch-placeholder-logo {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.watch-placeholder-channel {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.watch-placeholder-now {
  font-size: 1rem;
  color: #8888a0;
  text-transform: capitalize;
  margin-bottom: 1rem;
}

.watch-placeholder-status {
  font-size: 0.85rem;
  color: #555;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Info overlay */
.watch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%);
}

.watch-player-wrap:hover .watch-overlay {
  opacity: 1;
  pointer-events: auto;
}

.watch-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.watch-back {
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.watch-back:hover { opacity: 1; }

.watch-live-badge {
  animation: live-pulse-anim 2s ease-in-out infinite;
}

.watch-overlay-bottom {}

.watch-channel-name {
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0.25rem;
}

.watch-now-playing {
  font-size: 1rem;
  color: #c0c0d0;
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.watch-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.watch-viewers {
  font-size: 0.8rem;
  color: #8888a0;
}

.watch-category {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #b0b0c0;
}

/* Sidebar */
.watch-sidebar {
  background: rgba(12,12,20,0.98);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  transition: transform 0.3s;
}

.watch-sidebar.collapsed {
  transform: translateX(100%);
}

.watch-sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.watch-sidebar-desc {
  font-size: 0.85rem;
  color: #8888a0;
  line-height: 1.6;
}

.watch-sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #55556a;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.watch-sidebar-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
}

.watch-upnext-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.watch-upnext-time {
  font-size: 0.75rem;
  color: #55556a;
  font-family: var(--font-mono);
  min-width: 44px;
}

.watch-upnext-name {
  font-size: 0.85rem;
  display: block;
  text-transform: capitalize;
}

.watch-upnext-daypart {
  font-size: 0.7rem;
  color: #55556a;
}

.watch-related-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  align-items: center;
  margin-bottom: 0.25rem;
}

.watch-related-card:hover {
  background: rgba(255,255,255,0.04);
}

.watch-related-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.watch-related-now {
  font-size: 0.72rem;
  color: #55556a;
  text-transform: capitalize;
}

.badge--sm {
  font-size: 0.55rem;
  padding: 1px 6px;
}

.watch-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.btn--full { width: 100%; text-align: center; }

@media (max-width: 1024px) {
  .watch-cinema {
    grid-template-columns: 1fr;
  }
  .watch-sidebar {
    max-height: none;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  margin-top: 4rem;
  padding: 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner { max-width: 600px; }

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

/* ── Controller Focus Ring ────────────────────────────────── */
/* Visible when navigating with a gamepad or keyboard arrows. */

.controller-focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent-glow) !important;
  transition: outline var(--transition), box-shadow var(--transition);
}

/* ── Controller Indicator (nav bar) ───────────────────────── */

.controller-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.ctrl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 4px;
  color: #fff;
}

.ctrl-ps    { background: #2d5af0; }
.ctrl-nin   { background: #e60012; }
.ctrl-xbox  { background: #107c10; }
.ctrl-etee  { background: #8b5cf6; }
.ctrl-samsung { background: #1428a0; }
.ctrl-generic { background: var(--text-dim); }

/* ── Controllers Page ─────────────────────────────────────── */

.controllers-hero {
  padding: 3rem 3rem 1.5rem;
}

.controllers-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.controllers-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.controllers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 0 3rem 2rem;
}

.controller-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.controller-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.controller-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.controller-card-icon {
  width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 0.75rem;
}

.controller-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0.75rem 0;
}

.controller-mapping {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.controller-mapping kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.joycon-pair-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.controllers-test {
  padding: 0 3rem 3rem;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.test-readout {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.test-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.test-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.test-item span:last-child {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ── vSilicon Dashboard ───────────────────────────────────── */

.vs-section {
  padding: 0 3rem 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.25rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-shipping  { background: #22c55e20; color: #22c55e; border: 1px solid #22c55e40; }
.badge-early     { background: #3b82f620; color: #3b82f6; border: 1px solid #3b82f640; }
.badge-lab       { background: #f59e0b20; color: #f59e0b; border: 1px solid #f59e0b40; }
.badge-theoretical { background: #a855f720; color: #a855f7; border: 1px solid #a855f740; }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.vs-card {
  flex: unset;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vs-card:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.vs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vs-card-header .card-title {
  white-space: normal;
  font-size: 0.9rem;
}

.vs-workloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.workload-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.workload-tag--sm {
  font-size: 0.65rem;
  padding: 1px 5px;
}

.accelerator-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.vs-accel-card {
  flex: unset;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vs-accel-card:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.vs-accel-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.vs-accel-strategy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.vs-accel-co {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tier-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.tier-performance { border-left: 3px solid #f59e0b; }
.tier-nextgen     { border-left: 3px solid #3b82f6; }
.tier-standard    { border-left: 3px solid #22c55e; }
.tier-economy     { border-left: 3px solid #6b7280; }

.tier-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tier-multiplier {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.tier-sla {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tier-features {
  list-style: none;
  padding: 0;
}

.tier-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  border-top: 1px solid var(--border);
}

.tier-features li:first-child { border-top: none; }

.bridge-viz {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0.5rem 0 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.bridge-step {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.bridge-step:last-child { border-right: none; }

.bridge-step:hover { background: var(--bg-hover); }

.bridge-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bridge-step .latency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.bridge-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.vs-sovereignty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.vs-map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 200px;
}

.vs-map-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vs-map-pin {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vs-map-pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 4px var(--live-glow);
}

.vs-jur-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.vs-jur-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.vs-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.vs-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.vs-table tr:last-child td { border-bottom: none; }

.vs-table tr:hover td { background: var(--bg-hover); }

.vs-table-tier {
  font-family: var(--font) !important;
  font-weight: 600;
  color: var(--text) !important;
}

.vs-table-use {
  font-family: var(--font) !important;
  color: var(--text-muted) !important;
}

/* ── Adaptive HLS Player (inv-player.js) ─────────────────── */

.inv-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

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

/* Buffering */
.inv-player-buffering {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.inv-player.buffering .inv-player-buffering { opacity: 1; }

.inv-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent, #6366f1);
  border-radius: 50%;
  animation: inv-spin 0.8s linear infinite;
}

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

/* Controls overlay */
.inv-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.inv-player.controls-visible .inv-controls,
.inv-player.paused .inv-controls {
  opacity: 1;
  pointer-events: auto;
}

.inv-controls-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Center play/seek */
.inv-controls-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 2;
}

/* Bottom bar */
.inv-controls-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.75rem;
}

.inv-controls-left,
.inv-controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inv-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-btn:hover { background: rgba(255,255,255,0.12); }

/* Play/pause icon switching */
.inv-player.playing .inv-icon-play { display: none; }
.inv-player.playing .inv-icon-pause { display: block; }
.inv-player:not(.playing) .inv-icon-play { display: block; }
.inv-player:not(.playing) .inv-icon-pause { display: none; }

/* Volume */
.inv-volume-group { display: flex; align-items: center; gap: 0.25rem; }

.inv-volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.2s, opacity 0.2s;
  accent-color: var(--accent, #6366f1);
  height: 4px;
  cursor: pointer;
}

.inv-volume-group:hover .inv-volume-slider {
  width: 70px;
  opacity: 1;
}

.inv-player:not(.muted) .inv-icon-vol-off { display: none; }
.inv-player.muted .inv-icon-vol-on { display: none; }

/* Time */
.inv-time {
  font-size: 0.8rem;
  font-family: var(--font-mono, monospace);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.inv-time-sep { color: rgba(255,255,255,0.4); }

.inv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: inv-pulse 1.5s ease-in-out infinite;
}

@keyframes inv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.inv-live-label {
  font-weight: 700;
  color: #ef4444;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* Quality badge */
.inv-quality-badge {
  display: none;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  letter-spacing: 0.04em;
}

/* Quality menu */
.inv-quality-menu-wrap { position: relative; }

.inv-quality-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(20,20,30,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 120px;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.inv-quality-option {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.1s;
}

.inv-quality-option:hover { background: rgba(255,255,255,0.08); }
.inv-quality-option.active { color: var(--accent, #6366f1); font-weight: 700; }

/* Fullscreen icon switching */
.inv-player:fullscreen .inv-icon-fs-enter { display: none; }
.inv-player:fullscreen .inv-icon-fs-exit { display: block; }
.inv-player:not(:fullscreen) .inv-icon-fs-enter { display: block; }
.inv-player:not(:fullscreen) .inv-icon-fs-exit { display: none; }

/* Progress bar (VOD) */
.inv-progress-bar {
  position: relative;
  z-index: 2;
  height: 4px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: height 0.15s;
}

.inv-progress-bar:hover { height: 8px; }

.inv-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: width 0.3s;
}

.inv-progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent, #6366f1);
  border-radius: 2px;
  transition: width 0.1s;
}

.inv-progress-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #6366f1);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s;
}

.inv-progress-bar:hover .inv-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Player offline message */
.player-offline {
  color: var(--text-dim, #55556a);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Player viewers */
.player-viewers {
  font-size: 0.85rem;
  color: var(--text-dim, #55556a);
  margin-left: 0.5rem;
}

/* ── Home — 5-Section Landing ────────────────────────────── */

.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 3rem;
}

.home-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.home-section-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.home-section-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.home-section-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-section-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ── TV Section ──────────────────────────────────────────── */

.tv-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1033 40%, #0a0a0f 100%);
}

.tv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.tv-hero-inner {
  position: relative;
  max-width: 700px;
}

.tv-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.tv-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tv-hero-now {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.tv-hero-actions {
  display: flex;
  gap: 0.75rem;
}

.tv-sub-nav {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

/* ── Music Section ───────────────────────────────────────── */

.music-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0f33 50%, #0a0a0f 100%);
}

.music-hero-inner { max-width: 600px; }

.music-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.music-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.music-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

/* ── Track list (Spotify-style table) ───────────────────────── */
.music-track-header {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 80px 60px;
  gap: 1rem;
  padding: 0.5rem 3rem 0.5rem 4rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.track-list {
  display: flex;
  flex-direction: column;
  padding: 0 3rem;
}

.track-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr 1fr 80px 60px 28px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.track-row:hover { background: var(--bg-hover); }

.track-row--active {
  background: var(--bg-hover);
  border-left: 3px solid var(--accent);
}

.track-row--active .track-title { color: var(--accent); }

.track-num {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.track-row:hover .track-num { display: none; }
.track-play-btn { display: none; }
.track-row:hover .track-play-btn { display: flex; }
.track-row--active .track-play-btn { display: flex; }
.track-row--active .track-num { display: none; }

.track-play-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.track-play-icon { display: block; }
.track-pause-icon { display: none; }
.track-row--active .track-play-icon { display: none; }
.track-row--active .track-pause-icon { display: block; }

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

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

.track-album {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-genre-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 2px 8px;
  background: var(--surface);
  border-radius: 10px;
  text-align: center;
}

.track-duration {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: right;
}

.track-queue-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.track-row:hover .track-queue-btn { opacity: 1; }
.track-queue-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Global Music Player Bar ────────────────────────────────── */
.music-player-global {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(12, 12, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 200;
  height: 72px;
}

.music-player-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  flex: 0 0 auto;
}

.music-player-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a0f33 0%, #2d1b69 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.music-player-info {
  min-width: 0;
}

.music-player-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-player-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 600px;
  margin: 0 auto;
}

.music-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.music-ctrl {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-ctrl:hover { color: var(--text); }

.music-ctrl-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-ctrl-play:hover { transform: scale(1.05); color: #000; }

.music-player-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.music-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  min-width: 32px;
  text-align: center;
}

.music-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.music-progress-wrap:hover { height: 6px; }

.music-progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s linear;
}

.music-player-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: flex-end;
}

.music-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.music-vol-slider {
  width: 80px;
  height: 4px;
  accent-color: var(--accent);
}

/* ── Queue Panel ────────────────────────────────────────────── */
.music-queue-panel {
  position: fixed;
  bottom: 72px;
  right: 1rem;
  width: 320px;
  max-height: 400px;
  background: rgba(18, 18, 28, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 201;
  overflow: hidden;
}

.music-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.music-queue-header h3 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.music-queue-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
}

.music-queue-list {
  max-height: 340px;
  overflow-y: auto;
}

.music-queue-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}

.music-queue-item:hover { background: rgba(255,255,255,0.04); }
.music-queue-item.active { background: rgba(99,102,241,0.1); }
.music-queue-item.active .queue-title { color: var(--accent); }

.queue-num { font-size: 0.75rem; color: var(--text-dim); text-align: center; }
.queue-title { font-size: 0.82rem; font-weight: 500; }
.queue-artist { font-size: 0.72rem; color: var(--text-muted); }

/* ── Music Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .music-track-header { display: none; }
  .track-row {
    grid-template-columns: 28px 28px 1fr 50px;
    padding: 0.5rem 0.5rem;
  }
  .track-album, .track-genre-tag, .track-queue-btn { display: none; }
  .music-player-global { padding: 0.5rem 1rem; gap: 0.75rem; }
  .music-player-left { min-width: 120px; }
  .music-player-right { display: none; }
  .music-queue-panel { width: calc(100vw - 2rem); right: 1rem; left: 1rem; }
}

/* ── Books Section ───────────────────────────────────────── */

.books-hero {
  padding: 4rem 3rem 2rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a2033 50%, #0a0a0f 100%);
}

.books-hero-inner { max-width: 600px; }

.books-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.books-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.books-hero-stat {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0 3rem 2rem;
}

.book-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}

.book-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.book-cover {
  flex: 0 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius);
}

.book-icon { font-size: 1.5rem; }

.book-info { flex: 1; min-width: 0; }

.book-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.book-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Games Storefront ────────────────────────────────────── */

/* Hero banner */
.games-hero {
  padding: 5rem 3rem 3rem;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.games-hero-inner {
  max-width: var(--max-width, 1200px);
  width: 100%;
}

.games-hero-text { max-width: 600px; }

.games-hero-score {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.games-hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.games-hero-meta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.games-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.games-hero-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.games-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Genre pill bar */
.games-genre-bar {
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.games-genre-bar-inner {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 3rem;
  white-space: nowrap;
}

.pill--active {
  background: var(--accent);
  color: #000;
}

/* Games section (shelf layout) */
.games-section {
  padding: 2rem 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-badge {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Horizontal shelf — scrollable */
.games-shelf {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.games-shelf::-webkit-scrollbar { height: 4px; }
.games-shelf::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Game card — shelf item */
.game-card {
  flex: 0 0 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: var(--text);
  scroll-snap-align: start;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.game-card--play-now {
  flex: 0 0 260px;
  border-color: var(--accent);
  border-width: 2px;
}

.game-card-visual {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.6rem;
}

.game-card-info {
  padding: 0.75rem;
}

.game-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-dev {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.game-card-genre {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.game-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.game-card-platforms {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.game-card-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Game badges */
.game-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-badge--score {
  background: rgba(0,0,0,0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

.game-badge--cloud {
  background: #2563eb;
  color: #fff;
}

.game-badge--web {
  background: var(--accent);
  color: #000;
}

.game-badge--mp {
  background: #7c3aed;
  color: #fff;
}

.game-badge--sale {
  background: #dc2626;
  color: #fff;
}

/* Cloud section accent */
.games-section--cloud {
  background: linear-gradient(180deg, rgba(37,99,235,0.08) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
}

/* Embedded game player */
.game-player {
  padding: 0;
}

.game-active .games-hero,
.game-active .games-genre-bar,
.game-active .games-section,
.game-active .gd-hero,
.game-active .gd-stats,
.game-active .gd-body,
.game-active .gd-sysreq {
  display: none;
}

.game-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.game-player-title {
  font-size: 1rem;
  font-weight: 600;
}

.game-player-close {
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.game-player-close:hover {
  background: var(--bg-hover);
}

.game-iframe {
  width: 100%;
  height: calc(100vh - 64px - 52px);
  border: none;
  display: block;
  background: #000;
}

/* Play Now button */
.btn--play-now {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  background: #22c55e;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.btn--play-now:hover { background: #16a34a; }
.btn--lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ── Game Detail Page ────────────────────────────────────── */

.gd-hero {
  padding: 6rem 3rem 3rem;
  position: relative;
  min-height: 360px;
}

.gd-hero-inner {
  max-width: var(--max-width, 1200px);
  display: flex;
  gap: 2rem;
  align-items: flex-end;
}

.gd-hero-cover {
  width: 200px;
  height: 260px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.gd-hero-text { flex: 1; }

.gd-hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.gd-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.gd-hero-dev {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.gd-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gd-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Quick stats row */
.gd-stats {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.gd-stats-inner {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.gd-stat { text-align: center; }

.gd-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.gd-stat-score {
  background: var(--accent);
  color: #000;
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}

.gd-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Body — description + details grid */
.gd-body {
  padding: 2rem 3rem;
}

.gd-body-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.gd-body-inner h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gd-description p {
  color: var(--text-muted);
  line-height: 1.65;
}

.gd-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.gd-dl dt {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.gd-dl dd {
  font-size: 0.85rem;
  color: var(--text);
}

/* Feature badges */
.gd-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.gd-feature {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* System requirements */
.gd-sysreq {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
}

.gd-sysreq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.gd-sysreq-col h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}


/* ── News Section ────────────────────────────────────────── */

/* Breaking News Ticker */
.news-ticker {
  display: flex;
  align-items: stretch;
  background: #1a0000;
  border-bottom: 2px solid #cc0000;
  overflow: hidden;
  height: 36px;
}

.news-ticker-label {
  background: #cc0000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.news-ticker-scroll {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding: 0 1rem;
  align-items: center;
  height: 100%;
}

.news-ticker-item {
  font-size: 0.8rem;
  color: #e8e8ed;
  flex-shrink: 0;
}

.ticker-source {
  font-weight: 700;
  color: #cc0000;
  margin-right: 0.5rem;
  font-size: 0.7rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-hero {
  padding: 3rem 3rem 1.5rem;
}

.news-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.news-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.news-primary {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 0 3rem 2rem;
}

.news-primary-player { width: 100%; }

.news-primary-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.news-primary-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.news-primary-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-primary-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.news-viewers {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.news-category-tag {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  font-weight: 600;
}

.news-primary-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.news-live-badge {
  animation: live-pulse-anim 2s ease-in-out infinite;
}

.news-categories {
  display: flex;
  gap: 0.5rem;
  padding: 0 3rem 1rem;
  flex-wrap: wrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0 3rem 2rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.news-card-visual {
  height: 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem;
}

.news-card-viewers {
  font-size: 0.7rem;
  color: #8888a0;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-card-info { padding: 0.75rem 1rem 1rem; }

.news-card-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.news-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card-category {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* ── Shared: Section + Pills ─────────────────────────────── */

.section {
  padding: 2rem 0 1rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pill:hover { background: var(--bg-hover); color: var(--text); }

.pill--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.badge--live {
  background: var(--live);
  color: #fff;
}

.badge--price {
  background: var(--accent);
  color: #fff;
}

.badge--play {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.count {
  font-size: 0.8em;
  color: var(--text-dim);
  font-weight: 400;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #818cf8;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover { background: var(--bg-hover); }

/* ── Card variants for TV ────────────────────────────────── */

.card--channel .card-visual {
  height: 120px;
}

.card-now {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav { padding: 0 1rem; gap: 1rem; }
  .nav-links { display: none; }
  .nav-search input { width: 160px; }
  .nav-search input:focus { width: 200px; }
  .hero { min-height: 400px; padding: 3rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; }
  .shelf-label { padding: 0 1.5rem; }
  .shelf-rail { padding: 0 1.5rem 1rem; }
  .card { flex: 0 0 240px; }
  .channel-hero { padding: 2rem 1.5rem; }
  .channel-title { font-size: 1.75rem; }
  .epg { padding: 1.5rem; }
  .browse-header { padding: 2rem 1.5rem 1rem; }
  .browse-grid { padding: 0 1.5rem 2rem; grid-template-columns: 1fr; }
  .player-info { grid-template-columns: 1fr; padding: 1.5rem; }
  .player-back { padding: 0 1.5rem 2rem; }
  .vs-section { padding: 0 1.5rem 2rem; }
  .tier-row { grid-template-columns: repeat(2, 1fr); }
  .bridge-viz { flex-direction: column; }
  .bridge-step { border-right: none; border-bottom: 1px solid var(--border); }
  .bridge-step:last-child { border-bottom: none; }
  .vs-sovereignty { grid-template-columns: 1fr; }
  .home-sections { padding: 1.5rem; }
  .tv-hero { padding: 2rem 1.5rem; min-height: 300px; }
  .tv-hero h1 { font-size: 2rem; }
  .tv-sub-nav { padding: 1rem 1.5rem; }
  .music-hero { padding: 2rem 1.5rem; }
  .music-hero h1 { font-size: 2rem; }
  .music-genres { padding: 1rem 1.5rem; }
  .track-list { padding: 0 1.5rem; }
  .books-hero { padding: 2rem 1.5rem; }
  .books-hero h1 { font-size: 2rem; }
  .book-grid { padding: 0 1.5rem 1.5rem; }
  .games-hero { padding: 3rem 1.5rem 2rem; min-height: 260px; }
  .games-hero-title { font-size: 2rem; }
  .games-genre-bar-inner { padding: 1rem 1.5rem; }
  .games-section { padding: 1.5rem; }
  .games-section--cloud { margin: 0 0.75rem; }
  .game-card { flex: 0 0 180px; }
  .game-card--play-now { flex: 0 0 220px; }
  .gd-hero { padding: 4rem 1.5rem 2rem; }
  .gd-hero-inner { flex-direction: column; align-items: flex-start; }
  .gd-hero-cover { width: 140px; height: 180px; }
  .gd-hero-title { font-size: 1.75rem; }
  .gd-stats { padding: 1rem 1.5rem; }
  .gd-stats-inner { gap: 1.5rem; }
  .gd-body { padding: 1.5rem; }
  .gd-body-inner { grid-template-columns: 1fr; }
  .gd-sysreq { padding: 1.5rem; }
  .gd-sysreq-grid { grid-template-columns: 1fr; }
  .news-hero { padding: 2rem 1.5rem; }
  .news-hero h1 { font-size: 1.75rem; }
  .news-primary { grid-template-columns: 1fr; padding: 0 1.5rem 1.5rem; }
  .news-grid { padding: 0 1.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .card { flex: 0 0 200px; }
  .card-visual { height: 120px; }
  .hero-actions { flex-direction: column; }
  .profiles-grid { gap: 1.25rem; }
  .profile-avatar { width: 80px; height: 80px; font-size: 1.75rem; }
}

/* ── Profile Selector ("Who's Watching?") ───────────────── */

.profiles-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 3rem 2rem;
}

.profiles-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-align: center;
}

.profiles-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
}

.profile-card-form { display: contents; }

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  color: var(--text);
  font-family: inherit;
  min-width: 120px;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.profile-card--kids {
  position: relative;
}

.profile-card--kids::after {
  content: "KIDS";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  background: #22c55e;
  color: #000;
  border-radius: var(--radius);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  border: 3px solid rgba(255,255,255,0.15);
  transition: border-color var(--transition);
}

.profile-card:hover .profile-avatar {
  border-color: var(--accent);
}

.profile-avatar-icon {
  pointer-events: none;
}

.profile-name {
  font-size: 1rem;
  font-weight: 600;
}

.profile-tier {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-lock {
  font-size: 0.8rem;
  opacity: 0.6;
}

.profiles-hint {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── PIN Entry Page ─────────────────────────────────────── */

.pin-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 3rem 2rem;
}

.pin-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.pin-error {
  color: #ef4444;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pin-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pin-input-row {
  display: flex;
  gap: 0.5rem;
}

.pin-input {
  width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5em;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
}

.pin-input:focus {
  outline: none;
  border-color: var(--accent);
}

.pin-cancel {
  margin-top: 0.5rem;
  text-decoration: none;
}

/* ── Kids Mode UI Transformation ────────────────────────── */

body.kids-mode .nav { background: #1a1040; }
body.kids-mode .nav-logo .logo-mark { background: #22c55e; }

body.kids-mode .game-card,
body.kids-mode .card {
  border-radius: 1rem;
  border-width: 2px;
}

body.kids-mode .section-title {
  font-size: 1.5rem;
}

body.kids-mode .games-shelf .game-card {
  flex: 0 0 200px;
}

body.kids-mode .game-card-visual,
body.kids-mode .card-visual {
  height: 160px;
}

/* Active profile indicator in nav */
.nav-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity var(--transition);
}

.nav-profile-badge:hover { opacity: 0.8; }

.nav-profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: nav-dot-breathe 3s ease-in-out infinite;
}

@keyframes nav-dot-breathe {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 12px currentColor, 0 0 20px currentColor; }
}

/* ══════════════════════════════════════════════════════════════
   AMBIENT LIVING BACKGROUNDS
   Inspired by: Roku ambient mode, Netflix cinematic haze,
   Apple Vision Pro scenescapes. The platform breathes.
   ══════════════════════════════════════════════════════════════ */

/* ── Global ambient layer ────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 80%);
  animation: ambient-drift 25s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambient-drift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 10% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 90% 10%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 80%);
  }
  33% {
    background:
      radial-gradient(ellipse 70% 70% at 80% 80%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
      radial-gradient(ellipse 50% 60% at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 60% 60%, rgba(168, 85, 247, 0.03) 0%, transparent 80%);
  }
  66% {
    background:
      radial-gradient(ellipse 60% 80% at 40% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 30% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 80%);
  }
  100% {
    background:
      radial-gradient(ellipse 90% 50% at 60% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 50% 70% at 10% 40%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 70% 40% at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 80%);
  }
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(88, 86, 214, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(175, 82, 222, 0.03) 0%, transparent 60%);
  animation: ambient-drift-light 25s ease-in-out infinite alternate;
}

@keyframes ambient-drift-light {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 10% 90%, rgba(88, 86, 214, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 90% 10%, rgba(175, 82, 222, 0.03) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 90% 50% at 60% 70%, rgba(175, 82, 222, 0.04) 0%, transparent 60%),
      radial-gradient(ellipse 50% 70% at 10% 40%, rgba(88, 86, 214, 0.03) 0%, transparent 60%);
  }
}

/* ── Hero breathing ──────────────────────────────────────── */

.hero::before,
.tv-hero::before,
.games-hero::before,
.music-hero::before,
.books-hero::before {
  animation: hero-breathe 8s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

/* ── Floating orbs on hero sections ──────────────────────── */

.hero::after,
.tv-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: orb-float 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-40px, 30px) scale(1.15); opacity: 0.5; }
  100% { transform: translate(20px, -20px) scale(0.9); opacity: 0.25; }
}

/* ══════════════════════════════════════════════════════════════
   PROFILE SELECTOR — The Gateway
   ══════════════════════════════════════════════════════════════ */

/* Ambient background for profiles page */
.profiles-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 50% at 25% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 50%, rgba(139, 92, 246, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  animation: profiles-ambient-shift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes profiles-ambient-shift {
  0% {
    background:
      radial-gradient(ellipse 50% 50% at 25% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 75% 50%, rgba(139, 92, 246, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 80% 40% at 50% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  }
  50% {
    background:
      radial-gradient(ellipse 60% 60% at 30% 40%, rgba(139, 92, 246, 0.14) 0%, transparent 70%),
      radial-gradient(ellipse 40% 60% at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
      radial-gradient(ellipse 70% 50% at 50% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 45% 55% at 60% 50%, rgba(168, 85, 247, 0.11) 0%, transparent 70%),
      radial-gradient(ellipse 55% 45% at 30% 60%, rgba(99, 102, 241, 0.09) 0%, transparent 70%),
      radial-gradient(ellipse 60% 60% at 50% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  }
}

.profiles-page {
  position: relative;
  overflow: hidden;
}

/* Staggered entrance animation for profile cards */
.profile-card {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  animation: profile-entrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.2s);
}

@keyframes profile-entrance {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Avatar emoji — large, centered */
.profile-avatar {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.profile-avatar-emoji {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* Avatar ring — glows on hover */
.profile-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.profile-card:hover .profile-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(var(--profile-color-rgb, 99, 102, 241), 0.4);
}

.profile-card:hover .profile-avatar-ring {
  border-color: var(--profile-color, var(--accent));
  box-shadow: 0 0 20px var(--profile-color, var(--accent-glow));
}

.profile-card:hover .profile-avatar-emoji {
  transform: scale(1.1);
}

/* Lock icon for PIN-protected profiles */
.profile-lock-icon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.profile-lock-icon::before {
  content: '';
  width: 8px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 2px;
  border-top: none;
  position: relative;
  top: 1px;
}

.profile-lock-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 5px;
  border: 2px solid rgba(255,255,255,0.7);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  top: 2px;
}

/* Kids badge — playful green pill */
.profile-kids-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.2rem;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.45rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Remove old KIDS ::after since we use a real element now */
.profile-card--kids::after { display: none; }

/* ══════════════════════════════════════════════════════════════
   SCROLL ENTRANCE ANIMATIONS
   Elements with .reveal fade/slide in when they enter viewport.
   ══════════════════════════════════════════════════════════════ */

.section,
.games-section,
.tv-hero,
.games-hero,
.music-hero,
.books-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.revealed,
.games-section.revealed,
.tv-hero.revealed,
.games-hero.revealed,
.music-hero.revealed,
.books-hero.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within revealed sections */
.revealed .shelf-rail > *,
.revealed .games-shelf > * {
  opacity: 0;
  transform: translateX(20px);
  animation: shelf-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.revealed .shelf-rail > *:nth-child(1),
.revealed .games-shelf > *:nth-child(1) { animation-delay: 0s; }
.revealed .shelf-rail > *:nth-child(2),
.revealed .games-shelf > *:nth-child(2) { animation-delay: 0.05s; }
.revealed .shelf-rail > *:nth-child(3),
.revealed .games-shelf > *:nth-child(3) { animation-delay: 0.1s; }
.revealed .shelf-rail > *:nth-child(4),
.revealed .games-shelf > *:nth-child(4) { animation-delay: 0.15s; }
.revealed .shelf-rail > *:nth-child(5),
.revealed .games-shelf > *:nth-child(5) { animation-delay: 0.2s; }
.revealed .shelf-rail > *:nth-child(6),
.revealed .games-shelf > *:nth-child(6) { animation-delay: 0.25s; }
.revealed .shelf-rail > *:nth-child(n+7),
.revealed .games-shelf > *:nth-child(n+7) { animation-delay: 0.3s; }

@keyframes shelf-item-in {
  to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════
   CARD HOVER ENHANCEMENTS
   Glow effects, lift, and content reveal on hover.
   ══════════════════════════════════════════════════════════════ */

.card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}

.game-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 16px var(--accent-glow);
}

/* Shimmer effect on card visual hover */
.game-card-visual::after,
.card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.05) 45%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.game-card:hover .game-card-visual::after,
.card:hover .card-visual::after {
  transform: translateX(100%);
}

/* Badge pulse on hover */
.game-badge--web,
.badge--live {
  transition: box-shadow 0.3s ease;
}

.game-card:hover .game-badge--web {
  box-shadow: 0 0 12px var(--accent);
}

.card:hover .badge--live {
  box-shadow: 0 0 12px var(--live);
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADERS — Subtle glow line
   ══════════════════════════════════════════════════════════════ */

.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.4s ease;
}

.section:hover .section-title::after,
.games-section:hover .section-title::after {
  width: 80px;
}

/* ══════════════════════════════════════════════════════════════
   KIDS MODE — Full UI transformation
   When a Kids or LittleOnes profile is active, the entire
   platform transforms into a warm, playful, safe environment.
   ══════════════════════════════════════════════════════════════ */

body.kids-mode {
  --bg: #0d0825;
  --bg-raised: #1a1040;
  --bg-card: #1e1450;
  --bg-hover: #2a1a60;
  --surface: #1e1045;
  --border: #3a2870;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.25);
}

/* Kids ambient — warm purple-green aurora */
body.kids-mode::before {
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(168, 85, 247, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
  animation: kids-ambient 15s ease-in-out infinite alternate;
}

@keyframes kids-ambient {
  0% {
    background:
      radial-gradient(ellipse 60% 60% at 20% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 80% 20%, rgba(168, 85, 247, 0.10) 0%, transparent 60%),
      radial-gradient(ellipse 70% 40% at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 50% 70% at 70% 70%, rgba(34, 197, 94, 0.10) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 20% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 50% 60%, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
  }
}

/* Kids nav */
body.kids-mode .nav {
  background: rgba(26, 16, 64, 0.92);
  border-bottom-color: #3a2870;
}

body.kids-mode .nav-logo .logo-mark {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.kids-mode .nav-link:hover {
  background: #2a1a60;
}

/* Kids cards — bouncy, rounded, playful */
body.kids-mode .game-card,
body.kids-mode .card {
  border-radius: 1.25rem;
  border-color: #3a2870;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

body.kids-mode .game-card:hover,
body.kids-mode .card:hover {
  transform: translateY(-8px) scale(1.05) rotate(-1deg);
  border-color: #22c55e;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.2), 0 0 20px rgba(34, 197, 94, 0.15);
}

body.kids-mode .game-card-visual,
body.kids-mode .card-visual {
  height: 170px;
  border-radius: 1.25rem 1.25rem 0 0;
}

body.kids-mode .games-shelf .game-card {
  flex: 0 0 220px;
}

/* Kids section titles */
body.kids-mode .section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.kids-mode .section-title::after {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Kids hero — warm and inviting */
body.kids-mode .hero,
body.kids-mode .tv-hero,
body.kids-mode .games-hero {
  background: linear-gradient(135deg, #1a0d40 0%, #2a1060 40%, #0d0825 100%);
}

/* Kids genre pills */
body.kids-mode .pill {
  border-color: #3a2870;
  color: #c4b5fd;
}

body.kids-mode .pill:hover,
body.kids-mode .pill--active {
  background: #22c55e;
  color: #000;
  border-color: #22c55e;
}

/* Kids badges */
body.kids-mode .game-badge--web {
  background: #22c55e;
}

/* Kids footer */
body.kids-mode .footer {
  background: #0d0825;
  border-top-color: #3a2870;
}

/* ══════════════════════════════════════════════════════════════
   CONTENT RESTRICTION PAGE
   ══════════════════════════════════════════════════════════════ */

.restrict-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 3rem 2rem;
  text-align: center;
}

.restrict-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  animation: restrict-breathe 3s ease-in-out infinite;
}

@keyframes restrict-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.restrict-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.restrict-message {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.restrict-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.restrict-back:hover {
  background: #818cf8;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   PIN PAGE — Polish
   ══════════════════════════════════════════════════════════════ */

.pin-page {
  position: relative;
}

.pin-input {
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pin-input:focus {
  box-shadow: 0 0 16px var(--accent-glow);
}

.pin-error {
  animation: pin-shake 0.4s ease-in-out;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

/* ══════════════════════════════════════════════════════════════
   BOOK CARDS — Enhanced with descriptions
   ══════════════════════════════════════════════════════════════ */

.book-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 12px var(--accent-glow);
}

.book-icon {
  font-size: 2rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-card:hover .book-icon {
  transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════════════
   IN-APP BOOK READER
   Clean, focused reading experience. Three themes:
   default (dark), sepia (warm), light (paper white).
   ══════════════════════════════════════════════════════════════ */

.reader-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.reader-back {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.reader-back:hover {
  color: var(--text);
  border-color: var(--accent);
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.reader-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.reader-title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.reader-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
}

.reader-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.reader-progress {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  min-width: 2.5rem;
  text-align: right;
}

/* Reader content area */
.reader-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  min-height: calc(100vh - 64px - 80px);
}

.reader-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  font-family: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', serif;
}

.reader-text p {
  margin-bottom: 1.25em;
  text-indent: 0;
}

/* Reader themes */
.reader-sepia {
  background: #f4ecd8;
}

.reader-sepia .reader-text {
  color: #3c3122;
}

.reader-light {
  background: #ffffff;
}

.reader-light .reader-text {
  color: #1a1a1a;
}

/* Loading state */
.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--text-muted);
}

.reader-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: inv-spin 0.8s linear infinite;
}

.reader-error {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.reader-error button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .reader-header { padding: 0.75rem 1rem; gap: 0.75rem; }
  .reader-content { padding: 1.5rem 1rem 4rem; }
  .reader-text { font-size: 16px; }
  .reader-title { font-size: 0.85rem; }
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE — Cinematic Hero + Content Discovery
   ══════════════════════════════════════════════════════════════ */

/* ── Hero Carousel ──────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 0;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0d0d1a 0%, #12121f 50%, #0a0a14 100%);
}

.home-hero-slide.active { opacity: 1; z-index: 1; }

.home-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg, #0a0a0f) 0%, transparent 50%),
              linear-gradient(90deg, rgba(10,10,15,0.9) 0%, transparent 60%);
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 0 3rem 3.5rem;
}

.home-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.home-hero-rating,
.home-hero-year {
  font-size: 0.8rem;
  color: #8888a0;
  font-weight: 600;
}

.home-hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.home-hero-synopsis {
  font-size: 1rem;
  color: #b0b0c0;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero-genres {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.home-hero-genre {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #b0b0c0;
}

.home-hero-actions {
  display: flex;
  gap: 0.75rem;
}

.btn--lg {
  padding: 12px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
}

.btn--glass {
  padding: 10px 24px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e8e8ed;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn--glass:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
}

/* Hero indicators */
.home-hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 3rem;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.home-hero-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.4s;
  padding: 0;
}

.home-hero-dot.active {
  background: var(--accent, #6366f1);
  width: 48px;
}

/* ── Quick Nav Strip ────────────────────────────────────────── */
.home-nav-strip {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.home-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #b0b0c0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
}

.home-nav-pill:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: #e8e8ed;
  transform: translateY(-1px);
}

.home-nav-icon {
  font-size: 1.1rem;
}

/* ── Card Extras ────────────────────────────────────────────── */
.card-rank {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  font-style: italic;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

.card--live-glow {
  border: 1px solid rgba(239,68,68,0.15);
}

.card--live-glow:hover {
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 0 20px rgba(239,68,68,0.08);
}

.card-rating-star {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-visual--book {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.book-icon-lg {
  font-size: 2.5rem;
}

.badge--accent {
  background: var(--accent, #6366f1);
  color: #fff;
}

.badge--game {
  background: #10b981;
  color: #fff;
}

/* ── Live pulse indicator ───────────────────────────────────── */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: live-pulse-anim 2s ease-in-out infinite;
}

@keyframes live-pulse-anim {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ── Continue Watching ──────────────────────────────────────── */
.home-continue { padding-top: 0.5rem; }

.card--continue .card-visual {
  min-height: 80px;
  display: flex;
  align-items: flex-end;
}

.continue-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 0 0 0 0;
}

.continue-progress-fill {
  height: 100%;
  background: var(--accent, #6366f1);
  border-radius: 0;
  transition: width 0.3s;
}

/* ── Responsive Home ────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-hero { height: 55vh; min-height: 360px; }
  .home-hero-content { padding: 0 1.5rem 2rem; }
  .home-hero-title { font-size: 2rem; }
  .home-hero-synopsis { font-size: 0.9rem; -webkit-line-clamp: 2; }
  .home-hero-indicators { right: 1.5rem; bottom: 1rem; }
  .home-nav-strip { gap: 0.5rem; padding: 1rem 1rem; }
  .home-nav-pill { padding: 8px 16px; font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT / LEGAL / AI DISCLOSURE PAGE
   ══════════════════════════════════════════════════════════════ */

.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* Hero */
.about-hero {
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.about-hero-inner { max-width: 650px; margin: 0 auto; }

.about-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 1.25rem;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.about-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.about-hero-tagline {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Sections */
.about-section {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-content ul {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.about-content li { margin-bottom: 0.3rem; }

/* Book Section */
.about-book {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-book-mockup {
  width: 180px;
  height: 260px;
  background: linear-gradient(135deg, #0d2818 0%, #1a4d2e 40%, #0a3d1c 100%);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.4), -2px -2px 8px rgba(255,255,255,0.03);
}

.about-book-emoji { font-size: 2.5rem; }

.about-book-title-sm {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: #d4a017;
  line-height: 1.3;
  padding: 0 1rem;
}

.about-book-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.about-book-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.about-book-author {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-book-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.about-book-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 2px;
}

/* AI Disclosure */
.ai-badge, .ai-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  vertical-align: middle;
}

.ai-badge-inline {
  margin-right: 0.5rem;
  font-size: 0.7rem;
  padding: 4px 10px;
}

.ai-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  vertical-align: middle;
}

.about-disclosure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-disclosure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.about-disclosure-icon {
  margin-bottom: 0.75rem;
}

.about-disclosure-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-disclosure-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-notice {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.about-notice h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-notice p, .about-notice li {
  font-size: 0.85rem;
}

/* Attribution */
.about-attribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.about-attr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.about-attr-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-attr-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Legal */
.about-legal-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.about-legal-block:last-child { border-bottom: none; }

.about-legal-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-legal-block p, .about-legal-block li {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Footer */
.about-copyright {
  text-align: center;
  padding: 1rem 0;
}

.about-copyright p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.about-updated {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-hero { padding: 3rem 1.5rem 2rem; }
  .about-hero h1 { font-size: 2rem; }
  .about-section { padding: 2rem 1.5rem; }
  .about-book { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-book-meta { grid-template-columns: 1fr; }
  .about-disclosure-grid { grid-template-columns: 1fr; }
  .about-attribution-grid { grid-template-columns: 1fr; }
}

/* Light theme */
[data-theme="light"] .about-book-mockup {
  box-shadow: 8px 8px 24px rgba(0,0,0,0.15), -2px -2px 8px rgba(255,255,255,0.5);
}

[data-theme="light"] .about-notice {
  background: rgba(99,102,241,0.04);
  border-color: rgba(99,102,241,0.1);
}

/* ══════════════════════════════════════════════════════════════
   POLISH — Loading skeletons, page transitions, micro-interactions
   ══════════════════════════════════════════════════════════════ */

/* Skeleton loading shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

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

.skeleton-card {
  min-height: 180px;
  border-radius: var(--radius-lg);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text--short { width: 60%; }
.skeleton-text--medium { width: 80%; }

/* Page enter animation */
main {
  animation: page-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes page-enter {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Smooth card interactions */
.card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s,
              border-color 0.2s;
}

.card:active {
  transform: scale(0.97);
}

/* Button press feedback */
.btn:active, .pill:active, .music-ctrl:active {
  transform: scale(0.95);
}

/* Focus visible ring for accessibility */
.btn:focus-visible, .card:focus-visible, .pill:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar on shelves but keep scrollable */
.shelf-rail::-webkit-scrollbar {
  height: 0;
}

/* Responsive news ticker */
@media (max-width: 768px) {
  .news-primary { grid-template-columns: 1fr; padding: 0 1.5rem 1.5rem; }
  .news-grid { padding: 0 1.5rem 1.5rem; grid-template-columns: 1fr 1fr; }
  .news-hero { padding: 2rem 1.5rem; }
  .news-hero h1 { font-size: 2rem; }
  .news-categories { padding: 0 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — Respect user preferences
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  main { animation: none; }
  .section, .games-section, .tv-hero, .games-hero, .music-hero, .books-hero {
    opacity: 1;
    transform: none;
  }
  .profile-card { opacity: 1; transform: none; }
  .revealed .shelf-rail > *, .revealed .games-shelf > * { opacity: 1; transform: none; }
  .home-hero-slide { transition: none; }
  .news-ticker-scroll { animation: none; }
}
