:root {
  --bg: #080b12;
  --surface: #10151f;
  --surface-2: #171d29;
  --line: rgba(255,255,255,.09);
  --text: #f7f8fb;
  --muted: #9aa4b5;
  --red: #ff3158;
  --orange: #ff8a3d;
  --cyan: #62e6d8;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 70% -20%, #24121b 0, transparent 36%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--red), var(--orange)); font-weight: 950; box-shadow: 0 9px 30px rgba(255,49,88,.28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.header-nav { display: flex; align-items: center; gap: 24px; color: #c8cfdb; font-size: 14px; font-weight: 700; }
.header-nav a:hover { color: #fff; }
.language-picker { position: relative; }
.language-picker summary { min-width: 54px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: #fff; background: rgba(255,255,255,.035); list-style: none; text-align: center; cursor: pointer; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-menu { position: absolute; z-index: 60; top: calc(100% + 9px); right: 0; width: 170px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14,18,27,.98); box-shadow: 0 20px 55px rgba(0,0,0,.46); backdrop-filter: blur(16px); }
.language-menu a { display: block; padding: 10px 11px; border-radius: 9px; color: #b8c0ce; font-size: 12px; }
.language-menu a:hover, .language-menu a.active { color: #fff; background: rgba(255,80,111,.13); }
.hero { min-height: 470px; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; width: 520px; height: 520px; right: 3%; top: -20%; background: radial-gradient(circle, rgba(255,49,88,.28), transparent 65%); filter: blur(15px); }
.hero-copy { max-width: 660px; position: relative; z-index: 2; padding: 64px 0; }
.eyebrow { color: #ffb3c0; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 5px rgba(255,49,88,.12); }
.hero h1 { margin: 16px 0; font-size: clamp(42px, 6.1vw, 76px); line-height: .98; letter-spacing: -.055em; max-width: 780px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff5775, #ffae62); -webkit-background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 580px; margin: 0 0 28px; }
.hero-art { height: 420px; position: relative; z-index: 1; perspective: 900px; }
.poster { position: absolute; width: 250px; height: 355px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.poster-back { right: 10%; top: 15px; transform: rotate(11deg); background: linear-gradient(145deg, #2c1220, #0b111b 62%); }
.poster-front { right: 24%; top: 34px; transform: rotate(-4deg); background: linear-gradient(180deg, rgba(3,5,10,.04), rgba(3,5,10,.93)), radial-gradient(circle at 50% 20%, #813348, #180c13 56%, #070a0f); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 36px 20px; }
.poster-front span { color: #ff9aab; font-size: 12px; letter-spacing: .28em; font-weight: 800; }
.poster-front strong { font-size: 31px; margin: 4px 0; letter-spacing: -.04em; }
.poster-front small { color: #aaa5ad; }
.button { border: 0; border-radius: 13px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 850; cursor: pointer; transition: transform .2s ease, filter .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 12px 30px rgba(255,49,88,.22); }
.button-sponsor { color: #1d0d00; background: linear-gradient(135deg, #ffd166, #ff8a3d); box-shadow: 0 12px 30px rgba(255,138,61,.17); }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-danger { background: rgba(255,58,80,.12); color: #ff8295; border: 1px solid rgba(255,58,80,.25); }
.button-large { padding: 15px 24px; border-radius: 15px; }
.button-small { padding: 7px 11px; border-radius: 9px; font-size: 12px; }
.catalog-section { padding: 70px 0 48px; }
.inner-page { min-height: 70vh; }
.section-heading, .series-heading, .admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 7px 0 0; font-size: 34px; letter-spacing: -.035em; }
.catalog-search { display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 22px 0 0; }
.catalog-search input { min-width: 0; flex: 1; min-height: 46px; padding: 0 15px; color: #fff; background: #0d121b; border: 1px solid var(--line); border-radius: 13px; outline: none; }
.catalog-search input:focus { border-color: rgba(255,78,111,.55); box-shadow: 0 0 0 3px rgba(255,49,88,.08); }
.search-clear { color: #9ca6b5; font-size: 12px; font-weight: 800; }
.count-pill { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.series-block { margin-top: 46px; }
.series-heading { align-items: center; margin-bottom: 18px; }
.series-heading h3 { margin: 0 0 6px; font-size: 24px; }
.series-heading p { margin: 0; color: var(--muted); }
.series-heading > a { color: #ff8fa3; font-size: 13px; font-weight: 800; }
.episode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.episode-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 16px 45px rgba(0,0,0,.18); transition: transform .22s ease, border-color .22s ease; }
.episode-card:hover { transform: translateY(-5px); border-color: rgba(255,115,139,.32); }
.episode-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #05070b; }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.episode-card:hover .episode-thumb img { transform: scale(1.035); }
.episode-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(4,6,10,.82)); }
.episode-number { position: absolute; z-index: 2; left: 13px; bottom: 13px; color: #fff; background: rgba(12,14,20,.72); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 950; letter-spacing: .09em; }
.play-circle { position: absolute; z-index: 2; right: 13px; bottom: 13px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 8px 20px rgba(255,49,88,.34); font-size: 13px; padding-left: 2px; }
.episode-card-body { padding: 18px; }
.episode-card h4 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.episode-card p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.55; min-height: 40px; }
.card-meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: #8791a2; font-size: 11px; }
.card-meta a { color: #ff8fa3; font-weight: 850; }
.sponsor-strip { margin: 35px 0 70px; border: 1px solid rgba(98,230,216,.21); background: linear-gradient(135deg, rgba(98,230,216,.08), rgba(199,249,107,.035)); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sponsor-strip span { display: block; color: var(--cyan); font-size: 10px; font-weight: 950; letter-spacing: .13em; margin-bottom: 5px; }
.sponsor-strip strong { display: block; }
.catalog-promo { margin: 24px 0 42px; border-color: rgba(255,181,71,.24); background: radial-gradient(circle at 100% 0, rgba(255,174,64,.12), transparent 42%), linear-gradient(145deg, rgba(27,23,27,.92), rgba(16,21,30,.92)); }
.catalog-promo span { color: #ffbd69; }
.series-promo { margin-top: 0; }
.fanpage-card { width: min(100%, 540px); margin: 32px auto; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid rgba(79,137,255,.24); border-radius: 18px; background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(16,21,31,.96)); }
.fanpage-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: #1877f2; font-family: Arial, sans-serif; font-size: 28px; font-weight: 900; }
.fanpage-card span, .fanpage-card strong { display: block; }
.fanpage-card span { margin-bottom: 4px; color: #8bb8ff; font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.fanpage-card strong { font-size: 13px; line-height: 1.4; }
.button-facebook { color: #fff; background: linear-gradient(135deg, #1877f2, #0d5ed7); box-shadow: 0 10px 25px rgba(24,119,242,.2); white-space: nowrap; }
.series-banner { padding: 48px 0 34px; }
.series-banner.has-cover { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px, 430px); align-items: center; gap: 38px; }
.series-banner-copy { min-width: 0; }
.series-cover { width: 100%; max-height: 300px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; box-shadow: var(--shadow); }
.series-banner h1 { font-size: clamp(40px, 7vw, 70px); letter-spacing: -.05em; margin: 10px 0; }
.series-banner p { color: var(--muted); font-size: 18px; max-width: 680px; line-height: 1.6; }
.back-link { display: inline-flex; margin-top: 30px; color: #aeb7c6; font-size: 13px; font-weight: 800; }
.watch-page { padding: 12px 0 70px; }
.watch-heading { max-width: 760px; }
.watch-heading .back-link { margin: 6px 0 30px; }
.watch-heading h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.05em; margin: 8px 0 22px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(280px, 1fr); gap: 32px; margin-top: 0; align-items: start; }
.episode-kicker { color: #ff8fa3; font-size: 11px; letter-spacing: .13em; font-weight: 950; }
.video-shell { width: min(100%, 540px); margin: 0 auto; aspect-ratio: 9/16; position: relative; overflow: hidden; border-radius: 24px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); }
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-meta { display: flex; justify-content: space-between; gap: 20px; color: #818b9c; font-size: 11px; margin: 13px auto 0; width: min(100%, 540px); padding: 0 3px; }
.episode-synopsis { color: #b2bbc9; width: min(100%, 540px); line-height: 1.7; margin: 24px auto; font-size: 14px; }
.episode-navigation { width: min(100%, 540px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin: 22px auto 0; }
.nav-episode { min-height: 78px; border: 1px solid var(--line); background: var(--surface); padding: 15px 17px; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.nav-episode:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.nav-episode.next { border-color: rgba(255,92,120,.32); background: linear-gradient(135deg, rgba(255,49,88,.16), rgba(255,138,61,.07)); }
.nav-episode.next strong span { color: #ff8fa3; margin-left: 4px; }
.nav-episode small { color: #8f9aae; font-weight: 950; font-size: 9px; letter-spacing: .12em; }
.nav-episode.next small { color: #ff91a4; }
.nav-episode strong { font-size: 13px; line-height: 1.35; }
.nav-episode.disabled { opacity: .45; }
.sponsor-card { position: relative; width: min(100%, 540px); margin: 17px auto 0; overflow: hidden; border: 1px solid rgba(255,181,71,.28); border-radius: 20px; padding: 19px; background: radial-gradient(circle at 100% 0, rgba(255,174,64,.16), transparent 42%), linear-gradient(145deg, #17151a, #10141d 72%); box-shadow: 0 16px 45px rgba(0,0,0,.24); }
.sponsor-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #ff3158, #ffb347, transparent); }
.sponsor-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.ads-badge { display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 5px 8px; border-radius: 7px; color: #fff !important; background: #e72e4f; font-size: 9px !important; font-weight: 950; letter-spacing: .1em !important; box-shadow: 0 6px 16px rgba(231,46,79,.25); }
.sponsor-label { display: inline !important; margin: 0 !important; color: #9ea7b6 !important; font-size: 9px !important; font-weight: 850 !important; letter-spacing: .13em !important; }
.sponsor-offer-icon { position: absolute; top: 16px; right: 18px; color: #ffc566; font-size: 20px; }
.sponsor-card h2 { margin: 0 38px 6px 0; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.sponsor-card p { margin: 0; color: #aeb6c3; font-size: 13px; line-height: 1.55; }
.sponsor-card small { display: block; color: #737d8d; margin-top: 10px; font-size: 9px; text-align: center; }
.button-offer { width: 100%; min-height: 54px; margin-top: 15px; color: #1d0d00; background: linear-gradient(135deg, #ffd166, #ff8a3d); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; box-shadow: 0 12px 30px rgba(255,138,61,.2); letter-spacing: .025em; }
.sponsor-card.is-ready { animation: sponsorReady .7s ease both; }
.nav-episode.is-ready { animation: sponsorReady .7s ease both; }
@keyframes sponsorReady { 0% { transform: scale(.985); box-shadow: 0 0 0 rgba(255,138,61,0); } 55% { transform: scale(1.012); box-shadow: 0 0 0 7px rgba(255,138,61,.08), 0 22px 55px rgba(0,0,0,.32); } 100% { transform: none; box-shadow: 0 16px 45px rgba(0,0,0,.24); } }
.promo-float { position: fixed; z-index: 35; right: max(14px, calc((100vw - 1240px) / 2)); bottom: 22px; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 14px 8px 8px; color: #fff; background: rgba(18,19,25,.94); border: 1px solid rgba(255,181,71,.42); border-radius: 999px; box-shadow: 0 15px 42px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.035) inset; backdrop-filter: blur(16px); font-weight: 850; font-size: 12px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(18px) scale(.94); transition: opacity .25s ease, transform .25s ease, border-color .25s ease; }
.promo-float.is-visible { opacity: 1; pointer-events: auto; transform: none; animation: promoFloat 3.4s ease-in-out infinite; }
.promo-float.is-over-player { opacity: 0; pointer-events: none; transform: translateY(18px) scale(.94); animation: none; }
.promo-float:hover { border-color: rgba(255,196,104,.72); }
.promo-float-badge { display: grid; place-items: center; min-width: 35px; height: 32px; padding: 0 6px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #ec3154, #ff7043); font-size: 8px; font-weight: 950; letter-spacing: .08em; }
@keyframes promoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
body.promo-modal-open { overflow: hidden; }
.promo-modal[hidden], .promo-float[hidden] { display: none; }
.promo-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.promo-modal.is-open { opacity: 1; visibility: visible; }
.promo-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(3,5,9,.78); backdrop-filter: blur(8px); cursor: pointer; }
.promo-dialog { position: relative; width: min(100%, 430px); overflow: hidden; padding: 25px; border: 1px solid rgba(255,181,71,.38); border-radius: 24px; background: radial-gradient(circle at 95% 0, rgba(255,174,64,.2), transparent 39%), linear-gradient(145deg, #1b171b, #10151e 72%); box-shadow: 0 32px 90px rgba(0,0,0,.62); transform: translateY(22px) scale(.97); transition: transform .26s ease; }
.promo-modal.is-open .promo-dialog { transform: none; }
.promo-dialog::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #ff3158, #ffb347, transparent); }
.promo-close { position: absolute; z-index: 2; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: #d9dee7; background: rgba(5,7,11,.5); font-size: 25px; line-height: 1; cursor: pointer; }
.promo-close:disabled { opacity: .28; cursor: wait; }
.promo-dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 4px 0 18px; color: #261100; background: linear-gradient(135deg, #ffd166, #ff8a3d); border-radius: 17px; font-size: 24px; box-shadow: 0 12px 30px rgba(255,138,61,.22); }
.promo-overline { color: #ff9dad; font-size: 9px; font-weight: 950; letter-spacing: .16em; }
.promo-dialog h2 { margin: 7px 0 9px; font-size: 30px; line-height: 1.04; letter-spacing: -.04em; }
.promo-dialog p { margin: 0; color: #aeb6c3; font-size: 13px; line-height: 1.6; }
.promo-dialog .button-offer { text-align: center; }
.promo-later { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 0; color: #8f99a9; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.promo-later:hover { color: #fff; }
.promo-later:disabled { color: #697180; cursor: wait; }
.watch-sidebar { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--surface); }
.sidebar-episode-list { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-title { display: flex; justify-content: space-between; align-items: center; padding: 3px 3px 12px; }
.sidebar-title span { font-size: 10px; color: #a9b2c0; font-weight: 950; letter-spacing: .11em; }
.sidebar-title a { color: #ff8fa3; font-size: 11px; font-weight: 800; }
.mini-episode { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px; border-radius: 13px; align-items: center; border: 1px solid transparent; }
.mini-episode + .mini-episode { margin-top: 4px; }
.mini-episode:hover, .mini-episode.active { background: #1a212e; border-color: var(--line); }
.mini-episode img { width: 104px; height: 65px; object-fit: cover; border-radius: 9px; }
.mini-episode small, .mini-episode strong { display: block; }
.mini-episode small { color: #ff8fa3; font-size: 8px; font-weight: 900; letter-spacing: .08em; margin-bottom: 4px; }
.mini-episode strong { font-size: 12px; line-height: 1.35; }
.site-footer { min-height: 100px; border-top: 1px solid var(--line); color: #7e8898; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.cookie-notice { position: fixed; z-index: 48; left: 18px; bottom: 18px; width: min(440px, calc(100vw - 36px)); display: flex; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; color: #b9c1ce; background: rgba(15,19,28,.96); box-shadow: 0 18px 55px rgba(0,0,0,.48); backdrop-filter: blur(16px); font-size: 11px; line-height: 1.5; }
.cookie-notice[hidden] { display: none; }
.cookie-notice span { flex: 1; }
.cookie-notice a { color: #75e3d7; font-weight: 800; }
.cookie-notice button { flex: 0 0 auto; padding: 8px 11px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); font-size: 10px; font-weight: 850; cursor: pointer; }
.narrow-page { width: min(660px, 100%); margin: 0 auto; }
.auth-page { min-height: 72vh; display: grid; place-items: center; padding: 50px 0; }
.form-card { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h1, .form-card h2 { margin: 8px 0 12px; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.6; }
.stack-form { display: grid; gap: 15px; margin-top: 23px; }
.stack-form label { display: grid; gap: 7px; color: #c8cfda; font-size: 12px; font-weight: 800; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; color: #fff; background: #0b1018; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; resize: vertical; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { border-color: rgba(255,78,111,.55); box-shadow: 0 0 0 3px rgba(255,49,88,.08); }
.optional { color: #758092; font-weight: 500; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; }
.check-row input { width: auto; accent-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-subheading { display: grid; gap: 4px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.settings-subheading span { color: #8791a2; font-size: 11px; }
.fanpage-settings { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.language-badge { display: inline-flex; padding: 4px 6px; margin-right: 3px; border: 1px solid rgba(98,230,216,.22); border-radius: 6px; color: #8ee8dc; background: rgba(98,230,216,.06); font-size: 9px; letter-spacing: .08em; vertical-align: 2px; }
.alert { margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.alert-success { color: #a8f0ca; background: rgba(31,192,112,.11); border: 1px solid rgba(31,192,112,.2); }
.alert-error { color: #ffadba; background: rgba(255,49,88,.11); border: 1px solid rgba(255,49,88,.2); }
.admin-page { padding: 55px 0 80px; }
.admin-heading { align-items: center; }
.admin-heading h1 { margin: 7px 0 0; font-size: 40px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 28px 0; }
.metric { padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { font-size: 28px; margin-top: 6px; }
.metric-live { border-color: rgba(47,211,129,.28); background: linear-gradient(145deg, rgba(27,77,54,.22), var(--surface)); }
.metric-live span { display: flex; align-items: center; gap: 7px; color: #8de8b8; }
.metric-live i, .online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fd381; box-shadow: 0 0 0 5px rgba(47,211,129,.1); animation: onlinePulse 2s ease-in-out infinite; }
@keyframes onlinePulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; box-shadow: 0 0 0 7px rgba(47,211,129,.06); } }
.analytics-section { scroll-margin-top: 18px; margin: 0 0 22px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(17,23,34,.97), rgba(11,15,23,.97)); box-shadow: var(--shadow); }
.analytics-section:target { animation: analyticsFocus 1.15s ease-out; }
@keyframes analyticsFocus { 0% { border-color: rgba(47,211,129,.75); box-shadow: 0 0 0 5px rgba(47,211,129,.12), var(--shadow); } 100% { border-color: var(--line); box-shadow: var(--shadow); } }
.analytics-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.analytics-heading h2 { margin: 7px 0 4px; font-size: 26px; letter-spacing: -.035em; }
.analytics-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.analytics-page-heading p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.analytics-periods { display: inline-flex; gap: 5px; margin-top: 24px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.analytics-periods a { min-width: 75px; padding: 9px 13px; border-radius: 9px; color: #8d97a8; font-size: 11px; font-weight: 850; text-align: center; }
.analytics-periods a:hover { color: #fff; }
.analytics-periods a.active { color: #fff; background: linear-gradient(135deg, rgba(255,49,88,.88), rgba(255,138,61,.88)); box-shadow: 0 7px 20px rgba(255,49,88,.16); }
.analytics-summary-grid { margin-top: 18px; }
.analytics-summary-grid .metric small { display: block; margin-top: 8px; color: #667184; font-size: 9px; }
.analytics-warning { display: grid; grid-template-columns: auto 1fr; gap: 13px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid rgba(255,190,82,.28); border-radius: 15px; color: #ffd28a; background: rgba(255,168,52,.075); }
.analytics-warning[hidden] { display: none; }
.analytics-warning > span { font-size: 22px; }
.analytics-warning strong, .analytics-warning p { display: block; }
.analytics-warning p { margin: 4px 0 0; color: #a9987e; font-size: 10px; line-height: 1.55; }
.analytics-full-section { margin-bottom: 0; }
.analytics-refresh { display: flex; align-items: center; gap: 11px; }
.analytics-refresh > span { display: inline-flex; align-items: center; gap: 7px; color: #8de8b8; font-size: 9px; white-space: nowrap; }
.analytics-refresh > span i { width: 7px; height: 7px; border-radius: 50%; background: #2fd381; box-shadow: 0 0 0 5px rgba(47,211,129,.09); }
.analytics-refresh > span b { font-weight: 800; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analytics-card { min-width: 0; padding: 17px; border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(7,11,18,.52); }
.analytics-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 13px; }
.analytics-live-card { grid-column: 1 / -1; }
.activity-list { display: grid; gap: 7px; max-height: 310px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.activity-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 11px; background: rgba(255,255,255,.025); }
.country-badge { display: grid; grid-template-columns: auto auto; place-items: center; gap: 4px; min-height: 29px; padding: 3px 6px; border-radius: 8px; color: #8de8b8; background: rgba(47,211,129,.08); }
.country-badge i, .country-name i { font-style: normal; line-height: 1; }
.country-badge i { font-size: 16px; }
.country-badge b { font-size: 8px; letter-spacing: .06em; }
.country-name { display: inline-flex !important; align-items: center; gap: 7px; }
.country-name i { flex: 0 0 auto; font-size: 17px; }
.activity-page { min-width: 0; }
.activity-page strong, .activity-page small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-page strong { font-size: 11px; }
.activity-page small { margin-top: 3px; color: #7f8999; font-size: 9px; }
.activity-row time { color: #768092; font-size: 9px; white-space: nowrap; }
.stat-list { display: grid; gap: 7px; }
.stat-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 9px; border-radius: 9px; color: #aeb7c5; background: rgba(255,255,255,.025); font-size: 10px; }
.stat-list > div span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list > div strong { color: #fff; font-size: 11px; }
.stat-row { position: relative; isolation: isolate; overflow: hidden; min-height: 37px; }
.stat-row::before { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--row-progress, 0%); border-radius: inherit; background: linear-gradient(90deg, rgba(255,49,88,.13), rgba(255,138,61,.055)); transition: width .35s ease; }
.stat-row > strong { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 9px; min-width: 86px; }
.stat-row > strong b { font-size: 11px; }
.stat-row > strong small { min-width: 39px; color: #ff9bad; font-size: 9px; text-align: right; }
.stat-list-pages > .stat-row > span > b { margin-right: 6px; color: #ff91a4; font-size: 8px; }
.analytics-split-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analytics-empty { margin: 4px 0; color: #788293; font-size: 10px; }
.analytics-detail-grid .analytics-history-card, .analytics-detail-grid .analytics-wide-card { grid-column: 1 / -1; }
.analytics-scroll-card .stat-list { max-height: 420px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.history-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: -4px 0 13px; color: #7d8797; font-size: 9px; }
.history-legend span { display: inline-flex; align-items: center; gap: 6px; }
.history-legend i { width: 15px; height: 5px; border-radius: 999px; }
.history-chart { display: grid; gap: 7px; max-height: 360px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.history-row { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; min-height: 31px; }
.history-row time { color: #7e8898; font-size: 9px; }
.history-bars { display: grid; gap: 3px; }
.history-bars i { display: block; position: relative; width: max(2px, var(--history-width, 0%)); height: 9px; min-width: 2px; border-radius: 999px; transition: width .35s ease; }
.history-bars i b { position: absolute; left: calc(100% + 6px); top: -2px; color: #9099a8; font-size: 8px; font-style: normal; }
.history-pageviews { background: linear-gradient(90deg, #ff3158, #ff8a3d); }
.history-visitors { background: linear-gradient(90deg, #2fd381, #62e6d8); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-list-card { margin: 20px 0; }
.admin-series-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 17px 0; }
.admin-series-row small { display: block; color: var(--muted); margin-top: 4px; }
.admin-actions, .admin-episode-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-actions form, .admin-episode-row form { margin: 0; }
.admin-episodes { padding: 0 0 10px 18px; }
.admin-episode-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; color: #aeb7c5; font-size: 12px; }
.admin-episode-row a { color: #7ce5d8; }
.admin-episode-row button { background: none; border: 0; color: #ff788d; cursor: pointer; padding: 0; }
.series-banner + .episode-grid { margin-bottom: 50px; }
.legal-page { padding: 60px 0 100px; min-height: 70vh; }
.legal-page h1 { font-size: 44px; letter-spacing: -.045em; }
.legal-page p { color: #adb6c4; line-height: 1.8; }
.legal-owner { padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-link { color: #75e3d7; font-weight: 850; }
.empty-state { text-align: center; padding: 70px 25px; border: 1px dashed var(--line); border-radius: var(--radius); margin: 30px 0; }
.error-code { font-size: 80px; font-weight: 950; background: linear-gradient(90deg, var(--red), var(--orange)); -webkit-background-clip: text; color: transparent; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 60px 0 25px; }
  .hero-art { height: 280px; }
  .poster { width: 180px; height: 255px; }
  .poster-front { right: 39%; }
  .poster-back { right: 25%; }
  .poster-front strong { font-size: 24px; }
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-banner.has-cover { grid-template-columns: 1fr; gap: 24px; }
  .series-cover { max-width: 540px; }
  .watch-heading { width: min(100%, 540px); margin: 0 auto; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { position: static; width: min(100%, 540px); margin: 34px auto 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1240px); }
  .site-header { height: 70px; }
  .brand small { display: none; }
  .header-nav { gap: 9px; font-size: 12px; }
  .language-picker summary { min-width: 48px; padding: 7px 8px; }
  .hero-copy { padding: 38px 0 16px; }
  .hero h1 { margin: 13px 0; font-size: 39px; line-height: .97; }
  .hero p { margin-bottom: 21px; font-size: 14px; line-height: 1.55; }
  .hero .button-large { padding: 13px 19px; }
  .hero-art { height: 168px; }
  .poster { width: 128px; height: 181px; border-radius: 16px; }
  .poster-front { right: 42%; top: 8px; padding: 20px 11px; }
  .poster-back { right: 22%; top: 0; }
  .poster-front span { font-size: 8px; }
  .poster-front strong { font-size: 17px; }
  .poster-front small { font-size: 8px; }
  .catalog-section { padding-top: 38px; }
  .section-heading h2 { font-size: 29px; }
  .episode-grid { grid-template-columns: 1fr; }
  .series-heading { align-items: start; }
  .series-banner { padding-top: 34px; }
  .series-cover { max-height: 230px; border-radius: 17px; }
  .series-heading p { font-size: 13px; }
  .sponsor-strip { display: grid; grid-template-columns: 1fr; }
  .catalog-promo { margin: 20px 0 34px; padding: 17px; }
  .catalog-promo .button { width: 100%; }
  .catalog-search { display: grid; grid-template-columns: 1fr auto; }
  .catalog-search .search-clear { grid-column: 1 / -1; }
  .fanpage-card { grid-template-columns: auto 1fr; }
  .fanpage-card .button { grid-column: 1 / -1; width: 100%; }
  .watch-page { padding-top: 5px; }
  .watch-heading .back-link { margin: 5px 0 24px; }
  .watch-heading h1 { margin: 8px 0 18px; font-size: 36px; }
  .video-shell { border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.46); }
  .watch-meta { padding: 0 4px; }
  .sponsor-card { margin-top: 14px; padding: 17px; border-radius: 17px; }
  .sponsor-card h2 { font-size: 20px; }
  .button-offer { min-height: 52px; border-radius: 13px; }
  .promo-float { right: 11px; bottom: 13px; }
  .cookie-notice { left: 11px; bottom: 11px; width: calc(100vw - 22px); }
  .promo-dialog { padding: 22px 19px 18px; border-radius: 20px; }
  .promo-dialog h2 { font-size: 27px; }
  .episode-synopsis { margin: 21px auto; }
  .episode-navigation { grid-template-columns: 1fr; }
  .watch-meta { flex-direction: column; gap: 4px; }
  .watch-sidebar { margin-top: 28px; border-radius: 17px; }
  .sidebar-episode-list { max-height: 540px; }
  .admin-grid, .form-row { grid-template-columns: 1fr; }
  .analytics-section { padding: 17px; border-radius: 17px; }
  .analytics-heading { align-items: flex-start; flex-direction: column; }
  .analytics-refresh { width: 100%; justify-content: space-between; }
  .analytics-periods { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .analytics-periods a { min-width: 0; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-live-card { grid-column: auto; }
  .analytics-detail-grid .analytics-history-card, .analytics-detail-grid .analytics-wide-card { grid-column: auto; }
  .analytics-split-card { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 50px minmax(0,1fr); }
  .activity-row time { grid-column: 2; }
  .fanpage-settings { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 23px; }
  .admin-heading, .admin-series-row { align-items: flex-start; }
  .admin-series-row { flex-direction: column; }
  .site-footer { flex-direction: column; justify-content: center; text-align: center; padding: 28px 0; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .promo-float.is-visible, .sponsor-card.is-ready, .nav-episode.is-ready, .analytics-section:target { animation: none; }
  .metric-live i, .online-dot { animation: none; }
  .promo-modal, .promo-dialog { transition: none; }
}
