/* Portail StreamBox — cartes, fiches film/série, page de lecture et lecteur vidéo.
   Complète portal.css (variables, barre supérieure, carrousel, catalogue). */

/* ---- Boutons d'action secondaires ---- */
.act-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent;
  color: var(--accent); cursor: pointer; transition: color .15s, transform .15s; }
.act-icon:hover { color: var(--accent-hover); transform: scale(1.08); }
.act-icon svg { width: 24px; height: 24px; }
.text-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer; color: var(--text-2);
  font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.text-btn:hover { color: var(--text); }
.text-btn svg { width: 18px; height: 18px; }
.btn-wide { width: min(1200px, 100%); background: #213944; color: var(--text); padding: 12px; }
.btn-wide:hover { background: #2a4a58; }
.meta-link { text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
.meta-link:hover { color: var(--accent); }
.muted { color: var(--muted); }

/* ---- Cartes (panneau d'infos au survol) ---- */
.card { position: relative; display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; outline-offset: 4px; }
.card-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface-2); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px; font-weight: 900; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: -4px; }
.card-hover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px;
  background: rgba(20, 21, 25, .97); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.card-hover strong { font-size: 16px; line-height: 1.25; }
.card-hover-meta { display: flex; flex-direction: column; color: var(--muted); font-size: 14px; font-weight: 600; }
.card-hover p { margin: 0; font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.card-hover-actions { margin-top: auto; display: flex; gap: 2px; margin-left: -10px; }
@media (hover: hover) {
  .card:hover .card-hover, .card:focus-within .card-hover { opacity: 1; visibility: visible; }
}
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.card-progress div { height: 100%; background: var(--accent); }
.card.wide .card-poster { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2b2d35, #17181c); }
.live-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.live-play svg { width: 54px; height: 54px; }
.card.wide:hover .live-play { opacity: 1; }
.live-badge { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; background: var(--live);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- Rangée « vedette » avec grande image de fond ---- */
.row.featured { position: relative; padding: clamp(60px, 9vw, 140px) 0 30px; margin: 10px 0; overflow: hidden; }
.row-art { position: absolute; inset: 0; background: center 20% / cover no-repeat; }
.row-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 0, 0, .25) 22%, rgba(0, 0, 0, .45) 60%, var(--bg) 100%); }
.row.featured .row-head, .row.featured .row-track { position: relative; }
.row.featured .row-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* ---- Fiche d'un titre (film ou série) ---- */
.title-hero { position: relative; min-height: min(70vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.title-hero-art { position: absolute; inset: 0; left: 28%; background: center top / cover no-repeat var(--surface-2); }
.title-hero-blur { position: absolute; inset: -40px; background: center / cover no-repeat var(--surface-3); filter: blur(34px) brightness(.5) saturate(1.2); transform: scale(1.1); }
.title-hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 28%, rgba(0, 0, 0, .72) 44%, rgba(0, 0, 0, .1) 72%, transparent 85%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.title-hero:not(.has-backdrop) .title-hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .4) 60%, transparent), linear-gradient(0deg, var(--bg), transparent 40%); }
.title-hero-poster { position: absolute; right: calc(var(--gutter) + 4vw); bottom: 40px; width: clamp(160px, 20vw, 280px); aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.title-hero-poster img, .title-hero-poster .card-fallback { width: 100%; height: 100%; object-fit: cover; }
.title-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 60px var(--gutter) 34px; max-width: 760px; }
.title-name { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.title-tagline { margin: 0; font-weight: 700; font-size: 16px; }
.title-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.title-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; margin: 0 var(--gutter); padding: 8px 0 30px;
  border-bottom: 1px solid var(--line); }
.title-plot p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 900px; }

