:root {
    color-scheme: dark;
    --bg: #090c14;
    --panel: #111725;
    --panel-raised: #171f2e;
    --line: rgba(255, 255, 255, .09);
    --text: #f3f5fa;
    --muted: #9aa6b9;
    --accent: #ff426d;
    --accent-soft: rgba(255, 66, 109, .14);
    --gold: #ffc767;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    background: var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 15% -20%, #20263a 0, transparent 45%), var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}
body, button, input, select, textarea { font-family: inherit; }
button, a, input, select { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, video { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 12, 20, .92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.topbar-inner { padding-block: 10px; }
.topbar-main { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { min-width: 0; overflow: hidden; font-size: 19px; font-weight: 850; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.brand b { color: var(--accent); }
.userlinks { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.balance-link { display: flex; align-items: center; gap: 7px; }
.user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-link { display: inline-flex; font-size: 11px; }
.btn, .search button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(115deg, var(--accent), #ff7958);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.btn { padding: 0 16px; }
.btn:active, .search button:active { transform: scale(.98); filter: brightness(.95); }
.btn[disabled], button[disabled] { opacity: .6; cursor: wait; }
.register-link { min-height: 36px; padding-inline: 13px; }
.search { display: flex; gap: 8px; margin-top: 10px; }
.search input, .field {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #101725;
    color: var(--text);
    padding: 10px 13px;
    font-size: 16px;
}
.search input:focus, .field:focus { border-color: rgba(255, 66, 109, .65); box-shadow: 0 0 0 3px rgba(255, 66, 109, .12); }
.search button { width: 46px; min-width: 46px; min-height: 44px; font-size: 22px; }
.site-notice { margin-top: 10px; border: 1px solid rgba(255,199,103,.22); border-radius: 11px; background: rgba(255,199,103,.08); padding: 10px 12px; color: #f6d99e; font-size: 12px; line-height: 1.5; }
main.wrap { min-height: 55vh; padding-bottom: 28px; }
.hero { padding: 25px 0 16px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 8px 0 7px; font-size: clamp(26px, 7vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 24px 0 13px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head > span { font-size: 12px; }
.category-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 18px; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-strip::-webkit-scrollbar { display: none; }
.category-pill { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); padding: 8px 13px; color: var(--muted); font-size: 12px; }
.category-pill.active { border-color: rgba(255,66,109,.45); background: var(--accent-soft); color: #ff91a8; }
.muted { color: var(--muted); }
.gold { color: var(--gold); font-weight: 800; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.card { display: block; min-width: 0; }
.poster { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #252e42, #111725); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.poster .tag { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 11, 18, .78); padding: 5px 8px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-title { overflow: hidden; margin: 9px 0 4px; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.card-sub, .card-price { font-size: 11px; }
.card-sub { color: var(--muted); }
.card-price { margin-top: 5px; color: var(--gold); }
.empty { padding: 56px 15px; color: var(--muted); text-align: center; }
.footer { padding: 22px 0 calc(86px + var(--safe-bottom)); color: #667186; font-size: 11px; text-align: center; }
.mobile-bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(15, 20, 31, .96);
    padding: 7px 12px calc(7px + var(--safe-bottom));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.mobile-bottom-nav a { display: grid; min-height: 48px; align-content: center; justify-items: center; gap: 2px; color: var(--muted); font-size: 10px; }
.mobile-bottom-nav a:active { color: #fff; }
.nav-icon { font-size: 20px; line-height: 1; }
.crumb { overflow: hidden; padding: 16px 0 12px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(130deg, rgba(255,255,255,.065), rgba(255,255,255,.015)); }
.detail-cover { display: block; width: 88px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); }
.detail h1 { margin: 5px 0 8px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.detail .eyebrow { font-size: 9px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--muted); font-size: 11px; }
.chip { border-radius: 99px; background: var(--panel-raised); padding: 5px 8px; }
.desc { max-height: 94px; overflow: auto; margin: 10px 0; color: #b6c0cf; font-size: 12px; line-height: 1.65; white-space: pre-line; -webkit-overflow-scrolling: touch; }
.package-box { display: grid; gap: 10px; margin: 14px 0; border: 1px solid rgba(255,66,109,.28); border-radius: 14px; background: var(--accent-soft); padding: 13px; }
.package-box > div:first-child strong { display: block; margin-bottom: 4px; font-size: 14px; }
.package-box .muted { font-size: 11px; line-height: 1.5; }
.package-box > div:last-child { display: flex; align-items: center; gap: 10px; }
.package-box .btn { min-height: 40px; margin-left: auto; }
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.episode { display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 9px 10px; font-size: 11px; }
.episode > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode > span:last-child { flex: 0 0 auto; font-size: 10px; }
.episode:active { border-color: rgba(255,66,109,.6); background: var(--panel-raised); }
.lock { color: var(--gold); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.play-layout > section { min-width: 0; }
.player { position: relative; overflow: hidden; width: calc(100% + 24px); max-width: none; aspect-ratio: 16 / 9; margin: 0 -12px 17px; border-radius: 14px; background: #000; isolation: isolate; box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.player.is-fitted { left: 50%; width: min(var(--fit-width, 100%), calc(100vw - 16px)); max-width: 100vw; aspect-ratio: var(--video-ratio, 16 / 9); margin-inline: 0; transform: translateX(-50%); }
.player video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; touch-action: manipulation; }
.player video::-webkit-media-controls-fullscreen-button { display: none; }
.watermark-mask { position: absolute; z-index: 4; inset: 0 auto auto 0; display:flex; align-items:center; justify-content:center; height: 9%; min-height: 24px; max-height: 46px; padding:0 12px; pointer-events: none; background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(8px) saturate(.82); backdrop-filter: blur(8px) saturate(.82); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.watermark-title{display:block;max-width:100%;overflow:hidden;color:rgba(255,255,255,.92);font-size:11px;font-weight:650;letter-spacing:.025em;line-height:1.2;text-align:center;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.65);white-space:nowrap}
.player:fullscreen { left: auto; width: 100vw; height: 100dvh; max-width: none; aspect-ratio: auto; margin: 0; transform: none; border-radius: 0; box-shadow: none; }
.player:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.player:fullscreen .watermark-mask { height: 8vh; max-height: 54px; }
.player video:fullscreen { border-radius: 0; }
.locked { display: grid; min-height: 100%; place-items: center; background: radial-gradient(ellipse, #293047, #080a10); padding: 16px; text-align: center; }
.locked > div { max-width: 320px; }
.locked h2 { margin: 6px 0; font-size: 18px; }
.locked p { margin: 8px 0 13px; color: var(--muted); font-size: 12px; }
.locked .btn { min-height: 42px; }
.locked p:has(button) { margin-top: 8px; }
.play-layout h1 { margin: 0 0 7px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.play-layout h1 .muted { font-size: 13px; }
.play-layout > section > p { margin-top: 0; font-size: 12px; }
.list-panel, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); padding: 14px; }
.list-panel h3 { margin: 0 0 12px; font-size: 15px; }
.play-episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: none; overflow: visible; }
.play-episodes a { min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: 10px; background: #182131; padding: 11px 9px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.play-episodes a.current { border-color: rgba(255,66,109,.45); background: var(--accent-soft); color: #ff8aa5; }
.form-card { width: min(100%, 440px); margin: 24px auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 22px 18px; }
.form-card h1 { margin: 0 0 8px; font-size: 23px; }
.form-card p { font-size: 13px; }
.form-card label { display: block; margin: 15px 0 7px; color: var(--muted); font-size: 12px; }
.form-card .field { width: 100%; }
.form-card .btn { width: 100%; min-height: 46px; margin-top: 18px; }
.notice { margin: 12px 0; border-radius: 9px; background: rgba(255,66,109,.1); padding: 10px; color: #ff9bb0; font-size: 13px; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wallet-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 13px; }
.wallet-card strong { display: block; margin: 5px 0; color: var(--gold); font-size: 19px; }
.wallet-card .muted, .wallet-card .card-sub { font-size: 11px; }
.wallet-card .btn { width: 100%; min-height: 42px; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 12px; }
.table td, .table th { border-bottom: 1px solid var(--line); padding: 11px 9px; text-align: left; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 22px 0; }
.purchase-overlay { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(3,5,10,.72); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); opacity: 0; transition: opacity .2s ease; }
.purchase-overlay[hidden] { display: none; }
.purchase-overlay.visible { opacity: 1; }
.purchase-sheet { position: relative; width: min(100%,480px); border: 1px solid rgba(255,255,255,.09); border-bottom: 0; border-radius: 25px 25px 0 0; background: radial-gradient(ellipse at 50% -20%,rgba(255,66,109,.23),transparent 55%),linear-gradient(145deg,#1a2232,#111725 64%); padding: 22px 20px calc(22px + env(safe-area-inset-bottom,0px)); box-shadow: 0 -18px 60px rgba(0,0,0,.42); transform: translateY(28px); transition: transform .24s cubic-bezier(.2,.75,.25,1); }
.purchase-overlay.visible .purchase-sheet { transform: translateY(0); }
.purchase-close { position: absolute; top: 15px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); color: var(--muted); font-size: 23px; line-height: 1; }
.purchase-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,199,103,.25); border-radius: 16px; background: linear-gradient(145deg,rgba(255,199,103,.2),rgba(255,66,109,.13)); color: var(--gold); font-size: 23px; box-shadow: 0 8px 22px rgba(255,66,109,.12); }
.purchase-kicker { margin-top: 15px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.purchase-sheet h2 { margin: 5px 0 4px; font-size: 22px; letter-spacing: -.03em; }
.purchase-item { overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-summary { display: grid; gap: 10px; margin-top: 19px; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: rgba(255,255,255,.045); padding: 13px 14px; }
.purchase-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.purchase-summary span { color: var(--muted); }
.purchase-summary strong { color: var(--text); font-size: 14px; }
.purchase-summary > div:first-child strong { color: var(--gold); }
.purchase-message { min-height: 20px; margin: 12px 2px; color: var(--muted); font-size: 12px; }
.purchase-actions { display: grid; grid-template-columns: .86fr 1.14fr; gap: 10px; }
.purchase-actions button { min-height: 48px; border-radius: 14px; font-size: 14px; font-weight: 750; }
.purchase-cancel { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); color: #c5cedc; }
.purchase-confirm { border: 0; background: linear-gradient(115deg,var(--accent),#ff7958); color: #fff; box-shadow: 0 8px 22px rgba(255,66,109,.2); }
.purchase-confirm:disabled { opacity: .52; box-shadow: none; }
.purchase-topup { display: block; margin: 13px auto 0; color: #ff9bb0; font-size: 12px; text-align: center; }
.purchase-topup[hidden], .purchase-actions button[hidden] { display: none; }
body.purchase-open { overflow: hidden; }

/* The public site is intentionally phone-only. Keep the administrator routes available on desktop. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    html:has(body.public-site), body.public-site { background: #fff !important; }
    body.public-site > * { display: none !important; }
}

@media (min-width: 390px) and (max-width: 768px) {
    .wrap { width: calc(100% - 30px); }
    .topbar-inner { padding-block: 11px; }
    .brand { font-size: 20px; }
    .grid { gap: 18px 14px; }
    .card-title { font-size: 15px; }
    .detail { grid-template-columns: 102px minmax(0, 1fr); gap: 15px; padding: 14px; }
    .detail-cover { width: 102px; }
    .detail h1 { font-size: 21px; }
    .player { width: calc(100% + 30px); margin-inline: -15px; border-radius: 0; }
    .list-panel, .panel { padding: 16px; }
}

@media (max-width: 360px) {
    .wrap { width: calc(100% - 20px); }
    .brand { font-size: 17px; }
    .userlinks { gap: 7px; font-size: 12px; }
    .register-link { min-height: 33px; padding-inline: 10px; }
    .detail { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .detail-cover { width: 76px; }
    .detail h1 { font-size: 17px; }
    .package-box { padding: 10px; }
    .package-box .btn { padding-inline: 10px; font-size: 12px; }
    .episodes, .play-episodes { gap: 6px; }
    .episode { min-height: 50px; padding: 8px; font-size: 10px; }
    .wallet-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
    .topbar { position: relative; }
    .player { width: min(100%, calc((100dvh - 24px) * 16 / 9)); margin-inline: auto; }
    .player:has(video:fullscreen) { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 768px) {
    :root { --safe-bottom: env(safe-area-inset-bottom, 0px); }
    html { scroll-padding-top: 78px; }
    body { background: radial-gradient(ellipse at 100% 0, rgba(255,66,109,.1), transparent 34%), radial-gradient(ellipse at 0 28%, rgba(88,105,180,.1), transparent 38%), var(--bg); }
    .wrap { width: calc(100% - 28px); }
    .topbar { padding-top: env(safe-area-inset-top, 0px); background: rgba(9,12,20,.88); }
    .topbar-inner { padding-block: 9px 11px; }
    .topbar-main { min-height: 40px; }
    .brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.025em; }
    .brand b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: linear-gradient(145deg,var(--accent),#ff7958); color: #fff; font-size: 13px; box-shadow: 0 5px 15px rgba(255,66,109,.25); }
    .userlinks { gap: 9px; font-size: 12px; }
    .balance-link { gap: 6px; border: 1px solid rgba(255,199,103,.18); border-radius: 99px; background: rgba(255,199,103,.07); padding: 7px 9px; }
    .user-name { max-width: 72px; }
    .gold { font-size: 11px; }
    .logout-link { display: none; }
    .search { gap: 7px; margin-top: 9px; }
    .search input { min-height: 42px; border-color: rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.055); }
    .search button { min-width: 44px; width: 44px; min-height: 42px; border-radius: 13px; }
    main.wrap { min-height: calc(100dvh - 170px); padding-bottom: calc(26px + var(--safe-bottom)); }
    .hero { position: relative; overflow: hidden; margin-top: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 20px; background: linear-gradient(130deg,rgba(255,66,109,.13),rgba(19,27,43,.82) 58%,rgba(65,77,116,.22)); padding: 19px 17px; box-shadow: 0 15px 38px rgba(0,0,0,.16); }
    .hero::after { position: absolute; top: -45px; right: -28px; width: 145px; height: 145px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.025),0 0 0 38px rgba(255,255,255,.018); content: ""; pointer-events: none; }
    .hero > * { position: relative; z-index: 1; }
    .hero h1 { max-width: 90%; font-size: clamp(24px,7vw,31px); }
    .hero p { max-width: 94%; font-size: 12px; }
    .section-head { margin: 23px 1px 12px; }
    .section-head h2 { font-size: 17px; letter-spacing: -.02em; }
    .category-strip { margin: 0 -1px 17px; padding: 2px 1px 8px; }
    .category-pill { min-height: 36px; display: inline-flex; align-items: center; border-color: rgba(255,255,255,.075); background: rgba(255,255,255,.045); padding: 0 14px; }
    .category-pill.active { border-color: rgba(255,66,109,.4); background: linear-gradient(120deg,rgba(255,66,109,.2),rgba(255,121,88,.1)); color: #ff9db1; }
    .grid { gap: 17px 11px; }
    .poster { border-radius: 15px; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
    .poster .tag { top: 7px; left: 7px; border-radius: 99px; background: rgba(8,11,18,.74); backdrop-filter: blur(8px); }
    .card-title { margin: 8px 1px 4px; font-size: 14px; }
    .card-sub, .card-price { margin-left: 1px; }
    .card:active .poster img { transform: scale(1.035); }
    .crumb { padding: 14px 1px 11px; }
    .detail { grid-template-columns: 92px minmax(0,1fr); gap: 12px; border-color: rgba(255,255,255,.075); border-radius: 19px; background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.02)); padding: 13px; box-shadow: 0 14px 32px rgba(0,0,0,.12); }
    .detail-cover { width: 92px; border-radius: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
    .detail h1 { margin-top: 3px; font-size: 19px; }
    .chips { gap: 6px; }
    .chip { border: 1px solid rgba(255,255,255,.055); border-radius: 99px; padding: 5px 8px; }
    .desc { max-height: 100px; margin: 9px 0; }
    .package-box { border-color: rgba(255,66,109,.24); border-radius: 16px; background: linear-gradient(120deg,rgba(255,66,109,.13),rgba(255,121,88,.055)); padding: 13px; }
    .package-box .btn { min-height: 42px; border-radius: 12px; }
    .episodes { gap: 8px; }
    .episode { min-height: 52px; border-color: rgba(255,255,255,.06); border-radius: 13px; background: rgba(255,255,255,.045); padding: 9px 10px; }
    .play-episodes a { min-height: 44px; display: flex; align-items: center; border-color: rgba(255,255,255,.045); background: rgba(255,255,255,.05); }
    .list-panel, .panel { border-color: rgba(255,255,255,.07); border-radius: 17px; background: linear-gradient(145deg,rgba(20,28,43,.96),rgba(15,21,33,.96)); padding: 15px; }
    .player { border-radius: 0; box-shadow: 0 14px 32px rgba(0,0,0,.3); }
    .player.is-fitted { border-radius: 12px; }
    .form-card { margin: 18px auto; border-color: rgba(255,255,255,.075); border-radius: 20px; background: linear-gradient(145deg,rgba(20,28,43,.98),rgba(15,21,33,.98)); padding: 21px 17px; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
    .form-card .field, .recharge-panel .field { min-height: 48px; border-radius: 13px; background: rgba(255,255,255,.045); }
    .form-card .btn, .recharge-panel .btn { min-height: 48px; border-radius: 14px; box-shadow: 0 8px 20px rgba(255,66,109,.17); }
    .recharge-panel { border-color: rgba(255,66,109,.18); background: linear-gradient(145deg,rgba(255,66,109,.08),rgba(20,28,43,.98) 55%); }
    .wallet-grid { gap: 9px; }
    .table-scroll { border-radius: 12px; }
    .mobile-bottom-nav { padding: 7px 8px calc(7px + var(--safe-bottom)); border-top-color: rgba(255,255,255,.08); background: rgba(12,17,27,.91); box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
    .mobile-bottom-nav a { position: relative; min-height: 50px; gap: 4px; border-radius: 13px; font-size: 10px; transition: color .18s,background .18s; }
    .mobile-bottom-nav a.active { background: rgba(255,66,109,.1); color: #ff8aa5; }
    .mobile-bottom-nav a.active::before { position: absolute; top: 2px; left: 50%; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); content: ""; transform: translateX(-50%); }
    .nav-icon { font-size: 19px; }
    .footer { padding-bottom: calc(92px + var(--safe-bottom)); }
    .btn, .category-pill, .episode, .play-episodes a { -webkit-user-select: none; user-select: none; }
}

@media (max-width: 380px) {
    .topbar-main { gap: 7px; }
    .brand { gap: 6px; font-size: 16px; }
    .brand b { width: 28px; height: 28px; }
    .userlinks { gap: 5px; font-size: 11px; }
    .balance-link { gap: 4px; padding: 6px 7px; }
    .user-name { max-width: 56px; }
    .detail { grid-template-columns: 78px minmax(0,1fr); gap: 10px; padding: 10px; }
    .detail-cover { width: 78px; }
    .chips { font-size: 10px; }
    .section-head > span { font-size: 10px; }
}

@media (min-width: 520px) and (max-width: 768px) {
    .purchase-overlay { align-items: center; padding: 20px; }
    .purchase-sheet { border-bottom: 1px solid rgba(255,255,255,.09); border-radius: 25px; }
}

.password-panel form{display:grid;gap:11px}.password-panel label{display:grid;gap:7px;font-size:12px}.password-panel .field{min-height:47px;border-radius:12px;background:rgba(255,255,255,.045)}.password-panel .btn{width:100%;min-height:47px;border-radius:13px}.success-message{color:#8de0ae}
.follow-nav{display:inline-flex;align-items:center;gap:5px;color:#d6dbea;font-size:12px}.follow-badge,.episode-new{display:inline-flex;align-items:center;justify-content:center;border-radius:99px;background:var(--accent);color:#fff;font-size:9px;font-style:normal;font-weight:800;line-height:1;padding:4px 6px}.follow-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0 17px}.follow-actions form{margin:0}.follow-actions .muted,.new-update-hint{font-size:11px}.new-update-hint{color:#ff9db1}.follow-button{display:inline-flex;min-height:37px;align-items:center;justify-content:center;border:1px solid rgba(255,66,109,.4);border-radius:99px;background:rgba(255,66,109,.1);padding:0 14px;color:#ff9db1;font-size:12px;font-weight:750;cursor:pointer}.follow-button.is-following{border-color:var(--line);background:rgba(255,255,255,.045);color:var(--muted)}.episode-new{margin-left:6px;vertical-align:2px}.follow-list{display:grid;gap:9px}.follow-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015));padding:10px}.follow-card-main{display:flex;min-width:0;align-items:center;gap:11px}.follow-card-main img,.follow-card-cover{display:block;width:48px;height:64px;flex:0 0 auto;border-radius:9px;background:var(--panel-raised);object-fit:cover}.follow-card-info{display:grid;min-width:0;gap:5px}.follow-card-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.follow-card-info small,.follow-card-update small{color:var(--muted);font-size:10px}.follow-card-update b{white-space:nowrap;border-radius:99px;background:rgba(255,66,109,.13);padding:6px 9px;color:#ff91a8;font-size:10px}.follow-remove{border:0;background:transparent;padding:8px 2px;color:var(--muted);font-size:10px;cursor:pointer}.follow-remove:active{color:var(--accent)}.follow-empty{color:var(--muted);font-size:12px}
@media(max-width:480px){.follow-nav{font-size:11px}.follow-card{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.follow-card form{grid-column:2;grid-row:2;justify-self:end}.follow-card-update{grid-column:2;grid-row:1;justify-self:end}.follow-card-main{grid-column:1;grid-row:1 / span 2}.follow-card-main img,.follow-card-cover{width:43px;height:58px}.follow-card-info strong{font-size:12px}}
.episodes{grid-template-columns:minmax(0,1fr);gap:9px}.episode{position:relative;display:flex;width:100%;min-height:66px;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.075);border-radius:15px;background:linear-gradient(115deg,rgba(255,255,255,.055),rgba(255,255,255,.022));padding:11px 13px;box-shadow:0 5px 15px rgba(0,0,0,.09);transition:border-color .18s,background .18s,transform .18s,box-shadow .18s}.episode:hover{border-color:rgba(255,66,109,.32);background:linear-gradient(115deg,rgba(255,66,109,.09),rgba(255,255,255,.025));box-shadow:0 8px 19px rgba(0,0,0,.16);transform:translateY(-1px)}.episode:active{border-color:rgba(255,66,109,.5);background:rgba(255,66,109,.08);transform:scale(.995)}.episode-main{display:flex;min-width:0;flex:1;align-items:flex-start;gap:11px}.episode-number{display:grid;width:38px;height:36px;flex:0 0 auto;place-items:center;border:1px solid rgba(255,255,255,.075);border-radius:11px;background:rgba(255,255,255,.045);color:#b5bfd0;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}.episode-title{display:block;min-width:0;padding:1px 0;color:#eef1f8;font-size:13px;font-weight:650;line-height:1.55;overflow-wrap:anywhere;white-space:normal}.episode-new{margin-left:7px;vertical-align:2px}.episode-status{flex:0 0 auto;border:1px solid transparent;border-radius:99px;padding:6px 9px;font-size:10px;font-weight:700;white-space:nowrap}.episode-status.is-owned{border-color:rgba(117,224,168,.16);background:rgba(117,224,168,.08);color:#8fe0b4}.episode-status.is-paid{border-color:rgba(255,199,103,.18);background:rgba(255,199,103,.08);color:var(--gold)}.episode-status.is-free{background:rgba(255,255,255,.045);color:var(--muted)}.episode-arrow{flex:0 0 auto;color:#758198;font-size:23px;font-weight:300;line-height:1}
@media(max-width:480px){.episodes{gap:8px}.episode{min-height:62px;gap:9px;padding:10px}.episode-main{gap:9px}.episode-number{width:34px;height:34px;border-radius:10px}.episode-title{font-size:12px}.episode-status{padding:5px 7px;font-size:9px}.episode-arrow{font-size:21px}}
.video-detail{display:block;padding:clamp(13px,3vw,20px)}.video-summary{display:grid;grid-template-columns:124px minmax(0,1fr);align-items:start;gap:18px}.video-cover-wrap{min-width:0}.video-detail .detail-cover{width:124px;max-width:100%;aspect-ratio:3/4;border-radius:15px;box-shadow:0 10px 24px rgba(0,0,0,.24)}.video-info{min-width:0}.video-info .eyebrow{margin:2px 0 5px}.video-info h1{margin:0 0 9px;font-size:clamp(19px,4vw,24px);line-height:1.3}.video-info .chips{gap:7px}.video-info .chip{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.055)}.detail-stat{display:inline-flex;align-items:center;min-height:25px;color:var(--muted);font-size:11px}.video-info .desc{max-height:110px;margin:11px 0 12px}.video-info .follow-actions{margin:10px 0 12px}.video-info .package-box{margin:12px 0 0}.detail-divider{height:1px;margin:18px 0 16px;background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.045) 72%,transparent)}.video-episode-section{min-width:0}.video-episode-section .section-head{justify-content:flex-start;align-items:center;margin:0 0 12px}.video-episode-section .section-head h2{font-size:18px}.video-episode-section .section-head>span{margin-left:2px}.episode-start{margin:14px 0 0}.episode-start .btn{min-height:40px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);color:#e6eaf2;box-shadow:none;font-size:12px}.episode-start .btn:active{background:rgba(255,66,109,.12);color:#ff9db1}
@media(max-width:768px){.video-summary{grid-template-columns:108px minmax(0,1fr);gap:14px}.video-detail .detail-cover{width:108px}.video-info h1{font-size:19px}.video-info .desc{max-height:100px;margin:9px 0 11px}.detail-divider{margin:15px 0 14px}}
@media(max-width:380px){.video-summary{grid-template-columns:96px minmax(0,1fr);gap:11px}.video-detail .detail-cover{width:96px}.video-info h1{font-size:17px}.video-info .chips{gap:5px}.video-info .chip{padding:4px 7px}.detail-stat{font-size:10px}.video-info .desc{font-size:11px}.video-info .package-box{padding:10px}.video-info .package-box .btn{font-size:11px}}
.player-focus-exit,.swipe-hint{display:none}
@media(max-width:768px){body.video-focus{overflow:hidden;overscroll-behavior:none;background:#000}body.video-focus .topbar,body.video-focus .site-notice,body.video-focus .mobile-bottom-nav,body.video-focus .footer,body.video-focus .crumb,body.video-focus .play-layout>section>h1,body.video-focus .play-layout>section>p,body.video-focus .play-layout>.list-panel{display:none!important}body.video-focus main.wrap{width:100%;min-height:0;margin:0;padding:0}body.video-focus .play-layout{display:block;min-height:0;margin:0;padding:0}body.video-focus .play-layout>section{width:100%;min-height:0}body.video-focus .player,body.video-focus .player.is-fitted{position:fixed;z-index:45;inset:0;left:0;width:100vw;height:100dvh;max-width:none;aspect-ratio:auto;margin:0;border-radius:0;transform:none;box-shadow:none}body.video-focus .player video{width:100%;height:100%;object-fit:contain}.player-focus-exit{position:absolute;z-index:5;top:calc(env(safe-area-inset-top,0px) + 12px);right:14px;display:none;min-height:34px;border:1px solid rgba(255,255,255,.22);border-radius:99px;background:rgba(0,0,0,.42);padding:0 13px;color:rgba(255,255,255,.9);font-size:11px;backdrop-filter:blur(8px)}body.video-focus .player-focus-exit{display:block}.swipe-hint{position:absolute;z-index:4;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 28px);left:0;display:block;width:max-content;max-width:calc(100% - 36px);margin:auto;border:1px solid rgba(255,255,255,.13);border-radius:99px;background:rgba(0,0,0,.42);padding:8px 13px;color:rgba(255,255,255,.8);font-size:11px;opacity:0;pointer-events:none;transform:translateY(5px);transition:opacity .2s,transform .2s;backdrop-filter:blur(8px)}body.video-focus .swipe-hint.visible{opacity:1;transform:translateY(0)}.swipe-hint span{padding:0 5px;color:var(--accent)}}
.video-summary{grid-template-columns:132px minmax(0,1fr);align-items:stretch;gap:18px}.video-detail .detail-cover{width:100%;height:auto;aspect-ratio:3/4;border-radius:16px}.video-info{display:flex;height:100%;min-height:0;flex-direction:column}.video-info h1{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:2px 0 8px;font-size:clamp(19px,4vw,24px);line-height:1.3}.video-info .chips{flex-wrap:nowrap;gap:6px;overflow:hidden}.video-info .chip{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-info .detail-stat{flex:0 0 auto;font-size:10px;white-space:nowrap}.video-info .desc{display:-webkit-box;flex:1 1 0;min-height:0;max-height:5.6em;overflow:hidden;margin:10px 0 0;-webkit-box-orient:vertical;-webkit-line-clamp:4;text-overflow:ellipsis;white-space:normal}.video-detail>.follow-actions{justify-content:flex-start;margin:13px 0 11px;padding:12px 0;border-top:1px solid rgba(255,255,255,.075);border-bottom:1px solid rgba(255,255,255,.075)}.video-detail>.follow-actions form{margin:0}.video-package-box{margin:12px 0}.video-episode-pagination{overflow-x:auto;justify-content:center;gap:4px;margin:0;padding:15px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}.video-episode-pagination::-webkit-scrollbar{display:none}.video-episode-pagination li{display:block;flex:0 0 auto}.video-episode-pagination a,.video-episode-pagination span{display:block;min-width:34px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.045);padding:8px 10px;color:var(--muted);font-size:11px;text-align:center}.video-episode-pagination li.active span{border-color:rgba(255,66,109,.36);background:rgba(255,66,109,.14);color:#ff9db1}.video-episode-pagination li.disabled span{opacity:.45}.video-episode-pagination li a:active{border-color:rgba(255,66,109,.5);color:#fff}
@media(max-width:768px){.video-summary{grid-template-columns:122px minmax(0,1fr);gap:14px}.video-info h1{font-size:19px}.video-info .desc{margin-top:8px;-webkit-line-clamp:4}.video-detail>.follow-actions{margin:11px 0 9px}.video-package-box{padding:12px}}
@media(max-width:380px){.video-summary{grid-template-columns:108px minmax(0,1fr);gap:11px}.video-info h1{font-size:17px}.video-info .chips{gap:4px}.video-info .chip{max-width:38%;padding:4px 6px;font-size:9px}.video-info .detail-stat{font-size:9px}.video-info .desc{font-size:10px;line-height:1.5;-webkit-line-clamp:3}.video-episode-pagination a,.video-episode-pagination span{min-width:30px;padding:7px 8px}}
.video-summary{--cover-width:132px;--cover-height:176px;grid-template-columns:var(--cover-width) minmax(0,1fr)}.video-cover-wrap{width:var(--cover-width);height:var(--cover-height);overflow:hidden;border-radius:16px}.video-detail .detail-cover{width:100%;height:100%;aspect-ratio:auto;border-radius:inherit}.video-info{height:var(--cover-height)}.video-episode-pagination{margin:0;list-style:none}
@media(max-width:768px){.video-summary{--cover-width:122px;--cover-height:163px;grid-template-columns:var(--cover-width) minmax(0,1fr)}}
@media(max-width:380px){.video-summary{--cover-width:108px;--cover-height:144px;grid-template-columns:var(--cover-width) minmax(0,1fr)}}
.home-hero{position:relative;overflow:hidden;margin-top:14px;border:1px solid rgba(255,255,255,.075);border-radius:22px;background:linear-gradient(125deg,rgba(255,66,109,.14),rgba(20,28,43,.88) 58%,rgba(81,95,137,.18));padding:clamp(21px,5vw,34px);box-shadow:0 17px 42px rgba(0,0,0,.18)}.home-hero:after{position:absolute;top:-70px;right:-45px;width:205px;height:205px;border:1px solid rgba(255,255,255,.07);border-radius:50%;box-shadow:0 0 0 22px rgba(255,255,255,.018),0 0 0 48px rgba(255,255,255,.012);content:"";pointer-events:none}.home-hero>*{position:relative;z-index:1}.home-hero h1{font-size:clamp(27px,6vw,40px)}.home-hero-meta{display:flex;align-items:center;gap:9px;margin-top:14px;color:#c0cada;font-size:11px}.home-hero-meta i{width:3px;height:3px;border-radius:50%;background:var(--accent)}.category-strip{position:relative;z-index:1}.episode-count{position:absolute;right:9px;bottom:9px;border:1px solid rgba(255,255,255,.18);border-radius:99px;background:linear-gradient(120deg,rgba(255,66,109,.92),rgba(255,121,88,.92));padding:6px 10px;color:#fff;font-size:11px;font-weight:850;line-height:1;box-shadow:0 4px 12px rgba(0,0,0,.3);backdrop-filter:blur(8px)}.poster .tag{max-width:calc(100% - 20px)}.home-hero .eyebrow{letter-spacing:.16em}.category-pill{transition:background .18s,border-color .18s,color .18s,transform .18s}.category-pill:active{transform:scale(.96)}
@media(max-width:768px){.home-hero{margin-top:12px;border-radius:19px;padding:20px 17px}.home-hero-meta{margin-top:11px}.episode-count{right:7px;bottom:7px;padding:6px 8px;font-size:10px}}




@media(max-width:768px){body.video-focus .swipe-hint{border:0!important;border-radius:0!important;background:transparent!important;padding:4px 0!important;color:rgba(255,255,255,.94)!important;font-size:12px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.98),0 0 9px rgba(0,0,0,.85);-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important}}


.auto-buy-toggle{display:none}
@media(max-width:768px){.auto-buy-toggle{position:absolute;z-index:5;top:calc(env(safe-area-inset-top,0px) + 12px);left:14px;min-height:34px;border:1px solid rgba(255,255,255,.22);border-radius:99px;background:rgba(0,0,0,.42);padding:0 12px;color:rgba(255,255,255,.92);font-size:11px;font-weight:650;backdrop-filter:blur(8px)}body.video-focus .auto-buy-toggle{display:block}}

