:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: #111115;
  --bg-soft: #17171d;
  --surface: rgba(23, 23, 29, 0.82);
  --surface-strong: #1c1c23;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f8f7fb;
  --muted: #a4a3ad;
  --subtle: #74737d;
  --accent: #ff2f6d;
  --accent-strong: #f20f56;
  --accent-soft: rgba(255, 47, 109, 0.15);
  --success: #39d98a;
  --warning: #f6c85f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shell: min(1480px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 47, 109, 0.10), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.shell { width: var(--shell); margin-inline: auto; }
.is-hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 16px;
  background: var(--text); color: var(--bg); border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #ff487d, #d70849); color: white; font-weight: 900;
  box-shadow: 0 8px 24px rgba(255, 47, 109, 0.25);
}
.brand__text { font-size: 0.86rem; font-weight: 900; letter-spacing: 0.16em; }
.brand__text span { color: var(--accent); }
.brand--large { justify-content: center; }
.brand--large .brand__mark { width: 46px; height: 46px; border-radius: 14px; font-size: 1.25rem; }
.brand--large .brand__text { font-size: 1.08rem; }
.brand--footer .brand__mark { width: 30px; height: 30px; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(9, 9, 11, 0.82);
  padding-top: max(0px, env(safe-area-inset-top)); border-bottom: 1px solid rgba(255, 255, 255, 0.07); backdrop-filter: blur(18px);
}
.site-header__inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.search {
  width: min(700px, 100%); margin-inline: auto; display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 16px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.search:focus-within { border-color: rgba(255, 47, 109, 0.55); box-shadow: 0 0 0 4px rgba(255, 47, 109, 0.10); background: #1b1b21; }
.search__icon { width: 19px; flex: 0 0 19px; color: var(--subtle); }
.search input {
  min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent;
  font: inherit; font-size: 1rem; line-height: 1.35; appearance: none; -webkit-appearance: none;
}
.search input::placeholder { color: #777680; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
  touch-action: manipulation;
}
.search__clear:hover, .search__clear:active { background: rgba(255, 255, 255, .08); color: var(--text); }
.search__clear svg { width: 17px; }
.search__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 88px;
  border: 0; border-radius: 11px; padding: 10px 17px; background: var(--accent); color: white;
  font-weight: 750; cursor: pointer; touch-action: manipulation; transition: transform .2s, background .2s;
}
.search__submit:hover { background: var(--accent-strong); transform: translateY(-1px); }
.search__submit:active { transform: translateY(0); }
.search__spinner {
  display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45);
  border-top-color: white; border-radius: 50%; animation: search-spin .7s linear infinite;
}
.search.is-loading .search__spinner { display: inline-block; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.header-actions { display: flex; gap: 8px; }
.icon-button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: transparent; cursor: pointer;
}
.icon-button:hover, .icon-button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(255, 47, 109, 0.35); }
.icon-button svg { width: 18px; }
.icon-button b { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--surface-strong); font-size: .72rem; text-align: center; }

.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; overflow-y: auto;
  min-height: 100vh; min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.age-gate__backdrop { position: absolute; inset: 0; background: rgba(3, 3, 5, .88); backdrop-filter: blur(20px); }
.age-gate__panel {
  position: relative; flex: 0 0 auto; width: min(520px, 100%); margin-block: auto; padding: 44px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); background: linear-gradient(160deg, #1b1b21, #0f0f13 70%);
  box-shadow: var(--shadow); text-align: center;
}
.age-gate__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 47, 109, .24), transparent 45%);
}
.age-gate__panel h1 { margin: 16px 0 12px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.02; letter-spacing: -.05em; }
.age-gate__panel p:not(.eyebrow) { margin: 0 auto 26px; max-width: 43ch; color: var(--muted); }
.age-gate__panel small { display: block; margin-top: 16px; color: var(--subtle); }
.age-gate .button + .button { margin-top: 10px; }

