: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; }
main.shell { min-width: 0; padding-inline: 16px; outline: none; }
main.shell:focus, main.shell:focus-visible { outline: none; box-shadow: none; }
.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 { min-width: 0; margin-top: 46px; }
.home-video-start { margin-top: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading > div { min-width: 0; }
.section-heading h1, .section-heading h2 { margin: 0; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.see-all { flex: 0 0 auto; color: var(--orange); font-weight: 800; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.video-card { min-width: 0; overflow: hidden; 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 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.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 { min-height: 43px; display: -webkit-box; margin: 10px 0 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.video-meta { min-width: 0; display: flex; justify-content: space-between; gap: 8px; overflow: hidden; color: var(--muted); font-size: 13px; }
.video-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-meta > span:last-child { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }

.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 { overflow-wrap: anywhere; 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 { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px,360px); gap: 26px; }
.watch-layout > div, .watch-layout > aside { min-width: 0; }
.player { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.player video { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; max-height: 100%; min-width: 0; border-radius: inherit; object-fit: contain; background: #000; }
.watch-layout .side-list, .watch-layout .side-card { min-width: 0; max-width: 100%; }
.watch-layout .side-card h3 { overflow: hidden; text-overflow: ellipsis; }
.player-watermark { position: absolute; z-index: 3; top: 3.5%; left: 3.5%; width: clamp(110px, 17%, 230px); height: auto; opacity: .72; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 5px rgba(0,0,0,.75)); }
.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; }
.torrent-progress { min-width: 170px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; }
.torrent-progress > div { height: 8px; overflow: hidden; border-radius: 99px; background: #29292d; }
.torrent-progress > div > span { display: block; height: 100%; border-radius: inherit; background: var(--orange); transition: width .35s ease; }
.torrent-progress > small { grid-column: 1 / -1; color: var(--muted); }

.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; }
.table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-action:disabled { opacity: .58; cursor: default; }
.conversion-job-list { display: grid; gap: 10px; }
.conversion-job { display: grid; grid-template-columns: minmax(260px,1.5fr) minmax(180px,1fr) minmax(180px,.8fr); align-items: center; gap: 18px; padding: 16px; border: 1px solid #2e2e34; border-radius: 10px; background: #111114; }
.conversion-job > div:first-child { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 5px 10px; }
.conversion-job strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversion-job small { grid-column: 2; color: #85858d; }
.conversion-job b { color: #c8c8ce; font-size: 12px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.conversion-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #27272d; }
.conversion-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff7800,#ffab4d); transition: width .3s ease; }
.table-action:disabled { opacity: .42; cursor: not-allowed; border-color: #303036; color: #777780; }
.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; }
.category-management-card { grid-template-columns: minmax(220px, 1fr) auto; }
.category-native-actions { display: flex; align-items: flex-start; gap: 7px; }
.category-native-actions details { position: relative; }
.category-native-actions summary { list-style: none; user-select: none; }
.category-native-actions summary::-webkit-details-marker { display: none; }
.category-native-actions details[open] > summary { border-color: var(--orange); color: var(--orange); }
.category-native-actions form { position: absolute; right: 0; top: calc(100% + 9px); z-index: 30; width: min(330px, 80vw); display: grid; gap: 12px; padding: 15px; border: 1px solid #3a3a42; border-radius: 10px; background: #18181c; box-shadow: 0 16px 45px rgba(0,0,0,.5); }
.category-native-actions label { display: grid; gap: 6px; color: #aaaab2; font-size: 12px; font-weight: 800; }
.category-native-actions input, .category-native-actions select { width: 100%; min-height: 40px; border: 1px solid #3a3a42; border-radius: 7px; padding: 8px 10px; background: #0d0d0f; color: #f1f1f3; }
.category-native-actions p { margin: 0; color: #a1a1aa; font-size: 12px; }
.danger-button { border-color: rgba(227,75,75,.55) !important; background: #8d2424 !important; color: #fff !important; }
.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; }
.import-counts { display: block; margin-top: 5px; color: #7f7f88; font-size: 12px; white-space: nowrap; }
.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; }
.csv-drop.compact-drop { min-height: 104px; padding: 18px; }
.import-config-card code { border-radius: 4px; padding: 2px 5px; background: #26262b; color: #ffc28c; }
.import-error { color: #f06c6c; }
.import-source-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 16px; border: 1px solid #34343b; border-left: 4px solid #4e9cff; border-radius: 13px; padding: 18px 20px; background: linear-gradient(100deg,#101924,#121216 65%); }
.import-source-heading > div { display: flex; align-items: center; gap: 15px; }
.import-source-heading h2, .import-source-heading p { margin: 0; }
.import-source-heading h2 { color: #f4f4f6; font-size: 22px; }
.import-source-heading .eyebrow { margin-bottom: 3px; color: #76b5ff; }
.import-source-heading div div > p:last-child { margin-top: 5px; color: #92929b; font-size: 13px; }
.source-number { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #183b64; color: #9bcbff; font-size: 18px; font-weight: 900; }
.source-badge { border: 1px solid #315f91; border-radius: 999px; padding: 7px 11px; background: #122942; color: #9dceff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.torrent-source-heading { margin-top: 38px; border-left-color: var(--orange); background: linear-gradient(100deg,#25180d,#121216 65%); }
.torrent-source-heading .eyebrow { color: #ff9d42; }
.torrent-source-heading .source-number { background: #4b290e; color: #ffb66f; }
.source-badge-auto { border-color: #75451e; background: #33200f; color: #ffc186; }
.torrent-control-grid { grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); }
.torrent-controller-card { border-color: #69401f; }
.torrent-control-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 20px 12px; }
.source-runtime { display: grid; gap: 5px; margin: 0 20px 20px; border: 1px solid #34343a; border-radius: 9px; padding: 13px 14px; background: #0e0e11; }
.source-runtime strong { color: #ececf0; font-size: 13px; }
.source-runtime small { color: #85858e; line-height: 1.45; }

/* Live chat */
.live-chat-page { max-width: 1480px; margin-inline: auto; }
.live-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.live-heading h1 { margin: 0; font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1; 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 { min-height: 0; display: grid; grid-template-columns: 230px minmax(0,1fr); align-items: start; gap: 12px; }
.live-rooms, .live-conversation, .live-player-shell, .live-camera-panel, .camera-section { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.live-rooms { max-height: 640px; overflow-y: auto; }
.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: 12px 13px; 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: 2px; color: #85858e; font-size: 11px; line-height: 1.25; }
.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; grid-template-rows: auto auto auto; gap: 10px; }
.live-stage-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 7px 10px 7px 15px; background: var(--surface); }
.live-stage-toolbar > div { display: flex; align-items: center; gap: 10px; }
.live-stage-toolbar > div > span:last-child { margin-left: 5px; color: #96969f; font-size: 13px; }
.live-media-row { min-height: 0; display: grid; grid-template-columns: minmax(300px,380px) minmax(0,1fr); align-items: stretch; gap: 10px; }
.live-player-shell { overflow: hidden; background: #050506; }
#livePlayerMedia[hidden] { display: none; }
#livePlayerMedia[hidden] + .live-camera-panel { grid-column: 1/-1; }
.live-camera-panel { min-width: 0; height: 264px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr); }
.live-camera-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.live-camera-title span { color: #85858e; font-size: 12px; }
.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; object-fit: cover; background: #000; }
#liveCategoryVideo[hidden] { display: none; }
.live-video-empty { aspect-ratio: 16/9; display: grid; place-content: center; gap: 5px; padding: 20px; 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 { height: clamp(240px,28vh,300px); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(100px,1fr) auto; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.conversation-heading > div { display: flex; align-items: baseline; gap: 12px; }
.conversation-heading h2 { margin: 0; font-size: 16px; }
.conversation-heading span { color: #898992; font-size: 12px; }
.camera-primary { border-color: var(--orange); background: var(--orange); color: #111; font-weight: 900; }
.chat-camera-grid { grid-template-columns: repeat(3,minmax(150px,1fr)); overflow-y: auto; padding: 10px; }
.chat-camera-grid .camera-empty { padding: 10px; }
.chat-identity { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); color: #a6a6ae; 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 { min-height: 0; overflow-y: auto; padding: 12px 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; }
.chat-media-link { display: inline-block; margin-top: 7px; }
.chat-media { display: block; width: min(420px,100%); max-height: 300px; margin-top: 7px; border: 1px solid #33333a; border-radius: 10px; background: #050506; object-fit: contain; }
.live-message.mine .chat-media { margin-left: auto; }
.chat-compose { position: relative; border-top: 1px solid var(--line); }
.emoji-picker { position: absolute; z-index: 8; left: 8px; bottom: calc(100% + 7px); width: min(330px,calc(100% - 16px)); display: grid; grid-template-columns: repeat(8,1fr); gap: 4px; border: 1px solid #3b3b43; border-radius: 12px; padding: 8px; background: #1a1a1e; box-shadow: 0 16px 50px rgba(0,0,0,.55); }
.emoji-picker[hidden] { display: none; }
.emoji-picker button { border: 0; border-radius: 7px; padding: 6px 3px; background: transparent; cursor: pointer; font-size: 20px; }
.emoji-picker button:hover { background: #303036; }
.live-chat-form { display: grid; grid-template-columns: 38px 38px minmax(0,1fr) auto; gap: 6px; padding: 8px; }
.live-chat-form input { min-width: 0; border: 1px solid #35353c; border-radius: 9px; padding: 8px 10px; background: #09090a; color: #fff; }
.live-chat-form button { border: 0; border-radius: 9px; cursor: pointer; font-weight: 900; }
.live-chat-form .chat-tool { padding: 0; background: #28282e; color: #f0f0f2; font-size: 21px; }
.live-chat-form .chat-tool:hover { background: #383840; }
.live-chat-form .chat-send { padding-inline: 14px; background: var(--orange); color: #111; }
.live-chat-form button:disabled { opacity: .4; cursor: not-allowed; }
.chat-entry-overlay { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.chat-entry-overlay[hidden] { display: none; }
.chat-entry-card { width: min(460px,100%); display: grid; gap: 14px; border: 1px solid #3b3b43; border-radius: 16px; padding: 28px; background: #151518; box-shadow: 0 24px 80px rgba(0,0,0,.65); }
.chat-entry-card h2, .chat-entry-card p { margin: 0; }
.chat-entry-card > p:not(.eyebrow), .chat-entry-card small { color: #9999a2; }
.chat-entry-card label { display: grid; gap: 7px; color: #b8b8bf; font-size: 13px; font-weight: 800; }
.chat-entry-card input { min-height: 44px; border: 1px solid #3a3a42; border-radius: 8px; padding: 9px 11px; background: #09090a; color: #fff; }
.chat-entry-divider { display: flex; align-items: center; gap: 12px; color: #707078; font-size: 11px; text-transform: uppercase; }
.chat-entry-divider::before, .chat-entry-divider::after { content: ""; flex: 1; height: 1px; background: #333338; }

@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-media-row { grid-template-columns: minmax(280px,360px) minmax(0,1fr); }
}

@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; }
  main.shell { padding-inline: 6px; }
  .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)); }
  .conversion-job { grid-template-columns: 1fr; gap: 10px; }
  .conversion-job b { text-align: left; }
  .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-chat-page { min-height: 0; }
  .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; }
  .live-media-row { grid-template-columns: 1fr; }
  #livePlayerMedia[hidden] + .live-camera-panel { grid-column: auto; }
  .live-camera-panel { height: 240px; }
  .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-source-heading { align-items: flex-start; flex-direction: column; }
  .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; }
}
