/* TRT+ — cinematic streaming front end
   Oswald (broadcast display) · Archivo (UI) · crimson→coral accent on ink */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

.tpl, .tpl * { box-sizing: border-box; }

.tpl {
	--ink: #0a0a0c;
	--ink-2: #131318;
	--panel: #18181f;
	--line: rgba(255,255,255,.10);
	--text: #f3f3f5;
	--muted: #a7a7b0;
	--dim: #6f6f78;
	--a1: #ff3a3a;
	--a2: #ff7a18;
	--accent: #e0142d;
	--ok: #46d369;
	--disp: 'Oswald', 'Archivo', system-ui, sans-serif;
	--ui: 'Archivo', system-ui, sans-serif;
	--label: 'Bebas Neue', 'Oswald', sans-serif;

	position: relative;
	font-family: var(--ui);
	color: var(--text);
	background: var(--ink);
	margin: 0 calc(50% - 50vw);
	width: 100vw;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.tpl-noise {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}
/* mix-blend-mode forces the whole stacking context to composite in-process,
   which pulls a DRM-protected <video> off its hardware overlay and defeats
   SW_SECURE_DECODE screen-capture protection. Remove the grain while the
   (opaque, fullscreen) player is open — it's invisible over the player anyway. */
body.tpl-locked .tpl-noise,
body.tpl-locked .tpl-hero-glow,
body.tpl-locked .tpld-glow { display: none !important; }

/* ── nav ──────────────────────────────────────────────── */
.tpl-nav {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 28px;
	padding: 16px clamp(16px, 4vw, 56px);
	transition: background .3s ease, backdrop-filter .3s ease;
}
.tpl-nav.is-scrolled { background: rgba(10,10,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tpl-brand {
	font-family: var(--disp); font-weight: 700; font-size: 28px; letter-spacing: .02em;
	color: #fff; text-decoration: none; line-height: 1; text-transform: uppercase;
}
.tpl-brand-plus {
	background: linear-gradient(120deg, var(--a1), var(--a2));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	font-weight: 700; margin-left: 1px;
}
.tpl-links { display: flex; gap: 6px; }
.tpl-link {
	font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--muted);
	background: none; border: 0; padding: 8px 12px; cursor: pointer; border-radius: 6px; transition: color .15s, background .15s;
}
.tpl-link:hover { color: #fff; }
.tpl-link.is-active { color: #fff; }
.tpl-nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tpl-search-btn { background: none; border: 0; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.tpl-search-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.tpl-search-input {
	width: 230px; background: rgba(0,0,0,.6); border: 1px solid var(--line); color: #fff;
	padding: 9px 12px; border-radius: 6px; font-family: var(--ui); font-size: 14px; outline: none;
}
.tpl-search-input:focus { border-color: rgba(255,255,255,.4); }
.tpl-avatar {
	width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center;
	font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .04em;
	background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff;
}

/* ── billboard ────────────────────────────────────────── */
.tpl-hero { position: relative; height: min(86vh, 760px); margin-top: -74px; z-index: 2; }
.tpl-hero-bg {
	position: absolute; inset: 0; background-size: cover; background-position: center top;
	transition: opacity .8s ease; opacity: 1;
}
.tpl-hero-bg.is-fading { opacity: 0; }
.tpl-hero-scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(to top, var(--ink) 2%, rgba(10,10,12,.2) 38%, transparent 62%),
		linear-gradient(to right, rgba(10,10,12,.92) 0%, rgba(10,10,12,.45) 38%, transparent 70%);
}
.tpl-hero-inner {
	position: absolute; left: clamp(16px, 4vw, 56px); bottom: 16%; z-index: 3;
	max-width: min(620px, 80%);
}
.tpl-hero-badge {
	display: inline-flex; align-items: center; gap: 11px; font-family: var(--label);
	font-size: 16px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
	color: #fff; margin-bottom: 16px;
}
.tpl-hero-badge i { width: 32px; height: 3px; border-radius: 2px; display: inline-block; background: linear-gradient(90deg, var(--a1), var(--a2)); }

/* home hero: accent bloom + cinematic reveal */
.tpl-hero-glow {
	position: absolute; left: 0; bottom: 0; width: 66vw; height: 70vh; z-index: 1; pointer-events: none;
	background: radial-gradient(40% 50% at 22% 78%, var(--accent), transparent 66%);
	opacity: .15; filter: blur(55px); mix-blend-mode: screen; transition: background .8s ease;
}
@keyframes tpld-rise { to { opacity: 1; transform: none; } }

/* standalone (no theme header/footer) */
body.tpl-standalone { margin: 0 !important; padding: 0 !important; background: #0a0a0c; }
body.tpl-standalone .tpl { margin: 0; width: 100%; }

/* view switch fade (Series / Films / Live / My List / Home) */
.tpl-faded { animation: tpl-viewfade .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tpl-viewfade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tpl-hero-logo { max-width: 460px; max-height: 200px; margin-bottom: 18px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.6)); }
.tpl-hero-title {
	font-family: var(--disp); font-weight: 700; text-transform: uppercase;
	font-size: clamp(38px, 6vw, 78px); line-height: .96; letter-spacing: -.01em;
	margin: 0 0 16px; text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.tpl-hero-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text); margin-bottom: 14px; flex-wrap: wrap; }
.tpl-hero-meta .tpl-pill { font-family: var(--label); letter-spacing: .05em; border: 1px solid var(--line); padding: 2px 8px 0; border-radius: 3px; font-size: 14px; color: #cfcfd6; }
.tpl-hero-meta .tpl-type { font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--a2); font-size: 16px; }
.tpl-hero-syn { font-size: 16px; line-height: 1.5; color: #e7e7ea; margin: 0 0 22px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 540px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tpl-hero-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 0;
	font-family: var(--ui); font-weight: 700; font-size: 16px; padding: 13px 30px; border-radius: 8px; letter-spacing: .01em;
	text-decoration: none; transition: transform .16s cubic-bezier(.2,.7,.2,1), background .16s ease, box-shadow .16s ease, color .16s, border-color .16s;
}
.tpl-btn svg { width: 21px; height: 21px; transition: transform .2s ease; }
.tpl-btn-play { background: #fff; color: #0a0a0c; box-shadow: 0 6px 20px -6px rgba(255,255,255,.3); }
.tpl-btn-play:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(255,255,255,.5); }
.tpl-btn-play:active { transform: translateY(0); }
.tpl-btn-play:hover svg { transform: scale(1.18); }
.tpl-btn-info { background: rgba(26,26,34,.55); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.tpl-btn-info:hover { background: rgba(48,48,60,.7); border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.tpl-hero-dots { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 13%; z-index: 3; display: flex; align-items: center; gap: 9px; }
.tpl-dot { width: 26px; height: 3px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.26); cursor: pointer; transition: width .35s cubic-bezier(.2,.7,.2,1), background .35s ease; }
.tpl-dot:hover { background: rgba(255,255,255,.5); }
.tpl-dot.is-on { width: 44px; background: linear-gradient(90deg, var(--a1), var(--a2)); }

/* ── rows ─────────────────────────────────────────────── */
.tpl-rows { position: relative; z-index: 4; margin-top: -46px; padding-top: 4px; padding-bottom: 40px; }
.tpl-row { margin: 0 0 34px; }
.tpl-row-title {
	display: flex; align-items: center; gap: 11px;
	font-family: var(--label); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
	font-size: 26px; line-height: 1; color: #ededf2; margin: 0 0 10px; padding: 0 clamp(16px, 4vw, 56px);
}
.tpl-row-wrap { position: relative; }
.tpl-track {
	display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
	padding: 14px clamp(16px, 4vw, 56px) 16px; scrollbar-width: none;
	scroll-snap-type: x proximity; scroll-padding-left: clamp(16px, 4vw, 56px);
}
.tpl-card { scroll-snap-align: start; }
.tpl-track::-webkit-scrollbar { display: none; }
.tpl-arrow {
	position: absolute; top: 0; bottom: 22px; width: clamp(16px, 4vw, 56px); z-index: 6;
	background: linear-gradient(to right, rgba(10,10,12,.7), transparent); border: 0; color: #fff;
	font-size: 34px; cursor: pointer; opacity: 0; transition: opacity .2s; display: grid; place-items: center;
}
.tpl-arrow-l { left: 0; }
.tpl-arrow-r { right: 0; background: linear-gradient(to left, rgba(10,10,12,.7), transparent); }
.tpl-row-wrap:hover .tpl-arrow { opacity: 1; }

.tpl-card {
	position: relative; flex: 0 0 auto; width: clamp(132px, 14vw, 184px);
	aspect-ratio: 2 / 3; border: 0; padding: 0; cursor: pointer; background: var(--ink-2);
	border-radius: 7px; overflow: hidden; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s;
}
.tpl-card:hover { transform: scale(1.07); box-shadow: 0 18px 40px -14px rgba(0,0,0,.8); z-index: 5; }
.tpl-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.tpl-card-fallback { font-family: var(--disp); font-size: 15px; color: var(--dim); padding: 10px; text-align: center; text-transform: uppercase; }
.tpl-card-badge {
	position: absolute; top: 8px; left: 8px; font-family: var(--label); font-size: 13px; font-weight: 400;
	letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 4px 8px 2px; border-radius: 3px; line-height: 1;
	background: linear-gradient(120deg, var(--a1), var(--a2)); box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tpl-card-hover {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 10px;
	background: linear-gradient(to top, rgba(0,0,0,.9), transparent); opacity: 0; transition: opacity .2s;
	display: flex; flex-direction: column; gap: 2px; text-align: left; pointer-events: none;
}
.tpl-card:hover .tpl-card-hover { opacity: 1; }
.tpl-card-htitle { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-card-hmeta { font-size: 11px; color: var(--muted); }

/* ── search grid ──────────────────────────────────────── */
.tpl-search-results { padding-top: 6px; }
.tpl-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
	padding: 0 clamp(16px, 4vw, 56px);
}
.tpl-grid .tpl-card { width: 100%; }

.tpl-empty { background: #0a0a0c; color: #ccc; padding: 60px 24px; text-align: center; font-family: 'Archivo', sans-serif; }
.tpl-foot { color: var(--dim); font-size: 13px; text-align: center; padding: 30px 0 50px; border-top: 1px solid var(--line); }

/* ── detail modal ─────────────────────────────────────── */
.tpl-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.tpl-modal.is-open { display: block; }
body.tpl-locked, html.tpl-locked { overflow: hidden !important; height: 100%; overscroll-behavior: none; }
.tpl-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.tpl-modal-card {
	position: relative; z-index: 2; width: min(900px, 94vw); max-height: 92vh; overflow-y: auto;
	margin: 4vh auto; background: var(--ink-2); border-radius: 12px; border: 1px solid var(--line);
	box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); animation: tpl-rise .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes tpl-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tpl-md-hero { position: relative; aspect-ratio: 16 / 8; background-size: cover; background-position: center top; }
.tpl-md-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-2), transparent 60%); }
.tpl-md-x {
	position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer;
}
.tpl-md-x:hover { background: var(--accent); }
.tpl-md-heroinner { position: absolute; left: 40px; bottom: 26px; z-index: 2; right: 40px; }
.tpl-md-title { font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 44px); line-height: 1; margin: 0 0 16px; }
.tpl-md-logo { max-height: 130px; max-width: 60%; margin-bottom: 16px; }
.tpl-md-btns { display: flex; gap: 10px; }
.tpl-md-body { padding: 8px 40px 36px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; }
.tpl-md-meta { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 14px; flex-wrap: wrap; }
.tpl-md-meta .tpl-match { color: var(--ok); font-weight: 700; }
.tpl-md-meta .tpl-pill { font-family: var(--label); letter-spacing: .05em; border: 1px solid var(--line); padding: 2px 8px 0; border-radius: 3px; font-size: 14px; color: #cfcfd6; }
.tpl-md-syn { font-size: 15px; line-height: 1.6; color: #e3e3e7; }
.tpl-md-side { font-size: 13px; line-height: 1.7; }
.tpl-md-side .k { color: var(--dim); }
.tpl-md-side a, .tpl-md-side span.v { color: #d9d9df; }
.tpl-md-section-h { font-family: var(--disp); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; color: #eee; padding: 0 40px; margin: 8px 0 14px; }

/* detail tabs */
.tpl-md-tabs { display: flex; gap: 26px; padding: 8px 40px 0; border-bottom: 1px solid var(--line); }
.tpl-md-tab {
	background: none; border: 0; cursor: pointer; font-family: var(--disp); text-transform: uppercase;
	letter-spacing: .05em; font-size: 15px; color: var(--muted); padding: 12px 2px 15px;
	border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.tpl-md-tab:hover { color: #fff; }
.tpl-md-tab.is-active { color: #fff; border-bottom-color: var(--accent); }
.tpl-md-panels { padding-top: 8px; }
.tpl-md-panel { display: none; }
.tpl-md-panel.is-active { display: block; animation: tpl-fade .25s ease; }
@keyframes tpl-fade { from { opacity: 0; } to { opacity: 1; } }

.tpl-extras { padding: 18px 40px 40px; }
.tpl-extra { display: inline-block; width: 340px; max-width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.tpl-extra-still { display: grid; place-items: center; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border-radius: 8px; border: 1px solid var(--line); }
.tpl-extra-play { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.5); border: 2px solid #fff; color: #fff; display: grid; place-items: center; font-size: 18px; }
.tpl-extra:hover .tpl-extra-play { background: var(--accent); border-color: var(--accent); }
.tpl-extra-label { display: block; margin-top: 9px; color: #ddd; font-size: 14px; font-weight: 500; }

.tpl-eps { padding: 0 40px 30px; display: flex; flex-direction: column; gap: 10px; }
.tpl-ep-card {
	display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center;
	background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; transition: background .15s;
}
.tpl-ep-card:hover { background: #20202a; }
.tpl-ep-still { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 5px; background-color: #000; position: relative; }
.tpl-ep-still::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .15s; font-size: 22px; }
.tpl-ep-card:hover .tpl-ep-still::after { opacity: 1; }
.tpl-ep-no { font-family: var(--disp); font-size: 20px; color: var(--muted); padding: 0 4px; }
.tpl-ep-main .t { font-weight: 600; font-size: 15px; }
.tpl-ep-main .s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tpl-ep-rt { font-size: 13px; color: var(--dim); }

.tpl-more { padding: 0 40px 40px; }
.tpl-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }

.tpl-iconbtn {
	position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.08); backdrop-filter: blur(10px); color: #fff; cursor: pointer; line-height: 0;
	display: grid; place-items: center; transition: transform .16s cubic-bezier(.2,.7,.2,1), border-color .16s, background .16s, box-shadow .16s;
}
.tpl-iconbtn svg { width: 22px; height: 22px; display: block; }
.tpl-iconbtn:hover { border-color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 26px -10px rgba(0,0,0,.7); }
.tpl-iconbtn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tpl-iconbtn[data-add]::after {
	content: 'My List'; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%) translateY(4px);
	font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; white-space: nowrap;
	background: rgba(0,0,0,.82); padding: 4px 9px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.tpl-iconbtn[data-add].is-on::after { content: 'Added'; }
.tpl-iconbtn[data-add]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── player ───────────────────────────────────────────── */
.tpl-player { position: fixed; inset: 0; z-index: 200; background: #000; display: none; }
.tpl-player.is-open { display: block; }
.tpl-player-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.tpl-player-stage video, .tpl-player-stage iframe { width: 100%; height: 100%; border: 0; }

/* legibility scrim behind chrome */
.tpl-pl-scrim {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 18%),
		linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 26%, transparent 46%);
	transition: opacity .25s;
}
.tpl-player.is-idle .tpl-pl-scrim,
.tpl-player.is-idle .tpl-pl-top,
.tpl-player.is-idle .tpl-pl-bottom { opacity: 0; pointer-events: none; }

.tpl-pl-catch { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.tpl-pl-unmute {
	position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: 0;
	background: rgba(0,0,0,.72); color: #fff; border-radius: 999px; padding: 13px 22px;
	font: 700 15px sans-serif; backdrop-filter: blur(4px); transition: background .15s;
}
.tpl-pl-unmute:hover { background: rgba(0,0,0,.88); }
.tpl-pl-unmute[hidden] { display: none; }
.tpl-pl-unmute svg { width: 22px; height: 22px; }
.tpl-player .tpl-pl-top, .tpl-player .tpl-pl-bottom { position: absolute; z-index: 3; left: 0; right: 0; transition: opacity .25s; color: #fff; }
.tpl-pl-icon {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 48px; height: 48px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: .92;
}
.tpl-pl-icon { transition: color .12s ease; }
.tpl-pl-icon:hover { opacity: 1; color: #9a9a9a; }
.tpl-pl-icon svg { width: 30px; height: 30px; display: block; }
.tpl-pl-icon svg[hidden] { display: none !important; }
.tpl-pl-big { width: 60px; height: 60px; }
.tpl-pl-big svg { width: 44px; height: 44px; }
.tpl-pl-skip-n { position: absolute; top: 56%; left: 0; right: 0; transform: translateY(calc(-50% - 0.3px)); font: 700 10px/1 sans-serif; text-align: center; pointer-events: none; }

.tpl-pl-top { top: 0; display: flex; align-items: center; gap: 14px; padding: 18px clamp(16px,3vw,34px); }
.tpl-pl-x svg { width: 24px; height: 24px; }
.tpl-pl-show { font-family: var(--disp, sans-serif); font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.tpl-pl-spacer { flex: 1; }

/* volume — vertical popup */
.tpl-pl-vol { position: relative; display: inline-flex; align-items: center; }
.tpl-pl-vol-pop {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%) scaleY(.6);
	transform-origin: top center; opacity: 0; pointer-events: none;
	background: rgba(20,20,22,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
	padding: 14px 10px; margin-top: 6px;
	transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.tpl-pl-vol:hover .tpl-pl-vol-pop, .tpl-pl-vol:focus-within .tpl-pl-vol-pop {
	opacity: 1; pointer-events: auto; transform: translateX(-50%) scaleY(1);
}
.tpl-pl-vol-slider {
	-webkit-appearance: none; appearance: none; writing-mode: vertical-lr; direction: rtl;
	width: 6px; height: 96px; border-radius: 6px; cursor: pointer; display: block; margin: 0 auto;
	background: linear-gradient(to top, #fff 0%, #fff var(--v,100%), rgba(255,255,255,.28) var(--v,100%), rgba(255,255,255,.28) 100%);
}
.tpl-pl-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.tpl-pl-vol-slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* scrub seek tooltip */
.tpl-pl-scrubwrap { position: relative; }
.tpl-pl-seektip {
	position: absolute; bottom: 22px; transform: translateX(-50%); z-index: 4;
	background: rgba(0,0,0,.85); color: #fff; font: 700 12px/1 sans-serif; padding: 6px 9px;
	border-radius: 6px; pointer-events: none; white-space: nowrap;
}
.tpl-pl-seektip[hidden] { display: none; }

.tpl-pl-bottom { bottom: 0; padding: 0 clamp(16px,3vw,40px) clamp(14px,2.4vw,26px); }

/* LIVE badge */
.tpl-player .tpl-pl-live {
	-webkit-appearance: none; appearance: none; box-shadow: none; outline: 0; width: auto; height: auto; min-height: 0;
	display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; cursor: pointer; border: 0; text-decoration: none;
	background: #e0142d; color: #fff;
	font-family: sans-serif; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
	padding: 7px 12px; border-radius: 4px; transition: background .15s;
}
.tpl-player .tpl-pl-live:hover { background: #c5122a; color: #fff; }
.tpl-player .tpl-pl-live[hidden] { display: none; }
.tpl-pl-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: 0 0 auto; animation: tpl-live-pulse 1.4s ease-in-out infinite; }
@keyframes tpl-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* rewound into DVR → greyed "GO LIVE" */
.tpl-player.live-behind .tpl-pl-live { background: #4a4a4a; }
.tpl-player.live-behind .tpl-pl-live:hover { background: #5a5a5a; }
.tpl-player.live-behind .tpl-pl-live-dot { background: #c9c9c9; animation: none; }

/* live timeline: red fill, non-interactive thumb hidden until DVR */
.tpl-player.is-live .tpl-pl-scrub { background: linear-gradient(to right, #e0142d 0%, #e0142d var(--p,0%), rgba(255,255,255,.28) var(--p,0%), rgba(255,255,255,.28) 100%); }
.tpl-player.is-live .tpl-pl-scrub::-webkit-slider-thumb { background: #e0142d; box-shadow: 0 0 0 4px rgba(224,20,45,.3); }
.tpl-player.is-live .tpl-pl-scrub::-moz-range-thumb { background: #e0142d; }
.tpl-player.live-noend #tpl-pl-timesep, .tpl-player.live-noend #tpl-pl-dur { display: none; }
.tpl-pl-title { font-family: var(--disp, sans-serif); font-weight: 800; font-size: clamp(28px, 4vw, 46px); line-height: 1.04; margin: 0 0 6px; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.tpl-pl-sub { font-weight: 600; font-size: clamp(14px, 1.4vw, 18px); color: #d8d8d8; margin-bottom: 18px; }
.tpl-pl-sub:empty { display: none; }

.tpl-pl-scrubwrap { padding: 6px 0; }
.tpl-pl-scrub {
	-webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer;
	background: linear-gradient(to right, #fff 0%, #fff var(--p,0%), rgba(255,255,255,.28) var(--p,0%), rgba(255,255,255,.28) 100%);
}
.tpl-pl-scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.tpl-pl-scrub::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }
.tpl-pl-time { font: 700 13px/1 sans-serif; letter-spacing: .02em; margin-top: 9px; color: #fff; }

.tpl-pl-ctrls { display: flex; align-items: center; margin-top: 16px; }
.tpl-pl-grp { display: flex; align-items: center; gap: 10px; flex: 1; }
.tpl-pl-center { flex: 0 0 auto; justify-content: center; gap: 26px; }
.tpl-pl-right { justify-content: flex-end; gap: 16px; }
.tpl-pl-more {
	border: 0; cursor: pointer; background: #2a2a2a; color: #fff;
	font: 800 12px/1 sans-serif; letter-spacing: .12em; text-transform: uppercase;
	padding: 13px 22px; border-radius: 999px;
}
.tpl-pl-more:hover { background: #383838; }

/* quality selector */
.tpl-pl-q-wrap { position: relative; display: inline-flex; }
.tpl-pl-qmenu {
	position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 6;
	background: rgba(20,20,22,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
	padding: 6px; min-width: 132px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.tpl-pl-qmenu[hidden] { display: none; }
.tpl-pl-qopt {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
	background: none; border: 0; color: #fff; cursor: pointer; text-align: left;
	font: 600 13px/1 sans-serif; padding: 9px 12px; border-radius: 7px;
}
.tpl-pl-qopt:hover { background: rgba(255,255,255,.08); }
.tpl-pl-qopt.is-active { font-weight: 800; }
.tpl-pl-qopt.is-active::after { content: "✓"; font-size: 12px; }

.tpl-player.is-embed .tpl-pl-scrubwrap,
.tpl-player.is-embed .tpl-pl-time,
.tpl-player.is-embed .tpl-pl-center,
.tpl-player.is-embed #tpl-pl-mute { display: none; }

/* Native Kinescope embed: Kinescope's own player owns the in-video controls
   (and the hardware-DRM screen-capture block). We keep only our outer chrome —
   title, LIVE badge, close, episodes — layered over the top. */
.tpl-player.is-native .tpl-pl-catch,
.tpl-player.is-native #tpl-pl-info,
.tpl-player.is-native #tpl-pl-cc,
.tpl-player.is-native #tpl-pl-fs,
.tpl-player.is-native .tpl-pl-q-wrap,
.tpl-player.is-native .tpl-pl-vol,
.tpl-player.is-native .tpl-pl-unmute,
.tpl-player.is-native .tpl-pl-cap { display: none; }
/* let clicks fall through our chrome to Kinescope's controls, except on our own
   buttons/labels; lift our title block clear of Kinescope's bottom control bar */
.tpl-player.is-native .tpl-pl-top,
.tpl-player.is-native .tpl-pl-bottom { pointer-events: none; }
.tpl-player.is-native .tpl-pl-top > *,
.tpl-player.is-native .tpl-pl-bottom > * { pointer-events: auto; }
.tpl-player.is-native .tpl-pl-spacer { pointer-events: none; }
.tpl-player.is-native .tpl-pl-bottom { padding-bottom: 92px; }

.tpl-player:not(.has-eps) .tpl-pl-more { display: none; }
.tpl-player:not(.has-cc) #tpl-pl-cc { display: none; }

/* live/auto captions overlay */
.tpl-pl-cap {
	position: absolute; left: 0; right: 0; bottom: 132px; z-index: 3;
	text-align: center; pointer-events: none; padding: 0 8%;
	transition: bottom .2s;
}
.tpl-player.is-idle .tpl-pl-cap { bottom: 48px; }
.tpl-pl-cap[hidden] { display: none; }
.tpl-pl-cap span {
	background: rgba(0,0,0,.78); color: #fff;
	font: 600 clamp(15px,2vw,22px)/1.4 sans-serif; padding: 4px 10px; border-radius: 4px;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#tpl-pl-cc.is-active { opacity: 1; }
#tpl-pl-cc.is-active::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: #fff; border-radius: 2px; }

.tpl-pl-eps {
	position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
	background: rgba(12,12,14,.97); border-left: 1px solid rgba(255,255,255,.08);
	display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.tpl-pl-eps[hidden] { display: none; }
.tpl-pl-eps-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-family: var(--disp,sans-serif); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.tpl-pl-eps-list { overflow-y: auto; padding: 8px; }
.tpl-pl-ep { display: flex; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; align-items: center; color: #fff; text-align: left; width: 100%; background: none; border: 0; }
.tpl-pl-ep:hover { background: rgba(255,255,255,.07); }
.tpl-pl-ep.is-current { background: rgba(255,255,255,.1); }
.tpl-pl-ep-still { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: #222; flex: 0 0 auto; }
.tpl-pl-ep-meta { min-width: 0; }
.tpl-pl-ep-no { font: 700 12px/1 sans-serif; color: #9a9a9a; margin-bottom: 4px; }
.tpl-pl-ep-ttl { font-weight: 700; font-size: 14px; }
.tpl-pl-ep-rt { font-size: 12px; color: #9a9a9a; margin-top: 3px; }

.tpl-pl-gate { color: #ddd; text-align: center; font-family: sans-serif; max-width: 420px; padding: 24px; }
.tpl-pl-gate h3 { font-family: var(--disp,sans-serif); font-weight: 800; margin: 0 0 8px; }

/* ── full-page detail (single title) ──────────────────── */
.tpld { min-height: 100vh; padding-bottom: 70px; position: relative; }
.tpld-back {
	position: absolute; top: 20px; left: clamp(16px, 4vw, 56px); z-index: 10;
	font-family: var(--disp); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
	font-size: 18px; color: #fff; text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.tpld-back:hover { opacity: .8; }
.tpld-hero { position: relative; height: min(82vh, 720px); background-size: cover; background-position: center top; }
.tpld-hero-scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(to top, var(--ink) 1%, rgba(10,10,12,.2) 40%, transparent 64%),
		linear-gradient(to right, rgba(10,10,12,.9) 0%, rgba(10,10,12,.4) 40%, transparent 72%);
}
.tpld-hero-inner { position: absolute; left: clamp(16px, 4vw, 56px); bottom: 12%; z-index: 3; max-width: min(640px, 84%); }
.tpld-logo { max-width: 460px; max-height: 200px; margin-bottom: 16px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.6)); }
.tpld-title { font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6.5vw, 84px); line-height: .94; margin: 0 0 16px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.tpld-meta { display: flex; align-items: center; gap: 13px; font-size: 14px; color: var(--text); margin-bottom: 14px; flex-wrap: wrap; }
.tpld-meta .tpl-type { font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--a2); font-size: 16px; }
.tpld-syn { font-size: 16px; line-height: 1.5; color: #e7e7ea; margin: 0 0 22px; max-width: 560px;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tpld-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tpld-body { position: relative; z-index: 4; max-width: 1100px; margin: -5vh 0 0; }
/* keep tabs + every panel's content aligned to the hero's left inset */
.tpld .tpl-md-tabs,
.tpld .tpl-eps,
.tpld .tpl-md-body,
.tpld .tpl-more,
.tpld .tpl-extras { padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }
.tpld .tpl-md-body { grid-template-columns: minmax(0, 620px) 1fr; }

/* detail polish: atmosphere, accent theming, cinematic load-in */
.tpld-glow {
	position: absolute; left: 0; bottom: 0; width: 70vw; height: 72vh; z-index: 1; pointer-events: none;
	background: radial-gradient(42% 52% at 24% 76%, var(--accent), transparent 68%);
	opacity: .2; filter: blur(50px); mix-blend-mode: screen; animation: tpld-breathe 9s ease-in-out infinite;
}
@keyframes tpld-breathe { 0%, 100% { opacity: .14; } 50% { opacity: .26; } }

.tpld-kicker { display: inline-flex; align-items: center; gap: 11px; font-family: var(--label); font-weight: 400;
	text-transform: uppercase; letter-spacing: .14em; font-size: 16px; color: #fff; margin-bottom: 16px; }
.tpld-kicker i { width: 32px; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a2)); display: inline-block; border-radius: 2px; }

.tpld-back-arrow { display: inline-block; transition: transform .2s ease; }
.tpld-back:hover .tpld-back-arrow { transform: translateX(-5px); }

.tpld-title { letter-spacing: -.015em; }

/* staggered cinematic reveal */
.tpld-hero { animation: tpld-herofade 1.2s ease both; }
@keyframes tpld-herofade { from { opacity: .35; } to { opacity: 1; } }
.tpld-hero-inner > * { opacity: 0; transform: translateY(22px); animation: tpld-rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.tpld-hero-inner > *:nth-child(1) { animation-delay: .08s; }
.tpld-hero-inner > *:nth-child(2) { animation-delay: .18s; }
.tpld-hero-inner > *:nth-child(3) { animation-delay: .28s; }
.tpld-hero-inner > *:nth-child(4) { animation-delay: .38s; }
.tpld-hero-inner > *:nth-child(5) { animation-delay: .48s; }
@keyframes tpld-rise { to { opacity: 1; transform: none; } }

/* micro-interactions */
.tpld-btns .tpl-btn-play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px -10px rgba(255,255,255,.35); }
.tpld-btns .tpl-iconbtn { transition: transform .15s ease, border-color .15s, background .15s; }
.tpld-btns .tpl-iconbtn:hover { transform: translateY(-2px); }
.tpld .tpl-md-tabs { gap: 30px; }
.tpld .tpl-md-panel.is-active { animation: tpld-rise .5s cubic-bezier(.2,.7,.2,1) forwards; }
.tpld .tpl-ep-card { transition: background .15s, transform .18s ease, box-shadow .18s ease, border-color .15s; }
.tpld .tpl-ep-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.8); border-color: rgba(255,255,255,.2); }

@media (prefers-reduced-motion: reduce) {
	.tpld-hero, .tpld-hero-inner > *, .tpld-glow, .tpld .tpl-md-panel.is-active { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 760px) {
	.tpl-links { display: none; }
	.tpl-hero { height: 70vh; }
	.tpl-md-body { grid-template-columns: 1fr; }
	.tpl-ep-card { grid-template-columns: 110px 1fr; }
	.tpl-ep-rt { display: none; }
}
