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

:root {
  --bg: #0a0a0a;
  --bg-card: #181818;
  --bg-elevated: #222;
  --bg-hover: #2a2a2a;
  --text-primary: #e5e5e5;
  --text-secondary: #a0a0a0;
  --text-dim: #6a6a6a;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --white: #fff;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.6);
  --radius: 6px;
  --radius-lg: 10px;
  --nav-height: 64px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page Transitions ─── */
.view { animation: viewIn 0.35s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-fade-out {
  animation: viewOut 0.2s ease forwards;
}
@keyframes viewOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 4%;
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: inherit;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--white); font-weight: 700; }

/* ─── Search ─── */
.search-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  transition: color var(--transition);
  position: relative;
  z-index: 2;
}
.search-toggle:hover { color: var(--white); }
.search-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-box.open {
  width: 260px;
  opacity: 1;
  margin-right: 8px;
  border-color: rgba(255,255,255,0.2);
}

.search-box input {
  flex: 1;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  background: transparent;
  border: none;
  color: var(--white);
  outline: none;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-dim); }

.search-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.1rem;
  display: none;
  transition: color var(--transition);
}
.search-clear:hover { color: var(--white); }
.search-box.has-query .search-clear { display: block; }

/* ─── Hero / Billboard ─── */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 650px;
  overflow: hidden;
  margin-bottom: -80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.5);
  transition: opacity 0.6s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  bottom: 120px;
  left: 4%;
  max-width: 550px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-play { background: var(--white); color: #111; }
.btn-play:hover { background: #d9d9d9; }
.btn-play svg { width: 20px; height: 20px; fill: #111; }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ─── Content Rows ─── */
.content-area {
  position: relative;
  z-index: 2;
  padding: 0 4% 60px;
}

.row { margin-bottom: 40px; }

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.row-title { font-size: 1.25rem; font-weight: 700; color: var(--white); }

.row-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}
.row-count a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.row-count a:hover { color: var(--white); }

.episode-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.episode-row::-webkit-scrollbar { display: none; }

/* ─── Episode Card ─── */
.card {
  flex: 0 0 auto;
  width: 240px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
  z-index: 5;
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card-play-icon { opacity: 1; }

.card-play-icon div {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-play-icon svg { width: 18px; height: 18px; margin-left: 2px; }

.card-ep-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.card-info { padding: 12px; }

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.card-movie { width: 400px; }

/* ─── Season Grid View ─── */
.season-page { display: none; padding-top: var(--nav-height); }
.season-page.active { display: block; }

.season-header { padding: 40px 4% 24px; }
.season-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.season-header p { color: var(--text-secondary); font-size: 0.9rem; }

.season-grid-wrap { padding: 0 4% 60px; }

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

.grid-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.grid-card .card-thumb { aspect-ratio: 16/9; }
.grid-card .card-info { padding: 14px 16px; }
.grid-card .card-title {
  font-size: 0.9rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Video Player ─── */
.player-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  flex-direction: column;
  animation: playerIn 0.35s ease;
}
.player-page.open { display: flex; }

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

.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.player-page.controls-visible .player-top-bar { opacity: 1; pointer-events: auto; }

.player-back {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--transition);
}
.player-back:hover { background: rgba(255,255,255,0.1); }
.player-back svg { width: 22px; height: 22px; fill: var(--white); }

.player-now-playing {
  margin-left: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-now-playing strong { color: var(--white); font-weight: 600; }

.video-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}
.player-page.controls-visible .video-container { cursor: default; }

.video-container video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

/* ─── Custom Controls ─── */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.player-page.controls-visible .custom-controls { opacity: 1; pointer-events: auto; }

/* Progress bar */
.progress-bar-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  transition: height 0.15s ease;
}

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

.progress-bar-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  pointer-events: none;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.progress-bar-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.progress-bar-wrap:hover .progress-bar-thumb { opacity: 1; }

.progress-tooltip {
  position: absolute;
  bottom: 24px;
  background: rgba(0,0,0,0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.progress-bar-wrap:hover .progress-tooltip { opacity: 1; }

/* Control buttons row */
.controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
}
.ctrl-btn:hover { background: rgba(255,255,255,0.1); }
.ctrl-btn:disabled { opacity: 0.3; cursor: default; }
.ctrl-btn:disabled:hover { background: none; }
.ctrl-btn svg { width: 24px; height: 24px; fill: var(--white); }

.ctrl-btn.small svg { width: 20px; height: 20px; }

.time-display {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin: 0 4px;
  white-space: nowrap;
  user-select: none;
}

.ctrl-spacer { flex: 1; }

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

.volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.2s ease;
}

.volume-wrap:hover .volume-slider-wrap { width: 80px; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* Episode title in controls */
.ctrl-ep-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ─── Next Episode Overlay ─── */
.next-ep-overlay {
  display: none;
  position: absolute;
  bottom: 100px;
  right: 24px;
  background: rgba(20,20,20,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 15;
  width: 300px;
  animation: slideUp 0.3s ease;
}
.next-ep-overlay.show { display: block; }

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

.next-ep-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.next-ep-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.next-ep-thumb {
  width: 100px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.next-ep-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.next-ep-text p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.next-ep-countdown {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.next-ep-countdown .countdown-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.next-ep-countdown .countdown-fill {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.next-ep-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.next-ep-actions button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.next-ep-play {
  background: var(--white);
  color: #111;
  flex: 1;
}
.next-ep-play:hover { background: #d9d9d9; }

.next-ep-cancel {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.next-ep-cancel:hover { background: rgba(255,255,255,0.25); }

/* ─── Continue Watching Row ─── */
.continue-row .card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}
.continue-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 2;
}

/* ─── Watched Badge ─── */
.watched-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 3;
}
.watched-badge svg { width: 14px; height: 14px; fill: #4caf50; }

/* ─── Reset Binge Button ─── */
.reset-binge-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 4% 60px;
}
.reset-binge-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.reset-binge-btn:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(229,9,20,0.1);
}

/* ─── Double-tap Seek Overlay ─── */
.seek-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 8;
}
.seek-overlay.left { left: 0; }
.seek-overlay.right { right: 0; }
.seek-overlay.flash { opacity: 1; }
.seek-overlay-inner {
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
.seek-overlay-inner svg { width: 24px; height: 24px; fill: var(--white); }
.seek-overlay-inner span { font-size: 0.65rem; color: var(--white); font-weight: 600; margin-top: 2px; }

/* ─── PiP Button ─── */
.ctrl-btn.pip-btn { display: none; }
.ctrl-btn.pip-btn.supported { display: flex; }

/* ─── Loading ─── */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
  gap: 16px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar { padding: 0 12px; height: 56px; }
  .nav-links { margin-left: 12px; gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 0.8rem; }
  .hero { height: 50vh; min-height: 280px; }
  .hero-content { bottom: 80px; max-width: 85%; left: 16px; }
  .hero-title { font-size: 1.6rem; }
  .hero-desc { display: none; }
  .hero-meta { font-size: 0.75rem; gap: 8px; }
  .hero-actions { flex-wrap: wrap; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .card { width: 170px; }
  .card-movie { width: 280px; }
  .season-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .content-area { padding: 0 16px 40px; }
  .search-box.open { width: 160px; }

  /* Player mobile */
  .player-top-bar { padding: 10px 12px; }
  .player-back { font-size: 0.8rem; padding: 6px 8px; gap: 6px; }
  .player-back svg { width: 18px; height: 18px; }
  .player-now-playing { font-size: 0.75rem; margin-left: 8px; }
  .custom-controls { padding: 0 12px 10px; }
  .controls-row { gap: 2px; }
  .ctrl-btn { padding: 4px; }
  .ctrl-btn svg { width: 20px; height: 20px; }
  .ctrl-btn.small svg { width: 18px; height: 18px; }
  .ctrl-ep-title { display: none; }
  .time-display { font-size: 0.7rem; }
  .volume-wrap:hover .volume-slider-wrap { width: 60px; }
  .next-ep-overlay { width: 220px; right: 12px; bottom: 70px; padding: 12px; }
  .next-ep-thumb { width: 70px; height: 40px; }
  .next-ep-text h4 { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .navbar { height: 50px; }
  .nav-logo { font-size: 1.05rem; }
  .nav-links { margin-left: 8px; }
  .nav-link { padding: 5px 8px; font-size: 0.75rem; }
  .hero { height: 45vh; min-height: 240px; margin-bottom: -50px; }
  .hero-content { bottom: 70px; }
  .hero-title { font-size: 1.3rem; }
  .hero-badge { font-size: 0.6rem; }
  .btn { padding: 8px 16px; font-size: 0.8rem; }
  .card { width: 140px; }
  .card-info { padding: 8px 10px; }
  .card-title { font-size: 0.8rem; }
  .card-sub { font-size: 0.65rem; }
  .card-movie { width: 240px; }
  .row-title { font-size: 1.05rem; }
  .row-count { font-size: 0.7rem; }
  .season-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .season-header { padding: 24px 16px 16px; }
  .season-header h2 { font-size: 1.4rem; }
  .grid-card .card-info { padding: 10px 12px; }
  .grid-card .card-title { font-size: 0.8rem; }
  .search-box.open { width: 130px; }

  /* Player phone */
  .player-top-bar { padding: 8px 10px; }
  .player-back > span { display: none; }
  .player-now-playing { margin-left: 4px; font-size: 0.7rem; }
  .custom-controls { padding: 0 10px 8px; }
  .progress-bar-wrap { height: 24px; margin-bottom: 4px; }
  .progress-bar-track { height: 5px; }
  .progress-bar-wrap:hover .progress-bar-track { height: 5px; }
  .progress-bar-thumb { width: 16px; height: 16px; opacity: 1; }
  .controls-row { gap: 0; }
  .ctrl-btn { padding: 6px; }
  .time-display { font-size: 0.65rem; margin: 0 2px; }
  .volume-slider-wrap { display: none; }
  .next-ep-overlay { width: calc(100% - 24px); right: 12px; left: 12px; bottom: 60px; }
}

@media (max-width: 360px) {
  .nav-logo span { display: none; }
  .nav-logo::after { content: 'SU'; color: var(--accent); font-weight: 800; }
  .card { width: 130px; }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Touch: always show progress thumb */
@media (hover: none) and (pointer: coarse) {
  .progress-bar-thumb { opacity: 1; }
  .progress-bar-track { height: 5px; }
  .volume-wrap:hover .volume-slider-wrap { width: 0; }
  .card-play-icon { opacity: 0.7; }
}

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
