/* Watch hub, player and ad breaks */
.th-hero{margin:1rem 0 .5rem}
.th-hub h2{margin:1.6em 0 .5em;font-size:1.3rem}
.th-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,26%);gap:1rem;overflow-x:auto;padding-bottom:.6rem;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.th-row .th-card{scroll-snap-align:start}
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.2rem}
.th-card{display:flex;flex-direction:column;gap:.15rem;text-decoration:none;color:var(--ink);font-family:system-ui,sans-serif;min-width:0}
.th-card b{font-size:1rem;line-height:1.25;margin-top:.45rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-card small{color:var(--muted);font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-card:hover b{color:var(--accent)}
.th-thumb{position:relative;display:block;aspect-ratio:16/9;background:#0b0f14;border-radius:8px;overflow:hidden}
.th-thumb img{width:100%;height:100%;object-fit:cover}
.th-dur{position:absolute;right:.4rem;bottom:.4rem;background:rgba(0,0,0,.75);color:#fff;font:600 .72rem system-ui,sans-serif;border-radius:4px;padding:.1rem .4rem}
.th-lock-badge{position:absolute;left:.4rem;top:.4rem;background:rgba(0,0,0,.7);border-radius:4px;padding:0 .3rem;font-size:.8rem}
.th-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.3)}.th-bar span{display:block;height:100%;background:var(--gold)}
.th-eps{list-style:none;margin:1rem 0;padding:0;display:grid;gap:1rem}
.th-row-ep{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:1rem;text-decoration:none;color:var(--ink);font-family:system-ui,sans-serif;align-items:start}
.th-row-ep small{display:block;color:var(--muted);margin-top:.2rem}.th-free{color:var(--accent);font-size:.8rem;font-style:normal;font-weight:600}
.th-row-ep:hover b{color:var(--accent)}

/* the player */
.theatre{width:100%;margin:1rem 0}
.th-stage{position:relative;aspect-ratio:var(--ar,16/9);background:#000;border-radius:10px;overflow:hidden}
.th-stage video.ep-video{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.th-stage:fullscreen{border-radius:0;aspect-ratio:auto;width:100vw;height:100vh}
.th-fs{position:absolute;right:.5rem;top:.5rem;z-index:3;background:rgba(0,0,0,.55);color:#fff;border:0;border-radius:6px;font-size:1.1rem;line-height:1;padding:.35rem .5rem;cursor:pointer;opacity:.0;transition:opacity .2s}
.th-stage:hover .th-fs,.th-fs:focus{opacity:1}
@media(hover:none){.th-fs{opacity:.85}}
.th-over,.th-ad{position:absolute;inset:0;z-index:4;color:#fff;font-family:system-ui,sans-serif}
.th-over{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.4rem;padding:1.2rem;background:rgba(8,12,18,.88)}
.th-over h3{margin:.2rem 0;font-size:1.25rem}.th-over p{margin:.2rem 0}.th-over .muted{color:#c8d6f0}
.th-over .btn{margin:.2rem}.th-over .btn.secondary{background:transparent;color:#fff;border-color:#fff}
.th-auto{font-size:.85rem;color:#c8d6f0;margin-top:.4rem}
.th-toast{position:absolute;left:.7rem;bottom:3.4rem;z-index:3;background:rgba(0,0,0,.75);color:#fff;font:.85rem system-ui,sans-serif;padding:.35rem .7rem;border-radius:6px}
.th-ad{display:flex;flex-direction:column;background:#0b0f14}
.th-ad-top{display:flex;align-items:center;gap:.6rem;padding:.55rem .8rem;font-size:.82rem;color:#c8d6f0}
.th-ad-tag{background:var(--gold);color:#111;font-weight:700;border-radius:4px;padding:0 .4rem}
.th-ad-time{margin-left:auto;font-variant-numeric:tabular-nums}
.th-ad-body{flex:1;display:flex;align-items:center;justify-content:center;gap:1.2rem;padding:.4rem 1.2rem;min-height:0;flex-wrap:wrap;overflow:hidden}
.th-ad-media{max-height:100%;max-width:46%;min-height:0;object-fit:contain;border-radius:6px;background:#000}
.th-ad-copy{max-width:36ch;text-align:left}.th-ad-copy b{font-size:1.25rem;line-height:1.25;display:block;margin-bottom:.3rem}.th-ad-copy p{margin:.2rem 0 .6rem;color:#dbe5f5;font-size:.95rem}
.th-ad-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem .8rem;font-size:.85rem}
.th-ad-bottom a.th-noads{color:#c8d6f0}
.th-skip{background:#fff;color:#111;border:0;border-radius:6px;font-weight:700;padding:.45rem .9rem;cursor:pointer;margin-left:auto}
.theatre[style*="9/16"] .th-ad-body{flex-direction:column;gap:.5rem}.theatre[style*="9/16"] .th-ad-media{max-width:80%;max-height:46%}.theatre[style*="9/16"] .th-ad-copy{text-align:center}
@media(max-width:560px){.th-ad-media{max-width:100%;max-height:42%}.th-ad-body{flex-direction:column;gap:.5rem}.th-ad-copy{text-align:center}}
.th-lock{background:#fff;border:1px solid var(--line);border-radius:8px;padding:.8rem 1rem;font-family:system-ui,sans-serif}
.th-actions .btn{margin-right:.5rem}
.th-queue{list-style:none;margin:.6rem 0;padding:0;display:grid;gap:.4rem;font-family:system-ui,sans-serif}
.th-queue a{display:flex;gap:.8rem;align-items:center;text-decoration:none;color:var(--ink);padding:.55rem .7rem;border:1px solid var(--line);border-radius:8px;background:#fff}
.th-queue li.on a{border-color:var(--accent);box-shadow:0 0 0 2px rgba(29,92,115,.18)}
.th-queue small{display:block;color:var(--muted)}.th-n{font-weight:700;color:var(--accent);min-width:1.6rem;text-align:center}
.th-over[hidden],.th-ad[hidden],.th-toast[hidden],.th-skip[hidden],.th-hub [hidden]{display:none!important}
