/* generated by php bin/console app:prepare */

/* app.css */
/* StreamVault — Midnight Studio theme */
:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-deep: #04050b;
  --surface: #101426;
  --surface-2: #151a30;
  --surface-3: #1c2240;
  --surface-glass: rgba(16, 20, 38, .82);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .17);
  --text: #f7f8ff;
  --muted: #a2aac2;
  --muted-2: #727b98;
  --accent: #7c5cff;
  --accent-2: #21d4a7;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --success: #2ed39a;
  --warning: #f7bd55;
  --danger: #ff5d7a;
  --info: #62a9ff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .20);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --shadow-accent: 0 18px 52px color-mix(in srgb, var(--accent) 24%, transparent);
  --shell: 1500px;
  --header-height: 76px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -10%, color-mix(in srgb, var(--accent) 23%, transparent), transparent 35rem),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 32rem),
    linear-gradient(180deg, #090b18 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 5vw, 5.8rem); }
h2 { font-size: clamp(1.85rem, 3vw, 3.3rem); }
h3 { font-size: 1.25rem; }
small { color: var(--muted); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { color: #cfc5ff; }
pre { max-width: 48rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-2) 60%, white); outline-offset: 3px; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-main { min-height: calc(100vh - var(--header-height) - 260px); }
.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; border-radius: var(--radius-xs); background: #fff; color: #070914; font-weight: 800; }
.muted, .muted-copy { color: var(--muted); }
.text-link { color: #d9d2ff; font-weight: 750; transition: color .2s ease, transform .2s ease; }
.text-link:hover { color: var(--accent-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-2); font-size: .74rem; font-weight: 850; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.eyebrow i, .status-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent); }
.app-card, .panel, .admin-panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,29,53,.94), rgba(13,16,31,.95)); box-shadow: var(--shadow-sm); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(7,9,20,.80); backdrop-filter: blur(20px) saturate(140%); }
.header__inner { display: grid; grid-template-columns: auto auto minmax(210px, 430px) auto; gap: 22px; align-items: center; height: 100%; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 850; letter-spacing: -.025em; }
.brand__mark { position: relative; display: grid; width: 31px; height: 31px; place-items: center; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 25px color-mix(in srgb, var(--accent) 30%, transparent); transform: rotate(-4deg); }
.brand__mark::before, .brand__mark::after, .brand__mark span { position: absolute; content: ""; border-radius: 999px; background: #fff; }
.brand__mark::before { width: 5px; height: 17px; left: 8px; }
.brand__mark::after { width: 5px; height: 12px; left: 15px; bottom: 7px; opacity: .86; }
.brand__mark span { width: 5px; height: 8px; right: 6px; bottom: 7px; opacity: .66; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 720; transition: background .2s ease, color .2s ease; }
.nav-link:hover, .nav-link.is-active { background: rgba(255,255,255,.065); color: #fff; }
.nav-link.is-active::after { position: absolute; right: 11px; bottom: 3px; left: 11px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); content: ""; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 3px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-search, .hero-search { position: relative; }
.header-search { min-width: 0; }
.header-search__icon { position: absolute; z-index: 2; top: 50%; left: 14px; color: var(--muted-2); font-size: 1.25rem; transform: translateY(-53%); }
.header-search input { width: 100%; height: 43px; padding: 0 42px 0 39px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.045); color: #fff; outline: 0; transition: background .2s ease, border .2s ease, box-shadow .2s ease; }
.header-search input:focus { border-color: color-mix(in srgb, var(--accent) 65%, white); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 8px; white-space: nowrap; }
.header-actions form { margin: 0; }
.avatar-button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 50%, white); border-radius: 50%; background: linear-gradient(135deg, var(--accent), #4b33c9); font-weight: 900; box-shadow: 0 6px 20px var(--accent-soft); }
.suggestions { position: absolute; z-index: 120; top: calc(100% + 9px); right: 0; left: 0; max-height: 390px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(11,14,28,.98); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.suggestions[hidden] { display: none !important; }
.suggestion-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover, .suggestion-item.is-active { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.suggestion-item img, .suggestion-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; background: var(--surface-3); }
.suggestion-item strong, .suggestion-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-score { color: var(--accent-2); font-size: .76rem; font-weight: 800; }
.suggestion-empty { padding: 18px; color: var(--muted); text-align: center; }

/* Buttons and forms */
.button, .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; color: #fff; font-weight: 800; line-height: 1; text-align: center; transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover, .btn:hover { transform: translateY(-1px); }
.button:active, .btn:active { transform: translateY(0); }
.button:disabled, .button.is-disabled, .btn:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .5; transform: none; }
.button--primary, .btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 63%, #291a77)); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 25%, transparent); }
.button--primary:hover, .btn-primary:hover { filter: brightness(1.13); box-shadow: var(--shadow-accent); }
.button--ghost, .button--quiet, .btn-outline-secondary, .btn-outline-accent { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.button--quiet { color: #d4d8e8; }
.button--ghost:hover, .button--quiet:hover, .btn-outline-secondary:hover, .btn-outline-accent:hover { border-color: color-mix(in srgb, var(--accent) 50%, white); background: var(--accent-soft); }
.button--light { background: #fff; color: #0b0d19; }
.button--success { border-color: color-mix(in srgb, var(--success) 42%, transparent); background: color-mix(in srgb, var(--success) 18%, var(--surface)); color: #aaf5dc; }
.button--warning { border-color: color-mix(in srgb, var(--warning) 42%, transparent); background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: #ffe1a5; }
.button--danger { border-color: color-mix(in srgb, var(--danger) 42%, transparent); background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: #ffb7c5; }
.button--record { background: linear-gradient(135deg, #ff3f69, #b81f50); box-shadow: 0 10px 28px rgba(255,63,105,.22); }
.button--small, .btn-sm { min-height: 37px; padding-inline: 13px; border-radius: 10px; font-size: .8rem; }
.button--tiny { min-height: 31px; padding-inline: 10px; border-radius: 8px; font-size: .72rem; }
.button--wide { width: 100%; }
.button-lg, .btn-lg { min-height: 52px; padding-inline: 24px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .label-row { color: #d9dceb; font-size: .8rem; font-weight: 780; }
.field small { font-size: .74rem; line-height: 1.4; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(5,7,15,.66); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input, select { min-height: 45px; padding: 0 12px; }
textarea { min-height: 120px; padding: 11px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #686f88; }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--accent) 70%, white); background: #0c1020; box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--accent); }
.field-error { color: #ff9bad; font-size: .76rem; font-weight: 700; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 50%; right: 7px; min-height: 31px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .72rem; transform: translateY(-50%); }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .85rem; }
.check-row input { flex: 0 0 auto; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.stack-form { display: grid; gap: 16px; }
.form-alert { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: .86rem; }
.form-alert--error { border-color: rgba(255,93,122,.35); background: rgba(255,93,122,.10); color: #ffc1cc; }
.form-alert--success { border-color: rgba(46,211,154,.35); background: rgba(46,211,154,.10); color: #baf8e1; }
.switch { display: inline-flex; align-items: center; gap: 9px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: relative; width: 42px; height: 24px; border: 1px solid var(--line-strong); border-radius: 99px; background: #282d42; transition: background .2s ease; }
.switch span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch--large span { width: 52px; height: 29px; }
.switch--large span::after { width: 21px; height: 21px; }
.switch--large input:checked + span::after { transform: translateX(23px); }

/* Feedback */
.flash-stack { position: fixed; z-index: 300; top: calc(var(--header-height) + 14px); right: 18px; display: grid; width: min(390px, calc(100% - 36px)); gap: 9px; }
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line-strong); border-left: 4px solid var(--info); border-radius: 12px; background: rgba(15,19,36,.97); box-shadow: var(--shadow); animation: slideIn .25s ease both; }
.flash--success { border-left-color: var(--success); }
.flash--error, .flash--danger { border-left-color: var(--danger); }
.flash--warning { border-left-color: var(--warning); }
.flash__close { flex: 0 0 auto; padding: 0 3px; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px) translateX(10px); } }
.loader { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 138px) 0 clamp(80px, 10vw, 145px); }
.hero::after { position: absolute; right: -16%; bottom: -35%; width: 60%; height: 70%; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent); filter: blur(110px); content: ""; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(52px, 8vw, 130px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { max-width: 900px; margin: 22px 0 24px; }
.hero h1 span { background: linear-gradient(90deg, #bcaeff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__copy > p { max-width: 670px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-search { display: flex; max-width: 670px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(7,9,20,.7); box-shadow: 0 24px 60px rgba(0,0,0,.30); }
.hero-search input { height: 50px; border: 0; background: transparent; box-shadow: none; }
.hero-search input:focus { box-shadow: none; }
.hero-search .button { flex: 0 0 auto; }
.suggestions--hero { top: calc(100% + 10px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.hero__visual { position: relative; min-height: 510px; perspective: 1200px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb--one { top: 2%; right: 9%; width: 280px; height: 280px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 56%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent)); box-shadow: 0 0 100px color-mix(in srgb, var(--accent) 20%, transparent); }
.orb--two { bottom: 1%; left: 1%; width: 210px; height: 210px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 30%, transparent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.hero-stack { position: relative; z-index: 2; min-height: 510px; }
.hero-mini-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.20); border-radius: 24px; background: var(--surface); box-shadow: 0 35px 90px rgba(0,0,0,.48); transition: transform .3s ease, box-shadow .3s ease; }
.hero-mini-card:hover { z-index: 8; box-shadow: 0 38px 100px rgba(0,0,0,.6), var(--shadow-accent); transform: translateY(-8px) rotate(0deg) !important; }
.hero-mini-card img, .hero-mini-card > .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-mini-card > span:last-child { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(6,8,17,.74); font-size: .82rem; font-weight: 850; backdrop-filter: blur(10px); }
.hero-mini-card > span:last-child i { width: 7px; height: 7px; border-radius: 50%; background: #ff4b69; box-shadow: 0 0 0 4px rgba(255,75,105,.18); }
.hero-mini-card--1 { top: 1%; left: 20%; width: 56%; height: 74%; transform: rotate(4deg); }
.hero-mini-card--2 { bottom: 0; left: 0; width: 42%; height: 51%; transform: rotate(-7deg); }
.hero-mini-card--3 { right: 0; bottom: 4%; width: 39%; height: 45%; transform: rotate(8deg); }

/* Sections, cards, lists */
.section { padding: clamp(64px, 7vw, 112px) 0; }
.section--compact { padding-top: 42px; }
.section--raised { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.section-heading h2 { margin: 8px 0 0; }
.page-hero { padding: 70px 0 35px; }
.page-hero h1 { margin: 13px 0 10px; font-size: clamp(2.3rem, 4vw, 4.3rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.model-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.model-card, .video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(23,28,51,.94), rgba(12,15,29,.96)); box-shadow: 0 10px 30px rgba(0,0,0,.17); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.model-card:hover, .video-card:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 24px 55px rgba(0,0,0,.32), 0 0 35px var(--accent-soft); transform: translateY(-5px); }
.model-card__media, .video-card__media { position: relative; display: block; overflow: hidden; background: #080a12; }
.model-card__media { aspect-ratio: 4 / 5; }
.video-card__media { aspect-ratio: 16 / 9; }
.model-card__media img, .video-card__media img, .media-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.model-card:hover img, .video-card:hover img { transform: scale(1.045); }
.media-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 20%, #11152a), #090b17); }
.media-placeholder span { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.055); color: #dcd5ff; font-size: 1.6rem; font-weight: 900; }
.status-pill, .age-pill, .duration-pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(6,8,17,.77); box-shadow: 0 6px 20px rgba(0,0,0,.24); font-size: .66rem; font-weight: 850; backdrop-filter: blur(9px); }
.status-pill { top: 10px; left: 10px; gap: 6px; padding: 6px 9px; text-transform: uppercase; }
.status-pill--live { color: #ff8ea4; }
.status-pill--offline { color: #b2b9cc; }
.age-pill { top: 10px; right: 10px; padding: 5px 8px; }
.duration-pill { right: 10px; bottom: 10px; padding: 5px 8px; }
.model-card__body, .video-card__body { padding: 14px 14px 15px; }
.model-card__title { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.model-card__title a, .video-card__title { overflow: hidden; font-family: var(--font-display); font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.country-code { flex: 0 0 auto; color: var(--muted-2); font-size: .65rem; font-weight: 850; letter-spacing: .08em; }
.model-card__body p { display: -webkit-box; min-height: 2.55em; margin: 8px 0 12px; overflow: hidden; color: var(--muted); font-size: .75rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.model-card__meta, .video-card__meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: .68rem; }
.video-card__body { display: grid; gap: 8px; }
.empty-state { grid-column: 1 / -1; padding: clamp(38px, 6vw, 75px); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.025); text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: 9px; }
.empty-state p { max-width: 560px; margin: 0 auto 18px; color: var(--muted); }
.result-line { margin: 24px 0 16px; color: var(--muted); font-size: .86rem; }
.result-line strong { color: #fff; }
.filter-bar { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,19,36,.78); }
.filter-bar--videos { grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(150px, 1fr) auto; }
.filter-bar__button { align-self: end; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; color: var(--muted); font-size: .8rem; }
.pagination > a, .pagination > span, .pagination__pages a, .pagination__pages span { display: inline-grid; min-width: 38px; min-height: 38px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.pagination a:hover, .pagination a.is-current { border-color: color-mix(in srgb, var(--accent) 60%, white); background: var(--accent-soft); color: #fff; }
.pagination__pages { display: flex; gap: 6px; }
.pagination .is-disabled { opacity: .35; }

/* Profile, live, video */
.profile-hero { padding: 50px 0 30px; }
.profile-hero__grid { display: grid; grid-template-columns: minmax(270px, 390px) minmax(0, 1fr); gap: clamp(32px, 5vw, 75px); align-items: center; }
.profile-photo { position: relative; overflow: hidden; min-height: 470px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.profile-photo > img, .profile-photo > .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo .status-pill { top: 17px; left: 17px; }
.profile-copy__top { display: flex; align-items: center; gap: 12px; }
.profile-copy h1 { margin: 12px 0 12px; font-size: clamp(2.5rem, 5vw, 5.4rem); }
.score-chip { display: inline-flex; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--accent-2) 32%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 9%, transparent); color: #a3f7df; font-size: .72rem; font-weight: 800; }
.profile-topic { max-width: 850px; color: #ced2df; font-size: 1.08rem; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0; padding: 0; list-style: none; }
.profile-facts li, .tag-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: .75rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.live-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0 18px; }
.live-heading h1 { margin: 8px 0 0; font-size: clamp(2.1rem, 4vw, 4rem); }
.back-link { color: var(--muted); font-size: .82rem; font-weight: 750; }
.live-stage { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #020306; box-shadow: var(--shadow); }
.player-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); background: #020306; }
.player-shell video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,4,10,.68); text-align: center; backdrop-filter: blur(5px); }
.player-overlay[hidden] { display: none; }
.player-overlay > div { display: grid; justify-items: center; gap: 12px; }
.player-error { position: absolute; z-index: 4; inset: auto 20px 20px; max-width: 560px; padding: 12px 14px; border: 1px solid rgba(255,120,150,.25); border-radius: 12px; background: rgba(10,12,22,.86); color: #ffc0cb; backdrop-filter: blur(10px); }
.live-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 19px; border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(18,22,41,.98), rgba(11,14,27,.98)); }
.live-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-text { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.status-text::before { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); content: ""; }
.status-text--good::before { background: var(--success); box-shadow: 0 0 0 5px rgba(46,211,154,.12); }
.record-feedback { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.record-feedback.is-error { color: #ff9cad; }
.record-feedback.is-success { color: #9aefd4; }
.quota-note { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); color: var(--muted); font-size: .78rem; }
.quota-note--stage { margin-top: 13px; }
.offline-panel { display: grid; min-height: 480px; place-items: center; padding: 45px; text-align: center; }
.offline-panel__avatar { width: 130px; height: 130px; margin: 0 auto 18px; overflow: hidden; border: 4px solid rgba(255,255,255,.07); border-radius: 50%; }
.offline-panel__avatar img, .offline-panel__avatar .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.offline-panel__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.video-watch { padding: 42px 0 80px; }
.video-watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 370px); gap: 27px; align-items: start; }
.video-player { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow); }
.video-player video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.video-info { padding: 23px; }
.video-info h1 { margin: 9px 0 13px; font-size: clamp(2rem, 4vw, 3.8rem); }
.video-info__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.video-info__stats div, .key-value { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.video-info__stats span, .key-value span { color: var(--muted); font-size: .78rem; }
.video-info__stats strong, .key-value strong { font-size: .83rem; text-align: right; word-break: break-word; }

/* Auth and account */
.auth-page { display: grid; min-height: calc(100vh - var(--header-height)); place-items: center; padding: 65px 20px; }
.auth-card { width: min(100%, 500px); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(24,29,53,.96), rgba(10,13,26,.97)); box-shadow: var(--shadow); }
.auth-card--wide { width: min(100%, 700px); }
.auth-card__head { margin-bottom: 26px; }
.auth-card__head h1 { margin: 10px 0 10px; font-size: clamp(2rem, 6vw, 3.4rem); }
.auth-card__head p, .auth-switch { color: var(--muted); }
.auth-switch { margin: 22px 0 0; font-size: .84rem; text-align: center; }
.auth-switch a { color: #d7d0ff; font-weight: 800; }
.account-head { padding: 60px 0 25px; }
.account-head__inner { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.account-head h1 { margin: 10px 0 8px; font-size: clamp(2.3rem, 5vw, 4.4rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-grid--account { margin-top: 26px; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.stat-card span, .admin-stat span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.stat-card strong, .admin-stat strong { display: block; margin: 8px 0 5px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1; }
.stat-card small, .admin-stat small { display: block; font-size: .72rem; }
.progress { width: 100%; height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #262b40; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); gap: 24px; align-items: start; }
.panel { padding: 22px; }
.panel__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel__head h2 { margin: 6px 0 0; font-size: 1.55rem; }
.panel--security { position: sticky; top: calc(var(--header-height) + 24px); }

/* Tables and shared admin components */
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
.data-table th { padding: 12px 13px; border-bottom: 1px solid var(--line-strong); color: var(--muted-2); font-size: .67rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.024); }
.data-table td > strong, .data-table td > small { display: block; }
.data-table a:not(.button) { color: #d6ceff; font-weight: 740; }
.table-error { display: block; max-width: 280px; margin-top: 5px; color: #ff99ab; line-height: 1.35; }
.table-media { display: flex; min-width: 210px; align-items: center; gap: 11px; }
.table-media img, .table-media > span { display: grid; flex: 0 0 auto; width: 72px; height: 45px; place-items: center; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.table-media--avatar img, .table-media--avatar > span { width: 43px; height: 43px; border-radius: 12px; }
.empty-table { padding: 32px 14px; color: var(--muted); text-align: center; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); color: #d8dbe8; font-size: .64rem; font-weight: 850; line-height: 1.15; text-transform: capitalize; white-space: nowrap; }
.badge--active, .badge--ready, .badge--completed, .badge--success, .badge--working { border-color: rgba(46,211,154,.28); background: rgba(46,211,154,.10); color: #9af0d3; }
.badge--failed, .badge--disabled, .badge--cancelled, .badge--error { border-color: rgba(255,93,122,.28); background: rgba(255,93,122,.10); color: #ffabb9; }
.badge--queued, .badge--pending, .badge--upload_pending, .badge--warn, .badge--warning { border-color: rgba(247,189,85,.28); background: rgba(247,189,85,.10); color: #ffdda0; }
.badge--recording, .badge--uploading, .badge--dispatching, .badge--running { border-color: rgba(98,169,255,.28); background: rgba(98,169,255,.10); color: #abcfff; }
.inline-control { display: flex; min-width: 210px; align-items: center; gap: 7px; }
.inline-control input { min-height: 34px; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--bg-deep); }
.admin-sidebar { position: sticky; z-index: 150; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line); background: #090c18; overflow-y: auto; }
.admin-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding: 0 5px; }
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar .nav-link { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.admin-sidebar .nav-link.is-active::after { top: 9px; right: auto; bottom: 9px; left: 3px; width: 3px; height: auto; }
.admin-sidebar__foot { display: grid; gap: 9px; margin-top: auto; padding-top: 24px; }
.admin-content { min-width: 0; padding: 34px clamp(20px, 4vw, 58px) 70px; }
.admin-mobile-head { display: none; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.admin-page-head h1 { margin: 8px 0 7px; font-size: clamp(2.1rem, 4vw, 4rem); }
.admin-page-head p { max-width: 760px; margin: 0; color: var(--muted); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 13px; margin-bottom: 24px; }
.admin-stat-grid--small { grid-template-columns: repeat(4, minmax(0,1fr)); }
.admin-stat { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,29,53,.75), rgba(13,16,31,.8)); }
.admin-stat strong { overflow: hidden; font-size: clamp(1.35rem, 2.2vw, 2.1rem); text-overflow: ellipsis; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 19px; }
.admin-panel { min-width: 0; padding: 20px; }
.dashboard-grid + .admin-panel { margin-top: 19px; }
.health-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 13px; }
.health-strip > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 9px; }
.health-strip small { grid-column: 2; }
.health-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 5px rgba(255,255,255,.04); }
.health-dot--good { background: var(--success); box-shadow: 0 0 0 5px rgba(46,211,154,.10); }
.health-dot--warn { background: var(--warning); box-shadow: 0 0 0 5px rgba(247,189,85,.10); }
.health-dot--bad { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,93,122,.10); }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.health-card { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.health-card strong, .health-card small { display: block; }
.run-list { display: grid; gap: 2px; }
.run-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.run-item:last-child { border-bottom: 0; }
.run-item strong, .run-item small { display: block; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.admin-filter input { flex: 1 1 250px; }
.admin-filter select { flex: 0 1 190px; }
.admin-filter input, .admin-filter select { width: auto; }
.edit-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,380px); gap: 19px; align-items: start; }
.model-control { display: grid; grid-template-columns: repeat(4, minmax(130px,1fr)); gap: 12px; align-items: end; min-width: 570px; }
.cron-settings { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.cron-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.cron-entry code { overflow: auto; white-space: nowrap; }
.cron-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.cron-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.027); }
.cron-card__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cron-card__head h2 { margin: 4px 0 6px; font-size: 1.15rem; }
.cron-card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; color: var(--muted); font-size: .72rem; }
.cron-message { max-height: 150px; margin: 12px 0; overflow: auto; padding: 10px; border-radius: 9px; background: #070912; color: var(--muted); font-size: .71rem; white-space: pre-wrap; }
.settings-grid { display: grid; gap: 18px; }
.settings-group { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.settings-group > h2 { margin-bottom: 18px; font-size: 1.3rem; text-transform: capitalize; }
.setting-field { display: grid; grid-template-columns: minmax(180px,.9fr) minmax(230px,1.1fr); gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-field:last-child { border-bottom: 0; }
.setting-field--switch { grid-template-columns: minmax(180px,1fr) auto; }
.setting-field label strong, .setting-field label small { display: block; }
.settings-save { position: sticky; z-index: 20; bottom: 16px; display: flex; justify-content: flex-end; padding: 13px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(10,13,26,.91); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checksum { display: block; max-width: 190px; overflow: hidden; color: var(--muted-2); font-family: ui-monospace, monospace; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.danger-details { margin-top: 8px; }
.danger-details summary { cursor: pointer; color: #ffadba; font-weight: 800; }
.danger-form { display: grid; gap: 10px; min-width: 290px; margin-top: 12px; padding: 14px; border: 1px solid rgba(255,93,122,.25); border-radius: 12px; background: rgba(255,93,122,.055); }
.path-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.path-list > li, .path-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.path-list code { color: var(--muted); text-align: right; word-break: break-all; }

/* CTA, footer, error */
.cta { padding: 40px 0 85px; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(26px, 5vw, 52px); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 35%, #17142e), color-mix(in srgb, var(--accent-2) 21%, #101b27)); box-shadow: var(--shadow-accent); }
.cta h2 { margin: 10px 0 8px; }
.cta p { margin: 0; color: #d1d5e4; }
.site-footer { padding: 65px 0 25px; border-top: 1px solid var(--line); background: #060811; }
.footer__grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(2,minmax(150px,1fr)); gap: 50px; }
.footer__grid p { max-width: 440px; margin-top: 17px; color: var(--muted); }
.footer__grid h2 { margin-bottom: 14px; color: #daddE9; font-family: var(--font-sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__grid > div:first-child { gap: 0; }
.footer__grid a:not(.brand) { color: var(--muted); font-size: .83rem; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .73rem; }
.error-page { display: grid; min-height: calc(100vh - var(--header-height)); place-items: center; padding: 70px 0; }
.error-grid { display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(30px,7vw,100px); align-items: center; }
.error-code { background: linear-gradient(135deg, #fff, #a995ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-display); font-size: clamp(6rem, 18vw, 14rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; }
.error-grid h1 { margin: 12px 0 14px; font-size: clamp(2.1rem,4vw,4rem); }
.error-grid p { max-width: 600px; color: var(--muted); }

/* Utility compatibility for legacy fragments */
.d-flex { display: flex !important; } .d-inline-block { display: inline-block !important; }
.align-items-center { align-items: center !important; } .align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.position-relative { position: relative !important; } .position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; } .bottom-0 { bottom: 0 !important; } .start-0 { left: 0 !important; } .end-0 { right: 0 !important; }
.start-50 { left: 50% !important; } .translate-middle { transform: translate(-50%,-50%) !important; }
.w-100 { width: 100% !important; } .h-100 { height: 100% !important; }
.text-center { text-align: center !important; } .text-white { color: #fff !important; } .text-muted { color: var(--muted) !important; } .text-accent { color: var(--accent-2) !important; }
.fw-bold, .fw-semibold { font-weight: 800 !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-decoration-none { text-decoration: none !important; }
.rounded-circle { border-radius: 50% !important; }
.m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; } .mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; } .mt-3 { margin-top: 1rem !important; } .mt-5 { margin-top: 3rem !important; }
.p-2 { padding: .5rem !important; } .p-3 { padding: 1rem !important; } .px-2 { padding-inline: .5rem !important; } .px-4 { padding-inline: 1.5rem !important; } .pt-4 { padding-top: 1.5rem !important; }
.border { border: 1px solid var(--line) !important; } .border-top { border-top: 1px solid var(--line) !important; }
.img-fluid { max-width: 100%; height: auto; }

@media (max-width: 1280px) {
  .header__inner { grid-template-columns: auto minmax(0,1fr) minmax(210px,360px) auto; gap: 14px; }
  .main-nav { gap: 0; }
  .nav-link { padding-inline: 8px; }
  .model-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .admin-stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .health-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  :root { --header-height: 68px; }
  .header__inner { grid-template-columns: auto auto minmax(0,1fr) auto; }
  .nav-toggle { display: block; order: 4; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 20px; left: 20px; display: none; padding: 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(9,12,24,.98); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav .nav-link { padding: 11px 12px; }
  .header-actions .button--quiet { display: none; }
  .hero__grid { grid-template-columns: minmax(0,1fr) 430px; gap: 40px; }
  .model-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filter-bar { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filter-bar--videos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-bar__button { min-height: 45px; }
  .admin-shell { grid-template-columns: 220px minmax(0,1fr); }
  .dashboard-grid, .edit-grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 840px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: auto; min-height: var(--header-height); }
  .header__inner { grid-template-columns: auto minmax(0,1fr) auto; min-height: var(--header-height); }
  .header-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 11px; }
  .nav-toggle { order: initial; }
  .hero { padding-top: 68px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
  .hero-stack { min-height: 420px; }
  .hero-mini-card--1 { left: 22%; height: 72%; }
  .model-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-hero__grid, .video-watch__grid, .account-grid { grid-template-columns: 1fr; }
  .profile-photo { min-height: 650px; }
  .panel--security { position: static; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shell { display: block; }
  .admin-sidebar { position: fixed; left: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s ease; }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: 25px 0 70px rgba(0,0,0,.55); }
  .admin-mobile-head { position: sticky; z-index: 120; top: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); background: rgba(7,9,20,.93); backdrop-filter: blur(17px); }
  .admin-content { padding-top: 24px; }
  .cron-grid { grid-template-columns: 1fr; }
  .health-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .header__inner { gap: 8px; }
  .brand__text { display: none; }
  .header-actions { gap: 5px; }
  .header-actions .button { padding-inline: 10px; }
  .avatar-button { width: 35px; height: 35px; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .hero-search { display: grid; }
  .hero-search .button { width: 100%; }
  .hero__visual { min-height: 340px; }
  .hero-stack { min-height: 340px; }
  .hero-mini-card--1 { left: 25%; width: 58%; }
  .hero-mini-card--2 { width: 46%; }
  .hero-mini-card--3 { width: 43%; }
  .section { padding-block: 58px; }
  .section-heading, .admin-page-head, .account-head__inner, .live-heading, .cta__inner { align-items: flex-start; flex-direction: column; }
  .model-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .video-grid { grid-template-columns: 1fr; }
  .model-card__body { padding: 11px; }
  .filter-bar, .filter-bar--videos, .form-grid, .cron-settings { grid-template-columns: 1fr; }
  .profile-photo { min-height: 480px; }
  .profile-copy h1 { font-size: 2.6rem; }
  .live-toolbar { align-items: flex-start; flex-direction: column; }
  .live-toolbar__actions, .live-toolbar__actions .button { width: 100%; }
  .player-shell { aspect-ratio: 9 / 12; }
  .video-info__stats { grid-template-columns: 1fr; }
  .stat-grid, .admin-stat-grid, .admin-stat-grid--small, .health-strip, .health-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination__pages { flex-wrap: wrap; justify-content: center; }
  .pagination > a, .pagination > span { width: 100%; }
  .data-table { min-width: 760px; }
  .admin-panel { padding: 15px; }
  .setting-field, .setting-field--switch { grid-template-columns: 1fr; gap: 9px; }
  .model-control { grid-template-columns: 1fr; min-width: 260px; }
  .error-grid { grid-template-columns: 1fr; text-align: center; }
  .error-code { font-size: 7rem; }
  .flash-stack { top: 126px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Protected outbound download */
.download-gate-page { padding-block: 55px 85px; }
.download-gate { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); width: min(100%, 920px); padding: 0; overflow: hidden; }
.download-gate__media { position: relative; min-height: 460px; background: var(--surface-3); }
.download-gate__media > img, .download-gate__media > .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.download-gate__media .status-pill { position: absolute; top: 16px; left: 16px; }
.download-gate__body { display: grid; align-content: center; gap: 18px; padding: clamp(25px, 5vw, 48px); }
.download-countdown { display: grid; justify-items: center; gap: 18px; text-align: center; }
.download-countdown__ring { display: grid; width: 128px; height: 128px; place-content: center; border: 1px solid color-mix(in srgb, var(--accent-2) 38%, var(--line)); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 68%); box-shadow: 0 0 55px color-mix(in srgb, var(--accent-2) 14%, transparent); }
.download-countdown__ring strong { display: block; font-size: 2.4rem; line-height: 1; }
.download-countdown__ring small { display: block; margin-top: 7px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.download-countdown h2 { margin-bottom: 7px; }
.download-countdown p { color: var(--muted); }
@media (max-width: 720px) {
  .download-gate { grid-template-columns: 1fr; }
  .download-gate__media { min-height: 260px; max-height: 340px; }
}
