/*
Theme Name: FLVStream
Theme URI: https://gogoanime.win/flv/
Author: FLVStream
Author URI: https://gogoanime.win/flv/
Description: A dark, fast anime streaming theme with a black-and-lime layout, poster grids, multi-server episode player, schedule and local bookmarks. Works with the FLVStream Suite plugin.
Version: 1.4.21
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flvstream
Tags: dark, two-columns, right-sidebar, custom-menu, featured-images
*/

/* ============ Base ============ */
:root{
	--bg:#070807;
	--bg-soft:#0c0d08;
	--panel:#101109;
	--panel-2:#181b0e;
	--line:#22261a;
	--text:#f2f4ea;
	--muted:#9aa48d;
	--accent:#caff09;
	--accent-dark:#9fd400;
	--orange:#a9c14b;
	--star:#ffc107;
	--radius:8px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
	margin:0;
	background:var(--bg);
	color:var(--text);
	font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
	font-size:15px;
	line-height:1.55;
}
a{color:var(--accent);text-decoration:none}
a:hover{color:#daff53}
img{max-width:100%;height:auto;display:block}
video,iframe{max-width:100%}
video{height:auto}
h1,h2,h3{line-height:1.25;margin:0 0 .5em}
.container{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:0 14px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:#0a0c06;padding:8px 14px;z-index:200}
.skip-link:focus{left:8px;top:8px}
.empty-note{color:var(--muted)}
.btn{
	display:inline-block;background:var(--accent);color:#0a0c06;border:0;border-radius:var(--radius);
	padding:9px 18px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;
}
.btn:hover{background:var(--accent-dark);color:#0a0c06}
.btn-ghost{background:transparent;border:1px solid var(--accent);color:var(--accent)}
.btn-ghost:hover{background:rgba(202,255,9,.12);color:#daff53}
.btn-ghost.in-list{background:var(--accent);color:#0a0c06}

/* ============ Header ============ */
.site-header{
	background:var(--bg-soft);
	border-bottom:2px solid var(--accent);
	position:sticky;top:0;z-index:90;
}
.header-inner{display:flex;align-items:center;gap:14px;padding:12px 0;position:relative}
.site-logo{flex:none}
.site-logo a{
	font-size:26px;font-weight:800;letter-spacing:.5px;color:#fff;text-transform:uppercase;
}
.site-logo a span{color:var(--accent)}
.site-logo .custom-logo-link{display:inline-flex;align-items:center;line-height:0}
.site-logo img.custom-logo{height:42px;width:auto;max-width:230px;object-fit:contain}
.header-search{flex:1 1 320px;max-width:600px;margin-left:auto;position:relative}
.live-search{position:relative}
.live-search input[type="search"]{
	width:100%;background:var(--panel);border:1px solid var(--line);border-radius:999px;
	color:var(--text);padding:11px 52px 11px 18px;font-size:14px;outline:none;min-width:0;
	-webkit-appearance:none;appearance:none;
}
.live-search input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.live-search input[type="search"]:focus{border-color:var(--accent)}
.live-search button{
	position:absolute;top:50%;right:5px;transform:translateY(-50%);
	width:34px;height:34px;padding:0;border:0;border-radius:50%;
	background:var(--accent);color:#0a0c06;font-size:16px;line-height:1;cursor:pointer;
	display:flex;align-items:center;justify-content:center;
}
.live-search button:hover{background:var(--accent-dark)}
.header-shuffle{
	flex:none;width:42px;height:42px;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	background:var(--panel);border:1px solid var(--line);color:var(--text);
	font-size:19px;line-height:1;text-decoration:none;
}
.header-shuffle:hover{border-color:var(--accent);color:var(--accent)}
/* ============ Quick Access search modal ============
   Opened from the header search or Ctrl+S (flv.js); the dimmed
   root is the backdrop, the panel is centred near the top. The
   default list inside is server-rendered (top anime by views);
   typing swaps in live results from the flv_live_search action. */
body.qs-open{overflow:hidden}
.quick-search{
	position:fixed;inset:0;z-index:120;overflow-y:auto;
	background:rgba(4,5,3,.82);
	-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
	animation:qs-fade .18s ease;
}
.quick-search[hidden]{display:none}
.qs-panel{
	width:min(720px,calc(100% - 24px));margin:10vh auto 40px;
	background:var(--panel);border:1px solid var(--line);border-radius:12px;
	box-shadow:0 24px 60px rgba(0,0,0,.6);overflow:hidden;
	animation:qs-in .22s ease;
}
@keyframes qs-fade{from{opacity:0}to{opacity:1}}
@keyframes qs-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
	.quick-search,.qs-panel{animation:none}
}
.qs-head{
	display:flex;align-items:center;gap:12px;
	padding:16px 20px 4px;
}
.qs-title{
	font-size:13px;font-weight:700;letter-spacing:2.5px;
	text-transform:uppercase;color:var(--muted);
}
.qs-keys{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.qs-keys kbd{
	background:var(--panel-2);border:1px solid var(--line);border-bottom-width:2px;
	border-radius:5px;padding:2px 7px;font-family:inherit;font-size:11px;
	font-weight:700;letter-spacing:.5px;color:var(--text);
}
.qs-close{
	margin-left:auto;flex:none;width:34px;height:34px;padding:0;
	display:flex;align-items:center;justify-content:center;
	background:var(--panel-2);border:1px solid var(--line);border-radius:8px;
	color:var(--text);font-size:14px;line-height:1;cursor:pointer;
}
.qs-close:hover{border-color:var(--accent);color:var(--accent)}
.qs-tabs{padding:6px 20px 0;border-bottom:1px solid var(--line)}
.qs-tab{
	display:inline-block;padding:8px 4px 10px;font-size:13px;font-weight:700;
	letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);
	border-bottom:2px solid var(--accent);margin-bottom:-1px;
}
.qs-field{padding:14px 20px 4px}
.qs-field input[type="search"]{
	width:100%;background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;
	color:var(--text);padding:12px 14px;font-size:15px;outline:none;min-width:0;
	-webkit-appearance:none;appearance:none;
}
.qs-field input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.qs-field input[type="search"]:focus{border-color:var(--accent)}
.qs-list{
	max-height:46vh;overflow-y:auto;padding:8px 10px 12px;
	scrollbar-width:thin;scrollbar-color:var(--accent) transparent;
}
.qs-list::-webkit-scrollbar{width:5px}
.qs-list::-webkit-scrollbar-track{background:transparent}
.qs-list::-webkit-scrollbar-thumb{background:var(--accent);border-radius:99px}
.qs-row{
	display:flex;align-items:center;gap:14px;
	padding:6px 10px;border-radius:8px;color:var(--text);
}
.qs-row:hover{background:var(--panel-2);color:var(--text)}
.qs-num{
	flex:none;min-width:26px;color:var(--accent);
	font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;
}
.qs-poster{flex:none;width:40px;height:56px;object-fit:cover;border-radius:5px}
.qs-info{display:flex;flex-direction:column;gap:1px;min-width:0}
.qs-name{
	font-size:14.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.qs-row:hover .qs-name{color:var(--accent)}
.qs-meta{font-size:12.5px;color:var(--muted)}
.qs-chev{flex:none;margin-left:auto;color:var(--muted);font-size:20px;line-height:1}
.qs-none{padding:18px 12px;color:var(--muted);font-size:14px;text-align:center}
@media (max-width:720px){
	.qs-panel{margin:12px auto 24px}
	.qs-poster{width:34px;height:48px}
	.qs-name{font-size:13.5px}
	.qs-row{gap:10px}
}
.menu-toggle{
	display:none;background:var(--panel);border:1px solid var(--line);color:var(--text);
	border-radius:var(--radius);font-size:18px;padding:6px 12px;cursor:pointer;
}
.primary-nav{flex:none}
.primary-nav .nav-list{
	display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;
}
.primary-nav .nav-list li{position:relative}
.primary-nav .nav-list>li>a{
	display:block;padding:10px 13px;color:var(--text);font-weight:700;font-size:15px;
	letter-spacing:.2px;border-radius:6px;white-space:nowrap;
}
.primary-nav .nav-list>li>a:hover{color:var(--accent)}
.primary-nav .nav-list>li.current-menu-item>a,
.primary-nav .nav-list>li.current-menu-ancestor>a,
.primary-nav .nav-list>li.current-menu-parent>a{color:var(--accent)}
.primary-nav .nav-list>li.menu-item-has-children>a::after{
	content:"\25BE";font-size:10px;color:var(--muted);margin-left:6px;vertical-align:2px;
}
.primary-nav .nav-list>li.menu-item-has-children>a:hover::after{color:var(--accent)}
.primary-nav .sub-menu{
	list-style:none;margin:0;padding:6px;position:absolute;top:100%;left:0;z-index:60;
	min-width:220px;background:var(--panel-2);border:1px solid var(--line);
	border-radius:var(--radius);box-shadow:0 12px 28px rgba(0,0,0,.45);
	opacity:0;visibility:hidden;transform:translateY(4px);
	transition:opacity .15s,transform .15s,visibility .15s;
}
/* Invisible bridge over the bar's bottom padding, so moving the mouse
   from a top-level link down into its dropdown never loses hover. */
.primary-nav .nav-list>li>.sub-menu::before{
	content:"";position:absolute;left:0;right:0;top:-16px;height:16px;
}
.primary-nav .nav-list li:hover>.sub-menu,
.primary-nav .nav-list li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.primary-nav .sub-menu li a{
	display:flex;align-items:center;justify-content:space-between;gap:14px;
	padding:8px 12px;font-size:13.5px;font-weight:600;color:var(--text);
	border-radius:5px;white-space:nowrap;
}
.primary-nav .sub-menu li a:hover{background:var(--panel);color:var(--accent)}
.primary-nav .sub-menu li.current-menu-item>a{color:var(--accent)}
.primary-nav .sub-menu>li.menu-item-has-children>a::after{
	content:"\25B8";font-size:10px;color:var(--muted);
}
.primary-nav .sub-menu>li.menu-item-has-children>a:hover::after{color:var(--accent)}
/* Second level: flyout to the right of the dropdown item. */
.primary-nav .sub-menu .sub-menu{
	top:-6px;left:100%;transform:translateX(6px);
}
.primary-nav .sub-menu li:hover>.sub-menu,
.primary-nav .sub-menu li:focus-within>.sub-menu{transform:translateX(0)}

/* ============ Browse mega menu ============ */
/* The panel replaces Browse's default sub-menu (its wp-admin
   children are removed by flvt_browse_mega_menu(), so the walker
   prints none). The Browse <li> is position:static and the panel
   anchors to .header-inner instead: centred under the whole bar,
   hanging from its bottom edge. Horizontal centring uses the
   `translate` property (not `transform`), so the reveal transition
   can animate the same property without a transform clash. */
.primary-nav .nav-list>li.flv-mega-item{position:static}
.mega-panel{
	position:absolute;top:100%;left:50%;translate:-50% 6px;z-index:80;
	width:min(1000px,94vw);
	background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius);
	box-shadow:0 18px 40px rgba(0,0,0,.5);padding:20px 22px 0;
	opacity:0;visibility:hidden;
	transition:opacity .15s,translate .15s,visibility .15s;
}
/* Invisible bridge over the gap between the link and the panel,
   so the mouse never loses hover crossing the bar's padding. */
.mega-panel::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px}
.primary-nav .nav-list>li.flv-mega-item:hover>.mega-panel,
.primary-nav .nav-list>li.flv-mega-item:focus-within>.mega-panel{
	opacity:1;visibility:visible;translate:-50% 0;
}
.mega-cols{display:flex;gap:38px}
.mega-col{flex:none}
.mega-col-genres{flex:1 1 auto;min-width:0}
.mega-heading{
	display:block;font-size:12px;font-weight:800;letter-spacing:1.4px;
	text-transform:uppercase;color:var(--muted);margin-bottom:10px;
}
.mega-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.mega-links a{
	display:block;padding:6px 8px;margin:0 -8px;font-size:14px;font-weight:600;
	color:var(--text);border-radius:5px;white-space:nowrap;
}
.mega-links a:hover{background:var(--panel);color:var(--accent)}
.mega-pills{display:flex;flex-wrap:wrap;gap:7px}
.mega-pills a{
	background:var(--panel);border:1px solid var(--line);color:var(--text);
	padding:4px 12px;border-radius:20px;font-size:13px;font-weight:600;
}
.mega-pills a:hover{background:var(--accent);border-color:var(--accent);color:#0a0c06}
.mega-foot{
	display:flex;gap:22px;border-top:1px solid var(--line);
	margin-top:18px;padding:12px 0 14px;
}
.mega-foot a{font-size:13.5px;font-weight:700;color:var(--accent)}
.mega-foot a:hover{color:#daff53}

/* ============ Layout ============ */
.site-main{padding:22px 0 34px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:22px;align-items:start}
/* Homepage only (v1.4.16, owner: "widget ko thora close kro"):
   the sidebar sits closer to the content — gap 22px → 10px.
   Scoped to .layout-home and to the widths where the sidebar
   stands beside the content, so the episode watch layout keeps
   the shared 22px and the stacked layouts are untouched. */
@media (min-width:1021px){
	.layout-home{gap:10px}
}
.section{margin-bottom:30px}
.section-head{
	display:flex;align-items:center;justify-content:space-between;gap:12px;
	border-bottom:2px solid var(--line);margin-bottom:14px;padding-bottom:8px;
}
.section-title{font-size:clamp(17px,1.6vw,19px);text-transform:uppercase;letter-spacing:.5px;margin:0}
.section-title::before{content:"";display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:2px;margin-right:9px}
.section-link{font-size:13px;font-weight:600;white-space:nowrap}
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:16px}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--accent)}
.bc-sep{margin:0 7px;color:var(--line)}
.bc-current{color:var(--text)}

/* ============ Hero spotlight slider ============ */
/* The hero breaks out of the 1240px .container to run full-bleed;
   overflow-x:clip on html, body keeps the 100vw trick from ever
   causing a horizontal scrollbar (clip, unlike hidden, keeps the
   sticky header working; the hidden line is the fallback for
   engines without clip). The -22px top margin cancels
   .site-main's top padding so the hero sits flush under the
   header. */
html,body{overflow-x:hidden}
html,body{overflow-x:clip}
.hero{position:relative;width:100vw;margin:-22px 0 28px calc(50% - 50vw);background:var(--panel)}
/* Stage height: viewport-relative like the reference — v1.4.9
   measured reanime.cz at ~70% of the window height and matched it,
   but the owner found that still filled his screen ("hmara slider
   pori screen par nazar aa rha hy"), so v1.4.12 reduces the stage
   to 58vh under a 640px cap: in his .cz screenshot the hero takes
   ~55–60% of the screen with the next section already peeking
   below. v1.4.17 reduces it once more on his order ("slider ko
   50% kro") to 50vh under a 580px cap. It still scales with the
   window instead of a fixed px. v1.4.18: the height is now
   owner-adjustable from the dashboard Theme Settings (Suite
   v1.1.4) — functions.php prints the saved vh after this
   stylesheet; 50vh stays the default and these rules remain
   the no-suite fallback. v1.4.19 (speed): .hero-bg and
   .trend-bg are real <img> elements now — object-fit /
   object-position below replace background-size /
   background-position one-for-one; no other value changed. */
.hero-slides{position:relative;height:50vh;min-height:440px;max-height:580px}
/* Slides stack and crossfade; the first is pre-marked .is-active in
   the markup, so without JS exactly one slide shows (the controls
   stay hidden until flv.js adds .js-hero to the wrapper). */
.hero-slide{
	position:absolute;inset:0;overflow:hidden;opacity:0;visibility:hidden;
	transition:opacity .6s ease,visibility 0s linear .6s;
}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1;transition:opacity .6s ease}
/* The slide's own poster, blown up and heavily blurred, is the backdrop. */
.hero-bg{
	position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;
	filter:blur(26px) brightness(.5) saturate(1.15);transform:scale(1.2);
}
.hero-slide::after{
	content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
	background:
		linear-gradient(to top,var(--bg) 0,rgba(7,8,7,0) 30%),
		linear-gradient(90deg,rgba(7,8,7,.95) 5%,rgba(7,8,7,.78) 46%,rgba(7,8,7,.32) 78%,rgba(7,8,7,.5) 100%);
}
/* Wide slides (v1.4.2): when the anime has an flv_backdrop banner,
   that HD art fills the whole hero — no blur, no scale bleed, and
   no poster card (the template omits it); the text sits over a
   strengthened dark gradient on the left and the usual bottom
   fade, like reanime.cz's slider. */
.hero-slide-wide .hero-bg{
	object-position:center;
	filter:brightness(.82);
	transform:none;
}
.hero-slide-wide::after{
	background:
		linear-gradient(to top,var(--bg) 0,rgba(7,8,7,0) 34%),
		linear-gradient(90deg,rgba(7,8,7,.96) 4%,rgba(7,8,7,.82) 42%,rgba(7,8,7,.38) 72%,rgba(7,8,7,.18) 100%);
}
/* The 58px bottom padding reserves the dots zone along the bottom:
   the centred 450px poster's bottom edge lands 74px above the hero's
   bottom, clear of the indicator dots — the same trick the mobile
   breakpoint uses with its 70px bottom padding. */
.hero-inner{
	position:relative;z-index:2;width:min(1240px,calc(100% - 40px));margin:0 auto;padding:0 14px 58px;
	height:100%;display:flex;align-items:center;gap:36px;
}
.hero-content{max-width:640px;min-width:0}
/* v1.4.4 (reanime.cz-style slide): the title is the visual anchor —
   the reference sets each anime's logo artwork here; with no logo
   source the text title is set big, extra-bold and shadowed to
   carry that role. No rank label, meta chips or genre pills. */
.hero-title{
	font-size:clamp(32px,4vw,57px);font-weight:800;line-height:1.08;margin:0 0 16px;
	text-shadow:0 2px 18px rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.5);
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.hero-desc{
	color:rgba(242,244,234,.92);font-size:16px;line-height:1.6;margin:0 0 24px;max-width:min(620px,90%);
	display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
/* Slanted (parallelogram) action buttons, like the reference: a
   clip-path cuts both side edges. The solid Watch Now needs nothing
   more; Details builds its light outline from two layers — the
   link's own background is the border colour, and a ::before inset
   by 1px with the same slant paints the dark translucent fill
   behind the text (negative z-index inside the link's isolated
   stacking context). On hover the outline layer turns accent. */
.hero-actions .btn{
	border-radius:0;padding:14px 34px;font-size:15.5px;font-weight:800;
	letter-spacing:.5px;text-transform:uppercase;
	clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);
}
.hero-actions .hero-details{
	position:relative;isolation:isolate;border:0;
	background:rgba(242,244,234,.5);color:#fff;
}
.hero-actions .hero-details::before{
	content:"";position:absolute;inset:1px;z-index:-1;background:rgba(10,12,6,.55);
	clip-path:polygon(11px 0,100% 0,calc(100% - 11px) 100%,0 100%);
}
.hero-actions .hero-details:hover{background:var(--accent);color:var(--accent)}
.hero-poster{
	position:relative;flex:none;width:300px;height:450px;margin-left:auto;
	border-radius:10px;overflow:hidden;border:1px solid var(--line);
	background:var(--panel-2);box-shadow:0 18px 44px rgba(0,0,0,.55);
}
.hero-poster img{width:100%;height:100%;object-fit:cover}
/* Controls are inert without JS, so they render only once flv.js
   has added .js-hero (same pattern as the Schedule tabs). Once
   enabled they are ALWAYS visible (v1.4.6): the reference design
   shows the dots and arrows at rest, so the wrapper is stacked
   above the slides as a positioned overlay with opacity/visibility
   pinned to fully visible — no hover state gates them. The wrapper
   itself lets clicks pass through; only the dots/arrows take them. */
.hero-controls{display:none}
.hero.js-hero .hero-controls{
	display:block;position:absolute;inset:0;z-index:6;pointer-events:none;
	opacity:1;visibility:visible;
}
/* Indicators (v1.4.4): plain dots bottom-right — the active one
   stretches into a lime pill, like the reference. The right offset
   (v1.4.10) is the .container content edge at every width: above
   1280px the container is 1240px wide, so the edge sits at
   (100vw - 1240px)/2 + 14px padding = 50% - 606px; below that the
   container is 100% - 40px, so the edge is the 20px gutter + 14px
   padding = 34px, which is also the max() floor. */
.hero-dots{
	position:absolute;z-index:5;right:max(34px,calc(50% - 606px));bottom:24px;
	display:flex;gap:7px;align-items:center;pointer-events:auto;
	opacity:1;visibility:visible;
}
.hero-dot{
	width:8px;height:8px;padding:0;border:0;border-radius:999px;cursor:pointer;
	background:rgba(242,244,234,.35);font-family:inherit;
	transition:width .3s ease,background .2s ease;
}
.hero-dot:hover{background:rgba(242,244,234,.7)}
.hero-dot.is-active{width:26px;background:var(--accent)}
/* Prev/next (v1.4.4): dark square buttons in the upper-right area
   of the hero, both dark (no lime fill), like the reference. */
.hero-arrows{
	position:absolute;z-index:5;right:max(34px,calc(50% - 606px));top:30%;
	transform:translateY(-50%);display:flex;gap:8px;pointer-events:auto;
	opacity:1;visibility:visible;
}
.hero-arrow{
	width:44px;height:44px;border-radius:6px;cursor:pointer;padding:0;
	background:rgba(10,12,6,.55);border:1px solid rgba(242,244,234,.4);color:#fff;
	font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;
	transition:border-color .15s,color .15s;
}
.hero-arrow:hover{border-color:var(--accent);color:var(--accent)}

/* ============ Genre chips ============ */
.genre-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.genre-chips a{
	background:var(--panel);border:1px solid var(--line);color:var(--text);
	padding:5px 13px;border-radius:20px;font-size:13px;font-weight:600;
}
.genre-chips a:hover{background:var(--accent);border-color:var(--accent);color:#0a0c06}

/* ============ Genres page ============ */
.genre-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr));gap:14px;margin-bottom:26px}
.genre-card{
	display:flex;flex-direction:column;gap:2px;background:var(--panel);border:1px solid var(--line);
	border-radius:var(--radius);padding:16px;color:var(--text);transition:transform .15s,border-color .15s;
}
.genre-card:hover{transform:translateY(-3px);border-color:var(--accent);color:var(--text)}
.genre-name{font-size:16px;font-weight:700}
a.genre-name{color:var(--text)}
a.genre-name:hover{color:var(--accent)}
.genre-name::before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);border-radius:2px;margin-right:8px}
.genre-count{font-size:12.5px;color:var(--muted)}
.genre-anime-list{list-style:none;margin:9px 0 0;padding:9px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:3px}
.genre-anime-list a{display:block;font-size:12.5px;line-height:1.45;color:var(--muted)}
.genre-anime-list a:hover{color:var(--accent)}

