/* ==========================================================================
   Nuvio — design system
   Identitas orisinal: latar gelap "ink" + aksen violet→cyan, kartu kaca lembut,
   sudut 14–18px, tipografi Inter. Mode terang tetap tersedia.
   Catatan: semua path relatif (app disajikan di sub-path).
   ========================================================================== */

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, .16);
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px;
  --gap: 20px; --pad: 20px;
  --t: 160ms cubic-bezier(.2, .7, .3, 1);
}

html[data-mode="dark"] {
  --bg: #0b0a14;
  --bg-2: #12111f;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --ink: #f5f4fb;
  --ink-2: #a5a1c0;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, .85);
  --sk: rgba(255, 255, 255, .07);
  --sk-2: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

html[data-mode="light"] {
  --bg: #f6f5fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 255, 255, .95);
  --border: rgba(31, 27, 58, .1);
  --border-2: rgba(31, 27, 58, .18);
  --ink: #1f1b3a;
  --ink-2: #635f82;
  --shadow: 0 24px 60px -34px rgba(49, 33, 110, .35);
  --sk: rgba(31, 27, 58, .07);
  --sk-2: rgba(31, 27, 58, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Atribut `hidden` HARUS selalu menang atas aturan display kelas — tanpa ini,
   elemen seperti dropdown menu (.menu-pop { display:flex }) tetap terlihat
   meski punya atribut hidden. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}
html[data-mode="dark"] body {
  background-image:
    radial-gradient(1100px 620px at 12% -10%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(34, 211, 238, .14), transparent 55%),
    radial-gradient(800px 600px at 50% 110%, rgba(236, 72, 153, .1), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; } h4 { font-size: .9rem; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.muted { color: var(--ink-2); }
.small, small { font-size: .82rem; }
.block { display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.wrap { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------- tombol ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
  backdrop-filter: blur(8px);
}
html[data-mode="dark"] .btn { background: rgba(255, 255, 255, .06); }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--ink); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b5bf7 55%, var(--accent2));
  border-color: transparent; color: #fff; box-shadow: 0 14px 30px -16px rgba(124, 92, 255, .8);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn.danger, .btn-ghost.danger { color: var(--bad); border-color: rgba(251, 113, 133, .4); }
.btn.danger:hover, .btn-ghost.danger:hover { background: rgba(251, 113, 133, .12); border-color: var(--bad); }
.btn.full { width: 100%; }
.btn.lg { padding: 13px 20px; font-size: 1rem; }
.btn.sm { padding: 7px 12px; font-size: .84rem; border-radius: var(--r-sm); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; cursor: pointer; color: var(--ink-2); transition: var(--t);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.danger:hover { color: var(--bad); background: rgba(251, 113, 133, .12); }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.chip i { font-style: normal; opacity: .7; }
.c-ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.c-bad { color: var(--bad); border-color: rgba(251, 113, 133, .35); }
.c-warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.c-info { color: var(--info); border-color: rgba(96, 165, 250, .35); }
.c-sky { color: var(--accent2); border-color: rgba(34, 211, 238, .35); }
.c-violet { color: var(--accent); border-color: rgba(124, 92, 255, .35); }

/* -------------------------------------------------------------- kartu ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--shadow);
}
.card.pad { padding: var(--pad); }
.card.pad-sm { padding: 14px; }
.card.center { text-align: center; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.gap { gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; align-items: end; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt { margin-top: 20px; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty b { color: var(--ink); font-size: 1.05rem; }
.empty p { max-width: 46ch; }
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); font-size: .92rem; }
.f-ok { border-color: rgba(52, 211, 153, .4); color: var(--ok); }
.f-bad { border-color: rgba(251, 113, 133, .4); color: var(--bad); }
.f-info { border-color: rgba(96, 165, 250, .4); color: var(--info); }
.f-warn { border-color: rgba(251, 191, 36, .4); color: var(--warn); }

/* ------------------------------------------------------------- form ------ */
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink-2); font-size: .84rem; }
.field em { color: var(--bad); font-style: normal; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=search], input[type=datetime-local], select, textarea, .sm-input {
  width: 100%; padding: 11px 13px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--ink); transition: var(--t);
}
html[data-mode="dark"] input, html[data-mode="dark"] select, html[data-mode="dark"] textarea { background: rgba(10, 9, 20, .55); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
input:disabled { opacity: .6; }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.hint { color: var(--ink-2); font-size: .78rem; }
.filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.filters .field { min-width: 170px; }
.inline { display: inline-flex; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--ink-2); padding: 6px; border-radius: 8px; }
.pw-meter { display: block; height: 5px; border-radius: 999px; background: var(--sk); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width 200ms; }
.pw-meter.s2 i { width: 40%; background: var(--warn); }
.pw-meter.s3 i { width: 70%; background: var(--info); }
.pw-meter.s4 i { width: 100%; background: var(--ok); }

/* --------------------------------------------------------- topbar/nav ---- */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(22px) saturate(170%); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.tb-in { display: flex; align-items: center; gap: 14px; padding: 12px 24px; max-width: 1500px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 1.1rem; }
.brand-txt i { font-style: normal; font-size: .68rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .09em; }
.search { position: relative; flex: 1 1 auto; max-width: 620px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); height: 44px; }
html[data-mode="dark"] .search-box { background: rgba(10, 9, 20, .6); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { border: 0; background: none; padding: 0; box-shadow: none; }
.search-box input:focus { box-shadow: none; }
.search-clear { background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.suggest a { display: block; padding: 11px 16px; font-size: .9rem; border-bottom: 1px solid var(--border); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.on { background: var(--accent-soft); }
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.badge-host { position: relative; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
[data-mode="dark"] .ico-light { display: none; }
[data-mode="light"] .ico-dark { display: none; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar-img, .avatar-fallback { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-fallback { width: var(--sz, 36px); height: var(--sz, 36px); display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: calc(var(--sz, 36px) * .42); }
.usermenu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; z-index: 60;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.menu-pop.sm { min-width: 200px; }
.menu-pop.up { top: auto; bottom: calc(100% + 10px); }
.menu-pop.right { right: 0; }
.menu-pop a, .menu-pop button.menu-item, .menu-pop .menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer; text-align: left; font-size: .9rem; width: 100%; color: var(--ink);
}
.menu-pop a:hover, .menu-pop .menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-pop .menu-item i { margin-left: auto; font-style: normal; color: var(--ink-2); font-size: .8rem; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head b { display: block; font-size: .95rem; }
.menu-head i { font-style: normal; color: var(--ink-2); font-size: .8rem; }
.menu-label { padding: 8px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.menu-note { padding: 8px 12px; color: var(--ink-2); font-size: .84rem; }
.menu-danger { color: var(--bad) !important; }

/* wrapper + sidebar */
.shell-pub { display: flex; min-height: 100vh; }
.shell-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pub-main { flex: 1 1 auto; min-width: 0; padding: 26px 24px 60px; width: 100%; max-width: none; }
.layout-home, .layout-watch, .split, .split-b, .playlist-page, .chan-page, .auth-wrap, .vip-hero, .plan-grid { max-width: 1500px; margin: 0 auto; }
.sidenav {
  position: sticky; top: 0; align-self: flex-start; width: 250px; flex: none; height: 100vh;
  padding: 16px 12px; border-right: 1px solid var(--border); overflow-y: auto;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent); backdrop-filter: blur(16px);
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.side-item:hover { background: var(--surface-2); color: var(--ink); }
.side-item.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.side-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.side-label { display: block; padding: 6px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); }
.side-foot { margin-top: 18px; padding: 12px 8px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user b { display: block; font-size: .9rem; } .side-user i { font-style: normal; font-size: .78rem; color: var(--ink-2); }
.side-legal { font-size: .74rem; color: var(--ink-2); margin: 6px 0 0; }
.side-scrim, .aside-scrim { position: fixed; inset: 0; background: rgba(6, 6, 14, .6); z-index: 45; }
.side-x, .aside-x { display: none; }

/* mobile nav bawah */
.mnav { display: none; }
.only-wide { display: inline-flex; }

/* ------------------------------------------------------------ gradients -- */
.vip-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #241a05; background: linear-gradient(135deg, #ffd76e, #ffab2e); }
.vip-badge.sm { font-size: .66rem; padding: 1px 6px; }
.vip-flag { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffd76e, #ffab2e); color: #241a05; font-size: .7rem; font-weight: 700; }
.state-flag { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(6, 6, 14, .78); color: #fff; font-size: .7rem; font-weight: 600; }

/* ------------------------------------------------------------ video ----- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr)); gap: 26px 20px; }
.vgrid.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vcard-ad { grid-column: 1 / -1; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--sk); border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms; }
.vcard:hover .thumb img { transform: scale(1.04); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); background: linear-gradient(135deg, var(--sk), var(--sk-2)); }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(6, 6, 14, .82); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.watch-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .5); }
.watch-bar i { display: block; height: 100%; background: var(--accent); }
.vmeta { display: flex; gap: 12px; min-width: 0; }
.vav { flex: none; }
.vtext { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.vtitle { font-weight: 600; font-size: .96rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.vchan { font-size: .84rem; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.vstats { font-size: .8rem; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.vmore { margin-left: auto; flex: none; }

.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 1.2rem; }
.sec-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--accent); }
.sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.h1-ic { color: var(--accent); }

.chips-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.rank-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); transition: var(--t); }
.rank-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rank { font-size: 1.3rem; font-weight: 800; color: var(--accent); width: 34px; text-align: center; }
.rank-thumb { width: 84px; flex: none; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: var(--sk); display: grid; place-items: center; color: var(--ink-2); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-text { display: flex; flex-direction: column; min-width: 0; }
.rank-text b { font-size: .92rem; } .rank-text i { font-style: normal; font-size: .78rem; color: var(--ink-2); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chips.sm { gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: .88rem; font-weight: 500; }
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-chip i { font-style: normal; font-size: .76rem; color: var(--ink-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: var(--t); }
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-ic { color: var(--accent); }
.cat-card b { font-size: 1.05rem; } .cat-card i { font-style: normal; font-size: .82rem; color: var(--ink-2); }

/* hero */
.hero { margin-bottom: 30px; }
.hero-track { position: relative; min-height: 240px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.hero-slide { position: absolute; inset: 0; display: none; align-items: flex-end; padding: 32px; background: linear-gradient(120deg, rgba(124, 92, 255, .9), rgba(34, 211, 238, .7)); }
.hero-slide.on { display: flex; }
.hero-slide[style*="--hero-img"] { background-image: linear-gradient(100deg, rgba(6, 6, 18, .92) 10%, rgba(6, 6, 18, .35)), var(--hero-img); background-size: cover; background-position: center; }
.hero-body { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.hero-body b { font-size: 1.7rem; color: #fff; }
.hero-body i { font-style: normal; color: rgba(255, 255, 255, .86); }
.hero-dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 7px; z-index: 3; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.hero-dots .dot.on { background: #fff; width: 22px; border-radius: 999px; }

/* skeleton */
.sk { display: block; background: linear-gradient(90deg, var(--sk), var(--sk-2), var(--sk)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.sk.circle { width: 36px; height: 36px; border-radius: 50%; }
.sk.line { height: 12px; margin-bottom: 8px; border-radius: 6px; }
.sk.line.w80 { width: 80%; } .sk.line.w50 { width: 50%; } .sk.line.w30 { width: 30%; }
.vcard.skeleton .thumb { border: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-hidden { display: none; }

/* --------------------------------------------------------- layout pages -- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.split-b { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.split-main, .split-aside { min-width: 0; }
.split-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.seg-item { padding: 7px 15px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.seg-item:hover { color: var(--ink); }
.seg-item.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 16px; font-size: .92rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.on { color: var(--ink); border-color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.pager-info { font-size: .86rem; color: var(--ink-2); }

/* -------------------------------------------------------- halaman tonton -- */
.layout-watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.watch-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.watch-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 88px; }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #05050c; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.player-wrap.embed { aspect-ratio: 16/9; }
.player-video, .player-embed { width: 100%; height: 100%; display: block; border: 0; background: #05050c; }
.player-gate { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; }
.gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.45); }
.gate-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; color: #fff; max-width: 460px; }
.gate-body .muted { color: rgba(255, 255, 255, .75); }
.player-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: opacity 200ms; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent 42%); color: #fff; }
.player-wrap:hover .player-ui, .player-wrap.paused .player-ui, .player-wrap:focus-within .player-ui { opacity: 1; }
.pl-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(124, 92, 255, .92); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player-wrap.playing .pl-center { opacity: 0; pointer-events: none; }
.pl-controls { padding: 8px 12px 10px; }
.pl-progress { position: relative; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .24); cursor: pointer; margin-bottom: 8px; }
.pl-progress:hover { height: 8px; }
.pl-buffer, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.pl-buffer { background: rgba(255, 255, 255, .28); width: 0; }
.pl-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; }
.pl-knob { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); left: 0; opacity: 0; }
.pl-progress:hover .pl-knob { opacity: 1; }
.pl-row { display: flex; align-items: center; gap: 6px; }
.pl-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.pl-btn:hover { background: rgba(255, 255, 255, .16); }
.pl-btn .ico-play, .pl-btn .ico-mute { display: none; }
.player-wrap.paused .pl-btn[data-pl-toggle] .ico-play { display: block; }
.player-wrap:not(.paused) .pl-btn[data-pl-toggle] .ico-pause { display: block; }
.player-wrap.muted .pl-btn[data-pl-mute] .ico-mute { display: block; }
.player-wrap:not(.muted) .pl-btn[data-pl-mute] .ico-volume { display: block; }
.pl-vol { width: 90px; accent-color: var(--accent); }
.pl-time { font-size: .8rem; color: rgba(255, 255, 255, .82); margin-left: 4px; }
.pl-spacer { flex: 1 1 auto; }
.pl-menu { position: relative; }
.pl-menu .menu-pop { min-width: 150px; }
.watch-title { font-size: 1.35rem; }
.watch-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-2); font-size: .88rem; margin-bottom: 14px; }
.watch-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reactions { display: inline-flex; border-radius: 999px; border: 1px solid var(--border-2); overflow: hidden; }
.reactions .pill { border-radius: 0; border: 0; }
.reactions .pill + .pill { border-left: 1px solid var(--border-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); }
html[data-mode="dark"] .pill { background: rgba(255, 255, 255, .06); }
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chan-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chan-id { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; }
.chan-id b { display: flex; align-items: center; gap: 6px; } .chan-id i { font-style: normal; color: var(--ink-2); font-size: .82rem; }
.desc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.desc-body { white-space: pre-line; color: var(--ink-2); }
.desc.open .desc-body { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { font-size: .82rem; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.comments { display: flex; flex-direction: column; gap: 16px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; }
.cf-body { flex: 1 1 auto; min-width: 0; }
.cf-body textarea { min-height: 46px; border-radius: var(--r); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.comment-list { display: flex; flex-direction: column; gap: 22px; }
.comment { display: flex; gap: 12px; }
.comment.reply { margin-top: 14px; }
.c-av { flex: none; }
.c-body { min-width: 0; flex: 1 1 auto; }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.c-head a { font-weight: 600; font-size: .9rem; }
.c-text { margin: 0 0 8px; font-size: .93rem; }
.c-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.c-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); font-size: .8rem; font-weight: 600; cursor: pointer; }
.c-btn:hover { background: var(--surface-2); color: var(--ink); }
.c-btn.on { color: var(--accent); }
.c-btn.danger:hover { color: var(--bad); }
.replies { border-left: 2px solid var(--border); padding-left: 14px; margin-top: 6px; }
.related-list { display: flex; flex-direction: column; gap: 16px; }
.related-list .vcard { flex-direction: row; gap: 12px; align-items: flex-start; }
.related-list .vcard .thumb { width: 168px; flex: none; }
.related-list .vcard .vmeta { flex-direction: row; gap: 10px; }
.related-list .vcard .vav { display: none; }

/* --------------------------------------------------------------- channel -- */
.chan-page { display: flex; flex-direction: column; gap: 22px; }
.chan-banner { height: 180px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--accent), var(--accent2)); border: 1px solid var(--border); }
.chan-banner[style*="--banner"] { background-image: linear-gradient(rgba(6, 6, 18, .25), rgba(6, 6, 18, .55)), var(--banner); background-size: cover; background-position: center; }
.chan-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.chan-av { border: 3px solid var(--bg); margin-top: -54px; }
.chan-meta { flex: 1 1 320px; min-width: 0; }
.chan-meta h1 { display: flex; align-items: center; gap: 10px; }
.chan-handle { color: var(--ink-2); font-size: .88rem; }
.chan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.about-card .stat-grid { margin: 18px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.stat-grid.sm { gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.stat-ic { color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.stat-sub { font-size: .8rem; color: var(--ink-2); }
.t-sky .stat-ic { color: var(--accent2); } .t-ok .stat-ic { color: var(--ok); }
.t-warn .stat-ic { color: var(--warn); } .t-bad .stat-ic { color: var(--bad); }

/* ------------------------------------------------- riwayat/playlist/notif -- */
.history-list, .notif-list, .sub-chips { display: flex; flex-direction: column; gap: 12px; }
.sub-chips { flex-direction: row; flex-wrap: wrap; margin-bottom: 18px; }
.sub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: .86rem; font-weight: 600; }
.history-row { display: flex; gap: 14px; padding: 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.h-thumb { position: relative; width: 200px; flex: none; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--sk); display: grid; place-items: center; color: var(--ink-2); }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.plist-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: var(--t); }
.plist-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.plist-cover { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--sk); display: grid; place-items: center; color: var(--ink-2); }
.plist-cover.lg { width: 320px; flex: none; }
.plist-cover img { width: 100%; height: 100%; object-fit: cover; }
.plist-count { position: absolute; right: 8px; bottom: 8px; font-style: normal; padding: 3px 9px; border-radius: 8px; background: rgba(6, 6, 14, .8); color: #fff; font-size: .74rem; font-weight: 600; }
.plist-head { margin-bottom: 22px; }
.plist-hero { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.plist-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plist-items li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.plist-num { width: 24px; text-align: center; color: var(--ink-2); font-weight: 600; }
.plist-thumb { width: 120px; flex: none; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: var(--sk); display: grid; place-items: center; color: var(--ink-2); }
.plist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plist-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.plist-dur { color: var(--ink-2); font-size: .84rem; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.notif.unread { border-color: rgba(124, 92, 255, .45); background: var(--accent-soft); }
.notif-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-body b { font-size: .93rem; } .notif-body i { font-style: normal; font-size: .86rem; color: var(--ink-2); }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-left: auto; }

/* ------------------------------------------------------------------ auth -- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 30px; align-items: center; max-width: 1080px; margin: 40px auto; }
.auth-card { padding: 30px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 22px; }
.auth-brand h1 { font-size: 1.35rem; }
.auth-alt { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 16px; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check-list svg { color: var(--ok); margin-top: 3px; }
.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.center-wrap .auth-card { max-width: 460px; width: 100%; }

/* -------------------------------------------------------------------- VIP -- */
.vip-hero { border-radius: var(--r-xl); border: 1px solid var(--border); padding: 40px; background: var(--surface); position: relative; overflow: hidden; margin-bottom: 30px; }
.vip-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, rgba(255, 215, 110, .16), transparent 70%); pointer-events: none; }
.vip-hero-body { position: relative; max-width: 640px; }
.vip-hero h1 { font-size: 1.9rem; }
.vip-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #ffd76e, #ffab2e); color: #241a05; font-weight: 700; font-size: .8rem; margin-bottom: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 30px 70px -40px rgba(124, 92, 255, .9); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .74rem; font-weight: 700; }
.plan-price { font-size: 1.7rem; font-weight: 700; margin: 0; }
.plan-price i { font-size: .82rem; font-weight: 500; color: var(--ink-2); font-style: normal; }
.plan-save { color: var(--ok); font-size: .85rem; margin: 0; }
.plan-features { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { display: flex; gap: 8px; font-size: .9rem; }
.plan-features svg { color: var(--ok); margin-top: 3px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); }
.order-amount { font-size: 1.5rem; font-weight: 700; }
.bank-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: .88rem; }
.qris { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0; }
.qris img { border-radius: var(--r); border: 1px solid var(--border); background: #fff; padding: 8px; }
.note-box { display: flex; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: .9rem; margin: 14px 0; }
.note-box svg { color: var(--accent); margin-top: 2px; }
.proof-img { max-width: 420px; border-radius: var(--r); border: 1px solid var(--border); }
.prose-page { line-height: 1.7; }
.prose-page h1 { margin-bottom: 14px; }
.prose-page img { border-radius: var(--r); }

/* ------------------------------------------------------------ iklan ------- */
.ad-slot { position: relative; margin: 22px 0; border-radius: var(--r); border: 1px dashed var(--border-2); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ad-slot .ad-body { display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: hidden; max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-slot iframe { max-width: 100%; border: 0; }
.ad-tag { align-self: flex-start; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); opacity: .7; }
.ad-inline { min-height: 110px; justify-content: center; }
.ad-header, .ad-footer { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.ad-slot[data-ad-slot="header"] { margin-top: 0; }

/* ------------------------------------------------------------- admin ------ */
.shell { display: flex; min-height: 100vh; }
.aside { width: 260px; flex: none; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 62%, transparent); backdrop-filter: blur(18px); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 12px; }
.aside-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 16px; }
.aside-head .brand span b { display: block; font-size: 1rem; }
.aside-head .brand span i { font-style: normal; font-size: .68rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.aside-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group { margin-bottom: 12px; }
.nav-label { display: block; padding: 8px 12px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.aside-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r); color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.aside-nav a:hover { background: var(--surface-2); color: var(--ink); }
.aside-nav a.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.aside-foot { margin-top: 18px; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.aside-user { display: flex; align-items: center; gap: 10px; }
.aside-user b { display: block; font-size: .88rem; } .aside-user i { font-style: normal; font-size: .76rem; color: var(--ink-2); }
.shell-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 28px 70px; flex: 1 1 auto; min-width: 0; }
.tb-title { min-width: 0; }
.tb-title h1 { font-size: 1.25rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title p { margin: 2px 0 0; font-size: .84rem; color: var(--ink-2); }
.nav-burger { display: none; }
.sticky-save { position: sticky; bottom: 18px; display: flex; justify-content: flex-end; margin-top: 22px; }

/* tabel */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

/* mini list, grafik, dsb */
.mini-table { display: flex; flex-direction: column; gap: 4px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: var(--r-sm); }
.mini-row:hover { background: var(--surface-2); }
.mr-thumb { width: 80px; flex: none; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--sk); display: grid; place-items: center; color: var(--ink-2); }
.mr-thumb.lg { width: 96px; }
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mr-body b { font-size: .9rem; } .mr-body i, .mr-body em { font-style: normal; font-size: .8rem; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 12px; }
.bars .bar { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars .bar span { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent2), var(--accent)); min-height: 3px; }
.bars .bar i { font-style: normal; font-size: .64rem; color: var(--ink-2); white-space: nowrap; }
.row-bars { display: flex; flex-direction: column; gap: 10px; }
.row-bar { display: grid; grid-template-columns: 80px minmax(0, 1fr) 130px; gap: 12px; align-items: center; font-size: .86rem; }
.rb-label { color: var(--ink-2); }
.rb-track { height: 12px; border-radius: 999px; background: var(--sk); overflow: hidden; }
.rb-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.rb-value { text-align: right; font-weight: 600; } .rb-value i { font-style: normal; color: var(--ink-2); font-weight: 400; }
.mini-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.mini-list i { display: block; font-style: normal; font-size: .78rem; color: var(--ink-2); }
.logo-preview { border-radius: 14px; }
.thumb-preview { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--sk); display: grid; place-items: center; margin-bottom: 12px; }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); }
.thumb-empty i { font-style: normal; font-size: .8rem; }
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: var(--r); border: 1px dashed var(--border-2); background: var(--surface-2); cursor: pointer; font-size: .88rem; font-weight: 600; }
.file-btn:hover { border-color: var(--accent); color: var(--accent); }
.file-btn.lg { padding: 14px 20px; }
.file-btn.full { width: 100%; justify-content: center; }
.upload-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px dashed var(--border-2); }
.progress { position: relative; height: 8px; border-radius: 999px; background: var(--sk); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 180ms; }
.progress span { position: absolute; right: 0; top: -20px; font-size: .76rem; color: var(--ink-2); }
.preview-video { width: 100%; border-radius: var(--r); border: 1px solid var(--border); background: #05050c; max-height: 320px; }
.source-pane { margin-top: 14px; }
.chan-preview { height: 130px; border-radius: var(--r); border: 1px solid var(--border); background: linear-gradient(120deg, var(--accent), var(--accent2)); display: grid; place-items: center; margin-bottom: 12px; }
.chan-preview[style*="--banner"] { background-image: linear-gradient(rgba(6, 6, 18, .3), rgba(6, 6, 18, .6)), var(--banner); background-size: cover; background-position: center; }
.chan-preview span { color: #fff; }
.comment-admin .c-av { flex: none; }

/* --------------------------------------------------------------- dialog --- */
.dlg { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink); padding: 0; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(5, 5, 12, .68); backdrop-filter: blur(3px); }
.dlg-form { display: flex; flex-direction: column; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dlg-head h3 { margin: 0; }
.dlg-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: 60vh; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.dlg-foot .btn:first-child { margin-right: auto; }

/* --------------------------------------------------------------- toast ---- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--bg-2); box-shadow: var(--shadow); font-size: .9rem; animation: toastIn 220ms ease; }
.toast.ok { border-color: rgba(52, 211, 153, .5); } .toast.ok svg { color: var(--ok); }
.toast.error { border-color: rgba(251, 113, 133, .5); } .toast.error svg { color: var(--bad); }
.toast.info svg { color: var(--info); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- footer --- */
.foot { margin-top: 50px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px; padding: 34px 24px; }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.foot-grid a { display: block; padding: 3px 0; font-size: .88rem; color: var(--ink-2); }
.foot-grid a:hover { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 24px 26px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--ink-2); }
.notfound h1 { margin: 14px 0 6px; }
.mnav-av { border-radius: 50%; }

/* ------------------------------------------------------------ responsif -- */
@media (max-width: 1180px) {
  .layout-watch, .split { grid-template-columns: minmax(0, 1fr); }
  .watch-aside, .split-aside { position: static; }
  .split-b { grid-template-columns: minmax(0, 1fr); }
  .split-aside { order: 2; }
}
@media (max-width: 1024px) {
  .sidenav { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-102%); transition: transform 220ms; box-shadow: var(--shadow); }
  body.nav-open .sidenav { transform: none; }
  .side-scrim[hidden] { display: none; }
  .side-x, .aside-x { display: inline-flex; }
  .aside { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-102%); transition: transform 220ms; }
  body.aside-open .aside { transform: none; }
  .nav-burger { display: inline-flex; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .mnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 44; display: flex; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(18px);
  }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; color: var(--ink-2); padding: 4px 10px; border-radius: 12px; min-width: 56px; }
  .mnav a.on { color: var(--accent); background: var(--accent-soft); }
  .pub-main { padding-bottom: 92px; }
  .foot { padding-bottom: 60px; }
  .content { padding-bottom: 60px; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .tb-in { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .brand-txt i { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .only-wide { display: none; }
  .pub-main { padding: 18px 14px 92px; }
  .vgrid { gap: 20px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .related-list .vcard .thumb { width: 132px; }
  .plist-cover.lg { width: 100%; }
  .history-row { flex-direction: column; }
  .h-thumb { width: 100%; }
  .content { padding: 18px 14px 60px; }
  .foot-grid { padding: 26px 16px; }
  .stat-grid { gap: 14px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 1.35rem; }
  .chat, .bars .bar i { font-size: .58rem; }
  .pager { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .vgrid, .vgrid.compact { grid-template-columns: minmax(0, 1fr); }
  .related-list .vcard .thumb { width: 116px; }
  .pl-vol { display: none; }
  .plan-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .sidenav, .mnav, .foot, .aside, .ad-slot, .toast-wrap { display: none !important; }
}
