/* RomanTV v2 — Netflix-tier polish (2026-04-21 dossier implementation)
 * Palette + Inter typography + glass modals + tile hover + skeleton shimmer + snap scroll
 * 2026-04-22 — Stremio-style row paddles + slide-in tiles */

:root {
  --bg-0: #0b0b0f;
  --bg-1: #151520;
  --bg-2: #1f1f2e;
  --text-0: #e8e8ea;
  --text-1: #a7a7b0;
  --text-2: #6b6b78;
  --accent: #e50914;
  --accent-2: #f59e0b;
  --accent-3: #22d3ee;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 24px 40px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; }
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a52; }

/* === Top bar === */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) 4% 0 4%;
  height: calc(64px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0.6) 70%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.brand { font-weight: 900; font-size: 24px; letter-spacing: -0.03em; }
.brand-mark { color: var(--accent); }
.brand-word { color: var(--text-0); }
.topnav { display: flex; gap: 22px; }
.topnav a {
  font-size: 14px; font-weight: 500; color: var(--text-1);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topnav a.active { color: var(--text-0); border-bottom-color: var(--accent); }
.topnav a:hover { color: var(--text-0); }
.account { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.tier-badge {
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius);
  font-size: 12px; letter-spacing: 0.04em;
  transition: transform 0.15s;
}
.tier-badge:hover { transform: scale(1.04); }
.lang-badge {
  background: transparent; color: var(--text-1); font-weight: 600;
  padding: 6px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12px; letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s;
}
.lang-badge:hover { color: var(--text-0); border-color: var(--text-1); }

/* Netflix / Stremio-style search */
.topbar-search-wrap {
  position: relative;
  z-index: 120;
  flex: 1 1 200px;
  max-width: min(440px, 100%);
  min-width: 0;
  margin: 0 12px;
}
.search-field {
  display: block;
  position: relative;
  width: 100%;
}
.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}
.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-0);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search-input::placeholder { color: var(--text-2); }
.search-input:focus {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(255, 255, 255, 0.09);
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(70vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 18px 14px;
  -webkit-overflow-scrolling: touch;
}
.search-dropdown.hidden { display: none !important; }
.search-hint {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.4;
}
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}
.search-results .tile { width: 100%; max-width: none; }
.search-results .tile-kind {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 640px) {
  .topbar { padding: env(safe-area-inset-top) 12px 0 12px; gap: 8px; flex-wrap: wrap; }
  .topbar-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 4px 0 0 0;
  }
  .brand { font-size: 18px; flex-shrink: 0; }
  .topnav {
    gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 0 6px;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; font-size: 13px; flex-shrink: 0; }
  .tier-badge { padding: 5px 10px; font-size: 11px; flex-shrink: 0; }
  .lang-badge { padding: 5px 9px; font-size: 11px; flex-shrink: 0; }
}

/* === Hero === */
.hero {
  position: relative; height: clamp(360px, 56vw, 720px);
  display: flex; align-items: flex-end; overflow: hidden;
  margin-top: calc(64px + env(safe-area-inset-top));
  margin-top: 0;
}
.hero-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: linear-gradient(180deg, transparent 45%, var(--bg-0) 98%),
                    linear-gradient(90deg, rgba(11,11,15,0.92) 0%, rgba(11,11,15,0.55) 42%, transparent 72%),
                    radial-gradient(circle at 25% 35%, #3a0a22, var(--bg-0) 70%);
  transition: background-image 0.8s ease;
}
.hero-inner {
  position: relative; z-index: 2; padding: 0 4% 5vw 4%; max-width: 48%;
}
.hero-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04; margin-bottom: 0.7rem;
}
.hero-inner p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.55;
  color: var(--text-1); margin-bottom: 1.4rem; max-width: 620px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-dots {
  display: flex; gap: 6px; margin: 0 0 14px 0;
  min-height: 8px;
}
.hero-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.35s, transform 0.35s;
}
.hero-dots span.on {
  background: var(--accent);
  transform: scale(1.15);
}

.hero-buttons { display: flex; gap: 12px; }
.play-btn, .info-btn {
  padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.play-btn { background: #fff; color: #0b0b0f; }
.play-btn:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
.play-btn.big { padding: 14px 34px; font-size: 16px; margin-top: 12px; }
.info-btn { background: rgba(255,255,255,0.12); color: var(--text-0); backdrop-filter: blur(8px); }
.info-btn:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 640px) {
  .hero { height: 55vh; min-height: 340px; }
  .hero-inner { padding: 0 16px 32px 16px; max-width: 90%; }
  .hero-inner h1 { font-size: 1.9rem; }
  .hero-inner p { font-size: 0.9rem; -webkit-line-clamp: 2; }
  .play-btn, .info-btn { padding: 10px 18px; font-size: 13px; }
}

/* Continue watching */
.continue-wrap { padding: 0 4% 0.5rem 4%; margin-top: -0.5rem; }
.continue-wrap.hidden { display: none !important; }
.continue-wrap h2 {
  font-size: 1.05rem; color: var(--text-0); margin-bottom: 0.65rem;
}
.continue-wrap .row-track { padding-left: 0; padding-right: 0; }

.episode-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.episode-select {
  width: 100%; max-width: 420px; margin-bottom: 14px; padding: 10px 12px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-0); font-size: 14px;
}

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 950;
  background: rgba(20, 20, 28, 0.92); color: var(--text-0);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: mx-toast-in 0.35s ease;
  pointer-events: none;
}
.toast.hidden { display: none !important; }
@keyframes mx-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
}