/* ============ Poster grids + cards ============ */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:16px}
.grid-wide{grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr))}
/* Homepage card grids (v1.4.16, owner correction: "row m 5 kro
   6 ni kro or thora size km kro" — supersedes the v1.4.15 count
   of 6): while the sidebar layout is in force (≥1021px) the two
   homepage grids lay out exactly five cards per row, and with
   10 posts per grid (front-page.php) that is two full rows.
   The tighter 13px gap (the shared .grid keeps 16px) and the
   one-step-smaller card title are the "thora size km" nudge —
   posters keep their 2/3 aspect, only the fit tightens. Below
   1021px no .grid-home rule applies, so the stacked/tablet/
   mobile grids keep the shared .grid auto-fill behaviour. */
@media (min-width:1021px){
	.grid-home{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
	.grid-home .card-title{font-size:13.5px}
}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .15s,border-color .15s}
.card:hover{transform:translateY(-3px);border-color:var(--accent)}
.card a{color:var(--text);display:block}
.card-poster{position:relative;aspect-ratio:2/3;background:var(--panel-2)}
.card-poster img{width:100%;height:100%;object-fit:cover}
.poster-fallback{
	position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
	font-size:44px;color:var(--line);
}
.card-score{
	position:absolute;top:7px;left:7px;background:rgba(4,6,2,.85);color:var(--star);
	font-size:12px;font-weight:700;padding:2px 7px;border-radius:4px;
}
.card-type{
	position:absolute;top:7px;right:7px;background:rgba(4,6,2,.85);color:var(--text);
	font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px;text-transform:uppercase;
}
.card-ep-badge{
	position:absolute;top:7px;left:7px;background:var(--accent);color:#0a0c06;
	font-size:11px;font-weight:800;padding:2px 7px;border-radius:4px;text-transform:uppercase;letter-spacing:.3px;
}
.card-title{font-size:14px;margin:9px 10px 2px;font-weight:600}
.card-meta{font-size:12px;color:var(--muted);margin:0 10px 10px}

