/* Watch pages (Atlas Remix and Atlas Land). Layout only: colours and fonts come from each brand's style.css variables. */
.pagehead.slim{padding:clamp(20px,4vw,40px) 0 0}
.pagehead.slim h1{font-size:clamp(32px,8vw,56px)}
.pagehead.slim p{margin-top:6px;font-size:16px}
.section.tight{padding-top:clamp(16px,3vw,28px)}

.eps{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
@media(min-width:600px){.eps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:980px){.eps{grid-template-columns:repeat(3,minmax(0,1fr))}}

.ep{min-width:0;display:flex;flex-direction:column;background:var(--card);border:var(--cardborder);scroll-margin-top:16px}
.ep:target,.ep.flash{outline:3px solid var(--accent);outline-offset:2px}
.ep-media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--tile);color:var(--ink);text-decoration:none;container-type:inline-size}
.ep-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ep-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:8%;text-align:center;line-height:1.05;font-size:min(40px,9.5cqi);overflow-wrap:anywhere;text-wrap:balance}
.ep-art .t-vice{font-size:1.2em}
.ep-art .t-script,.ep-art .t-script2{font-size:1.45em}
.ep-art .t-cat small{font-size:.85em}
.ep-art .t-cat strong{font-size:1.45em}
.ep-play{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;background:rgba(0,0,0,.55);border:2px solid rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center}
.ep-play svg{width:26px;height:26px;margin-left:4px;fill:#fff}
.ep-badge{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font:600 13px/1 var(--body);letter-spacing:.5px}
.ep-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.ep-series{margin:0;font-size:13px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.ep-title{font-size:clamp(22px,5.5vw,26px);line-height:1.1;overflow-wrap:anywhere}
.ep-title a{text-decoration:none}
.ep-desc{margin:0;font-size:16px;line-height:1.45;color:var(--muted)}
.ep-next{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:10px}
.ep-next a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:var(--cardborder);border-radius:999px;font-size:14px;font-weight:600;text-decoration:none}
.ep-next a.game{background:var(--btn-bg);color:var(--btn-ink);border-color:var(--btn-bg)}

/* Lead episode: first card, full row */
.ep.lead{grid-column:1/-1}
.ep.lead .ep-media{aspect-ratio:4/5}
.ep.lead .ep-title{font-size:clamp(28px,7vw,40px)}
@media(min-width:760px){
  .ep.lead{display:grid;grid-template-columns:minmax(260px,36%) 1fr}
  .ep.lead .ep-body{justify-content:center;padding:28px 32px;gap:10px}
  .ep.lead .ep-next{margin-top:12px}
}

/* Player */
.ep-player{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));background:rgba(4,6,10,.94);overflow:auto}
.ep-player[hidden]{display:none}
.ep-player .bar{width:100%;max-width:560px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff}
.ep-player .bar b{font:600 15px/1.2 var(--body);letter-spacing:.5px}
.ep-player .bar small{display:block;font:600 12px/1.2 var(--body);letter-spacing:2px;text-transform:uppercase;opacity:.7}
.ep-player button{min-height:44px;min-width:44px;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;font:600 14px var(--body);cursor:pointer}
.ep-player video{display:block;max-width:100%;max-height:calc(100dvh - 210px);width:auto;height:auto;background:#000;border-radius:12px}
.ep-player .acts{width:100%;max-width:560px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ep-player .acts a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.5);color:#fff;font:600 14px var(--body);text-decoration:none}
.ep-player .acts a.game{background:var(--btn-bg);color:var(--btn-ink);border-color:var(--btn-bg)}
body.ep-open{overflow:hidden}
/* No still yet: keep the title panel short so content comes sooner */
.ep-media:not(:has(img)){aspect-ratio:16/9}
.ep.lead .ep-media:not(:has(img)){aspect-ratio:16/10}
.ep-media:not(:has(img)) .ep-art{font-size:min(44px,10.5cqi)}
.ep-media:not(:has(img)) .t-script,.ep-media:not(:has(img)) .t-script2{font-size:1.15em}
.ep-media:not(:has(img)) .ep-art{padding:6% 8% 14%}
/* Game promo inside an episode: thumbnail + the game's own line */
.ep-next a.ep-game,.ep-player .acts a.ep-game{display:flex;align-items:center;gap:12px;width:100%;min-height:0;padding:8px 14px 8px 8px;border-radius:12px;text-align:left;background:rgba(255,255,255,.05)}
.ep-game img{flex:none;width:104px;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}
.ep-game span{display:flex;flex-direction:column;gap:2px;min-width:0}
.ep-game b{font-family:var(--display);font-weight:400;font-size:19px;line-height:1.15;color:var(--ink)}
.ep-game small{font-size:14px;font-weight:500;line-height:1.3;color:var(--muted)}
.ep-player .acts a.ep-game b{color:#fff}.ep-player .acts a.ep-game small{color:rgba(255,255,255,.75)}
.ep-player .acts a.ep-game{max-width:420px}
@media(max-width:360px){.ep-game img{width:80px}.ep-game b{font-size:17px}.ep-next a.ep-game{gap:10px;padding-right:10px}}
.ep-player .acts a.ep-game{background:#151A24}