/* Épisodes */
.episodes-section { padding: 24px var(--gutter) 10px; }
.season-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.season-pick { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.season-pick svg { width: 20px; height: 20px; pointer-events: none; }
.season-select { appearance: none; border: 0; background: transparent; color: var(--text); font-size: 22px; font-weight: 800; cursor: pointer; padding: 4px 6px; }
.season-select option { background: var(--surface-2); font-size: 16px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 30px 20px; }
.ep-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ep-thumb, .mini-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ep-thumb img, .mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.ep-play svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-sizing: content-box; transition: background .2s, color .2s; }
.ep-card:hover .ep-play svg, .mini-card:hover .ep-play svg { background: var(--accent); color: var(--on-accent); }
.ep-card:hover .ep-thumb img, .mini-card:hover .mini-thumb img { transform: scale(1.04); }
.ep-duration { position: absolute; right: 8px; bottom: 10px; padding: 1px 6px; background: rgba(0, 0, 0, .8); font-size: 13px; font-weight: 700; }
.ep-series { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ep-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ep-card:hover .ep-title { color: var(--accent); }
.ep-meta { color: var(--muted); font-size: 13px; }
.more-wrap { display: flex; justify-content: center; padding: 30px 0 0; }
.season-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.title-similar { margin-top: 40px; }

/* Épisode : carte, pied (état + menu « ⋮ »), panneau au survol à la place de la carte */
.ep-card { position: relative; }
.ep-main { display: flex; flex-direction: column; gap: 6px; }
.ep-card.watched .ep-thumb img { opacity: .65; }
.ep-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin-top: -2px; }
.ep-hover { position: absolute; z-index: 6; inset: -14px; display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: var(--surface-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.ep-hover-link { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.ep-hover .ep-series { margin-top: 2px; }
.ep-hover .ep-title, .ep-card:hover .ep-hover .ep-title { color: var(--text); }
.ep-hover-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
/* Menu « ⋮ » */
.kebab { position: relative; flex-shrink: 0; }
.kebab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.kebab-btn:hover, .kebab.open .kebab-btn { color: var(--text); }
.kebab-btn svg { width: 20px; height: 20px; }
.kebab-btn.with-text { padding: 0 10px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.kebab.open .kebab-btn.with-text { background: var(--surface-2); color: var(--text); }
.kebab-menu { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; min-width: 220px; padding: 8px 0; background: var(--surface-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6); display: none; }
.kebab.open .kebab-menu { display: block; }
.kebab-menu button { display: block; width: 100%; padding: 12px 20px; border: 0; background: none; color: var(--text-2); font-size: 15px; text-align: left; cursor: pointer; }
.kebab-menu button:hover { background: var(--surface-3); color: var(--text); }
.season-actions { display: flex; align-items: center; gap: 12px; }
.ep-date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ep-date svg { width: 15px; height: 15px; }
.ep-hover p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ep-hover-play { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.ep-hover-play svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .ep-card:hover .ep-hover { opacity: 1; visibility: visible; }
}

/* Notes */
.card-rating { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.card-rating svg { width: 14px; height: 14px; color: var(--text-2); }
.stars-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.stars { display: inline-flex; }
.star { display: inline-flex; padding: 2px; border: 0; background: none; color: var(--text-2); cursor: pointer; transition: transform .12s, color .12s; }
.star svg { width: 26px; height: 26px; }
.star.on { color: var(--accent); }
.stars:hover .star { color: var(--accent); }
.stars .star:hover ~ .star { color: var(--text-2); }
.star:hover { transform: scale(1.15); }
.stars-avg { color: var(--text-2); font-size: 15px; }
.stars-avg strong { color: var(--text); }

/* ---- Accueil : nouveaux épisodes ---- */
.new-episodes { padding: 0 var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.section-head h2 svg { width: 28px; height: 28px; }
.release-day h3 { margin: 16px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--line); font-size: 20px; font-weight: 800; }
.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 36px; padding-top: 16px; }
.release { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.release:hover strong { color: var(--accent); }
/* Cadre 16:9 : l'image est en position absolue pour être toujours recadrée (même une affiche portrait). */
.release-thumb { position: relative; aspect-ratio: 16 / 9; min-height: 0; flex-shrink: 0; }
.release-img { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--surface-2); }
.release-img img, .release-img .card-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 13px; }
/* Plusieurs épisodes le même jour : effet de pile, comme une collection. */
.release-thumb.stack .release-img { inset: 12% 12% 0 0; }
.release-thumb.stack::before, .release-thumb.stack::after { content: ""; position: absolute; }
.release-thumb.stack::before { inset: 6% 6% 6% 6%; z-index: 1; background: #34363e; }
.release-thumb.stack::after { inset: 0 0 12% 12%; z-index: 0; background: #24262c; }
.release-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.release-info strong { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.release-info span { color: var(--muted); font-size: 14px; }
.release-time { color: var(--teal, #2abdbb); font-size: 14px; font-weight: 600; align-self: end; font-variant-numeric: tabular-nums; }

/* ---- Bannière d'un titre ---- */
.promo { padding: 10px var(--gutter); }
.promo-inner { position: relative; display: flex; align-items: center; max-width: 1600px; aspect-ratio: 3 / 1; min-height: 240px; margin: 0 auto; overflow: hidden;
  background: center / cover no-repeat var(--surface-2); }
.promo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 35%, transparent 65%); }
.promo.flip .promo-inner { justify-content: flex-end; }
.promo.flip .promo-shade { background: linear-gradient(270deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 35%, transparent 65%); }
.promo-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(46%, 640px); padding: 24px 4%; text-align: center; }
.promo-title { margin: 0; font-size: clamp(1.8rem, 4.4vw, 4.2rem); line-height: 1; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .8); text-wrap: balance; }
.promo-meta { margin: 0; color: var(--text-2); font-weight: 600; }
.promo-btn { padding: 12px 30px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: clamp(14px, 1.5vw, 22px);
  text-transform: uppercase; letter-spacing: .02em; transition: transform .15s, background .15s; }
.promo-inner:hover .promo-btn { background: var(--accent-hover); transform: scale(1.04); }

@media (max-width: 1100px) {
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .release-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 130px minmax(0, 1fr) auto; }
  .promo-inner { aspect-ratio: auto; min-height: 260px; justify-content: center; }
  .promo.flip .promo-inner { justify-content: center; }
  .promo-shade, .promo.flip .promo-shade { background: rgba(0, 0, 0, .55); }
  .promo-content { width: 100%; }
  .section-head { flex-wrap: wrap; }
}

/* ---- Page de lecture ---- */
.watch-stage { background: #000; }
.player { position: relative; width: 100%; max-height: calc(100vh - var(--topbar-h) - 40px); aspect-ratio: 16 / 9; margin: 0 auto; background: #000; overflow: hidden; user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player:fullscreen { max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player.idle { cursor: none; }
.pl-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, background .2s; }
.pl-center svg { width: 40px; height: 40px; margin-left: 4px; }
.pl-center:hover { background: var(--accent); color: var(--on-accent); }
.player.paused .pl-center { opacity: 1; pointer-events: auto; }
.player.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-message { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 16px; font-weight: 700; font-size: 18px; background: rgba(0, 0, 0, .7); }
.pl-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); transition: opacity .3s; }
.player.idle .pl-controls, .player.idle .pl-upnext { opacity: 0; pointer-events: none; }
.pl-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pl-rail { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .25); transition: height .15s; }
.pl-progress:hover .pl-rail { height: 6px; }
.pl-buffered { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255, 255, 255, .35); }
.pl-played { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); }
.pl-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.pl-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 6px; border: 0; background: none; color: #fff; cursor: pointer; }
.pl-btn:hover { color: var(--accent); }
.pl-btn svg { width: 26px; height: 26px; }
.pl-text { font-weight: 800; font-size: 16px; }
.pl-time { margin-left: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-live { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pl-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
.pl-menu-wrap { position: relative; }
.pl-menu { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 150px; padding: 6px 0; background: rgba(20, 21, 25, .97); border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.pl-menu-title { padding: 6px 16px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pl-menu button { display: block; width: 100%; padding: 8px 16px; border: 0; background: none; color: var(--text-2); text-align: left; cursor: pointer; font-weight: 600; }
.pl-menu button:hover { background: var(--surface-3); color: #fff; }
.pl-menu button.active { color: var(--accent); }
.pl-upnext { position: absolute; right: 24px; bottom: 100px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(20, 21, 25, .92);
  border: 2px solid var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; transition: opacity .3s; }
.pl-upnext svg { width: 18px; height: 18px; color: var(--accent); }

.watch-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 40px 60px; padding: 30px var(--gutter) 20px; max-width: 1500px; margin: 0 auto; }
.watch-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.watch-parent { color: var(--accent); font-weight: 800; font-size: 18px; align-self: flex-start; }
.watch-parent:hover { text-decoration: underline; }
.watch-parent.live { display: inline-flex; align-items: center; gap: 8px; color: var(--live); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.watch-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.watch-title-row h1 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.watch-date { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.watch-plot { margin: 6px 0 0; color: var(--text-2); line-height: 1.6; max-width: 820px; }
.watch-aside { display: flex; flex-direction: column; gap: 14px; }
.watch-aside h3 { margin: 6px 0 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mini-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: start; }
.mini-thumb .ep-play svg { width: 26px; height: 26px; padding: 8px; }
.mini-text { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.mini-text strong { font-size: 15px; line-height: 1.3; }
.mini-text span { color: var(--muted); font-size: 13px; }
.mini-card:hover strong { color: var(--accent); }
.mini-back { color: var(--accent); font-weight: 700; }
.epg { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.epg-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.epg-row.now { border-left: 3px solid var(--accent); padding-left: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.epg-time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.epg-row strong { font-size: 15px; }
.epg-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.epg-now { margin-left: 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 8px; }
  .topbar .logo { flex: 1; height: 48px; }
  .nav { order: 3; flex-basis: 100%; height: 44px; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 14px); }
  .hero { height: auto; min-height: 0; }
  .hero-slide { position: relative; display: none; }
  .hero-slide.active { display: block; }
  .hero-art { position: relative; right: auto; top: auto; transform: none; height: auto; width: min(52vw, 230px); margin: 24px auto 0; }
  .hero-content { padding: 20px var(--gutter) 70px; height: auto; align-items: center; text-align: center; max-width: none; }
  .hero-plot { -webkit-line-clamp: 3; }
  .hero-backdrop, .title-hero-art { position: relative; inset: auto; left: auto; aspect-ratio: 16 / 9; background-position: center; }
  .hero-slide.has-backdrop .hero-shade, .title-hero.has-backdrop .title-hero-shade { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 42%, transparent 62%); }
  .hero-slide.has-backdrop .hero-content { margin-top: -18vw; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .3)); }
  .hero-dots { left: 50%; transform: translateX(-50%); bottom: 26px; }
  .hero-arrow { display: none; }
  .meta { justify-content: center; }
  .row-nav { display: none; }
  .title-hero { display: block; min-height: 0; }
  .title-hero-poster { position: relative; right: auto; bottom: auto; margin: 28px auto 0; width: min(46vw, 200px); }
  .title-hero-content { align-items: center; text-align: center; padding-top: 20px; max-width: none; }
  .title-hero.has-backdrop .title-hero-content { margin-top: -16vw; }
  .title-body { grid-template-columns: 1fr; gap: 20px; }
  .watch-body { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .watch-info .meta { justify-content: flex-start; }
  .player { max-height: none; }
  .pl-controls { padding: 30px 8px 4px; }
  .pl-btn { min-width: 36px; height: 38px; }
  .pl-btn svg { width: 22px; height: 22px; }
  .pl-time { font-size: 13px; margin-left: 4px; }
  .pl-text { display: none; }
  .mini-card { grid-template-columns: 140px minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(5, 1fr); inset: -20% -40%; }
  .landing-hero { margin-left: 0; }
  .landing-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .95) 25%, rgba(0, 0, 0, .6) 100%); }
}
@media (max-width: 520px) {
  .pl-group .pl-btn[title^="Reculer"], .pl-group .pl-btn[title^="Avancer"] { display: none; }
  .row.featured { padding-top: 40px; }
}
