/* DiziBal front — one stylesheet: site, player, admin. Mobile rules at the end. */
:root {
  --bg: #0b0b0f; --bg-2: #101016; --surface: #15151c; --surface-2: #1c1c25; --surface-3: #252530; --line: #262631; --line-2: #33333f;
  --text: #f4f4f6; --text-2: #c9c9d1; --muted: #8d8d9a; --dim: #5e5e6b;
  --red: #e50914; --red-2: #ff3b30; --red-dark: #b8070f; --red-glow: rgba(229, 9, 20, .35); --gold: #f5c518; --green: #22c55e; --blue: #3b82f6;
  --grad: linear-gradient(135deg, #ff3b30, #e50914 55%, #b8070f);
  --r: 12px; --r-sm: 8px; --col: 1180px; --hdr: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
a, button, select, input, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.container { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
::selection { background: var(--red); color: #fff; }

/* ---------- ads ---------- */
.adx { position: relative; margin: 8px auto; max-width: 100%; display: flex; justify-content: center; padding: 0 12px; }
.adx-group { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px auto; width: 100%; }
.adx-group .adx { margin: 0 auto; width: 100%; }
.container .adx { padding: 0; }
.adx-ph { display: inline-flex; align-items: center; justify-content: center; gap: .4em; max-width: 100%; height: var(--h, auto); border: 1px dashed rgba(229, 9, 20, .6); border-radius: 8px; color: #ff4d55; background: repeating-linear-gradient(135deg, rgba(229, 9, 20, .06) 0 10px, rgba(229, 9, 20, .02) 10px 20px); font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.adx-link { display: inline-block; line-height: 0; max-width: 100%; }
.adx-link img, .adx-link video { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
.adm, .login { color-scheme: dark; }
.adx-code { max-width: 100%; overflow: hidden; }
.slot-tag { position: absolute; top: 2px; left: 14px; z-index: 5; background: #ffc107; color: #000; font: 700 10px/1 system-ui, sans-serif; padding: 3px 6px; border-radius: 3px; pointer-events: none; }
.adx-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: rgba(11, 11, 15, .96); backdrop-filter: blur(10px); box-shadow: 0 -6px 24px rgba(0, 0, 0, .5); padding: 6px 12px; }
.adx-sticky .adx { margin: 0; padding: 0; width: 100%; }
.adx-sticky .adx-ph { width: 100%; height: 56px; }
.adx-sticky .adx-link img, .adx-sticky .adx-link video { max-height: 90px; margin: 0 auto; }
.adx-sticky-close { position: absolute; top: -14px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid var(--bg); font: 700 15px/22px system-ui, sans-serif; box-shadow: var(--shadow); }
/* side skyscrapers: fixed beside the page column on wide screens only */
.side-ad { position: fixed; top: calc(var(--hdr) + 16px); z-index: 50; display: none; width: 160px; }
.side-ad .adx { margin: 0; padding: 0; }
.side-left { left: calc(50% - var(--col) / 2 - 176px); }
.side-right { right: calc(50% - var(--col) / 2 - 176px); }
@media (min-width: 1540px) { .side-ad { display: block; } .hero { max-width: var(--col); margin: 18px auto 0; border-radius: 18px; } .hero-body .container { padding: 0 44px; } .hero-nav { right: 44px; } }
.admin-bar { background: #ffc107; color: #000; font-size: 12px; font-weight: 600; text-align: center; padding: 5px 10px; }
.admin-bar a { text-decoration: underline; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 200; background: rgba(11, 11, 15, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .2s; }
.hdr.scrolled { background: rgba(11, 11, 15, .96); }
.hdr-in { max-width: var(--col); margin: 0 auto; padding: 0 24px; height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.nav > a, .dd-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: .15s; white-space: nowrap; }
.nav > a:hover, .dd-btn:hover, .dd.open .dd-btn { color: #fff; background: rgba(255, 255, 255, .07); }
.nav > a.on, .dd-btn.on { color: #fff; background: rgba(229, 9, 20, .16); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .35); }
.nav .ic { opacity: .85; }
.dd { position: relative; }
.dd-btn .ic:last-child { width: .9em; transition: transform .2s; }
.dd.open .dd-btn .ic:last-child { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 0; display: none; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 320px; }
.dd.open .dd-menu { display: grid; }
.dd-menu a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.dd-menu a:hover { background: var(--surface-2); color: #fff; }
.search { flex: 0 0 280px; position: relative; margin-left: auto; }
.search input { width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; padding: 10px 44px 10px 16px; border-radius: 999px; outline: none; transition: .15s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--red); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(229, 9, 20, .15); }
.search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.search button:hover { color: #fff; }
.search-box { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-height: 70vh; overflow: auto; display: none; z-index: 250; box-shadow: var(--shadow); padding: 6px; }
.search-box.open { display: block; }
.search-box a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; color: var(--text-2); }
.search-box a:hover, .search-box a.hl { background: var(--surface-2); color: #fff; }
.search-box img, .search-box .noimg { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--surface-3); flex: none; }
.search-box b { display: block; font-weight: 600; color: #fff; }
.search-box small { color: var(--muted); font-size: 12px; }
.search-box .none { display: block; padding: 14px; color: var(--muted); text-align: center; }

/* ---------- hero slider ---------- */
.hero { position: relative; height: min(68vh, 560px); min-height: 420px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background: #000 center 20% / cover no-repeat; }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 15, .96) 0%, rgba(11, 11, 15, .7) 38%, rgba(11, 11, 15, .1) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-slide.noimg { background: radial-gradient(ellipse at 70% 30%, #3a0d12, #0b0b0f 70%); }
.hero-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; }
.hero-body .container { display: flex; gap: 28px; align-items: flex-end; }
.hero-poster { width: 168px; flex: none; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .08); }
.hero-text { max-width: 620px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff6b6b; margin-bottom: 10px; }
.hero-kicker::before { content: ''; width: 24px; height: 2px; background: var(--red); }
.hero h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 14px 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-nav { position: absolute; z-index: 3; right: 24px; bottom: 64px; display: flex; gap: 8px; }
.hero-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: .15s; }
.hero-nav button:hover { background: var(--red); border-color: var(--red); }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: .3s; }
.hero-dots button.on { width: 28px; background: var(--red); }

/* chips, buttons */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--text-2); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.chip.imdb { background: var(--gold); color: #000; border-color: transparent; }
.chip.red { background: var(--red); color: #fff; border-color: transparent; }
.chip.green { background: rgba(34, 197, 94, .15); color: #4ade80; border-color: rgba(34, 197, 94, .35); }
.chip .ic { width: 1em; height: 1em; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-red, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: .18s; border: 1px solid transparent; white-space: nowrap; }
.btn-red { background: var(--grad); color: #fff; box-shadow: 0 8px 24px var(--red-glow); }
.btn-red:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(229, 9, 20, .5); }
.btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-off { opacity: .4; pointer-events: none; }

/* genre chips row */
.genre-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; margin-top: 28px; }
.genre-row::-webkit-scrollbar { display: none; }
.genre-row a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; transition: .15s; }
.genre-row a:hover { border-color: var(--red); color: #fff; background: rgba(229, 9, 20, .12); }
.genre-row a i { font-style: normal; color: var(--dim); margin-left: 4px; font-size: 12px; }

/* ---------- sections ---------- */
.sec { padding: 40px 0 6px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; }
.sec-title .ic { color: var(--red); width: 22px; height: 22px; padding: 4px; box-sizing: content-box; background: rgba(229, 9, 20, .12); border-radius: 8px; }
.sec-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; transition: .15s; }
.see-all:hover { color: #fff; border-color: var(--red); background: rgba(229, 9, 20, .1); }

/* ---------- poster cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 16px; }
.grid > *, .ep-grid > *, .fgrid > *, .bp-grid > *, .dp-grid > * { min-width: 0; }
.panel-h .season-btns { min-width: 0; } /* long titles must not widen grid columns */
/* header ad grid: 400px banners, two per row (one per row on phones) */
.adx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 6px; margin: 12px auto; padding: 0 12px; }
.adx-grid .adx { margin: 0; padding: 0; width: 100%; }
.adx-grid .adx-ph, .adx-grid .adx-link { width: 100% !important; }
/* phones: still two side by side, scaled to the banner shape (8:1) so the block stays short */
@media (max-width: 760px) { .adx-grid { gap: 4px; padding: 0 8px; } .adx-grid .adx-ph { height: auto !important; aspect-ratio: 8 / 1; font-size: 9px; letter-spacing: .04em; } }
.card a { display: block; }
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r); background: linear-gradient(160deg, #1d1d27, #121218); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.poster::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344444f' stroke-width='1.5'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.2'/%3E%3Cpath d='M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5'/%3E%3C/svg%3E") center / 34% no-repeat; }
.poster img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 40%); pointer-events: none; }
.badge { position: absolute; z-index: 2; top: 8px; left: 8px; background: rgba(11, 11, 15, .78); backdrop-filter: blur(6px); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.rate { position: absolute; z-index: 2; top: 8px; right: 8px; background: var(--gold); color: #000; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.lbs { position: absolute; z-index: 2; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.lb { font-size: 9px; font-weight: 800; padding: 3px 6px; border-radius: 4px; letter-spacing: .04em; }
.lb-dub { background: var(--red); color: #fff; }
.lb-sub { background: rgba(255, 255, 255, .92); color: #000; }
.overlay { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: .25s; }
.play-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px var(--red-glow); transform: scale(.8); transition: .25s; }
.play-dot .ic { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .poster img { transform: scale(1.06); }
.card:hover .overlay { opacity: 1; }
.card:hover .play-dot { transform: scale(1); }
.info { padding: 10px 2px 0; }
.info .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.card:hover .info .t { color: #ff5a5f; }
.info .m { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.info .m span + span::before { content: '•'; margin-right: 8px; color: var(--dim); }
.star { color: var(--gold); font-weight: 700; }

/* trend row */
.trend-wrap { position: relative; }
.trend-list { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 2px 8px; }
.trend-list::-webkit-scrollbar { display: none; }
.tcard { position: relative; flex: 0 0 210px; display: flex; align-items: flex-end; scroll-snap-align: start; }
.tcard .num { flex: none; width: 62px; margin-right: -14px; font-size: 112px; font-weight: 900; line-height: .8; color: var(--bg); -webkit-text-stroke: 2px rgba(255, 255, 255, .35); letter-spacing: -.06em; z-index: 1; }
.tcard .poster { flex: 1; z-index: 2; }
.tcard:hover .poster img { transform: scale(1.06); }
.trend-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: rgba(21, 21, 28, .92); border: 1px solid var(--line-2); border-radius: 50%; color: #fff; z-index: 10; display: flex; align-items: center; justify-content: center; transition: .15s; box-shadow: var(--shadow); }
.trend-nav:hover { background: var(--red); border-color: var(--red); }
.trend-nav.prev { left: -20px; }
.trend-nav.next { right: -20px; }

/* latest episodes */
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.epcard { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: .18s; min-width: 0; }
.epcard:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-2px); }
.epcard .thumb { position: relative; width: 112px; aspect-ratio: 16 / 10; flex: none; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-3); }
.epcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.epcard .thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23e50914'/%3E%3Cpath d='M10 8v8l6-4z' fill='%23fff'/%3E%3C/svg%3E") center / 28px no-repeat; opacity: 0; transition: .2s; }
.epcard:hover .thumb::after { opacity: 1; }
.epcard .i { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.epcard b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epcard span { font-size: 13px; color: #ff6b6b; font-weight: 600; }
.epcard small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- list pages ---------- */
.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: 30px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.page-head h1 .ic { color: var(--red); }
.page-head p { color: var(--muted); margin-top: 6px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 36px 9px 16px; font-size: 13px; font-weight: 600; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d9a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.filters select:focus { border-color: var(--red); }
.count { color: var(--muted); font-size: 13px; font-weight: 600; }
.count b { color: #fff; }

/* breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep .ic { width: .85em; opacity: .6; }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- series page ---------- */
.dp-hero { position: relative; min-height: 460px; background: #000 center 20% / cover no-repeat; display: flex; align-items: flex-end; padding: 60px 0 44px; }
.dp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 15, .97) 0%, rgba(11, 11, 15, .75) 45%, rgba(11, 11, 15, .3)), linear-gradient(0deg, var(--bg), transparent 50%); }
.dp-hero .container { position: relative; width: 100%; }
.dp-head { display: flex; gap: 30px; align-items: flex-end; }
.dp-head .poster { width: 210px; flex: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .08); }
.dp-head .poster::after { display: none; }
.dp-title { font-size: clamp(28px, 4vw, 46px); font-weight: 900; margin: 6px 0 14px; }
.dp-desc { color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 680px; margin: 16px 0 22px; }
.dp-body { padding: 10px 0 30px; }
.dp-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-h h2 { font-size: 18px; }
.season-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.season-btns button { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: .15s; min-height: 36px; }
.season-btns button:hover { border-color: #55556a; color: #fff; }
.season-btns button.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px var(--red-glow); }
.ep-list { display: flex; flex-direction: column; gap: 8px; }
.ep-list[hidden], .bp-list[hidden] { display: none; }
.ep-item { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; transition: .15s; }
a.ep-item:hover { border-color: var(--line-2); background: var(--surface-3); }
.ep-no { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-2); }
a.ep-item:hover .ep-no { background: var(--red); color: #fff; }
.ep-item .i { flex: 1; min-width: 0; }
.ep-item b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-item .i span { font-size: 12px; color: var(--muted); }
.ep-item .go { color: #ff5a5f; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex: none; }
div.ep-item { opacity: .45; }
.side .poster { margin-bottom: 16px; }
.side .poster::after { display: none; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row .l { color: var(--muted); flex: none; }
.info-row .v { color: var(--text); font-weight: 600; text-align: right; }
.genres { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.genres a { background: rgba(229, 9, 20, .12); border: 1px solid rgba(229, 9, 20, .3); color: #ff7b7f; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.genres a:hover { background: var(--red); color: #fff; }
.side .adx { padding: 0; }
.rec { padding: 34px 0 10px; }

/* ---------- watch page ---------- */
.bp-head { padding: 26px 0 18px; }
.bp-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-bottom: 8px; }
.bp-head .sub { color: var(--muted); font-size: 14px; }
.player-wrap { padding-bottom: 6px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); background: #000 center / cover; text-align: center; padding: 20px; }
.player-empty::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.player-empty > * { position: relative; }
.player-empty b { color: #fff; font-size: 18px; }
.adx-pov { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 30; width: 300px; max-width: 80%; aspect-ratio: 6 / 5; background: #0b0b0b; border-radius: var(--r); box-shadow: 0 10px 40px rgba(0, 0, 0, .7); overflow: hidden; display: flex; }
.adx-pov .adx { margin: 0; padding: 0; width: 100%; height: 100%; }
.adx-pov .adx-ph { width: 100% !important; height: 100% !important; border-radius: var(--r); }
.adx-pov .adx-link, .adx-pov .adx-link img, .adx-pov .adx-link video { width: 100%; height: 100%; max-width: none !important; max-height: none !important; }
.adx-pov-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; border: 1px solid rgba(255, 255, 255, .6); font: 700 16px/26px system-ui, sans-serif; z-index: 7; }
.ep-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 16px 0 4px; }
.nc { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; transition: .15s; min-width: 0; }
.nc:hover { border-color: var(--line-2); background: var(--surface-2); }
.nc.off { opacity: .35; pointer-events: none; }
.nc.next { justify-content: flex-end; text-align: right; }
.nc .arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(229, 9, 20, .14); color: #ff5a5f; display: flex; align-items: center; justify-content: center; flex: none; }
.nc .ni { min-width: 0; }
.nc small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nc b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-all { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 22px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: .15s; }
.nc-all:hover { border-color: var(--red); color: #ff5a5f; }
.bp-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-top: 18px; }
.bp-about { display: flex; gap: 18px; }
.bp-about .poster { width: 120px; flex: none; }
.bp-about .poster::after { display: none; }
.bp-about h2 { font-size: 18px; margin-bottom: 8px; }
.bp-about p { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.bp-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.bp-list::-webkit-scrollbar { width: 5px; }
.bp-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.bp-item { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; color: var(--text-2); transition: .15s; }
.bp-item i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
a.bp-item:hover { border-color: var(--line-2); color: #fff; }
.bp-item.current { border-color: rgba(229, 9, 20, .55); background: rgba(229, 9, 20, .12); color: #fff; font-weight: 700; }
.bp-item.current i { background: var(--red); color: #fff; }
div.bp-item:not(.current) { opacity: .45; }
.bp-item em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--dim); }

/* ---------- DiziBal player ---------- */
.tp { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; font-family: Inter, system-ui, sans-serif; }
.tp svg { width: 22px; height: 22px; display: block; }
.tp-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.tp-video::cue { background: rgba(0, 0, 0, .72); color: #fff; font: 600 clamp(14px, 2.4vw, 22px)/1.35 Inter, system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.tp-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.tp-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, transparent 32%), linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 26%); transition: opacity .3s; }
.tp-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; transition: opacity .3s, transform .3s; pointer-events: none; }
.tp-title { font-weight: 700; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-langs { pointer-events: auto; display: flex; padding: 3px; background: rgba(20, 20, 26, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; backdrop-filter: blur(10px); flex: none; }
.tp-langs button { padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); letter-spacing: .02em; transition: .2s; }
.tp-langs button:hover { color: #fff; }
.tp-langs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--red-glow); }
.tp-big { position: absolute; z-index: 5; top: 50%; left: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(229, 9, 20, .18), 0 14px 40px rgba(0, 0, 0, .5); transition: transform .2s, opacity .25s; }
.tp-big svg { width: 38px; height: 38px; margin-left: 5px; }
.tp-big:hover { transform: scale(1.07); }
.tp.is-idle .tp-big { animation: tp-pulse 2.2s infinite; }
@keyframes tp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, .45), 0 14px 40px rgba(0, 0, 0, .5); } 60% { box-shadow: 0 0 0 22px rgba(229, 9, 20, 0), 0 14px 40px rgba(0, 0, 0, .5); } }
.tp.is-playing .tp-big { opacity: 0; pointer-events: none; transform: scale(.8); }
.tp.is-started.is-paused .tp-big { opacity: 1; }
.tp-spin { position: absolute; z-index: 5; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--red); animation: tp-spin .8s linear infinite; display: none; pointer-events: none; }
.tp.is-loading .tp-spin { display: block; }
.tp.is-loading .tp-big { opacity: 0; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-ripple { position: absolute; z-index: 4; top: 0; bottom: 0; width: 38%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.tp-ripple-l { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .16), transparent 70%); }
.tp-ripple-r { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, .16), transparent 70%); }
.tp-ripple span { width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; }
.tp-ripple span svg { width: 30px; height: 30px; }
.tp-ripple b { font-size: 13px; text-shadow: 0 1px 4px #000; }
.tp-ripple.go { animation: tp-rip .6s ease-out; }
@keyframes tp-rip { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.tp-toast { position: absolute; z-index: 7; top: 18%; left: 50%; transform: translate(-50%, -6px); background: rgba(20, 20, 26, .85); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; transition: .25s; pointer-events: none; backdrop-filter: blur(8px); }
.tp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tp-ctrl { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 0 14px 10px; transition: opacity .3s, transform .3s; }
.tp.is-idle .tp-ctrl, .tp.is-idle .tp-shade { opacity: 0; pointer-events: none; }
.tp.is-idle .tp-shade { opacity: .6; }
.tp.ctl-hidden { cursor: none; }
.tp.ctl-hidden .tp-ctrl, .tp.ctl-hidden .tp-top { opacity: 0; pointer-events: none; transform: translateY(8px); }
.tp.ctl-hidden .tp-top { transform: translateY(-8px); }
.tp.ctl-hidden .tp-shade { opacity: 0; }
.tp-bar { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.tp-rail { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .22); border-radius: 4px; overflow: hidden; transition: height .15s; }
.tp-bar:hover .tp-rail, .tp.dragging .tp-rail { height: 6px; }
.tp-buf { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .35); width: 0; }
.tp-fill { position: absolute; inset: 0 auto 0 0; background: var(--grad); width: 0; }
.tp-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(229, 9, 20, .5); transform: scale(0); transition: transform .15s; left: 0; }
.tp-bar:hover .tp-knob, .tp.dragging .tp-knob { transform: scale(1); }
.tp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(20, 20, 26, .92); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.tp-bar:hover .tp-tip { opacity: 1; }
.tp-row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.tp-b { position: relative; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; opacity: .92; transition: .15s; flex: none; }
.tp-b:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.tp-b.on { color: #ff5a5f; }
.tp-b.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--red); }
.tp-b[data-a="back"]:active svg { transform: rotate(-25deg); }
.tp-b[data-a="fwd"]:active svg { transform: rotate(25deg); }
.tp-b svg { transition: transform .2s; }
.tp-vol { display: flex; align-items: center; }
.tp-volr { width: 0; opacity: 0; transition: width .2s, opacity .2s; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 100%), rgba(255, 255, 255, .25) var(--p, 100%)); cursor: pointer; }
.tp-vol:hover .tp-volr, .tp-volr:focus { width: 80px; opacity: 1; margin: 0 8px 0 2px; }
.tp-volr::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.tp-volr::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.tp-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 8px; white-space: nowrap; color: rgba(255, 255, 255, .9); }
.tp-sp { flex: 1; }
.tp-mw { position: relative; }
.tp-speed { width: auto; padding: 0 10px; gap: 6px; }
.tp-speed i { font-style: normal; font-size: 12px; font-weight: 800; }
.tp-menu { position: absolute; right: 0; bottom: calc(100% + 8px); background: rgba(20, 20, 26, .96); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 6px; min-width: 150px; display: none; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.tp-mw.open .tp-menu { display: block; }
.tp-mh { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; }
.tp-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.tp-menu button:hover { background: rgba(255, 255, 255, .08); }
.tp-menu button.on { color: #ff5a5f; }
.tp-menu button.on::after { content: '✓'; float: right; }
.tp.is-fs { border-radius: 0; }
.tp.is-fs .tp-title { font-size: 18px; }
/* pre-roll ad */
.tp-ad { position: absolute; inset: 0; z-index: 20; background: #000; }
.tp-adv { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tp-adbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tp-adtag { background: #ffc107; color: #000; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.tp-adtag i { font-style: normal; font-weight: 700; }
.tp-adlink { background: rgba(255, 255, 255, .92); color: #000; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.tp-skip { position: absolute; right: 0; bottom: 34px; display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .78); border: 1px solid rgba(255, 255, 255, .35); border-right: 0; color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 700; border-radius: 8px 0 0 8px; }
.tp-skip svg { width: 16px; height: 16px; }
.tp-skip:disabled { color: rgba(255, 255, 255, .7); cursor: default; font-weight: 600; font-size: 13px; }
.tp-skip:not(:disabled):hover { background: #fff; color: #000; }
.tp-adprog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.tp-adprog i { display: block; height: 100%; width: 0; background: #ffc107; transition: width .25s linear; }
/* next episode */
.tp-next { position: absolute; z-index: 15; right: 16px; bottom: 80px; display: flex; gap: 16px; align-items: center; background: rgba(20, 20, 26, .94); border: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px; border-radius: var(--r); box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.tp-next small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tp-next b { font-size: 14px; }
.tp-next-act { display: flex; gap: 8px; }
.tp-next-go { background: var(--grad); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.tp-next-go i { font-style: normal; opacity: .8; }
.tp-next-x { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: 13px; }

/* ---------- footer, bottom nav ---------- */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 60px; padding: 46px 0 90px; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.ft-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.ft-brand p { color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 440px; }
.ftr h4 { font-size: 14px; margin-bottom: 14px; }
.ftr ul { display: flex; flex-direction: column; gap: 9px; }
.ftr ul a { color: var(--muted); font-size: 13px; }
.ftr ul a:hover { color: #fff; }
.ft-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; color: var(--dim); font-size: 12px; }
.mnav { display: none; }

/* ---------- admin ---------- */
.adm { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.adm-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.adm-side .logo img { height: 30px; margin: 4px 8px 22px; }
.adm-side a.t { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.adm-side a.t:hover { background: var(--surface); color: #fff; }
.adm-side a.t.on { background: rgba(229, 9, 20, .14); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.adm-side a.t .ic { opacity: .8; }
.adm-side .grow { flex: 1; }
.adm-main { padding: 28px 32px 60px; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-top h1 { font-size: 24px; font-weight: 900; }
.adm-top p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.box > h2 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.box > h2 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(229, 9, 20, .08); }
.stat small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-size: 28px; font-weight: 900; margin-top: 6px; }
.stat span { color: var(--muted); font-size: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.fgrid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin: 10px 0 6px; }
input[type=text], input[type=password], input[type=url], input[type=number], .adm input[type=search], .adm input[type=email], .login input, textarea, .adm select { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-2); color: #fff; border-radius: var(--r-sm); outline: none; transition: .15s; }
input:focus, textarea:focus, .adm select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 9, 20, .15); }
textarea { font: 12px/1.55 Consolas, "Cascadia Mono", monospace; resize: vertical; }
textarea.prose { font: 14px/1.6 Inter, system-ui, sans-serif; }
.adm input[type=file] { font-size: 12px; color: var(--muted); margin-top: 4px; width: 100%; max-width: 100%; }
.fgrid > * { min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-sm); background: var(--grad); color: #fff; font-weight: 700; border: 1px solid transparent; font-size: 13px; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface-2); color: #fff; border-color: var(--line-2); }
.btn.ghost:hover { border-color: #55556a; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.danger { background: #7f1d1d; border-color: #991b1b; }
.btn.danger:hover { background: #991b1b; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13px; font-weight: 600; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); color: #86efac; }
.flash.err { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.flash code { background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 6px; font-size: 15px; color: #fff; user-select: all; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.55; }
.hint code { background: var(--bg); padding: 1px 6px; border-radius: 4px; color: var(--text-2); }
.check { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; font-weight: 500; margin: 8px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl img { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tbl input { padding: 7px 9px; font-size: 12px; }
.tbl-wrap { overflow-x: auto; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.tag.ok { background: rgba(34, 197, 94, .15); color: #4ade80; }
.tag.red { background: rgba(229, 9, 20, .15); color: #ff7b7f; }
.tag.warn { background: rgba(245, 197, 24, .15); color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 14px; }
.slot { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.slot-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.slot-head b { font-size: 13px; }
.slot-head code { display: block; color: #ffc107; font-size: 11px; margin-top: 3px; }
.slot .f-image, .slot .f-html { display: none; }
.slot[data-mode=image] .f-image, .slot[data-mode=html] .f-html { display: block; }
.slot-prev { margin-top: 10px; background: #000; border-radius: 6px; padding: 6px; text-align: center; }
.slot-prev img { max-width: 100%; max-height: 90px; margin: 0 auto; }
.see { display: inline-block; padding: 8px 0; font-size: 12px; color: #ff6b6b; font-weight: 600; }
.save-bar { position: sticky; bottom: 0; background: rgba(11, 11, 15, .95); backdrop-filter: blur(8px); padding: 14px 0; border-top: 1px solid var(--line); margin-top: 16px; z-index: 5; display: flex; gap: 10px; align-items: center; }
.pw-box { display: flex; gap: 8px; }
.pw-box input { flex: 1; }
.serp { background: #fff; color: #202124; border-radius: var(--r-sm); padding: 14px 16px; font-family: Arial, sans-serif; margin-top: 10px; }
.serp cite { font-style: normal; font-size: 12px; color: #4d5156; }
.serp h3 { color: #1a0dab; font-size: 19px; font-weight: 400; margin: 4px 0; font-family: Arial, sans-serif; letter-spacing: 0; }
.serp p { font-size: 13px; color: #4d5156; line-height: 1.5; }
.ph-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-list code { background: var(--bg); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 6px; font-size: 12px; color: #ffc107; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at top, #2a0a0e, var(--bg) 60%); }
.login .box { width: 100%; max-width: 400px; padding: 32px; }
.login img { height: 36px; margin: 0 auto 24px; }

/* ---------- touch screens ---------- */
@media (hover: none) and (pointer: coarse) {
  .trend-nav { display: none; }
  .card:hover .poster img, .tcard:hover .poster img { transform: none; }
  .card:hover .overlay { opacity: 0; }
  .card:hover .info .t { color: inherit; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
  .ep-grid { grid-template-columns: 1fr 1fr; }
  .dp-grid, .bp-grid { grid-template-columns: 1fr; }
  .side .poster { display: none; }
  .nav > a .ic, .dd-btn .ic:first-child { display: none; }
  .search { flex-basis: 220px; }
  .adm { grid-template-columns: 200px 1fr; }
  .trend-nav.prev { left: 4px; }
  .trend-nav.next { right: 4px; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --hdr: 56px; }
  .container, .hdr-in { padding: 0 14px; }
  .hdr-in { gap: 12px; }
  .logo img { height: 28px; }
  .nav { display: none; }
  .search { flex: 1 1 auto; max-width: none; }
  .search input { font-size: 16px; padding: 8px 44px 8px 14px; }
  .search button { width: 40px; height: 40px; right: 2px; }
  .search .search-box { position: fixed; left: 8px; right: 8px; top: calc(var(--hdr) + 6px); min-width: 0; max-height: 65vh; }
  input, select, textarea { font-size: 16px !important; }

  /* ads: mobile sizes and labels */
  .adx { margin: 6px auto; }
  .adx-ph { height: var(--mh, var(--h, auto)); }
  .adx-ph[style*="--mw"] { width: var(--mw) !important; }
  .adx-pov .adx-ph { width: 100% !important; height: 100% !important; }
  .adx-group { margin: 8px auto; }
  .adx-sticky { padding: 4px 8px; bottom: calc(60px + env(safe-area-inset-bottom)); }
  .adx-sticky .adx-ph { height: 50px; }
  .adx-sticky-close { width: 32px; height: 32px; top: -16px; font-size: 16px; line-height: 28px; }

  .hero { height: 70vh; min-height: 440px; max-height: 600px; }
  .hero-body { bottom: 54px; }
  .hero-poster, .hero-nav { display: none; }
  .hero h2 { font-size: 30px; }
  .hero p { font-size: 14px; -webkit-line-clamp: 2; margin: 10px 0 18px; }
  .hero .btns > a { flex: 1; }
  .btn-red, .btn-ghost { padding: 12px 18px; min-height: 46px; }
  .genre-row { margin-top: 18px; margin-left: -14px; margin-right: -14px; padding: 4px 14px; }
  .sec { padding: 28px 0 4px; }
  .sec-title { font-size: 18px; }
  .sec-title .ic { width: 18px; height: 18px; }
  .see-all { padding: 8px 12px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .info .t { font-size: 12px; }
  .info .m { font-size: 11px; }
  .lbs { display: none; }
  .badge { font-size: 9px; padding: 2px 6px; }
  .tcard { flex-basis: 150px; }
  .tcard .num { font-size: 84px; width: 46px; margin-right: -10px; }
  .trend-list { gap: 12px; margin: 0 -14px; padding: 4px 14px 8px; scroll-padding: 0 14px; }
  .ep-grid { grid-template-columns: 1fr; gap: 8px; }
  .epcard .thumb { width: 96px; }
  .epcard b { font-size: 14px; }
  .page-head { padding: 22px 0 14px; }
  .page-head h1 { font-size: 22px; }
  .toolbar { padding: 10px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .filters select { width: 100%; min-height: 44px; }
  .filters select:first-child { grid-column: 1 / -1; }
  .count { width: 100%; text-align: center; }

  .dp-hero { min-height: 0; padding: 120px 0 28px; }
  .dp-head { gap: 16px; align-items: flex-end; }
  .dp-head .poster { width: 104px; }
  .dp-title { font-size: 24px; margin-bottom: 10px; }
  .dp-desc { font-size: 14px; margin: 12px 0 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .dp-hero .btns { width: 100%; }
  .dp-hero .btns > a { flex: 1; padding: 12px 10px; font-size: 13px; }
  .panel { padding: 14px; border-radius: var(--r); }
  .season-btns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .season-btns::-webkit-scrollbar { display: none; }
  .season-btns button { flex: none; min-height: 40px; }
  .ep-item { padding: 10px 12px; min-height: 58px; }
  .ep-no { width: 36px; height: 36px; }

  .bp-head { padding: 18px 0 12px; }
  .player { margin: 0 -14px; width: calc(100% + 28px); border-radius: 0; }
  .adx-pov { width: auto; height: 82%; max-width: 92%; }
  .ep-nav { grid-template-columns: 1fr 1fr; }
  .nc-all { grid-column: 1 / -1; order: 3; }
  .nc { padding: 10px 12px; min-height: 56px; }
  .bp-about .poster { width: 84px; }
  .bp-item { min-height: 46px; }

  .tp svg { width: 20px; height: 20px; }
  .tp-top { padding: 10px 10px; }
  .tp-title { font-size: 13px; }
  .tp-langs button { padding: 9px 12px; font-size: 12px; }
  .tp-big { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .tp-big svg { width: 30px; height: 30px; }
  .tp-ctrl { padding: 0 8px 4px; }
  .tp-b { width: 38px; height: 38px; }
  .tp-vol .tp-volr, .tp-b[data-a="pip"], .tp-speed i { display: none; }
  .tp-time { font-size: 12px; margin-left: 4px; }
  .tp-skip { bottom: 22px; padding: 10px 14px; font-size: 13px; }
  .tp-next { left: 10px; right: 10px; bottom: 60px; flex-direction: column; align-items: stretch; gap: 10px; }

  .ftr { padding: 32px 0 150px; margin-top: 40px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ft-brand { grid-column: 1 / -1; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 290; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(16, 16, 22, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .mnav a .ic { width: 20px; height: 20px; }
  .mnav a.on { color: #ff5a5f; }

  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .adm-side .logo, .adm-side .grow { display: none; }
  .adm-side a.t { flex: none; padding: 9px 12px; font-size: 13px; }
  .adm-side a.t.on { box-shadow: inset 0 -2px 0 var(--red); }
  .adm-main { padding: 18px 14px 50px; }
  .fgrid { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
}
@media (max-width: 360px) {
  .container, .hdr-in { padding: 0 10px; }
  .player { margin: 0 -10px; width: calc(100% + 20px); }
  .grid { gap: 12px 6px; }
  .tcard { flex-basis: 132px; }
  .hero h2 { font-size: 26px; }
  .tp-time { display: none; }
}

/* ---------- Node admin page (public/admin.html) ---------- */
.admin-main { padding-top: 24px; padding-bottom: 60px; max-width: 1000px; }
.admin-main .adm-top { margin-bottom: 18px; }
.msg { margin-top: 8px; font-size: 13px; font-weight: 600; color: #fca5a5; }
.msg.ok { color: #86efac; }
.results { display: grid; gap: 6px; margin-top: 12px; }
.result { display: flex; gap: 12px; align-items: center; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.result:hover { border-color: var(--line-2); }
.result.on { outline: 2px solid var(--red); }
.result img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--surface-3); flex: none; }
.list { display: grid; gap: 6px; }
.item { display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); flex-wrap: wrap; }
.item img { width: 34px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--surface-3); flex: none; }
.item .n { flex: 1; min-width: 0; }
.links-edit { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; padding-top: 4px; }
.links-edit input { padding: 7px 9px; font-size: 12px; }
.eprow { display: grid; grid-template-columns: 64px 1fr 1fr 1fr 64px; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.eprow .k { color: #ff6b6b; font-weight: 800; font-size: 12px; }
.eprow input { padding: 7px 9px; font-size: 12px; }
.eprow-h { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 0; }
@media (max-width: 760px) {
  .eprow { grid-template-columns: 1fr 1fr; }
  .eprow .k { grid-column: 1 / -1; }
  .eprow-h { display: none; }
  .links-edit { grid-template-columns: 1fr; }
}

/* ---------- no content / not found (watch and series pages) ---------- */
.nocontent { position: relative; overflow: hidden; text-align: center; padding: 56px 24px; margin: 8px 0 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.nocontent::before { content: ''; position: absolute; inset: 0; background: var(--cover, none) center / cover; opacity: .18; filter: blur(2px); }
.nocontent > * { position: relative; }
.nocontent h1, .nocontent h2 { font-size: 24px; margin: 14px 0 10px; }
.nocontent p { color: var(--text-2); max-width: 520px; margin: 0 auto 22px; line-height: 1.65; }
.nocontent .btns { justify-content: center; }
.nc-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(229, 9, 20, .14); color: #ff5a5f; }
.nc-icon .ic { width: 30px; height: 30px; }
@media (max-width: 760px) { .nocontent { padding: 36px 16px; } .nocontent h1, .nocontent h2 { font-size: 20px; } }