/* ============ Sidebar ============ */
.sidebar{display:flex;flex-direction:column;gap:20px}
.widget{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.widget h3{
	font-size:15px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;
	border-bottom:2px solid var(--line);padding-bottom:8px;
}
.widget h3::before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);border-radius:2px;margin-right:8px}
.side-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.side-item{display:flex;gap:10px;align-items:center;color:var(--text)}
.side-item img{width:46px;height:68px;object-fit:cover;border-radius:5px;flex:none}
.side-info{display:flex;flex-direction:column;min-width:0}
.side-title{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-ep{font-size:12px;color:var(--orange);font-weight:700}
.side-meta{font-size:12px;color:var(--muted)}
.side-meta .star{color:var(--star);font-weight:700}
/* Top Trending widget (v1.4.9, rebuilt to the MEASURED reanime.cz
   design — the earlier full-bleed backdrop rows were not it):
   a header row with the title left and real DAY / WEEK / MONTH tabs
   right (three server-rendered lists; flv.js adds .js-tabs to gate
   the panels, without JS all three stay visible, like the Schedule
   tabs). Each row is a ~98px dark card on the solid panel base:
   - the backdrop art occupies only the RIGHT ~58%, full height,
     fading leftwards into the base, very dark + desaturated at
     rest and full colour on hover — same framing, NO zoom;
   - the rank is TWO numerals: a GIANT hollow one (thin muted
     olive-grey outline, transparent fill) sitting INSIDE the row,
     with a smaller SOLID white italic numeral over its
     lower centre;
   - title (white, stays white on hover), a ★ score + type meta
     line, and one dark pill with the real sub / dub / total
     episode counts (icons: captions / mic / list);
   - on hover (or keyboard focus) both numerals turn pale gold, a
     5px pale-gold strip appears on the row's left edge, the art
     brightens to full colour and a translucent play badge fades
     in on the right. */
.trend-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.trend-head h3{margin:0;border-bottom:0;padding-bottom:0;line-height:1.15}
.trend-head h3::before{display:none}
.trend-title-top{display:block;font-size:15px;font-weight:600}
.trend-title-main{display:block;font-size:17px;font-weight:700}
.trend-tabs{display:flex;gap:15px;flex:none}
.trend-tab{
	background:none;border:0;border-bottom:2px solid transparent;border-radius:0;
	padding:2px 1px 4px;font:inherit;font-size:12px;font-weight:700;
	letter-spacing:.8px;text-transform:uppercase;color:var(--muted);cursor:pointer;
	transition:color .2s ease,border-color .2s ease;
}
.trend-tab:hover{color:var(--text)}
.trend-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.trend-tab.is-active{color:var(--accent);border-bottom-color:var(--accent)}
.trend-wrap.js-tabs .trend-panel{display:none}
.trend-wrap.js-tabs .trend-panel.is-active{display:block}
.trend-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.trend-row{
	position:relative;display:flex;align-items:center;gap:4px;height:98px;
	padding:10px 66px 10px 10px;border-radius:10px;overflow:hidden;isolation:isolate;
	background:var(--panel);color:var(--text);
}
/* The row's text colour survives hover: the global a:hover
   colour (0,1,1) outranks .trend-row's own colour (0,1,0) on
   the anchor itself, and the title/meta — which declare no
   colour of their own — inherit the lime. The reference
   design keeps the title white, so the row re-pins its own
   colour in the hover/focus state (0,2,0). Scoped to the
   trending row only; every other link keeps the global
   hover colour, and the gold/bright hover effects below
   are separate properties on separate elements. */
.trend-row:hover,.trend-row:focus-visible{color:var(--text)}
/* Pale-gold strip along the row's full left edge, hover only. */
.trend-row::before{
	content:"";position:absolute;left:0;top:0;bottom:0;width:5px;z-index:3;pointer-events:none;
	background:#f0d060;border-radius:10px 0 0 10px;opacity:0;transition:opacity .3s ease;
}
.trend-row:hover::before,.trend-row:focus-visible::before{opacity:1}
/* Backdrop art: right ~58% only, masked into the solid base. */
.trend-art{
	position:absolute;top:0;right:0;bottom:0;width:58%;z-index:0;
	overflow:hidden;pointer-events:none;
}
.trend-bg{
	position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
	filter:brightness(.38) saturate(.45);transition:filter .3s ease;
}
.trend-art::after{
	content:"";position:absolute;inset:0;pointer-events:none;
	background:linear-gradient(90deg,var(--panel) 0,rgba(16,17,9,.55) 34%,rgba(16,17,9,0) 68%);
}
.trend-row:hover .trend-bg,.trend-row:focus-visible .trend-bg{filter:brightness(.85) saturate(1)}
/* Two-layer rank: giant hollow numeral + small solid numeral. */
.trend-rank{position:relative;z-index:1;flex:none;width:106px;height:78px;margin-left:10px}
.trend-rank-big{
	position:absolute;left:0;top:50%;transform:translateY(-52%);
	font-size:96px;font-weight:900;font-style:italic;line-height:.8;white-space:nowrap;
	color:rgba(163,152,95,.30);
	transition:color .3s ease,-webkit-text-stroke-color .3s ease;
}
@supports ((-webkit-text-stroke:1px #fff)){
	.trend-rank-big{color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:1.5px rgba(168,158,102,.55)}
	.trend-row:hover .trend-rank-big,.trend-row:focus-visible .trend-rank-big{-webkit-text-stroke-color:#f0d060}
}
.trend-row:hover .trend-rank-big,.trend-row:focus-visible .trend-rank-big{color:rgba(240,208,96,.38)}
.trend-rank-small{
	position:absolute;left:32px;bottom:0;z-index:1;
	font-size:28px;font-weight:800;font-style:italic;line-height:1;color:#fff;
	text-shadow:0 1px 5px rgba(0,0,0,.65);transition:color .3s ease;
}
.trend-row:hover .trend-rank-small,.trend-row:focus-visible .trend-rank-small{color:#f0d060}
.trend-info{position:relative;z-index:1;display:flex;flex-direction:column;gap:3px;min-width:0;text-shadow:0 1px 6px rgba(0,0,0,.65)}
.trend-title{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-meta{display:flex;align-items:center;font-size:12.5px}
.trend-meta>span+span{margin-left:9px}
.trend-meta .star{color:var(--star)}
.trend-type{color:rgba(242,244,234,.75);font-weight:600}
/* One dark pill: [CC icon] subbed / [mic icon] dubbed / [list icon] total. */
.trend-counts{
	display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin-top:2px;
	padding:3px 10px;background:rgba(5,6,4,.55);border:1px solid rgba(242,244,234,.07);
	border-radius:999px;font-size:11.5px;color:var(--muted);
}
.trend-counts .tc{display:inline-flex;align-items:center;gap:4px}
.trend-counts .tc svg{width:13px;height:13px;flex:none}
.trend-counts .tc b{color:rgba(242,244,234,.92);font-weight:700}
.trend-counts .tc-sep{opacity:.5}
.trend-play{
	position:absolute;right:15px;top:50%;transform:translateY(-50%);z-index:2;
	width:48px;height:48px;border-radius:50%;background:rgba(150,150,150,.35);
	color:#fff;font-size:15px;padding-left:3px;
	display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease;
}
.trend-row:hover .trend-play,.trend-row:focus-visible .trend-play{opacity:1}

/* Schedule timeline widget (v1.4.14, modelled on reanime.cz's
   sidebar schedule): below Top Trending in the homepage sidebar.
   A "Schedule" head in the trending head's style, then a day
   selector for the current week — all seven chips are in the
   markup, but with JS only the selected day and its two
   neighbours show (the selected one centred where the week
   allows) and the ‹ › arrows at the sides shift the selection
   one day, clamped at the week's ends (the arrow disables at
   its edge). The selected chip is a lime SLANTED chip
   (clip-path parallelogram, dark text) like the reference; the
   rest are dark panel chips, and today keeps a lime day label
   while it is not selected (the Schedule page's .is-today cue).
   Without JS the arrows never render, all seven chips show and
   every day panel stays visible stacked — the Schedule page's
   pattern (flv.js adds .js-tabs to gate them).
   Each panel is a timeline capped at 540px with an internal
   scroll (thin lime scrollbar, like the Quick Access list): a
   continuous vertical line runs through a column of dots —
   time (44px, right-aligned, tabular) + 10px gap + a 9px node
   slot puts the line's centre at 58.5px — and each row carries
   the title (single-line ellipsis), a small dark type badge
   and the next episode number in lime. On today's panel the
   next upcoming row gets the lighter panel-2 background with
   its time in lime, and a lime diamond sits on the line at the
   current time. The line (::before, z-index 1) paints over the
   rows' backgrounds but under their dots (z-index 2) and the
   diamond (z-index 3); row text never reaches the line column. */
.schedw-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.schedw-head h3{margin:0;border-bottom:0;padding-bottom:0;line-height:1.15}
.schedw-head h3::before{display:none}
.schedw-days{display:flex;align-items:stretch;gap:6px;margin-bottom:12px}
.schedw-arrow{
	display:none;flex:none;width:24px;align-items:center;justify-content:center;
	background:var(--panel-2);border:1px solid var(--line);border-radius:6px;
	color:var(--text);font:inherit;font-size:16px;line-height:1;cursor:pointer;
	transition:color .2s ease,border-color .2s ease;
}
.schedw-wrap.js-tabs .schedw-arrow{display:flex}
.schedw-arrow:hover:not(:disabled){color:var(--accent);border-color:var(--accent)}
.schedw-arrow:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.schedw-arrow:disabled{opacity:.3;cursor:default}
.schedw-chips{display:flex;gap:6px;flex:1;min-width:0}
.schedw-chip{
	flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
	gap:1px;padding:6px 2px;cursor:pointer;font:inherit;color:var(--text);
	background:var(--panel-2);border:1px solid var(--line);border-radius:6px;
	transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.schedw-chip:hover{border-color:var(--accent)}
.schedw-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.schedw-chip-day{font-size:10.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.schedw-chip-num{font-size:16px;font-weight:800;line-height:1.1}
.schedw-chip.is-today .schedw-chip-day{color:var(--accent)}
.schedw-chip.is-active{
	background:var(--accent);border-color:var(--accent);color:#0a0c06;
	clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);
}
.schedw-chip.is-active .schedw-chip-day{color:rgba(10,12,6,.72)}
.schedw-wrap.js-tabs .schedw-chip{display:none}
.schedw-wrap.js-tabs .schedw-chip.is-window{display:flex}
.schedw-wrap.js-tabs .schedw-panel{display:none}
.schedw-wrap.js-tabs .schedw-panel.is-active{display:block}
.schedw-list{
	position:relative;max-height:540px;overflow-y:auto;padding-right:2px;
	scrollbar-width:thin;scrollbar-color:var(--accent) transparent;
}
.schedw-list::-webkit-scrollbar{width:5px}
.schedw-list::-webkit-scrollbar-track{background:transparent}
.schedw-list::-webkit-scrollbar-thumb{background:var(--accent);border-radius:99px}
.schedw-list::before{
	content:"";position:absolute;left:58px;top:8px;bottom:8px;width:2px;z-index:1;
	background:var(--line);border-radius:2px;
}
.schedw-row{
	position:relative;z-index:0;display:flex;align-items:center;gap:10px;
	padding:7px 6px 7px 0;border-radius:6px;
}
.schedw-row.is-next{background:var(--panel-2)}
.schedw-time{
	flex:none;width:44px;text-align:right;font-size:12.5px;font-weight:700;
	color:var(--muted);font-variant-numeric:tabular-nums;
}
.schedw-row.is-next .schedw-time{color:var(--accent)}
.schedw-node{
	flex:none;width:9px;height:9px;border-radius:50%;position:relative;z-index:2;
	background:var(--muted);box-shadow:0 0 0 2px var(--panel);
}
.schedw-row.is-next .schedw-node{background:var(--accent)}
.schedw-title{
	flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
	font-size:13.5px;font-weight:600;color:var(--text);
}
.schedw-type{
	flex:none;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;
	background:var(--bg-soft);border:1px solid var(--line);color:var(--muted);
	padding:2px 5px;border-radius:4px;
}
.schedw-ep{flex:none;font-size:12px;font-weight:700;color:var(--accent)}
.schedw-now{position:relative;height:16px;z-index:3}
.schedw-now-diamond{
	position:absolute;left:54px;top:50%;width:9px;height:9px;border-radius:1.5px;
	background:var(--accent);transform:translateY(-50%) rotate(45deg);
	box-shadow:0 0 7px rgba(202,255,9,.65);
}

/* ============ Series page ============ */
.series-head{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;margin-bottom:26px}
.series-poster img{width:100%;border-radius:var(--radius);border:1px solid var(--line)}
.series-info h1{font-size:27px;margin-bottom:4px}
.series-alt{color:var(--muted);font-size:14px;margin:0 0 10px}
.series-score-line{font-size:15px;margin-bottom:14px}
.series-score-line .star{color:var(--star);font-weight:800}
.info-table{width:100%;border-collapse:collapse;margin-bottom:16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.info-table th,.info-table td{padding:8px 12px;text-align:left;font-size:14px;border-bottom:1px solid var(--line);vertical-align:top}
.info-table tr:last-child th,.info-table tr:last-child td{border-bottom:0}
.info-table th{width:150px;color:var(--muted);font-weight:600;background:var(--bg-soft)}
.series-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.series-synopsis{color:#d0dbc0}
.series-synopsis p{margin:0 0 10px}

/* ============ Episode picker ============ */
.ep-picker{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.ep-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.ep-find{
	background:var(--bg-soft);border:1px solid var(--line);border-radius:6px;color:var(--text);
	padding:7px 10px;font-size:14px;width:170px;outline:none;
}
.ep-find:focus{border-color:var(--accent)}
/* Range select (>100 episodes): hidden until flv.js adds .js-ranges to
   the picker, so without JS every number stays visible and usable. */
.ep-range{
	display:none;background:var(--bg-soft);border:1px solid var(--line);border-radius:6px;
	color:var(--text);padding:7px 10px;font-size:14px;outline:none;cursor:pointer;
}
.ep-picker.js-ranges .ep-range{display:inline-block}
.ep-range:focus{border-color:var(--accent)}
.ep-picker.js-ranges .ep-num-btn.ep-out{display:none}
.ep-num-btn.ep-found{outline:2px solid var(--accent);outline-offset:1px}
.ep-nums{display:flex;flex-wrap:wrap;gap:7px}
.ep-num-btn{
	min-width:44px;text-align:center;background:var(--panel-2);border:1px solid var(--line);
	color:var(--text);border-radius:6px;padding:6px 9px;font-size:13.5px;font-weight:600;
}
.ep-num-btn:hover{border-color:var(--accent);color:#0a0c06;background:var(--accent)}
.ep-num-btn.ep-current{background:var(--accent);border-color:var(--accent);color:#0a0c06}
.ep-num-btn.ep-hidden{display:none}

/* ============ Episode page / player ============ */
.watch-title{font-size:21px;margin-bottom:12px}
.watch-meta{color:var(--muted);font-size:13px;margin:10px 0 18px}
.server-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.server-tab{
	background:var(--panel);border:1px solid var(--line);color:var(--text);
	padding:8px 16px;font-size:13.5px;font-weight:700;cursor:pointer;border-radius:var(--radius);
}
.server-tab:hover{color:var(--accent)}
.server-tab.active{background:var(--accent);color:#0a0c06;border-color:var(--accent)}
.watch-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.player-wrap{position:relative;z-index:40}
.player-box{
	position:relative;aspect-ratio:16/9;background:#000;border:1px solid var(--line);
	border-radius:var(--radius);overflow:hidden;
}
.player-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.player-facade{position:absolute;inset:0;cursor:pointer}
.player-facade img{width:100%;height:100%;object-fit:cover;opacity:.55}
.player-play{
	position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
	background:var(--accent);color:#0a0c06;border:0;border-radius:50px;padding:14px 30px;
	font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 8px 26px rgba(0,0,0,.5);
}
.player-play:hover{background:var(--accent-dark)}
.player-soon{
	position:absolute;inset:0;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;
	color:var(--muted);text-align:center;padding:20px;
}
.player-soon strong{color:var(--text);font-size:17px}
.watch-nav{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.watch-nav .btn{flex:1;text-align:center;min-width:120px}
.watch-nav .btn.disabled{opacity:.35;pointer-events:none}
.lights-btn{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:var(--radius);padding:9px 14px;cursor:pointer;font-size:13.5px;font-weight:600}
.lights-btn:hover{border-color:var(--accent);color:var(--accent)}
.lights-overlay{
	position:fixed;inset:0;background:rgba(2,3,1,.93);z-index:30;opacity:0;pointer-events:none;transition:opacity .25s;
}
body.lights-off .lights-overlay{opacity:1;pointer-events:auto}
body.lights-off .site-header,body.lights-off .site-footer{position:relative;z-index:1}
.download-box{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-top:22px}
.download-box h3{font-size:15px;text-transform:uppercase;margin:0 0 10px}
.download-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.download-row:last-child{border-bottom:0}
.download-row .dl-host{font-weight:700}
.download-row .dl-quality{background:var(--panel-2);border:1px solid var(--line);border-radius:4px;padding:1px 8px;font-size:12px;color:var(--orange);font-weight:700}
.download-row a{margin-left:auto;font-weight:700}

/* ============ Anime List page ============ */
.letter-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.letter-bar a{
	min-width:34px;text-align:center;background:var(--panel);border:1px solid var(--line);
	color:var(--text);border-radius:6px;padding:5px 8px;font-weight:700;font-size:13.5px;
}
.letter-bar a:hover,.letter-bar a.active{background:var(--accent);border-color:var(--accent);color:#0a0c06}
.list-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;align-items:end}
.list-filters label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--muted);font-weight:600}
.list-filters select{
	background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:6px;padding:8px 10px;font-size:14px;min-width:170px;
}
.filter-context{color:var(--accent);font-size:13.5px;font-weight:600;margin:0 0 6px}
.result-count{color:var(--muted);font-size:13px;margin-bottom:14px}

/* ============ Schedule page ============ */
.schedule-head{text-align:center;margin-bottom:24px}
.schedule-title{font-size:34px;font-weight:800;margin:0 0 6px}
.schedule-subtitle{color:var(--muted);font-size:15px;margin:0}
.schedule-tabs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:26px}
.schedule-tab{
	position:relative;min-width:88px;padding:12px 12px 11px;text-align:center;cursor:pointer;
	background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
	color:var(--text);font-family:inherit;
	transition:border-color .15s,background .15s,transform .15s,box-shadow .15s;
}
.schedule-tab:hover{border-color:var(--accent);transform:translateY(-2px)}
.schedule-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.schedule-tab-day{
	display:block;font-size:12.5px;font-weight:700;letter-spacing:1.2px;
	text-transform:uppercase;color:var(--muted);
}
.schedule-tab-date{display:block;font-size:24px;font-weight:800;line-height:1.15;margin-top:2px}
.schedule-tab.is-active{border-color:var(--accent);background:var(--panel-2);box-shadow:0 0 0 1px var(--accent)}
.schedule-tab.is-today .schedule-tab-day,
.schedule-tab.is-today .schedule-tab-date{color:var(--accent)}
.schedule-tab-dot{
	position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--accent);
}
/* Panels are all visible without JS; flv.js adds .js-tabs to gate them. */
.schedule-wrap.js-tabs .schedule-panel{display:none}
.schedule-wrap.js-tabs .schedule-panel.is-active{display:block}

/* ============ AZ List page ============ */
.letter-bar span.az-off{
	min-width:34px;text-align:center;background:var(--bg-soft);border:1px solid var(--line);
	color:var(--muted);border-radius:6px;padding:5px 8px;font-weight:700;font-size:13.5px;opacity:.55;
}
.az-section{margin-bottom:26px;scroll-margin-top:84px}
.az-letter-title{
	display:flex;align-items:center;width:100%;
	font-size:17px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;
	background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
	padding:10px 14px;
}
.az-letter-title::before{content:"";display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:2px;margin-right:9px}
.az-links{list-style:none;margin:0;padding:0;columns:3;column-gap:28px}
.az-links li{break-inside:avoid;margin:0 0 7px}
.az-links a{color:var(--text);font-size:14px}
.az-links a:hover{color:var(--accent)}

/* ============ Generic content ============ */
.page-title,.entry-title{font-size:24px;margin-bottom:14px}
.entry-content{color:#d0dbc0}
.entry-content p{margin:0 0 12px}
.search-list{display:flex;flex-direction:column;gap:12px}
.search-row{display:flex;gap:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px;align-items:center}
.search-row img{width:56px;height:84px;object-fit:cover;border-radius:5px;flex:none}
.search-row h3{font-size:16px;margin:0 0 3px}
.search-row p{margin:0;color:var(--muted);font-size:13px}
.pagination{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}
.pagination .page-numbers{
	background:var(--panel);border:1px solid var(--line);color:var(--text);
	padding:6px 12px;border-radius:6px;font-size:13.5px;font-weight:600;
}
.pagination .page-numbers.current{background:var(--accent);border-color:var(--accent);color:#0a0c06}
.notfound{text-align:center;padding:50px 0}
.notfound h1{font-size:52px;color:var(--accent);margin-bottom:6px}

/* ============ Footer ============ */
.site-footer{background:var(--bg-soft);border-top:2px solid var(--accent);margin-top:10px;padding:24px 0 18px}
.footer-az{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:16px}
.footer-az a{
	min-width:30px;text-align:center;background:var(--panel);border:1px solid var(--line);
	color:var(--muted);border-radius:5px;padding:3px 6px;font-size:12.5px;font-weight:700;
}
.footer-az a:hover{background:var(--accent);color:#0a0c06;border-color:var(--accent)}
.footer-nav .nav-list{display:flex;flex-wrap:wrap;gap:16px;list-style:none;margin:0 0 12px;padding:0}
.footer-nav .nav-list a{color:var(--text);font-size:13.5px;font-weight:600}
.footer-disclaimer{color:var(--muted);font-size:12.5px;max-width:820px;margin:0 0 8px}
.footer-copy{color:var(--muted);font-size:12.5px;margin:0}

/* ============ Responsive ============ */
/* Small-laptop step (v1.4.10 auto-fit): a slimmer sidebar and a
   smaller hero poster card, so neither crowds the main column or
   the hero text before the ≤1020px stacked layout takes over. */
@media (max-width:1180px){
	.layout{grid-template-columns:minmax(0,1fr) 340px}
	.hero-poster{width:260px;height:390px}
}
@media (max-width:1020px){
	.layout{grid-template-columns:minmax(0,1fr)}
	.sidebar{flex-direction:row;flex-wrap:wrap}
	.sidebar .widget{flex:1 1 280px}
	.watch-sidebar{flex-direction:column}
	.watch-sidebar .widget{flex:none}
	.az-links{columns:2}
	.primary-nav .nav-list>li>a{padding:10px 9px;font-size:14px}
	.mega-cols{gap:26px}
	.header-search{max-width:430px}
	.site-logo img.custom-logo{max-width:190px}
	.hero-slides{height:48vh;min-height:400px;max-height:520px}
	.hero-poster{width:240px;height:360px}
}
@media (max-width:720px){
	.header-inner{flex-wrap:wrap;gap:10px}
	.site-logo{order:1}
	.header-shuffle{order:2;margin-left:auto}
	.menu-toggle{display:block;order:3}
	.header-search{order:4;max-width:none;flex-basis:100%;margin-left:0}
	.primary-nav{display:none;order:5;flex-basis:100%}
	.primary-nav.open{display:block}
	.primary-nav .nav-list{flex-direction:column;align-items:stretch;gap:0}
	.primary-nav .nav-list>li>a{padding:11px 6px}
	.primary-nav .sub-menu{
		position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
		border:none;border-radius:0;background:transparent;min-width:0;padding:0 0 4px 18px;
	}
	.primary-nav .nav-list>li>.sub-menu::before{display:none}
	/* Mega panel on mobile: static stacked sections inside the
	   opened menu, like the other sub-menus. */
	.mega-panel{
		position:static;translate:none;opacity:1;visibility:visible;width:auto;
		background:transparent;border:none;border-radius:0;box-shadow:none;
		padding:2px 0 8px 18px;
	}
	.mega-panel::before{display:none}
	.mega-cols{flex-direction:column;gap:14px}
	.mega-foot{margin-top:12px;padding:10px 0 4px}
	.series-head{grid-template-columns:130px minmax(0,1fr);gap:16px}
	.series-info h1{font-size:21px}
	.info-table th{width:105px}
	.grid{grid-template-columns:repeat(auto-fill,minmax(min(112px,100%),1fr));gap:11px}
	.watch-nav .btn{min-width:0;font-size:13px;padding:9px 8px}
	.az-links{columns:1}
	.schedule-title{font-size:26px}
	.schedule-tabs{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:6px;-webkit-overflow-scrolling:touch}
	.schedule-tab{min-width:66px;flex:1 0 auto;padding:10px 8px 9px}
	.schedule-tab-date{font-size:20px}
	.hero-slides{height:auto;min-height:470px;max-height:none}
	.hero-inner{padding-top:26px;padding-bottom:70px}
	.hero-poster{display:none}
	.hero-desc{font-size:14.5px}
	.hero-actions .btn{padding:12px 24px;font-size:14px}
	.hero-dots{right:34px;bottom:20px}
	.hero-arrows{display:none}
}

/* Short laptop screens (720–800px tall, v1.4.10 auto-fit):
   tighten vertical spacing ONLY, so the 70vh hero and the first
   sections sit balanced in the first screenful — no layout
   changes. The hero's negative top margin moves together with
   .site-main's top padding so the hero stays flush under the
   header. */
@media (max-height:800px) and (min-width:721px){
	.site-main{padding-top:14px}
	.hero{margin-top:-14px;margin-bottom:20px}
	.hero-inner{padding-bottom:44px}
	.hero-title{margin-bottom:10px}
	.hero-desc{margin-bottom:16px}
	.section{margin-bottom:22px}
}