.tile-badge.lock {
  left: auto; right: 8px; background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2); font-size: 11px;
}

.tile-poster-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--bg-2), #1a1520);
  color: var(--text-2); font-size: 11px; font-weight: 600; text-align: center;
  padding: 8px;
}

/* === Row grid === */
#rows { padding: 0 0 80px 0; }
.row { margin: 2.2rem 0; }
.row-title {
  padding: 0 4% 0.7rem 4%;
  font-size: 1.1rem;
  color: var(--text-0);
}
.row-scroller {
  position: relative;
  width: 100%;
}
.row-track {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0 4% 0.8rem 4%;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row-track::-webkit-scrollbar { display: none; }

/* Stremio / Netflix-style side chevrons — scroll the horizontal rail */
.row-paddle {
  position: absolute;
  top: 0;
  bottom: 0.8rem;
  width: clamp(38px, 5vw, 56px);
  z-index: 8;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.2s ease;
  pointer-events: auto;
}
.row-paddle-left {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 11, 15, 0.97) 35%, rgba(11, 11, 15, 0) 100%);
  padding-right: 8px;
}
.row-paddle-right {
  right: 0;
  background: linear-gradient(270deg, rgba(11, 11, 15, 0.97) 35%, rgba(11, 11, 15, 0) 100%);
  padding-left: 8px;
}
.row-paddle:hover {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(11, 11, 15, 1) 40%, rgba(11, 11, 15, 0.25) 100%);
}
.row-paddle-right:hover {
  background: linear-gradient(270deg, rgba(11, 11, 15, 1) 40%, rgba(11, 11, 15, 0.25) 100%);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover .row-paddle { opacity: 0.92; }
}
@media (hover: none), (pointer: coarse) {
  .row-paddle { opacity: 0.72; }
}

.tile {
  flex: 0 0 auto;
  width: clamp(150px, 14vw, 230px);
  aspect-ratio: 2 / 3;
  background: var(--bg-1);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.25s,
              outline-color 0.2s;
  outline: 1px solid transparent;
}
.tile.tile-reveal {
  animation: mx-tile-slide-in 0.48s cubic-bezier(0.22, 0.82, 0.28, 1) backwards;
  animation-delay: calc(min(var(--tile-i, 0), 16) * 36ms);
}
@keyframes mx-tile-slide-in {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile.tile-reveal {
    animation: none;
    opacity: 1;
  }
}
.tile:hover {
  transform: scale(1.07); z-index: 3;
  box-shadow: var(--shadow-lg);
  outline-color: rgba(255,255,255,0.1);
}
@media (hover: none) { .tile:active { transform: scale(0.97); } }

.tile img, .tile-bg {
  width: 100%; height: 100%; object-fit: cover;
  display: block; background-position: center; background-size: cover;
  opacity: 1;
}
.tile img[data-src]:not(.loaded) { opacity: 0; }
.tile img.loaded { opacity: 1; transition: opacity 0.3s; }

.tile-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 11px 9px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.92) 100%);
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Aspect-ratio modifiers: landscape for sports, square for OF */
.row[data-row-type="landscape"] .tile { aspect-ratio: 16 / 9; width: clamp(220px, 22vw, 360px); }
.row[data-row-type="square"] .tile { aspect-ratio: 1 / 1; width: clamp(150px, 14vw, 220px); border-radius: var(--radius-lg); }

/* Tile badges (LIVE, 18+, NEW) */
.tile-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 7px; font-size: 10px; font-weight: 700;
  border-radius: 4px; color: #fff; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.tile-badge.live { background: var(--accent-3); color: #000; }
.tile-badge.adult { background: var(--accent-2); color: #000; }

/* Progress bar on continue-watching tiles */
.tile-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,0.18);
}
.tile-progress > span {
  display: block; height: 100%; background: var(--accent);
  box-shadow: 0 0 8px rgba(229,9,20,0.6);
}

/* === Skeleton shimmer === */
@keyframes mx-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.tile.loading { background: var(--bg-1); position: relative; }
.tile.loading::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  background-size: 800px 100%;
  animation: mx-shimmer 1.4s infinite linear;
}

@media (max-width: 640px) {
  .row-title { padding: 0 14px 7px 14px; font-size: 0.98rem; }
  .row-track { padding: 0 14px 10px 14px; gap: 6px; }
  .tile { width: clamp(135px, 34vw, 180px); }
  .row[data-row-type="landscape"] .tile { width: clamp(220px, 60vw, 300px); }
}