.hero {
  position: relative; width: min(1180px, calc(100% - 48px)); height: clamp(300px, 28vw, 380px); margin-top: 24px; overflow: hidden; display: flex; align-items: flex-end;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: #16161b center 32%/cover no-repeat;
  box-shadow: inset 0 -120px 140px rgba(0, 0, 0, .48), 0 24px 70px rgba(0, 0, 0, .24);
}
.hero__ambient { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 9, .95) 0%, rgba(7, 7, 9, .72) 38%, rgba(7, 7, 9, .18) 70%, rgba(7, 7, 9, .05) 100%); }
.hero__shade { position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, rgba(9, 9, 11, .62)); }
.hero__content { position: relative; z-index: 2; width: min(580px, 68%); padding: clamp(26px, 3.4vw, 42px); }
.eyebrow { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 {
  display: -webkit-box; max-width: 18ch; margin: 10px 0 10px; overflow: hidden; font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.01; letter-spacing: -.05em; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.hero__content > p:not(.eyebrow) {
  display: -webkit-box; max-width: 54ch; margin: 0 0 12px; overflow: hidden; color: #c5c4cb; font-size: .94rem;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; min-height: 22px; margin: 13px 0 18px; color: #d8d7dd; font-size: .82rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 15px; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 19px;
  border: 1px solid transparent; border-radius: 13px; font-weight: 800; cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s, opacity .2s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button svg { width: 20px; }
.button--primary { background: var(--accent); color: white; box-shadow: 0 12px 30px rgba(255, 47, 109, .22); }
.button--primary:hover:not(:disabled) { background: var(--accent-strong); }
.button--glass { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .13); backdrop-filter: blur(10px); }
.button--glass:hover:not(:disabled), .button--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.button--ghost { background: transparent; border-color: var(--border); }
.button--wide { width: 100%; }
.button--small { min-height: 39px; padding-inline: 14px; font-size: .86rem; }

.discovery { padding-block: 76px 84px; }
.discovery-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 34px; align-items: start; }
.discovery-content { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.results-summary { margin: 0 0 5px; color: var(--muted); font-size: .9rem; }
.genre-rail {
  position: static; max-height: none; overflow: visible;
  padding: 22px; border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(155deg, rgba(25,25,31,.92), rgba(13,13,17,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.genre-rail__header { margin-bottom: 18px; }
.genre-rail__header h2 { margin: 5px 0 5px; font-size: 1.5rem; letter-spacing: -.04em; }
.genre-rail__header p:not(.eyebrow) { margin: 0; color: var(--subtle); font-size: .78rem; line-height: 1.5; }
.genre-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.genre-card {
  position: relative; isolation: isolate; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: #1b1b21; color: white; cursor: pointer;
  text-align: left; touch-action: manipulation;
}
.genre-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 20% 0, rgba(255,47,109,.22), transparent 62%);
}
.genre-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(transparent 25%, rgba(4,4,6,.88));
}
.genre-card img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .22s, transform .25s;
}
.genre-card.has-image img { opacity: .9; }
.genre-card:hover img, .genre-card:focus-visible img { transform: scale(1.045); }
.genre-card__label {
  position: absolute; inset: auto 10px 9px; z-index: 3; overflow: hidden; font-size: .83rem; font-weight: 850;
  line-height: 1.1; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0,0,0,.9); white-space: nowrap;
}
.genre-card:hover, .genre-card:focus-visible, .genre-card.is-active { border-color: rgba(255,47,109,.72); }
.genre-card.is-active { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 22px rgba(255,47,109,.14); }
.mobile-genre-menu { display: none; }
.toolbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 30px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(18, 18, 23, .72);
}
.toolbar__group { display: flex; align-items: center; gap: 10px; }
.toolbar label { color: var(--muted); font-size: .82rem; font-weight: 720; }
.toolbar select {
  min-height: 39px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); outline: 0; cursor: pointer;
}
.toolbar select:focus { border-color: var(--accent); }
.switch { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 42px; height: 24px; padding: 3px; border-radius: 999px; background: #34343c; transition: background .2s; }
.switch__track span { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track span { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(255, 47, 109, .24); }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 16px 18px;
  border: 1px solid rgba(246, 200, 95, .32); border-radius: var(--radius-md); background: rgba(246, 200, 95, .08);
}
.notice strong, .notice span { display: block; }
.notice span { color: var(--muted); font-size: .88rem; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; min-height: 300px; }
.video-card { min-width: 0; }
.video-card__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: #18181d;
  border: 1px solid var(--border); cursor: pointer; isolation: isolate;
}
.video-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .62)); opacity: .5; transition: opacity .25s;
}
.video-card__media::before {
  content: "Preview"; position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(8, 8, 10, .72); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.video-card__media:hover::after, .video-card__media.is-previewing::after { opacity: 1; }
.video-card__media.is-previewing::before { opacity: 1; transform: translateY(0); }
.video-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .25s, opacity .25s; }
.video-card__media:hover .video-card__image { transform: scale(1.045); }
.video-card__duration, .video-card__quality {
  position: absolute; z-index: 3; bottom: 10px; padding: 4px 7px; border-radius: 7px;
  background: rgba(0, 0, 0, .72); color: white; font-size: .72rem; font-weight: 800; backdrop-filter: blur(6px);
}
.video-card__duration { right: 10px; }
.video-card__quality { left: 10px; color: #ffc7d8; }
.video-card__play {
  position: absolute; inset: 50% auto auto 50%; z-index: 4; display: grid; place-items: center; width: 52px; height: 52px;
  transform: translate(-50%, -42%) scale(.85); border: 0; border-radius: 50%; background: rgba(255, 47, 109, .94);
  color: white; opacity: 0; cursor: pointer; transition: opacity .2s, transform .2s;
}
.video-card__play svg { width: 22px; margin-left: 2px; fill: currentColor; stroke: none; }
.video-card__media:hover .video-card__play, .video-card__play:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 3px 0; }
.video-card__title { margin: 0; overflow: hidden; color: #efeff3; font-size: .95rem; font-weight: 760; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.video-card__title button { max-width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; color: inherit; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.video-card__title button:hover { color: var(--accent); }
.video-card__original-title {
  margin: 3px 0 0; overflow: hidden; color: var(--subtle); font-size: .73rem; font-weight: 570;
  text-overflow: ellipsis; white-space: nowrap;
}
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; color: var(--subtle); font-size: .78rem; }
.video-meta span { display: inline-flex; align-items: center; gap: 4px; }
.video-meta svg { width: 13px; }
.video-meta--player { margin-top: 9px; font-size: .86rem; }
.favorite-button {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; transition: .2s;
}
.favorite-button svg { width: 17px; }
.favorite-button:hover, .favorite-button.is-saved { background: var(--accent-soft); border-color: rgba(255, 47, 109, .38); color: var(--accent); }
.favorite-button.is-saved svg { fill: currentColor; }
.favorite-button--large { width: 44px; height: 44px; border-radius: 12px; }

.skeleton { pointer-events: none; }
.skeleton__media, .skeleton__line { position: relative; overflow: hidden; background: #18181e; }
.skeleton__media::after, .skeleton__line::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.25s infinite;
}
.skeleton__media { aspect-ratio: 16/9; border-radius: var(--radius-md); }
.skeleton__line { height: 12px; margin-top: 12px; border-radius: 999px; }
.skeleton__line--short { width: 56%; height: 9px; margin-top: 8px; }
@keyframes shimmer { to { transform: translateX(100%); } }

.empty-state { padding: 90px 20px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 22px; background: var(--surface-strong); color: var(--accent); }
.empty-state__icon svg { width: 28px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.5rem; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.empty-state .button { margin: 0 4px 8px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 50px; }
.pagination > .button { min-height: 44px; padding-inline: 16px; }
.pagination__numbers { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pagination__page {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: 12px; background: rgba(255, 255, 255, .045); color: var(--muted); font-weight: 800; cursor: pointer;
  transition: transform .18s, border-color .18s, background .18s, color .18s;
}
.pagination__page:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 47, 109, .45); background: var(--accent-soft); color: var(--text); }
.pagination__page.is-current { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 9px 24px rgba(255, 47, 109, .22); }
.pagination__page:disabled { cursor: default; }
.pagination__ellipsis { display: grid; place-items: center; width: 24px; color: var(--subtle); font-weight: 800; }

