:root {
  --bg: #0b0b0f;
  --panel: #15151b;
  --panel-2: #1c1c24;
  --text: #f7f7f8;
  --muted: #9999a6;
  --line: rgba(255,255,255,.08);
  --accent: #ff4d32;
  --accent-2: #ff7a2f;
  --gold: #f5c76a;
  --danger: #ff5b6e;
  --radius: 16px;
  --shadow: 0 16px 50px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.55 Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar { position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: rgba(11,11,15,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; padding-left: 2px; border-radius: 10px 10px 10px 4px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); font-size: 11px; box-shadow: 0 8px 22px rgba(255,77,50,.3); }
.desktop-nav { display: none; }
.searchbox { display: flex; min-width: 0; flex: 1; max-width: 420px; height: 36px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.searchbox:focus-within { border-color: rgba(255,100,60,.65); background: rgba(255,255,255,.09); }
.searchbox input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 4px 0 14px; color: var(--text); background: transparent; }
.searchbox button { width: 40px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.account-button { display: none; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; color: var(--text); background: var(--panel-2); cursor: pointer; }
.language-picker { display:flex;flex:none;align-items:center;gap:3px;height:34px;border:1px solid var(--line);border-radius:99px;padding:0 7px;color:var(--muted);background:var(--panel); }
.language-picker span{font-size:13px}.language-picker select{width:70px;border:0;outline:0;padding:0;color:var(--text);background:transparent;font-size:12px;cursor:pointer}.language-picker option{color:var(--text);background:var(--panel)}
main { width: 100%; min-height: calc(100vh - 120px); padding-bottom: 82px; }
.page { width: min(1200px,100%); margin: auto; padding: 18px 14px 40px; }
.page-loading { display: grid; min-height: 65vh; place-content: center; text-align: center; color: var(--muted); }
.page-loading span { width: 34px; height: 34px; margin: auto; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero { position: relative; min-height: 310px; display: flex; align-items: end; margin: -18px -14px 22px; padding: 90px 20px 28px; overflow: hidden; background: radial-gradient(circle at 75% 20%,rgba(255,93,45,.42),transparent 40%), linear-gradient(120deg,#211016,#111119 65%); }
.hero::after { content:""; position:absolute; inset:auto 0 0; height:45%; background:linear-gradient(transparent,var(--bg)); pointer-events:none; }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; color: #ffb292; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.hero h1 { max-width: 560px; margin: 0 0 10px; font-size: clamp(29px,8vw,52px); line-height: 1.08; letter-spacing: -1.6px; }
.hero p { max-width: 500px; margin: 0 0 18px; color: #c1bcc2; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 16px; color: var(--text); background: var(--panel-2); cursor: pointer; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.btn-primary { border-color: transparent; background: linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow: 0 8px 25px rgba(255,77,50,.22); font-weight: 700; }
.btn-ghost { background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.btn-danger { color: #ff8c98; }
.btn-sm { min-height: 32px; padding: 5px 10px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2, .page-title { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.section-head a { color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 8px; margin: 0 -14px 18px; padding: 0 14px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; color: var(--muted); background: var(--panel); cursor: pointer; }
.chip.active { border-color: rgba(255,77,50,.5); color: #fff; background: rgba(255,77,50,.15); }
.drama-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 9px; }
.drama-card { min-width: 0; cursor: pointer; }
.cover { position: relative; aspect-ratio: 3/4.25; border-radius: 10px; overflow: hidden; background: linear-gradient(145deg,#312128,#181820); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.drama-card:hover .cover img { transform: scale(1.045); }
.cover-placeholder { width:100%; height:100%; display:grid; place-items:center; padding:8px; text-align:center; color:#d8a996; font-weight:800; background:radial-gradient(circle at 70% 15%,#753a30,transparent 35%),linear-gradient(150deg,#331a21,#111117); }
.badge { position: absolute; top: 7px; left: 7px; border-radius: 5px; padding: 2px 6px; color: white; background: rgba(10,10,13,.74); backdrop-filter: blur(8px); font-size: 10px; }
.badge.vip { color: #3b2500; background: linear-gradient(135deg,#ffe49b,#eeb74e); font-weight: 800; }
.episode-total { position: absolute; right: 6px; bottom: 6px; border-radius: 5px; padding: 2px 6px; background: rgba(0,0,0,.72); font-size: 10px; }
.drama-card h3 { margin: 8px 1px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.card-meta { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: grid; min-height: 240px; place-content: center; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty strong { display:block; margin-bottom:5px; color:var(--text); font-size:17px; }
.detail-hero { position: relative; display: grid; gap: 18px; margin: -18px -14px 0; padding: 32px 16px 24px; overflow: hidden; background: linear-gradient(180deg,rgba(30,20,23,.5),var(--bg)); }
.detail-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(25px); opacity:.22; transform:scale(1.1); }
.detail-cover { position:relative; z-index:1; width: 128px; aspect-ratio:3/4.25; border-radius:13px; overflow:hidden; box-shadow:var(--shadow); }
.detail-cover img { width:100%; height:100%; object-fit:cover; }
.detail-copy { position:relative; z-index:1; }
.detail-copy h1 { margin:0 0 8px; font-size:28px; line-height:1.15; }
.detail-meta { display:flex; flex-wrap:wrap; gap:6px 12px; color:var(--muted); font-size:12px; }
.detail-copy p { max-width:720px; color:#b6b2ba; }
.episode-list { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.episode-button { position:relative; min-height:42px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:var(--panel); cursor:pointer; }
.episode-button:hover { border-color:rgba(255,91,55,.55); }
.episode-button .lock { margin-left:3px; color:var(--gold); font-size:10px; }
.package-list { display:grid; gap:10px; }
.package { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid var(--line); border-radius:13px; background:var(--panel); }
.package strong { display:block; }.package small { color:var(--muted); }
.price { color:#ffaf75; font-weight:800; }
.player-page { width:min(1180px,100%); margin:auto; padding:0 0 90px; }
.player-shell { position:relative; width:100%; background:#000; aspect-ratio:16/9; overflow:hidden; }
.player-shell video { width:100%; height:100%; object-fit:contain; }
.player-info { padding:16px; }
.player-info h1 { margin:0 0 5px; font-size:20px; }
.player-tools { display:flex; flex-wrap:wrap; gap:10px; margin-top:15px; }
.field-inline { display:flex; align-items:center; gap:7px; color:var(--muted); }
.field-inline select { max-width:170px; }
.panel { border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); box-shadow:0 10px 30px rgba(0,0,0,.08); }
.panel-body { padding:18px; }
.account-layout { display:grid; gap:16px; }
.profile-card { padding:20px; background:radial-gradient(circle at 95% 0,rgba(245,199,106,.14),transparent 35%),var(--panel); }
.avatar { display:grid; width:58px; height:58px; place-items:center; border-radius:50%; background:linear-gradient(135deg,#ff7952,#843f62); font-size:22px; font-weight:800; overflow:hidden; }
.avatar img { width:100%;height:100%;object-fit:cover; }
.profile-head { display:flex; align-items:center; gap:13px; }.profile-head h2 { margin:0;font-size:20px; }.profile-head p { margin:2px 0 0;color:var(--muted); }
.balance { margin-top:18px;padding-top:16px;border-top:1px solid var(--line); }.balance strong { display:block;font-size:27px; }
.menu-list { display:grid; }.menu-item { display:flex; justify-content:space-between; align-items:center; min-height:50px; padding:0 16px; border-bottom:1px solid var(--line); }.menu-item:last-child{border-bottom:0}.menu-item span:last-child{color:var(--muted)}
.plans { display:grid; gap:12px; }.plan { position:relative;padding:18px;border:1px solid rgba(245,199,106,.18);border-radius:15px;background:linear-gradient(145deg,#29231c,#18171a); }.plan h3{margin:0 0 4px;color:#f7d58b}.plan .plan-price{font-size:26px;font-weight:900}.plan ul{padding-left:18px;color:#b8aa8b}.plan.featured{border-color:#a87a31;box-shadow:0 10px 30px rgba(174,120,37,.12)}
.form { display:grid; gap:15px; }.form-grid{display:grid;gap:15px}.field { display:grid; gap:6px; }.field label { color:#c7c4ca;font-size:13px; }.field input,.field textarea,.field select { width:100%; border:1px solid var(--line); border-radius:10px; outline:0; padding:10px 12px; color:var(--text); background:#101015; }.field textarea{min-height:110px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:rgba(255,91,55,.7)}
.radio-row { display:flex;flex-wrap:wrap;gap:8px}.radio-card input{position:absolute;opacity:0}.radio-card span{display:block;border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:var(--muted);cursor:pointer}.radio-card input:checked+span{border-color:var(--accent);color:#fff;background:rgba(255,77,50,.13)}
.table-list { display:grid;gap:10px}.record { display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.record-top{display:flex;justify-content:space-between;gap:10px}.record small{color:var(--muted)}
.modal-backdrop { position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);animation:fade .15s ease }.modal { width:min(420px,100%);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:20px;background:#18181e;box-shadow:var(--shadow); }.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px 8px}.modal-head h2{margin:0}.modal-close{border:0;color:var(--muted);background:none;font-size:22px;cursor:pointer}.modal-body{padding:12px 20px 22px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:18px;padding:3px;border-radius:10px;background:#101014}.auth-tabs button{border:0;border-radius:8px;padding:8px;color:var(--muted);background:none;cursor:pointer}.auth-tabs button.active{color:#fff;background:var(--panel-2)}
@keyframes fade{from{opacity:0}}
#toast-root { position:fixed;z-index:150;left:50%;bottom:85px;display:grid;gap:8px;transform:translateX(-50%);pointer-events:none}.toast{min-width:220px;max-width:90vw;padding:10px 14px;border:1px solid var(--line);border-radius:10px;color:#fff;background:#292930;box-shadow:var(--shadow);text-align:center;animation:toastin .2s ease}.toast.error{background:#52232a}@keyframes toastin{from{opacity:0;transform:translateY(8px)}}
.bottom-nav { position:fixed;z-index:40;right:0;bottom:0;left:0;height:66px;display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:rgba(16,16,21,.94);backdrop-filter:blur(18px); }.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--muted);font-size:11px}.bottom-nav a span{font-size:21px;line-height:1}.bottom-nav a.active{color:#ff7659}
@media (min-width:560px){.drama-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 13px}.detail-hero{grid-template-columns:170px 1fr;align-items:end}.detail-cover{width:170px}.episode-list{grid-template-columns:repeat(8,1fr)}.plans{grid-template-columns:repeat(2,1fr)}.form-grid.two{grid-template-columns:repeat(2,1fr)}}
@media (min-width:840px){.topbar{height:68px;padding:0 28px}.desktop-nav{display:flex;gap:25px;margin-left:28px;color:#b6b3bb}.desktop-nav a:hover{color:#fff}.account-button{display:block}.language-picker select{width:88px}.page{padding:26px 28px 60px}.hero{min-height:430px;margin:-26px -28px 30px;padding:140px 48px 55px;border-radius:0 0 24px 24px}.hero p{font-size:16px}.drama-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:25px 16px}.cover{border-radius:13px}.drama-card h3{font-size:15px}.detail-hero{grid-template-columns:210px 1fr;gap:30px;margin:-26px -28px 10px;padding:55px 45px 35px}.detail-cover{width:210px}.detail-copy h1{font-size:39px}.episode-list{grid-template-columns:repeat(12,1fr)}.player-page{padding:26px 28px 70px}.player-shell{border-radius:16px;box-shadow:var(--shadow)}.account-layout{grid-template-columns:320px 1fr;align-items:start}.plans{grid-template-columns:repeat(3,1fr)}.bottom-nav{display:none}main{padding-bottom:0}#toast-root{bottom:25px}}
@media(max-width:430px){.brand>span:last-child{display:none}.language-picker{padding:0 5px}.language-picker span{display:none}.language-picker select{width:62px}.topbar{gap:7px;padding-right:9px;padding-left:10px}}
@media (min-width:1120px){.drama-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
