:root {
  --bg: #0b0b0f;
  --panel: #14141b;
  --panel-2: #1b1b24;
  --line: #2a2a36;
  --text: #f3f3f6;
  --muted: #9a9aab;
  --accent: #ff4d2e;
  --accent-2: #ffb020;
  --good: #2ecc8f;
  --bad: #ff5a6a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel-2); padding: 9px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: #444457; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 64px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0 0 8px; letter-spacing: -0.02em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); }
.badge.good { color: var(--good); border-color: #1f5a44; }
.badge.bad { color: var(--bad); border-color: #5a1f28; }
.badge.warn { color: var(--accent-2); border-color: #5a4a1f; }
.badge.hot { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; border: 0; }

/* landing */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; max-width: 1180px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.hero { max-width: 1180px; margin: 0 auto; padding: 70px 28px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); max-width: 540px; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phone { width: 150px; aspect-ratio: 9/16; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, #2a1712, #12121a 60%); position: relative; overflow: hidden; box-shadow: 0 20px 50px #0008; }
.phone:nth-child(2) { transform: translateY(-28px); background: linear-gradient(160deg, #132a22, #12121a 60%); }
.phone:nth-child(3) { background: linear-gradient(160deg, #1d1530, #12121a 60%); }
.phone .cap { position: absolute; left: 10px; right: 10px; bottom: 34%; text-align: center; font-weight: 800; font-size: 15px; text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.phone .cap b { color: #ffe500; }
.phone .hk { position: absolute; top: 14%; left: 12px; right: 12px; background: #fff; color: #000; font-weight: 800; font-size: 11px; padding: 6px; border-radius: 4px; text-align: center; }
.phone .sc { position: absolute; top: 8px; right: 8px; }
.section { max-width: 1180px; margin: 0 auto; padding: 50px 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card h3 { font-size: 17px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-size: 32px; font-weight: 800; }
.plan ul { padding-left: 18px; margin: 6px 0 12px; color: var(--muted); flex: 1; }
.plan.featured { border-color: var(--accent); }
.footer { text-align: center; color: var(--muted); padding: 40px; font-size: 13px; }

/* app shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 4px 8px 18px; }
.side a.nav-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; }
.side a.nav-i.on, .side a.nav-i:hover { background: var(--panel-2); color: var(--text); }
.side .usage { margin-top: auto; }
.meter { height: 7px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.meter > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.main { padding: 28px 32px 60px; max-width: 1240px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }

.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; transition: .15s; background: var(--panel); }
.drop.over, .drop:hover { border-color: var(--accent); background: #1a1210; }
.drop h3 { font-size: 18px; }
.upl { margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: block; }
.vcard:hover { border-color: #444457; }
.vcard .poster { aspect-ratio: 16/9; background: #000 center/cover; position: relative; }
.vcard .body { padding: 12px 14px; }
.vcard .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 5px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--accent); transition: width .4s; }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.clip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 150px 1fr; }
.clip .vid { background: #000; position: relative; aspect-ratio: 9/16; }
.clip video, .clip .vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip .vid .score { position: absolute; top: 8px; left: 8px; }
.clip .vid .wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.clip .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.clip .ttl { font-weight: 700; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 12px; color: #7fb4ff; }
.clip .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

.modal-bg { position: fixed; inset: 0; background: #000b; display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: min(760px, 100%); max-height: 92vh; overflow: auto; padding: 22px; }
.modal .two { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.modal video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 9/16; }

table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.thumb-s { width: 40px; aspect-ratio: 9/16; object-fit: cover; border-radius: 5px; background: #000; display: block; }

.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 160px; margin-top: 10px; }
.hours div { background: var(--panel-2); border-radius: 4px 4px 0 0; position: relative; }
.hours div.best { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.hours-l { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats .card b { font-size: 28px; display: block; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: auto; }
.chan { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chan img { width: 36px; height: 36px; border-radius: 50%; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; font-weight: 600; max-width: 90vw; }
#toast.on { opacity: 1; }
#toast.err { border-color: var(--bad); color: var(--bad); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .features, .plans, .stats { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { padding: 4px 8px; width: 100%; }
  .side .usage { display: none; }
  .main { padding: 18px; }
  .clip { grid-template-columns: 120px 1fr; }
  .modal .two { grid-template-columns: 1fr; }
  .phone { width: 105px; }
}
