:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1e;
  --line: #2a2a2f;
  --text: #f7f7f8;
  --muted: #9a9aa3;
  --orange: #ff7a00;
  --orange-2: #ff9b3d;
  --danger: #e34b4b;
  --radius: 14px;
  --shell: 1500px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 11, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-main { min-height: 78px; display: grid; grid-template-columns: 220px minmax(260px, 720px) 1fr; align-items: center; gap: 30px; }
.brand img { display: block; width: 190px; height: auto; }
.search { display: flex; min-width: 0; border: 1px solid #34343a; border-radius: 999px; overflow: hidden; background: #171719; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.14); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); padding: 13px 18px; }
.search button { width: 54px; border: 0; background: var(--orange); color: #111; cursor: pointer; font-size: 24px; font-weight: 900; }
.account-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.text-button { border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; font-weight: 800; cursor: pointer; background: var(--surface-2); }
.button.primary { border-color: var(--orange); background: var(--orange); color: #121212; }
.button.primary:hover { background: var(--orange-2); }
.button.ghost:hover { border-color: #4a4a52; background: #232328; }
.button.compact { min-height: 40px; padding: 8px 15px; }
.nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; flex: 0 0 auto; padding: 15px 16px; color: #c3c3c9; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 4px 4px 0 0; background: var(--orange); }
.nav .premium-link { color: var(--orange); }

main { min-height: 68vh; padding-block: 34px 70px; }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 420px; border: 1px solid var(--line); border-radius: 22px; background: #121214; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -270px; border: 90px solid rgba(255,122,0,.12); border-radius: 50%; }
.hero-copy { z-index: 1; align-self: center; max-width: 670px; padding: 58px; }
.eyebrow { margin: 0 0 10px; color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 900; }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; color: #c1c1c8; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { display: grid; align-content: center; padding: 40px 50px 40px 20px; z-index: 1; }
.featured-panel { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid #3a3a40; border-radius: 18px; background: radial-gradient(circle at 35% 25%, #533116, #1b1510 38%, #090909 75%); box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.featured-panel::before { content: "▶"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: var(--orange); color: #111; font-size: 34px; box-shadow: 0 0 0 12px rgba(255,122,0,.13); }
.featured-meta { position: absolute; inset: auto 22px 20px; }
.featured-meta strong { display: block; font-size: 22px; }
.featured-meta span { color: #b7b7bf; font-size: 14px; }

.section { margin-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h1, .section-heading h2 { margin: 0; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.see-all { color: var(--orange); font-weight: 800; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.video-card { min-width: 0; cursor: pointer; }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, var(--card-a, #34251b), var(--card-b, #111)); border: 1px solid #25252a; }
.thumb::before { content: attr(data-letter); position: absolute; left: 18px; top: 9px; color: rgba(255,255,255,.09); font-size: clamp(70px, 9vw, 140px); font-weight: 950; line-height: 1; }
.thumb::after { content: "▶"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(8,8,9,.76); opacity: 0; transform: scale(.8); transition: .18s ease; }
.video-card:hover .thumb::after { opacity: 1; transform: scale(1); }
.duration, .badge { position: absolute; z-index: 2; padding: 4px 7px; border-radius: 5px; font-size: 12px; font-weight: 900; }
.duration { right: 8px; bottom: 8px; background: rgba(0,0,0,.8); }
.badge { left: 8px; top: 8px; background: var(--orange); color: #111; text-transform: uppercase; }
.video-card h3 { margin: 10px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.video-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card { min-height: 155px; display: flex; flex-direction: column; justify-content: end; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #1e1e22, #111); transition: .2s ease; }
.category-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.category-card strong { font-size: 22px; }
.category-card span { color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface); color: #d5d5da; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--orange); color: var(--orange); }
.empty { padding: 60px 24px; text-align: center; border: 1px dashed #36363c; border-radius: var(--radius); color: var(--muted); }

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; }
.player { aspect-ratio: 16/9; display: grid; place-items: center; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.player button { width: 88px; height: 88px; border: 0; border-radius: 50%; background: var(--orange); color: #111; font-size: 34px; cursor: pointer; }
.watch-title { margin: 18px 0 8px; font-size: 28px; }
.watch-stats { color: var(--muted); }
.watch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.description { color: #c4c4cb; }
.side-list { display: grid; gap: 12px; }
.side-card { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.side-card .thumb { border-radius: 8px; }
.side-card h3 { margin: 2px 0; font-size: 14px; }
.side-card span { color: var(--muted); font-size: 12px; }

.premium-page { text-align: center; max-width: 1000px; margin-inline: auto; }
.premium-page h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin: 12px 0; letter-spacing: -.055em; }
.premium-page > p { color: var(--muted); font-size: 19px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; text-align: left; }
.plan { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan.featured { border-color: var(--orange); box-shadow: inset 0 3px var(--orange); }
.plan h2 { margin: 0; }
.price { margin: 12px 0; font-size: 40px; font-weight: 950; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan ul { padding-left: 20px; color: #c9c9cf; }

.community-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.discussion-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.discussion { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.discussion:last-child { border-bottom: 0; }
.discussion h3 { margin: 0 0 5px; }
.discussion p, .discussion span { margin: 0; color: var(--muted); font-size: 14px; }
.community-aside { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-self: start; }

.age-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.94); }
.age-gate[hidden] { display: none; }
.age-card { width: min(520px, 100%); padding: 38px; border: 1px solid #36363b; border-radius: 20px; background: #121214; text-align: center; }
.age-card img { width: 240px; max-width: 80%; }
.age-card h1 { margin: 8px 0; font-size: 34px; }
.age-card > p:not(.eyebrow) { color: var(--muted); }
.age-actions { display: grid; gap: 10px; margin-top: 24px; }

.modal { width: min(480px, calc(100% - 30px)); border: 1px solid #3b3b42; border-radius: 18px; padding: 0; background: #141416; color: var(--text); box-shadow: 0 30px 100px #000; }
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.modal-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; color: #aaa; font-size: 30px; cursor: pointer; }
.auth-form { display: grid; gap: 14px; padding: 34px; }
.auth-form h2 { margin: 0; font-size: 28px; }
.auth-form p { margin: -6px 0 5px; color: var(--muted); }
.auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.auth-form input { width: 100%; border: 1px solid #37373d; border-radius: 9px; padding: 12px 13px; outline: 0; background: #0d0d0f; color: var(--text); }
.auth-form input:focus { border-color: var(--orange); }
.form-note { min-height: 24px; color: var(--orange); }

.site-footer { border-top: 1px solid var(--line); background: #080809; }
.footer-grid { min-height: 190px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-block: 35px; }
.footer-logo { width: 155px; }
.site-footer p { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; font-size: 14px; }
.copyright { grid-column: 1/-1; margin: 0; border-top: 1px solid #1d1d20; padding-top: 20px; }

/* Administration */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 850px; margin: -34px calc((100vw - min(var(--shell), calc(100vw - 40px))) / -2) -70px; background: #0d0d0f; }
.admin-body { overflow-x: hidden; background: #0d0d0f; }
.admin-body main { width: 100%; min-height: 100vh; padding: 0; }
.admin-body .admin-shell { min-height: 100vh; margin: 0; }
.admin-sidebar { padding: 22px 14px 32px; border-right: 1px solid #29292e; background: #101012; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; border-bottom: 1px solid #29292e; }
.admin-brand img { width: 128px; }
.admin-brand span { border: 1px solid #54351b; border-radius: 5px; padding: 3px 5px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.back-site { display: block; margin: 14px 8px 22px; color: #aaaab2; font-size: 13px; }
.back-site:hover { color: var(--orange); }
.admin-nav-group { margin-top: 19px; }
.admin-nav-group p { margin: 0 12px 7px; color: #696970; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav-group button { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 10px 12px; background: transparent; color: #b8b8c0; font-size: 14px; font-weight: 750; text-align: left; cursor: pointer; }
.admin-nav-group button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #202025; color: #c9c9cf; font-size: 12px; font-style: normal; }
.admin-nav-group button:hover { background: #19191d; color: #fff; }
.admin-nav-group button.active { background: rgba(255,122,0,.12); color: var(--orange); }
.admin-nav-group button.active i { background: var(--orange); color: #111; }
.admin-workspace { min-width: 0; }
.admin-topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #29292e; background: #131315; color: #d0d0d5; font-size: 13px; }
.admin-topbar > div { display: flex; align-items: center; gap: 9px; }
.admin-topbar-end { justify-content: flex-end; }
.admin-topbar small { color: #777780; }
.system-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf72; box-shadow: 0 0 0 4px rgba(76,175,114,.12); }
.admin-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3a2818; color: var(--orange); font-weight: 900; }
.icon-button { border: 0; background: transparent; color: var(--orange); cursor: pointer; }
.admin-content { padding: 30px; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-title h1 { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.admin-title p:not(.eyebrow) { margin: 4px 0 0; color: #8f8f98; }
.admin-title-actions { display: flex; gap: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.compact-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric { padding: 20px; border: 1px solid #2b2b31; border-radius: 12px; background: #151518; }
.metric span, .metric small { display: block; color: #8c8c95; }
.metric span { font-size: 13px; font-weight: 750; }
.metric strong { display: block; margin: 8px 0 4px; font-size: 27px; line-height: 1; }
.metric small { font-size: 12px; }
.admin-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 20px; }
.admin-panel { margin-bottom: 20px; border: 1px solid #2b2b31; border-radius: 12px; background: #151518; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid #29292e; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 3px 0 0; color: #808089; font-size: 13px; }
.small-action, .table-action { border: 1px solid #3a3a42; border-radius: 7px; padding: 6px 9px; background: #202024; color: #d1d1d6; cursor: pointer; font-size: 12px; font-weight: 750; }
.small-action:hover, .table-action:hover { border-color: var(--orange); color: var(--orange); }
.row-actions { display: flex; gap: 6px; }
.danger-action { border-color: rgba(227,75,75,.42); color: #ef8585; }
.danger-action:hover { border-color: var(--danger); color: #ffaaaa; }
.queue-item { display: grid; grid-template-columns: minmax(170px,1fr) minmax(100px,1fr) 55px; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #25252a; }
.queue-item:last-child { border-bottom: 0; }
.queue-item strong, .queue-item span { display: block; }
.queue-item span { color: #7e7e87; font-size: 12px; }
.queue-item b { text-align: right; font-size: 12px; }
.progress, .table-progress, .storage-meter { overflow: hidden; height: 7px; border-radius: 999px; background: #2a2a30; }
.progress i, .table-progress i, .storage-meter i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.attention-row { width: 100%; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #25252a; padding: 15px 18px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.attention-row:last-child { border-bottom: 0; }
.attention-row:hover { background: #1b1b1f; }
.attention-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,122,0,.13); color: var(--orange); font-weight: 900; }
.attention-row strong, .attention-row small { display: block; }
.attention-row small { color: #7e7e87; }
.attention-row b { color: var(--orange); font-size: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th { padding: 11px 14px; background: #1a1a1e; color: #8a8a93; font-size: 11px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 13px 14px; border-top: 1px solid #26262b; color: #b8b8c0; font-size: 13px; }
.admin-table td strong { color: #f0f0f2; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #29292f; color: #bdbdc4; font-size: 11px; font-weight: 850; }
.status-active, .status-premium { background: rgba(76,175,114,.14); color: #70d391; }
.status-public, .status-logged-in, .status-normal { background: rgba(73,139,224,.15); color: #75abef; }
.status-processing, .status-pending, .status-warning { background: rgba(255,173,51,.14); color: #ffb84f; }
.status-flagged, .status-suspended, .status-high { background: rgba(227,75,75,.15); color: #f06c6c; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin-toolbar input, .admin-toolbar select, .settings-section input, .settings-section select { min-height: 40px; border: 1px solid #34343b; border-radius: 8px; padding: 8px 11px; background: #151518; color: #e4e4e7; }
.admin-search { min-width: 280px; flex: 1; }
.table-progress { display: inline-block; width: 90px; margin-right: 8px; vertical-align: middle; }
.storage-card { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,2fr) auto auto; align-items: center; gap: 20px; padding: 22px; }
.storage-card strong, .storage-card span { display: block; }
.storage-card span { color: #85858e; font-size: 13px; }
.admin-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-category { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid #2c2c31; border-radius: 10px; background: #151518; }
.admin-category strong, .admin-category span { display: block; }
.admin-category span { color: #81818a; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; color: #9999a1; font-size: 12px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #36363d; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #aaa; transition: .2s; }
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { translate: 16px 0; background: #111; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.settings-section { padding: 22px; }
.settings-section h2 { margin: 0 0 18px; font-size: 18px; }
.settings-section > label { display: grid; gap: 7px; margin-top: 14px; color: #a9a9b0; font-size: 13px; font-weight: 750; }
.settings-section .toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 8px; }
.toggle-line strong, .toggle-line small { display: block; }
.toggle-line strong { color: #e9e9ec; }
.toggle-line small { color: #7f7f88; font-weight: 500; }
.admin-toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; max-width: 360px; translate: 0 25px; opacity: 0; pointer-events: none; border: 1px solid #4d3420; border-radius: 10px; padding: 13px 16px; background: #21170f; color: #ffd3ad; box-shadow: 0 16px 50px #000; transition: .2s; }
.admin-toast.visible { translate: 0; opacity: 1; }
.admin-empty { margin: 18px; padding: 34px 20px; }
.admin-action-dialog { width: min(540px, calc(100% - 28px)); }
.admin-dialog-form { display: grid; gap: 14px; padding: 32px; }
.admin-dialog-form h2 { margin: 0 0 4px; font-size: 25px; }
.admin-dialog-form label { display: grid; gap: 6px; color: #b8b8c0; font-size: 13px; font-weight: 800; }
.admin-dialog-form input, .admin-dialog-form select, .admin-dialog-form textarea { width: 100%; min-height: 42px; border: 1px solid #38383f; border-radius: 8px; padding: 9px 11px; outline: 0; background: #0d0d0f; color: #f1f1f3; }
.admin-dialog-form textarea { min-height: 110px; resize: vertical; }
.admin-dialog-form input:focus, .admin-dialog-form select:focus, .admin-dialog-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.dialog-copy { margin: 6px 0 12px; color: #b7b7bf; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.import-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.import-config-card { padding-bottom: 4px; }
.import-config-card .panel-heading { align-items: start; }
.import-form { display: grid; gap: 15px; padding: 20px; }
.import-form > label:not(.csv-drop) { display: grid; gap: 7px; color: #aaaab2; font-size: 13px; font-weight: 800; }
.import-form input[type="text"], .import-form input[type="password"], .import-form input:not([type]) { width: 100%; min-height: 42px; border: 1px solid #38383f; border-radius: 8px; padding: 9px 11px; outline: 0; background: #0d0d0f; color: #f1f1f3; }
.import-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.import-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.import-form-footer small { color: #7f7f88; line-height: 1.4; }
.csv-drop { position: relative; min-height: 142px; display: grid; place-items: center; border: 1px dashed #4a4a52; border-radius: 10px; padding: 24px; background: #111114; cursor: pointer; text-align: center; transition: .2s; }
.csv-drop:hover, .csv-drop:focus-within { border-color: var(--orange); background: #17120e; }
.csv-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.csv-drop strong, .csv-drop small { display: block; }
.csv-drop strong { color: #f1f1f3; font-size: 15px; }
.csv-drop small { margin-top: 6px; color: #85858e; font-size: 12px; }
.import-config-card code { border-radius: 4px; padding: 2px 5px; background: #26262b; color: #ffc28c; }
.import-error { color: #f06c6c; }

/* Live chat */
.live-chat-page { max-width: 1480px; margin-inline: auto; }
.live-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.live-heading h1 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.045em; }
.live-heading > div > p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); }
.live-privacy { max-width: 320px; border: 1px solid #34343b; border-radius: 999px; padding: 9px 14px; color: #aaaab2; font-size: 13px; text-align: center; }
.live-layout { display: grid; grid-template-columns: 250px minmax(0,1fr) 340px; align-items: start; gap: 16px; }
.live-rooms, .live-conversation, .live-player-shell, .camera-section { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.live-rooms { overflow: hidden; }
.live-rooms h2 { margin: 0; padding: 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.live-room { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #252529; padding: 15px 14px; background: transparent; text-align: left; cursor: pointer; }
.live-room:last-child { border-bottom: 0; }
.live-room:hover, .live-room.active { background: #1b1b1f; }
.live-room.active { box-shadow: inset 3px 0 var(--orange); }
.live-room strong, .live-room small { display: block; }
.live-room strong { color: #f0f0f2; font-size: 15px; }
.live-room small { margin-top: 3px; color: #85858e; font-size: 12px; line-height: 1.35; }
.live-room b { min-width: 27px; border-radius: 999px; padding: 3px 7px; background: #29292f; color: #b9b9c0; font-size: 12px; text-align: center; }
.live-room.active b { background: var(--orange); color: #111; }
.live-stage-column { min-width: 0; display: grid; gap: 16px; }
.live-player-shell { overflow: hidden; background: #050506; }
.live-player-top, .live-video-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; background: #141416; }
.live-player-top > div { display: flex; align-items: center; gap: 9px; }
.live-player-top span:last-child, .live-video-caption { color: #96969f; font-size: 13px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #f14646; box-shadow: 0 0 0 5px rgba(241,70,70,.12); }
#liveCategoryVideo { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
#liveCategoryVideo[hidden] { display: none; }
.live-video-empty { aspect-ratio: 16/9; display: grid; place-content: center; gap: 5px; padding: 30px; background: radial-gradient(circle at 50% 20%,#302218,#09090a 60%); text-align: center; }
.live-video-empty[hidden] { display: none; }
.live-video-empty strong { font-size: 22px; }
.live-video-empty span { color: #92929a; }
.camera-section { padding: 17px; }
.camera-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.camera-heading h2 { margin: 0; font-size: 18px; }
.camera-heading p { margin: 2px 0 0; color: #85858e; font-size: 13px; }
.camera-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.camera-empty { grid-column: 1/-1; padding: 34px 16px; border: 1px dashed #34343b; border-radius: 10px; color: #777780; text-align: center; }
.camera-tile { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 10px; background: #050506; }
.camera-tile video { width: 100%; height: 100%; object-fit: cover; }
.camera-tile span { position: absolute; left: 8px; bottom: 7px; max-width: calc(100% - 16px); overflow: hidden; border-radius: 5px; padding: 3px 7px; background: rgba(0,0,0,.72); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.local-camera { outline: 2px solid var(--orange); }
.live-conversation { position: sticky; top: 140px; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(300px,55vh) auto; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.conversation-heading h2 { margin: 0; font-size: 18px; }
.conversation-heading span { color: #898992; font-size: 12px; }
.live-people { display: flex; flex-direction: row-reverse; justify-content: end; padding-right: 5px; }
.live-person { width: 27px; height: 27px; display: grid; place-items: center; margin-right: -6px; border: 2px solid #151518; border-radius: 50%; background: #35353b; color: #fff; font-size: 11px; font-weight: 900; }
.live-person.self { background: var(--orange); color: #111; }
.join-chat { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.join-chat label { color: #8f8f98; font-size: 12px; }
.join-chat input { width: 100%; display: block; margin-top: 4px; border: 1px solid #36363d; border-radius: 8px; padding: 9px 10px; background: #0c0c0e; color: #fff; }
.live-messages { overflow-y: auto; padding: 14px; }
.chat-notice { margin: 15px 0; color: #777780; font-size: 13px; text-align: center; }
.live-message { margin-bottom: 14px; }
.live-message > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.live-message strong { font-size: 13px; }
.live-message time { color: #66666e; font-size: 11px; }
.live-message p { display: inline-block; max-width: 94%; margin: 4px 0 0; border-radius: 4px 12px 12px 12px; padding: 8px 10px; background: #242429; color: #ededf0; font-size: 14px; overflow-wrap: anywhere; }
.live-message.mine { text-align: right; }
.live-message.mine p { border-radius: 12px 4px 12px 12px; background: #4a2a0f; text-align: left; }
.live-chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.live-chat-form input { min-width: 0; border: 1px solid #35353c; border-radius: 9px; padding: 10px 11px; background: #09090a; color: #fff; }
.live-chat-form button { border: 0; border-radius: 9px; padding-inline: 14px; background: var(--orange); color: #111; font-weight: 900; cursor: pointer; }
.live-chat-form button:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 1050px) {
  .header-main { grid-template-columns: 180px 1fr auto; gap: 16px; }
  .brand img { width: 160px; }
  .account-actions .text-button { display: none; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-layout { grid-template-columns: 1fr; }
  .side-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-shell { grid-template-columns: 210px minmax(0,1fr); }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-columns { grid-template-columns: 1fr; }
  .live-layout { grid-template-columns: 210px minmax(0,1fr); }
  .live-conversation { position: static; grid-column: 1/-1; grid-template-rows: auto auto 360px auto; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .header-main { grid-template-columns: 145px 1fr; min-height: 66px; }
  .brand img { width: 136px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .account-actions { position: absolute; right: 12px; top: 13px; }
  .account-actions .button { font-size: 13px; min-height: 36px; padding: 6px 11px; }
  .nav a { padding: 12px 13px; font-size: 12px; }
  main { padding-top: 20px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 35px 26px 15px; }
  .hero-visual { padding: 22px 26px 32px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 120px; padding: 16px; }
  .category-card strong { font-size: 18px; }
  .section { margin-top: 34px; }
  .section-heading { align-items: start; }
  .side-list { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .live-heading { align-items: start; flex-direction: column; }
  .live-layout { grid-template-columns: 1fr; }
  .live-rooms { overflow-x: auto; }
  .live-rooms h2 { display: none; }
  #liveRoomList { display: flex; min-width: max-content; }
  .live-room { width: 210px; border-right: 1px solid #252529; border-bottom: 0; }
  .live-room.active { box-shadow: inset 0 3px var(--orange); }
  .live-conversation { grid-column: auto; }
  .camera-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: start; }
  .admin-shell { display: block; margin: -20px -12px -70px; }
  .admin-sidebar { position: static; overflow-x: auto; display: flex; align-items: center; gap: 8px; padding: 12px; border-right: 0; border-bottom: 1px solid #29292e; }
  .admin-brand { flex: 0 0 auto; border: 0; padding: 0 8px 0 0; }
  .admin-brand img { width: 100px; }
  .admin-brand span, .back-site, .admin-nav-group p { display: none; }
  .admin-nav-group { display: contents; }
  .admin-nav-group button { width: auto; flex: 0 0 auto; padding: 8px 10px; }
  .admin-nav-group button i { display: none; }
  .admin-topbar { padding-inline: 14px; }
  .admin-content { padding: 20px 14px; }
  .admin-title { align-items: start; flex-direction: column; }
  .admin-title-actions { flex-wrap: wrap; }
  .metric-grid, .compact-metrics, .settings-grid, .admin-card-grid, .import-admin-grid { grid-template-columns: 1fr; }
  .import-form-footer { align-items: stretch; flex-direction: column; }
  .storage-card { grid-template-columns: 1fr; }
  .admin-category { grid-template-columns: 1fr auto; }
  .admin-category .table-action { grid-column: 1/-1; }
}

@media (max-width: 390px) {
  .video-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}