/* === Modals (glass backdrop) === */
.hidden { display: none !important; }
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(11, 11, 15, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: mx-fade-in 0.22s ease;
}
@keyframes mx-fade-in { from { opacity: 0; } }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 960px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: mx-pop-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes mx-pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  font-size: 28px; line-height: 1;
  background: transparent; color: var(--text-1);
  width: 36px; height: 36px; border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-0); }

.tier-modal h2 { text-align: center; margin-bottom: 24px; font-size: 1.6rem; }
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.tier-card {
  background: var(--bg-2); border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 22px 18px; text-align: left;
  color: var(--text-0);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.tier-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.tier-card h3 { color: var(--text-0); font-size: 17px; margin-bottom: 6px; }
.tier-card p { color: var(--text-1); font-size: 13px; margin-bottom: 14px; min-height: 40px; line-height: 1.4; }
.tier-card .price { color: var(--accent); font-weight: 700; font-size: 17px; }
.tier-card.top-tier {
  background: linear-gradient(135deg, #3d0a1f 0%, var(--bg-1) 100%);
  border-color: var(--accent);
}
.tier-card.top-tier::before {
  content: 'RECOMENDADO';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 4px;
}

.detail-modal { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.detail-modal img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.detail-body h2 { font-size: 1.7rem; margin-bottom: 10px; }
.detail-body p { color: var(--text-1); line-height: 1.6; margin-bottom: 18px; }

@media (max-width: 640px) {
  .modal { padding: 20px; }
  .detail-modal { grid-template-columns: 1fr; }
  .detail-modal img { max-width: 180px; margin: 0 auto; }
  .tier-grid { grid-template-columns: 1fr; }
}

.unplayable-modal .modal { max-width: 460px; text-align: center; }
.unplayable-modal h3 { margin-bottom: 12px; font-size: 1.25rem; }
.unplayable-modal p { color: var(--text-1); line-height: 1.55; margin-bottom: 18px; font-size: 14px; }
.unplayable-modal .button-row { display: flex; gap: 10px; flex-direction: column; }
.unplayable-modal button { width: 100%; }

/* === Player === */
.player-bg {
  position: fixed; inset: 0; background: #000; z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.player-close {
  position: absolute; top: 20px; right: 24px; z-index: 10;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 28px; width: 44px; height: 44px; border-radius: 50%; line-height: 1;
  transition: background 0.15s;
}
.player-close:hover { background: rgba(0, 0, 0, 0.85); }
#player, #playerIframe {
  width: 100%; height: 100%; background: #000; border: 0;
}
.player-status {
  position: absolute; bottom: 30px; left: 30px;
  font-size: 13px; color: var(--text-1);
  background: rgba(0, 0, 0, 0.7); padding: 8px 14px; border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* ===== Episode picker (Stremio-style series detail) — added 2026-04-21 ===== */
.detail-series-picker { margin: 18px 0 8px; }
.detail-series-picker.hidden { display: none !important; }

.episode-season-select {
  width: 100%; max-width: 320px; margin-bottom: 14px; padding: 10px 14px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-0); font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.episode-season-select:hover { border-color: rgba(255,255,255,.18); }

.episode-grid-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 14px 0 10px;
}

.episode-grid {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 50vh; overflow-y: auto; padding-right: 4px;
}
.episode-grid::-webkit-scrollbar { width: 8px; }
.episode-grid::-webkit-scrollbar-track { background: transparent; }
.episode-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12); border-radius: 4px;
}

.episode-tile {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding: 10px; border-radius: 10px;
  background: var(--bg-2, #1a1a22);
  border: 1px solid transparent;
  text-align: left; cursor: pointer;
  color: var(--text-0); font: inherit;
  transition: border-color .15s, background .15s, transform .15s;
  width: 100%;
}
.episode-tile:hover, .episode-tile:focus-visible {
  border-color: var(--accent, #e50914);
  background: #232332;
  outline: none;
}
.episode-tile:active { transform: scale(.995); }

.episode-thumb {
  width: 140px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 6px; background: #0d0d11;
  display: block;
}
.episode-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 22px;
}

.episode-meta {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.episode-title {
  font-size: 15px; font-weight: 700; line-height: 1.3;
  color: var(--text-0);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.episode-overview {
  font-size: 13px; color: var(--text-1, #c8c8d0); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-released {
  font-size: 12px; color: var(--text-2); margin-top: 2px;
}

.episode-loading, .episode-empty {
  padding: 20px; text-align: center; color: var(--text-2);
  font-size: 14px;
}

@media (max-width: 640px) {
  .episode-tile { grid-template-columns: 110px 1fr; gap: 10px; }
  .episode-thumb { width: 110px; }
  .episode-title { font-size: 14px; }
  .episode-overview { font-size: 12px; }
}

/* ===== Continue Watching — added 2026-04-21 ===== */
.cw-tile { position: relative; }
.cw-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  border-radius: 0 0 6px 6px;
}
.cw-progress > span {
  display: block;
  height: 100%;
  background: #e50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.55);
  transition: width 0.4s ease;
}
.cw-row .row-title {
  font-weight: 700;
}