.site-footer { border-top: 1px solid var(--border); background: #08080a; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.site-footer p { max-width: 620px; margin: 12px 0 0; color: var(--subtle); font-size: .83rem; }
.site-footer nav { display: flex; align-items: center; gap: 22px; }
.site-footer a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.watch-panel {
  width: min(1080px, calc(100% - 48px)); margin-top: 18px; scroll-margin-top: 96px;
}
.watch-panel__close {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; min-height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  background: rgba(8,8,11,.78); color: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  cursor: pointer; box-shadow: 0 7px 22px rgba(0,0,0,.32); transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.watch-panel__close:hover { border-color: rgba(255,47,109,.6); background: rgba(255,47,109,.22); color: var(--text); transform: scale(1.04); }
.watch-panel__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.watch-panel__close svg { width: 18px; }
.watch-panel__card {
  position: relative; width: min(960px, 100%); margin-inline: auto; overflow: hidden; border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); background: #0e0e12; box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.player-shell { aspect-ratio: 16/9; background: black; }
.player-shell iframe { width: 100%; height: 100%; border: 0; }
.player-placeholder { height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch-panel__details { padding: 25px 28px 28px; }
.watch-panel__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.watch-panel__actions { display: flex; gap: 9px; flex: 0 0 auto; }
.watch-panel h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -.03em; }
.watch-panel__original-title { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.video-meta--player { margin-top: 9px; font-size: .86rem; }
.vr-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 13px 14px;
  border: 1px solid rgba(255,47,109,.25); border-radius: 13px; background: linear-gradient(110deg, rgba(255,47,109,.1), rgba(129,70,255,.08));
}
.vr-notice__copy { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: .78rem; }
.vr-notice__badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; background: var(--accent); color: white; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.vr-notice__action { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--accent); font-size: .78rem; font-weight: 800; text-decoration: none; }
.vr-notice__action:hover { color: #ff6f9a; }
.vr-notice__action svg { width: 15px; }
.original-title { flex-basis: 100%; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .75rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--accent); font-size: .86rem; font-weight: 750; text-decoration: none; }
.text-link svg { width: 15px; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 1200; transform: translate(-50%, 25px); max-width: calc(100% - 32px);
  padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: #25252c; color: white;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.legal-page { min-height: 100vh; }
.legal-header { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal-content { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.legal-content h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.055em; }
.legal-content h2 { margin-top: 40px; font-size: 1.35rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: var(--accent); }

:focus-visible { outline: 3px solid rgba(255, 47, 109, .55); outline-offset: 3px; }

@media (max-width: 1240px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discovery-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 1100px) {
  .header-actions .icon-button span { display: none; }
}
@media (max-width: 980px) {
  .discovery-layout { display: block; }
  .genre-rail { display: none; }
  .mobile-genre-menu {
    display: block; margin: -5px 0 18px; border: 1px solid var(--border); border-radius: 16px;
    background: rgba(18,18,23,.82); overflow: hidden;
  }
  .mobile-genre-menu summary {
    display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 12px; min-height: 62px;
    padding: 10px 14px; cursor: pointer; list-style: none; touch-action: manipulation;
  }
  .mobile-genre-menu summary::-webkit-details-marker { display: none; }
  .mobile-genre-menu summary > span:first-child { display: grid; }
  .mobile-genre-menu summary small { color: var(--accent); font-size: .63rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-genre-menu summary strong { font-size: .95rem; }
  .mobile-genre-menu summary svg { width: 18px; color: var(--muted); transition: transform .2s; }
  .mobile-genre-menu[open] summary svg { transform: rotate(180deg); }
  .mobile-genre-menu__current {
    max-width: 130px; overflow: hidden; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft);
    color: #ffd3df; font-size: .72rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap;
  }
  .mobile-genre-menu__body { padding: 13px; border-top: 1px solid var(--border); }
  .mobile-genre-menu__body > p { margin: 0 0 10px; color: var(--subtle); font-size: .67rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-genre-menu .genre-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mobile-genre-menu .genre-card { aspect-ratio: 16 / 8.8; }
  .mobile-genre-menu .genre-card__label { font-size: .78rem; }
}
@media (max-width: 820px) {
  :root { --shell: min(100% - 30px, 1480px); }
  .shell {
    width: auto;
    margin-left: max(15px, env(safe-area-inset-left));
    margin-right: max(15px, env(safe-area-inset-right));
  }
  .site-header__inner { flex-wrap: wrap; gap: 14px; padding-block: 14px; }
  .site-header .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .hero { height: 340px; }
  .hero__ambient { background: linear-gradient(0deg, rgba(7,7,9,.96), rgba(7,7,9,.25) 80%); }
  .hero__content { width: min(660px, 100%); padding: 32px 28px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch { margin-left: 0; }
  .site-footer__inner { flex-direction: column; }
}
@media (max-width: 560px) {
  :root { --shell: calc(100% - 24px); }
  .shell {
    margin-left: max(12px, env(safe-area-inset-left));
    margin-right: max(12px, env(safe-area-inset-right));
  }
  .age-gate {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .age-gate__panel { padding: 34px 24px; }
  .search { gap: 6px; padding: 5px 5px 5px 12px; }
  .search input { font-size: 16px; }
  .search__submit { min-width: 86px; padding-inline: 13px; }
  .search__clear { flex-basis: 32px; width: 32px; height: 32px; }
  .hero { height: 310px; margin-top: 12px; border-radius: 22px; }
  .hero h1 { max-width: 23ch; font-size: clamp(1.4rem, 6.3vw, 1.85rem); line-height: 1.08; letter-spacing: -.035em; -webkit-line-clamp: 3; }
  .hero__content { width: 100%; padding: 21px 18px; }
  .hero__content > p:not(.eyebrow) { font-size: .8rem; -webkit-line-clamp: 1; }
  .hero__meta { margin-block: 10px 14px; }
  .hero__actions .button { flex: 1 1 auto; }
  .discovery { padding-block: 54px 70px; scroll-margin-top: 150px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar__group { justify-content: space-between; }
  .toolbar select { flex: 1; }
  .video-grid { grid-template-columns: 1fr; gap: 26px; }
  .mobile-genre-menu .genre-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video-card__title { font-size: 1rem; }
  .pagination { gap: 8px; }
  .pagination > .button { width: 44px; min-height: 44px; padding: 0; overflow: hidden; gap: 0; font-size: 0; }
  .pagination > .button svg { width: 19px; }
  .pagination__numbers { gap: 7px; }
  .pagination__page { min-width: 44px; padding-inline: 8px; }
  .site-footer nav { flex-wrap: wrap; }
  .watch-panel { width: var(--shell); margin-top: 14px; scroll-margin-top: 82px; }
  .watch-panel__close { top: 10px; right: 10px; width: 42px; min-height: 42px; }
  .watch-panel__card { border-radius: 18px; }
  .watch-panel__details { padding: 20px 18px 24px; }
  .watch-panel__title-row { gap: 14px; }
  .watch-panel h2 { font-size: 1.25rem; }
  .vr-notice { align-items: flex-start; flex-direction: column; gap: 11px; }
  .vr-notice__action { min-height: 40px; }
}
@media (hover: none), (pointer: coarse) {
  .video-card__play {
    width: 46px; height: 46px; opacity: .94;
    transform: translate(-50%, -50%) scale(1);
  }
  .video-card__media.is-previewing .video-card__image { transform: scale(1.025); }
  .icon-button { min-width: 44px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.legal-page { max-width: 900px; padding-top: 54px; padding-bottom: 80px; }
.legal-page > .brand { display: inline-flex; margin-bottom: 70px; }
.legal-page h1 { max-width: 760px; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; margin: 10px 0 30px; }
.legal-page h2 { margin-top: 38px; font-size: 1.45rem; }
.legal-page p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.legal-page .notice { margin: 36px 0; }

/* NoirStream 2.1 discovery, filters, and reliable animated previews */
.search { position: relative; }
.search-suggestions {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 150;
  max-height: min(68vh, 560px); overflow-x: hidden; overflow-y: auto; padding: 8px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(20, 20, 25, .98); box-shadow: 0 22px 60px rgba(0,0,0,.48); backdrop-filter: blur(18px);
  scrollbar-width: thin;
}
.search-suggestions__section + .search-suggestions__section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.search-suggestions p { margin: 4px 10px 7px; color: var(--subtle); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.search-suggestions button {
  width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text); text-align: left; font: inherit; cursor: pointer;
}
.search-suggestions button:hover, .search-suggestions button:focus-visible { background: var(--accent-soft); outline: 0; }
.button--accent-soft { color: #ffd6e2; border-color: rgba(255,47,109,.28); background: var(--accent-soft); }
.button--accent-soft:hover:not(:disabled) { border-color: rgba(255,47,109,.55); background: rgba(255,47,109,.2); }
.toolbar { gap: 13px 16px; margin-bottom: 14px; }
.toolbar__group--wide select { min-width: 180px; }
.toolbar__actions { display: flex; gap: 9px; margin-left: auto; }
.toolbar__actions .button svg, .filter-toggle svg { width: 17px; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem;
}
.filters-panel {
  margin: 0 0 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(24,24,30,.94), rgba(14,14,18,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.filters-panel__grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 13px; }
.filter-field { display: grid; gap: 7px; }
.filter-field label { color: var(--muted); font-size: .78rem; font-weight: 760; }
.filter-field select {
  width: 100%; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); outline: 0; cursor: pointer;
}
.filter-field select:focus { border-color: var(--accent); }
.filters-panel__footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.filters-panel__footer .switch { margin-left: 0; color: var(--muted); font-size: .86rem; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px 0 12px;
  border: 1px solid rgba(255,47,109,.25); border-radius: 999px; background: rgba(255,47,109,.09);
  color: #ffd3df; font-size: .77rem; font-weight: 730; cursor: pointer;
}
.active-filter:hover { background: rgba(255,47,109,.16); }
.active-filter svg { width: 14px; }

.video-card__media::before { content: none; }
.video-card__image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s, filter .25s, opacity .2s;
}
.video-card__image--base { z-index: 0; opacity: 1; }
.video-card__image--preview { z-index: 1; opacity: 0; }
.video-card__image--preview.is-visible { opacity: 1; }
.video-card__media.is-previewing .video-card__image--preview { transform: scale(1.02); }
.video-card__preview-status {
  position: absolute; z-index: 5; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 999px; background: rgba(8,8,10,.8); color: #fff;
  font-size: .65rem; font-weight: 820; opacity: 0; transform: translateY(-3px); transition: opacity .18s, transform .18s;
  backdrop-filter: blur(9px);
}
.video-card__preview-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,47,109,.17); animation: preview-pulse 1.15s ease-in-out infinite; }
.video-card__media.is-previewing .video-card__preview-status,
.video-card__media.is-preview-loading .video-card__preview-status { opacity: 1; transform: translateY(0); }
.video-card__media.is-preview-loading .video-card__preview-status i { background: var(--warning); box-shadow: 0 0 0 4px rgba(246,200,95,.15); }
@keyframes preview-pulse { 50% { opacity: .45; transform: scale(.75); } }
.video-meta { flex-wrap: wrap; row-gap: 5px; }
.video-meta span { white-space: nowrap; }

@media (hover: none), (pointer: coarse) {
  .video-card__media.is-previewing .video-card__play { opacity: 0; pointer-events: none; }
  .search__clear { flex-basis: 44px; width: 44px; height: 44px; }
  .search__submit, .icon-button, .genre-card, .toolbar select, .filter-field select,
  .button--small, .switch, .active-filter { min-height: 44px; }
  .favorite-button { width: 44px; height: 44px; }
  .video-card__title button { min-height: 44px; text-align: left; }
}

@media (max-width: 900px) {
  .filters-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar__actions { width: 100%; margin-left: 0; }
  .toolbar__actions .button { flex: 1; }
}

@media (max-width: 560px) {
  .search-suggestions { top: calc(100% + 8px); }
  .toolbar { gap: 11px; padding: 13px; }
  .toolbar__group, .toolbar__group--wide { display: grid; grid-template-columns: 105px minmax(0,1fr); width: 100%; }
  .toolbar__group--wide select { min-width: 0; }
  .toolbar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar__actions .button { min-width: 0; padding-inline: 10px; }
  .filters-panel { padding: 14px; }
  .filters-panel__grid { grid-template-columns: 1fr; }
  .filters-panel__footer { align-items: stretch; flex-direction: column; }
  .filters-panel__footer .button { width: 100%; }
  .active-filters { margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; scrollbar-width: none; }
  .active-filters::-webkit-scrollbar { display: none; }
  .active-filter { flex: 0 0 auto; }
  .video-card__preview-status { font-size: .61rem; }
  .mobile-genre-menu__current { max-width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-card__preview-status i { animation: none; }
  .video-card__image { transition: opacity .01ms !important; }
}

/* NoirStream 2.2 regional discovery and private analytics */
.age-gate__panel small a { color: #ffc0d2; }
.regional-note { max-width: 68ch; margin: 8px 0 0; color: var(--subtle); font-size: .78rem; line-height: 1.5; }
.button--danger { color: #ffd8dc; border-color: rgba(255, 79, 99, .38); background: rgba(255, 79, 99, .12); }
.button--danger:hover:not(:disabled) { border-color: rgba(255, 79, 99, .7); background: rgba(255, 79, 99, .2); }

.admin-page { min-height: 100vh; background: radial-gradient(circle at 75% 0, rgba(255,47,109,.08), transparent 30%), var(--bg); }
.admin-heading { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.admin-heading span { color: var(--text); font-weight: 800; }
.admin-heading small { color: var(--subtle); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.admin-shell { padding-block: 56px 90px; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.admin-intro h1 { margin: 8px 0 10px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.admin-intro p:not(.eyebrow) { max-width: 670px; margin: 0; color: var(--muted); line-height: 1.7; }
.admin-filters { display: flex; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(20,20,25,.85); }
.admin-filters label { display: grid; gap: 6px; color: var(--subtle); font-size: .72rem; font-weight: 760; }
.admin-filters select { min-height: 40px; padding: 0 34px 0 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); }
.admin-updated { margin: 0 0 18px; color: var(--subtle); font-size: .78rem; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.metric-grid article { min-height: 116px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(28,28,34,.92), rgba(15,15,19,.94)); }
.metric-grid span { display: block; color: var(--subtle); font-size: .72rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.metric-grid strong { display: block; margin-top: 18px; color: var(--text); font-size: clamp(1.45rem, 2.6vw, 2.2rem); letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.admin-panel { overflow: hidden; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(18,18,23,.9); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.admin-panel--wide { grid-column: 1 / -1; }
.admin-panel__heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-panel__heading h2, .admin-maintenance h2 { margin: 5px 0 0; font-size: 1.35rem; }
.admin-panel__heading > span { color: var(--subtle); font-size: .75rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-panel table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-panel th { padding: 10px 12px; border-bottom: 1px solid var(--border-strong); color: var(--subtle); font-size: .66rem; letter-spacing: .06em; text-align: right; text-transform: uppercase; white-space: nowrap; }
.admin-panel th:first-child { text-align: left; }
.admin-panel td { padding: 13px 12px; border-bottom: 1px solid var(--border); color: var(--muted); text-align: right; white-space: nowrap; }
.admin-panel tbody tr:last-child td { border-bottom: 0; }
.admin-panel td.admin-table__label { max-width: 520px; overflow: hidden; color: var(--text); font-weight: 690; text-align: left; text-overflow: ellipsis; }
.admin-panel td.admin-empty { padding: 30px 12px; color: var(--subtle); text-align: center; }
.admin-maintenance { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.admin-maintenance p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
.admin-maintenance__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-maintenance__status { flex-basis: 100%; min-height: 1.2em; margin: 0; color: #ffc0d2; font-size: .8rem; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-intro { align-items: stretch; flex-direction: column; }
  .admin-filters { width: fit-content; }
}

@media (max-width: 700px) {
  .admin-shell { padding-block: 34px 70px; }
  .admin-heading { font-size: .78rem; }
  .admin-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .admin-filters .button { grid-column: 1 / -1; }
  .admin-filters select { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid article { min-height: 100px; padding: 16px; }
  .metric-grid strong { margin-top: 13px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel--wide { grid-column: auto; }
  .admin-panel { padding: 16px; }
  .admin-maintenance { align-items: stretch; flex-direction: column; }
  .admin-maintenance__actions { display: grid; grid-template-columns: 1fr; }
}

/* NoirStream 2.2.10 discovery-header facelift */
.discovery-content { container-type: inline-size; }
.section-heading {
  align-items: center;
  margin-bottom: 20px;
}
.section-heading__copy { min-width: 0; }
.section-heading h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.03;
  text-wrap: balance;
}
.regional-note {
  max-width: 62ch;
  margin-top: 10px;
  font-size: .8rem;
}
.discovery-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 36px;
  max-width: 310px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.discovery-status__dot {
  position: relative;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 47, 109, .12);
}
.discovery-status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 47, 109, .42);
  border-radius: inherit;
  animation: discovery-status-pulse 1.8s ease-out infinite;
}
.results-summary {
  margin: 0;
  overflow: hidden;
  color: #c8c7cf;
  font-size: .76rem;
  font-weight: 680;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes discovery-status-pulse {
  0% { opacity: .72; transform: scale(.75); }
  75%, 100% { opacity: 0; transform: scale(1.7); }
}

.toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(150px, .9fr) minmax(190px, 1.1fr) auto;
  align-items: end;
  gap: 14px;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 18px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% -40%, rgba(255, 47, 109, .13), transparent 35%),
    linear-gradient(145deg, rgba(25, 25, 31, .94), rgba(14, 14, 18, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 45px rgba(0, 0, 0, .14);
}
.toolbar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 47, 109, .75), rgba(255, 47, 109, .06) 38%, transparent 70%);
}
.toolbar__group,
.toolbar__group--wide {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.toolbar label {
  color: #aaa9b2;
  font-size: .68rem;
  font-weight: 820;
  letter-spacing: .075em;
  line-height: 1;
  text-transform: uppercase;
}
.toolbar select,
.toolbar__group--wide select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-left: 14px;
  border-color: rgba(255, 255, 255, .105);
  border-radius: 12px;
  background-color: rgba(7, 7, 9, .74);
  color: #f6f5f8;
  font-size: .88rem;
  font-weight: 650;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.toolbar select:hover { border-color: rgba(255, 255, 255, .19); background-color: rgba(8, 8, 11, .92); }
.toolbar select:focus {
  border-color: rgba(255, 47, 109, .62);
  box-shadow: 0 0 0 3px rgba(255, 47, 109, .1);
}
.toolbar__actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 9px;
  align-self: end;
  margin-left: 0;
}
.toolbar__actions .button {
  min-height: 48px;
  padding-inline: 15px;
  border-radius: 12px;
  white-space: nowrap;
}
.toolbar__actions .button--glass { background: rgba(255, 255, 255, .055); }
.toolbar__actions .button--accent-soft {
  border-color: rgba(255, 47, 109, .43);
  background: linear-gradient(135deg, rgba(255, 47, 109, .24), rgba(211, 13, 73, .14));
  box-shadow: 0 9px 24px rgba(255, 47, 109, .09);
}

@container (max-width: 860px) {
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .toolbar__actions .button { min-width: 0; }
}

@container (max-width: 540px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
  }
  .section-heading h2 { max-width: 100%; font-size: clamp(1.85rem, 8.2vw, 2.35rem); }
  .regional-note { margin-top: 8px; font-size: .76rem; }
  .discovery-status { max-width: 100%; min-height: 34px; padding-block: 7px; }
  .results-summary { max-width: calc(100vw - 100px); }
  .toolbar {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
    border-radius: 17px;
  }
  .toolbar__group,
  .toolbar__group--wide { grid-template-columns: 1fr; }
  .toolbar__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar__actions .button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-status__dot::after { animation: none; }
}

/* NoirStream 2.2.12 large-desktop presentation scale
   Reproduces the browser's 125% view at a normal 100% browser setting.
   Mobile and compact tablet layouts keep their existing scale. */
@media (min-width: 1226px) {
  html { zoom: 1.25; }
}
@media (min-width: 1226px) and (max-width: 1550px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discovery-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 26px; }
}
@media (min-width: 1226px) and (max-width: 1375px) {
  .header-actions .icon-button span { display: none; }
}

/* Viewing profiles and recommendation feedback */
.profile-menu { position: relative; }
.profile-menu > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 10px 4px 5px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025);
  cursor: pointer; list-style: none; transition: border-color .18s, background .18s;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary:hover, .profile-menu[open] > summary { border-color: rgba(255,47,109,.42); background: var(--accent-soft); }
.profile-menu > summary > svg { width: 15px; color: var(--subtle); transition: transform .18s; }
.profile-menu[open] > summary > svg { transform: rotate(180deg); }
.profile-menu__name { max-width: 90px; overflow: hidden; font-size: .8rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(145deg, #353541, #1d1d25); color: #ffd4e0; font-size: .78rem; font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,.07);
}
.profile-popover {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 260; width: min(400px, calc(100vw - 24px));
  max-height: min(76vh, 680px); overflow-y: auto; padding: 20px; border: 1px solid var(--border-strong);
  border-radius: 20px; background: rgba(18,18,23,.985); box-shadow: 0 28px 80px rgba(0,0,0,.58);
  backdrop-filter: blur(22px);
}
.profile-popover__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-popover__heading h2 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -.03em; }
.profile-popover__close {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.profile-popover__close:hover { background: rgba(255,255,255,.07); color: var(--text); }
.profile-popover__close svg { width: 16px; }
.profile-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.profile-choice {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 55px; padding: 8px;
  border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--text);
  cursor: pointer; text-align: left;
}
.profile-choice:hover, .profile-choice.is-active { border-color: rgba(255,47,109,.4); background: rgba(255,47,109,.09); }
.profile-choice.is-active .profile-avatar { background: linear-gradient(145deg, #ff477d, #d70a49); color: white; }
.profile-choice > span:last-child { min-width: 0; }
.profile-choice strong, .profile-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-choice strong { font-size: .8rem; }
.profile-choice small { margin-top: 2px; color: var(--subtle); font-size: .64rem; }
.profile-add {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 9px; padding: 0 8px;
  border: 0; background: transparent; color: #ffc3d5; font-size: .75rem; font-weight: 760; cursor: pointer;
}
.profile-add:disabled { opacity: .4; cursor: not-allowed; }
.profile-add svg { width: 15px; }
.profile-editor { display: grid; gap: 9px; margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--border); }
.profile-editor > label:first-child { color: var(--subtle); font-size: .68rem; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.profile-editor > input {
  width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  outline: 0; background: var(--bg); color: var(--text);
}
.profile-editor > input:focus { border-color: rgba(255,47,109,.65); box-shadow: 0 0 0 3px rgba(255,47,109,.1); }
.profile-preference {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 5px; padding: 13px;
  border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer;
}
.profile-preference__copy { min-width: 0; }
.profile-preference__copy strong, .profile-preference__copy small { display: block; }
.profile-preference__copy strong { font-size: .8rem; }
.profile-preference__copy small { margin-top: 4px; color: var(--subtle); font-size: .67rem; line-height: 1.45; }
.profile-switch { position: relative; flex: 0 0 auto; }
.profile-switch input { position: absolute; opacity: 0; pointer-events: none; }
.profile-switch > span { display: block; width: 43px; height: 25px; padding: 3px; border-radius: 999px; background: #34343d; transition: background .18s; }
.profile-switch i { display: block; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .18s; }
.profile-switch input:checked + span { background: var(--accent); }
.profile-switch input:checked + span i { transform: translateX(18px); }
.profile-switch input:focus-visible + span { outline: 3px solid rgba(255,47,109,.28); outline-offset: 2px; }
.profile-editor__note { margin: 0; color: var(--subtle); font-size: .66rem; line-height: 1.5; }
.profile-editor__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.video-card__actions { display: flex; align-items: flex-start; gap: 5px; }
.recommendation-button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border);
  border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; opacity: .78;
  transition: color .18s, border-color .18s, background .18s, opacity .18s, transform .18s;
}
.recommendation-button:hover { opacity: 1; transform: translateY(-1px); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--text); }
.recommendation-button--more.is-active { opacity: 1; border-color: rgba(255,47,109,.42); background: var(--accent-soft); color: #ff8caf; }
.recommendation-button--hide:hover { border-color: rgba(246,200,95,.38); background: rgba(246,200,95,.08); color: var(--warning); }
.recommendation-button svg { width: 16px; }

.recommendation-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(120deg, rgba(255,47,109,.07), rgba(255,255,255,.025));
}
.recommendation-actions > div:first-child strong, .recommendation-actions > div:first-child span { display: block; }
.recommendation-actions > div:first-child strong { font-size: .82rem; }
.recommendation-actions > div:first-child span { margin-top: 3px; color: var(--subtle); font-size: .7rem; }
.recommendation-actions__buttons { display: flex; flex: 0 0 auto; gap: 8px; }
.recommendation-actions .button.is-active { border-color: rgba(255,47,109,.55); background: rgba(255,47,109,.2); color: #ffd2df; }

.toast { display: flex; align-items: center; gap: 13px; }
.toast__action { min-height: 30px; padding: 0 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); color: #ffd1de; font-weight: 800; cursor: pointer; }
.toast__action:hover { background: rgba(255,47,109,.18); border-color: rgba(255,47,109,.42); }

@media (max-width: 1100px) {
  .profile-menu__name { display: none; }
  .profile-menu > summary { padding-right: 7px; }
}

@media (max-width: 700px) {
  .admin-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-filters .button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .profile-menu > summary > svg { display: none; }
  .profile-menu > summary { padding: 4px; }
  .profile-popover { position: fixed; top: max(76px, env(safe-area-inset-top)); right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 94px); }
  .profile-list { grid-template-columns: 1fr 1fr; }
  .video-card__body { grid-template-columns: minmax(0,1fr) auto; }
  .video-card__actions { gap: 4px; }
  .recommendation-button { width: 44px; height: 44px; }
  .recommendation-actions { align-items: stretch; flex-direction: column; }
  .recommendation-actions__buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .recommendation-actions__buttons .button { min-width: 0; padding-inline: 9px; }
}

@media (hover: none), (pointer: coarse) {
  .recommendation-button { width: 44px; height: 44px; }
}

/* Viewing profiles, private sessions, and Recently Viewed */
.icon-button { text-decoration: none; }
.icon-button.is-active,
.private-session-active #private-session-toggle {
  border-color: rgba(184, 143, 255, .55);
  background: rgba(123, 77, 190, .19);
  color: #dfcaff;
}
.private-session-active .site-header { box-shadow: inset 0 -2px rgba(148, 97, 224, .28); }
.private-session-pill {
  display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; border: 1px solid rgba(184,143,255,.32);
  border-radius: 999px; background: rgba(123,77,190,.14); color: #dbc8ff; font-size: .7rem; font-weight: 800;
}

.history-page { min-height: 100vh; background: var(--bg); }
.history-header { gap: 22px; }
.history-header__title { display: grid; margin-right: auto; }
.history-header__title span { font-size: .82rem; font-weight: 850; }
.history-header__title small { margin-top: 2px; color: var(--subtle); font-size: .63rem; }
.history-header__actions { display: flex; align-items: center; gap: 10px; }
.history-profile-select { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: .68rem; font-weight: 780; }
.history-profile-select select {
  min-height: 38px; max-width: 170px; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.history-shell { min-height: calc(100vh - 220px); padding-top: 48px; padding-bottom: 80px; }
.history-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.history-intro h1 { margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -.06em; }
.history-intro > div:first-child > p:last-child { max-width: 660px; margin: 0; color: var(--muted); }
.history-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; max-width: 560px;
  padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.history-summary > span { min-width: 82px; color: var(--subtle); font-size: .68rem; text-align: center; }
.history-summary strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 1rem; }
.history-status { min-height: 22px; margin: 0 0 14px; color: var(--subtle); font-size: .73rem; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.history-card { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: 0 16px 38px rgba(0,0,0,.16); }
.history-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #141419; color: var(--text); }
.history-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.history-card__media:hover img { transform: scale(1.025); filter: brightness(.84); }
.history-card__play {
  position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(8,8,11,.75); color: white; font-size: 1rem; transform: translate(-50%, -50%);
  box-shadow: 0 8px 25px rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.history-card__duration { position: absolute; right: 9px; bottom: 8px; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.8); font-size: .66rem; font-weight: 800; }
.history-card__image-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--subtle); font-size: .72rem; }
.history-card__body { padding: 15px; }
.history-card__date { margin: 0 0 6px; color: #ff9ebb; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.history-card h2 { margin: 0; font-size: .96rem; line-height: 1.35; }
.history-card h2 a { color: var(--text); text-decoration: none; }
.history-card h2 a:hover { color: #ff91b2; }
.history-card__meta { margin: 8px 0 14px; color: var(--subtle); font-size: .69rem; }
.history-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.history-card__actions button {
  min-height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255,255,255,.025); color: var(--muted); font-size: .66rem; font-weight: 780; cursor: pointer;
}
.history-card__actions button:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--text); }
.history-card__actions button.is-active { border-color: rgba(255,47,109,.4); background: var(--accent-soft); color: #ffafc7; }
.history-card__actions .history-card__remove { margin-left: auto; color: #e0a7ae; }
.history-empty {
  grid-column: 1 / -1; display: grid; place-items: center; min-height: 350px; padding: 50px 24px;
  border: 1px dashed var(--border-strong); border-radius: 20px; background: rgba(255,255,255,.018); text-align: center;
}
.history-empty > span { color: #ff779f; font-size: 3.2rem; }
.history-empty h2 { margin: 14px 0 5px; }
.history-empty p { max-width: 460px; margin: 0 0 20px; color: var(--muted); }
.history-page .notice { margin: 0 0 18px; }
.history-page .notice--error { border-color: rgba(255,90,104,.35); background: rgba(255,67,84,.07); }
.history-page .toast { z-index: 400; }

@media (max-width: 1050px) {
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-intro { align-items: flex-start; flex-direction: column; }
  .history-summary { justify-content: flex-start; max-width: none; }
}

@media (max-width: 760px) {
  .history-header { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .history-header__title { display: none; }
  .history-header__actions { width: 100%; }
  .history-profile-select { flex: 1 1 auto; }
  .history-profile-select select { width: 100%; max-width: none; }
  .history-header__actions .private-session-pill { display: none; }
  .history-shell { padding-top: 32px; }
}

@media (max-width: 600px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-summary { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .history-summary .button { grid-column: 1 / -1; }
  .history-card__actions button { min-height: 42px; }
}

/* Product-intelligence dashboard — v2.4 */
.admin-intro--robust { align-items: flex-end; }
.admin-intro--robust .admin-filters { flex-wrap: wrap; justify-content: flex-end; max-width: 650px; }
.metric-grid--executive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid--executive article { position: relative; min-height: 132px; }
.metric-grid--executive strong { margin-top: 15px; }
.metric-grid article small { display: block; margin-top: 7px; color: var(--subtle); font-size: .67rem; line-height: 1.35; }
.metric-grid article small.delta--positive { color: #86d9b1; }
.metric-grid article small.delta--negative { color: #ff9ca8; }
.admin-grid--insight { margin-bottom: 16px; }
.admin-definition { margin: 16px 0 0; color: var(--subtle); font-size: .68rem; line-height: 1.55; }
.admin-storage { margin-bottom: 0; font-size: .75rem; }

.admin-chart {
  display: flex; align-items: stretch; gap: 5px; min-height: 230px; overflow-x: auto; padding: 12px 4px 2px;
  border-bottom: 1px solid var(--border); scrollbar-width: thin;
}
.admin-chart--empty { display: grid; place-items: center; color: var(--subtle); font-size: .8rem; }
.admin-chart__day { display: grid; grid-template-rows: 190px auto; flex: 1 0 28px; min-width: 24px; gap: 7px; text-align: center; }
.admin-chart__bars { display: flex; align-items: end; justify-content: center; gap: 2px; min-height: 0; }
.admin-chart__bar { display: block; width: min(7px, 28%); min-height: 2px; border-radius: 4px 4px 1px 1px; }
.admin-chart__bar--visitors, .chart-key--visitors { background: #8e6be8; }
.admin-chart__bar--plays, .chart-key--plays { background: #ff477d; }
.admin-chart__bar--meaningful, .chart-key--meaningful { background: #f2c966; }
.admin-chart__day > span { overflow: hidden; color: var(--subtle); font-size: .56rem; text-overflow: clip; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }
.admin-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; color: var(--subtle); font-size: .68rem; }
.admin-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }

.funnel-list { display: grid; gap: 15px; }
.funnel-row { display: grid; gap: 7px; }
.funnel-row > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.funnel-row strong { font-size: .78rem; }
.funnel-row small { color: var(--subtle); font-size: .65rem; }
.funnel-row > i { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.funnel-row > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d70a49, #ff6c98); }
.funnel-row:nth-child(3) > i > b { background: linear-gradient(90deg, #9d7022, #f2c966); }
.funnel-row:nth-child(4) > i > b { background: linear-gradient(90deg, #6845bc, #a98bea); }

.retention-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.retention-summary > div, .history-insight-grid > div {
  padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025);
}
.retention-summary span, .history-insight-grid span { display: block; color: var(--subtle); font-size: .65rem; }
.retention-summary strong, .history-insight-grid strong { display: block; margin-top: 7px; font-size: 1.28rem; letter-spacing: -.03em; }
.retention-summary small { display: block; margin-top: 4px; color: var(--subtle); font-size: .58rem; line-height: 1.35; }
.history-insight-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }

@media (max-width: 1150px) {
  .metric-grid--executive { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .history-insight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .admin-intro--robust .admin-filters { max-width: none; }
  .metric-grid--executive { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid--executive article { min-height: 118px; }
  .admin-chart__day { flex-basis: 24px; }
  .history-insight-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* 2.5 account system */
.profile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.profile-account__copy { min-width: 0; }
.profile-account__copy strong,
.profile-account__copy small { display: block; }
.profile-account__copy strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-account__copy small { margin-top: 4px; color: var(--subtle); font-size: .64rem; line-height: 1.4; }
.profile-account__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.profile-account__actions .button { min-height: 32px; padding: 7px 10px; font-size: .67rem; }

.account-page { min-height: 100vh; background: var(--background); }
.account-header { justify-content: space-between; }
.account-shell { display: grid; place-items: center; min-height: calc(100vh - 190px); padding-top: 48px; padding-bottom: 72px; }
.account-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, 1.15fr);
  width: min(100%, 960px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(28,28,34,.98), rgba(12,12,16,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.42);
}
.account-card__brand {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 20% 12%, rgba(255,47,109,.23), transparent 36%),
    linear-gradient(145deg, rgba(255,47,109,.08), rgba(255,255,255,.015));
}
.account-card__brand::after {
  position: absolute;
  inset: auto -70px -80px auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,47,109,.08);
  content: '';
  filter: blur(2px);
}
.account-card__brand h1 { margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.055em; }
.account-card__brand > p:not(.eyebrow) { max-width: 35ch; color: var(--muted); line-height: 1.65; }
.account-auth,
.account-settings { padding: clamp(30px, 5vw, 58px); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.045); }
.account-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--subtle);
  font: inherit;
  font-size: .78rem;
  font-weight: 820;
  cursor: pointer;
}
.account-tab.is-active { background: rgba(255,47,109,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,47,109,.26); }
.account-form { display: grid; gap: 9px; margin-top: 22px; }
.account-form label { color: var(--muted); font-size: .72rem; font-weight: 780; }
.account-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  outline: 0;
  background: rgba(2,2,4,.74);
  color: var(--text);
  font: inherit;
}
.account-form input:focus { border-color: rgba(255,47,109,.68); box-shadow: 0 0 0 3px rgba(255,47,109,.11); }
.account-form > small { margin: -2px 0 5px; color: var(--subtle); font-size: .66rem; line-height: 1.45; }
.account-form .button { margin-top: 8px; }
.account-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin-top: 7px; line-height: 1.45; }
.account-consent input { width: 18px; min-height: 18px; margin-top: 1px; accent-color: var(--accent); }
.account-message { margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(96,211,148,.2); border-radius: 12px; background: rgba(96,211,148,.08); color: #c9f5db; font-size: .75rem; }
.account-message.is-error { border-color: rgba(255,83,112,.25); background: rgba(255,83,112,.09); color: #ffd0d8; }
.account-security-note { margin: 18px 0 0; color: var(--subtle); font-size: .65rem; line-height: 1.55; }
.account-settings h2 { overflow-wrap: anywhere; margin: 7px 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
.account-settings > p:not(.eyebrow):not(.account-message) { color: var(--muted); line-height: 1.55; }
.account-settings__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.account-form--section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.account-form--section h3 { margin: 0 0 5px; font-size: 1rem; }
.account-danger { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.account-danger summary { color: #ff91ad; font-size: .78rem; font-weight: 820; cursor: pointer; }
.account-danger > p { color: var(--subtle); font-size: .69rem; line-height: 1.55; }

@media (max-width: 760px) {
  .profile-account { align-items: flex-start; flex-direction: column; }
  .profile-account__actions { width: 100%; justify-content: flex-start; }
  .account-shell { min-height: auto; padding-top: 24px; }
  .account-card { grid-template-columns: 1fr; border-radius: 22px; }
  .account-card__brand { padding: 32px 26px; }
  .account-card__brand h1 { font-size: 2.35rem; }
  .account-auth, .account-settings { padding: 28px 24px 34px; }
}
