@layer reset, tokens, base, components, pages, community, utilities;

@layer tokens {
  :root {
    color-scheme: dark;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --page: #07090e;
    --page-elevated: #0a0d14;
    --surface: #10141d;
    --surface-2: #151a25;
    --surface-3: #1b2230;
    --surface-glass: rgba(15, 19, 28, .78);
    --text: #f7f8fb;
    --text-soft: #c4cad5;
    --muted: #8f98a8;
    --line: rgba(255,255,255,.085);
    --line-strong: rgba(255,255,255,.17);
    --brand: #8b5cf6;
    --brand-2: #ec4899;
    --brand-3: #22d3ee;
    --success: #2dd4bf;
    --warning: #f59e0b;
    --danger: #fb7185;
    --shadow-sm: 0 10px 34px rgba(0,0,0,.20);
    --shadow-md: 0 24px 70px rgba(0,0,0,.30);
    --shadow-lg: 0 36px 110px rgba(0,0,0,.42);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shell: 1480px;
    --header-h: 72px;
  }
  @supports (color: oklch(70% .2 300)) {
    :root {
      --page: oklch(13% .017 275);
      --page-elevated: oklch(16% .019 275);
      --surface: oklch(19% .021 275);
      --surface-2: oklch(22% .025 275);
      --surface-3: oklch(26% .03 275);
      --brand: oklch(68% .22 295);
      --brand-2: oklch(70% .2 350);
      --brand-3: oklch(80% .15 205);
      --success: oklch(78% .16 175);
      --warning: oklch(80% .16 82);
      --danger: oklch(72% .19 15);
    }
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --page: #f5f7fb;
    --page-elevated: #eef2f8;
    --surface: #ffffff;
    --surface-2: #f7f8fb;
    --surface-3: #ebeff6;
    --surface-glass: rgba(255,255,255,.84);
    --text: #151925;
    --text-soft: #404858;
    --muted: #6d7688;
    --line: rgba(19,27,43,.10);
    --line-strong: rgba(19,27,43,.18);
    --shadow-sm: 0 10px 30px rgba(30,39,60,.08);
    --shadow-md: 0 24px 70px rgba(30,39,60,.12);
    --shadow-lg: 0 36px 100px rgba(30,39,60,.17);
  }
  @media (prefers-color-scheme: light) {
    :root[data-theme="system"] {
      color-scheme: light;
      --page: #f5f7fb; --page-elevated: #eef2f8; --surface: #fff; --surface-2: #f7f8fb; --surface-3: #ebeff6;
      --surface-glass: rgba(255,255,255,.84); --text: #151925; --text-soft: #404858; --muted: #6d7688;
      --line: rgba(19,27,43,.10); --line-strong: rgba(19,27,43,.18);
      --shadow-sm: 0 10px 30px rgba(30,39,60,.08); --shadow-md: 0 24px 70px rgba(30,39,60,.12); --shadow-lg: 0 36px 100px rgba(30,39,60,.17);
    }
  }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { min-width: 320px; scroll-behavior: smooth; text-size-adjust: 100%; }
  body { margin: 0; min-height: 100vh; }
  img, video, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; }
  button, [role="button"], a { -webkit-tap-highlight-color: transparent; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, p, dl, dd { margin-top: 0; }
  [hidden] { display: none !important; }
}

@layer base {
  body {
    overflow-x: hidden;
    color: var(--text);
    background:
      radial-gradient(circle at 12% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 30rem),
      radial-gradient(circle at 88% 2%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 28rem),
      var(--page);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { color: white; background: color-mix(in srgb, var(--brand) 75%, black); }
  :focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-3) 76%, transparent); outline-offset: 3px; }
  .shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
  .site-main { min-height: calc(100vh - var(--header-h) - 250px); }
  .content-section { padding-block: clamp(38px, 6vw, 88px); }
  .surface, .form-surface { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
  .prose { color: var(--text-soft); line-height: 1.8; }
  .muted { color: var(--muted); }
  .full { width: 100%; }
  .sr-only { 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; }
  .eyebrow { margin: 0 0 8px; color: var(--brand-3); font-size: .72rem; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
  .skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 15px; border-radius: 10px; color: white; background: var(--brand); transition: top .15s ease; }
  .skip-link:focus { top: 16px; }
}

@layer components {
  .button, .icon-button, .player-control, .favorite-button {
    border: 0; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
  }
  .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 780; letter-spacing: -.01em; }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: translateY(0) scale(.985); }
  .button-primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 24%, transparent); }
  .button-primary:hover { box-shadow: 0 17px 42px color-mix(in srgb, var(--brand) 34%, transparent); }
  .button-secondary { color: var(--text); border-color: var(--line); background: color-mix(in srgb, var(--surface-2) 88%, transparent); }
  .button-secondary:hover { border-color: var(--line-strong); background: var(--surface-3); }
  .button-danger { color: white; background: var(--danger); }
  .button-small { min-height: 36px; padding-inline: 13px; border-radius: 10px; font-size: .82rem; }
  .button-large { min-height: 50px; padding-inline: 24px; }
  .button-link { color: var(--text-soft); font-weight: 760; }
  .button-link:hover { color: var(--text); }
  .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); }
  .icon-button:hover { border-color: var(--line-strong); background: var(--surface-3); }

  .site-header { position: sticky; top: 0; z-index: 800; border-bottom: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(24px) saturate(1.35); }
  .header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 20px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
  .brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface-2)); box-shadow: inset 0 1px rgba(255,255,255,.07); }
  .brand-mark img { width: 27px; height: 27px; }
  .brand-copy { display: grid; line-height: 1.08; }
  .brand-copy strong { font-size: .98rem; letter-spacing: -.025em; }
  .brand-copy small { margin-top: 5px; color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
  .site-nav { display: flex; align-items: center; gap: 5px; }
  .site-nav a { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 11px; color: var(--muted); font-size: .86rem; font-weight: 720; }
  .site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface-2); }
  .site-nav a.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 14px var(--brand-2); }
  .nav-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding-inline: 5px; border-radius: 99px; color: var(--text); background: var(--surface-3); font-size: .67rem; }
  .header-search { position: relative; width: min(320px, 28vw); margin-left: auto; }
  .header-search svg, .search-control svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--muted); pointer-events: none; }
  .header-search input, .search-control input { width: 100%; min-height: 42px; padding: 0 42px 0 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); outline: none; }
  .header-search input:focus, .search-control input:focus { border-color: color-mix(in srgb, var(--brand) 58%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
  .header-search kbd { position: absolute; right: 11px; top: 50%; min-width: 23px; height: 23px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--page-elevated); font: .7rem var(--font-mono); }
  .mobile-nav-toggle { display: none; }
  .site-notice { border-bottom: 1px solid var(--line); color: var(--text-soft); background: color-mix(in srgb, var(--brand) 9%, var(--page-elevated)); }
  .site-notice > div { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; }

  .section-heading, .directory-toolbar, .page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading.compact { align-items: center; margin-bottom: 16px; }
  .section-heading h2, .directory-toolbar h2, .page-intro h1 { margin: 0; letter-spacing: -.04em; line-height: 1.08; }
  .section-heading h2, .directory-toolbar h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
  .section-heading p:not(.eyebrow), .directory-toolbar p, .page-intro p { margin: 7px 0 0; color: var(--muted); }
  .page-intro { margin-bottom: 30px; }
  .page-intro h1 { font-size: clamp(2rem, 5vw, 4rem); }
  .page-intro.split { align-items: center; }
  .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: .76rem; }
  .breadcrumbs a:hover { color: var(--text); }
  .live-pulse { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); animation: pulse-ring 1.8s infinite; }
  @keyframes pulse-ring { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

  .status-chip, .status-pill, .soft-chip, .viewer-chip, .access-chip, .live-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: .67rem; font-weight: 830; letter-spacing: .06em; text-transform: uppercase; }
  .status-chip { min-height: 26px; padding: 0 10px; color: white; background: rgba(5,8,14,.70); backdrop-filter: blur(10px); }
  .status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .status-chip.is-live { color: #fff; background: color-mix(in srgb, var(--danger) 88%, rgba(20,20,20,.6)); }
  .status-chip.is-offline { color: #cbd1dd; }
  .status-pill, .soft-chip { min-height: 26px; padding: 0 10px; color: var(--text-soft); border: 1px solid var(--line); background: var(--surface-2); }
  .status-pill.success { color: var(--success); border-color: color-mix(in srgb, var(--success) 24%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
  .status-pill.warning { color: var(--warning); }
  .status-pill.danger { color: var(--danger); }
  .viewer-chip, .access-chip { position: absolute; z-index: 2; min-height: 25px; padding: 0 9px; color: white; background: rgba(6,8,13,.68); backdrop-filter: blur(10px); }
  .viewer-chip { right: 10px; top: 10px; }
  .access-chip { left: 10px; bottom: 10px; }
  .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
  .status-dot.online, .status-dot.success { background: var(--success); box-shadow: 0 0 13px color-mix(in srgb, var(--success) 60%, transparent); }

  .model-grid, .recording-grid { display: grid; gap: 16px; }
  .model-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .recording-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .model-card, .recording-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 26px rgba(0,0,0,.14); container-type: inline-size; content-visibility: auto; contain-intrinsic-size: auto 420px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
  .model-card:hover, .recording-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .model-media, .recording-media { position: relative; display: block; overflow: hidden; background: var(--surface-3); }
  .model-media { aspect-ratio: 16 / 10; }
  .recording-media { aspect-ratio: 16 / 9; }
  .model-media img, .recording-media img, .recording-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .model-card:hover .model-media img, .recording-card:hover .recording-media img, .recording-card:hover .recording-media video { transform: scale(1.035); }
  .media-gradient { position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(4,6,10,.72)); pointer-events: none; }
  .model-media .status-chip { position: absolute; z-index: 2; left: 10px; top: 10px; }
  .model-card-body, .recording-card-body { padding: 14px; }
  .model-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .model-card-title > div { min-width: 0; }
  .model-card h2, .recording-card h2 { margin: 0; overflow: hidden; color: var(--text); font-size: .98rem; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
  .model-card h2 a:hover, .recording-card h2 a:hover { color: var(--brand-3); }
  .model-card-title p, .recording-card-body > p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
  .favorite-button { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); background: var(--surface-2); }
  .favorite-button:hover, .favorite-button.active { color: white; border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line)); background: color-mix(in srgb, var(--brand-2) 20%, var(--surface)); }
  .model-meta, .recording-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 11px; color: var(--muted); font-size: .72rem; }
  .model-meta span:not(:last-child)::after, .recording-meta span:not(:last-child)::after { content: '·'; margin-left: 12px; color: var(--line-strong); }
  .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
  .tag-row a, .internal-link-cloud a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); font-size: .68rem; }
  .tag-row a:hover, .internal-link-cloud a:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); }
  .tag-row-large a { font-size: .73rem; }
  .card-actions { display: flex; gap: 8px; margin-top: 13px; }
  .card-actions .button { flex: 1 1 auto; }
  .recording-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; background: rgba(5,7,11,.56); backdrop-filter: blur(10px); opacity: .92; transition: transform .2s ease, background .2s ease; }
  .recording-card:hover .recording-play { transform: translate(-50%,-50%) scale(1.08); background: color-mix(in srgb, var(--brand) 76%, rgba(5,7,11,.6)); }
  .recording-duration { position: absolute; z-index: 3; right: 9px; bottom: 9px; padding: 4px 7px; border-radius: 7px; color: white; background: rgba(4,6,10,.78); font: .68rem var(--font-mono); }
  .recording-card-body > p { display: flex; gap: 7px; }

  .field, .filter-grid label, .recording-filter-grid label, .record-request-controls label { display: grid; gap: 7px; }
  .field label, .filter-grid label > span, .recording-filter-grid label > span, .record-request-controls label > span { color: var(--muted); font-size: .7rem; font-weight: 760; }
  input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-2); outline: none; }
  input, select { min-height: 44px; padding: 0 12px; }
  textarea { min-height: 120px; padding: 12px; resize: vertical; }
  input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--brand) 56%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent); }
  .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .field-full { grid-column: 1 / -1; }
  .field-error { color: var(--danger); font-size: .72rem; }
  .field-hint { color: var(--muted); font-size: .72rem; }
  .check-row, .check-field { display: flex; align-items: center; gap: 9px; color: var(--text-soft); }
  .check-row input, .check-field input { width: 18px; min-height: 18px; accent-color: var(--brand); }
  .sort-select { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .72rem; }
  .sort-select select { width: auto; min-width: 135px; }

  .pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
  .page-button, .page-numbers a, .page-numbers span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
  .page-button:hover, .page-numbers a:hover, .page-numbers .active { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
  .empty-state { width: 100%; min-height: 280px; display: grid; place-items: center; align-content: center; text-align: center; padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); }
  .empty-state.compact { min-height: 180px; }
  .empty-state > span { font-size: 2rem; color: var(--brand); }
  .empty-state h2, .empty-state h3 { margin: 10px 0 5px; color: var(--text); }
  .empty-state p { max-width: 560px; margin-bottom: 16px; }

  .flash-stack { position: fixed; z-index: 1400; right: 18px; top: calc(var(--header-h) + 18px); width: min(420px, calc(100% - 36px)); display: grid; gap: 10px; }
  .flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-md); }
  .flash-error { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

  .site-footer { margin-top: clamp(54px,8vw,120px); border-top: 1px solid var(--line); background: var(--page-elevated); }
  .footer-main { display: grid; grid-template-columns: minmax(280px,1.5fr) repeat(3,minmax(130px,.55fr)); gap: 44px; padding-block: 52px; }
  .footer-brand p { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
  .footer-disclaimer { font-size: .72rem !important; }
  .footer-links { display: grid; align-content: start; gap: 9px; }
  .footer-links h2 { margin: 0 0 5px; font-size: .8rem; }
  .footer-links a, .footer-link-button { padding: 0; border: 0; color: var(--muted); background: none; font-size: .78rem; text-align: left; cursor: pointer; }
  .footer-links a:hover, .footer-link-button:hover { color: var(--text); }
  .footer-bottom { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

  .cookie-banner { position: fixed; z-index: 1500; left: 50%; bottom: 18px; width: min(940px, calc(100% - 36px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-glass); box-shadow: var(--shadow-lg); backdrop-filter: blur(24px); }
  .cookie-banner p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
  .modal-backdrop { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,6,10,.78); backdrop-filter: blur(10px); }
  .modal-card { width: min(500px,100%); padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
  .modal-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px; background: var(--surface-2); }
}

@layer pages {
  .home-hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--page-elevated) 85%, transparent), transparent); }
  .home-hero::before { content: ''; position: absolute; width: 48rem; height: 48rem; right: -18rem; top: -22rem; border-radius: 50%; background: conic-gradient(from 190deg, color-mix(in srgb, var(--brand) 35%, transparent), color-mix(in srgb, var(--brand-2) 25%, transparent), transparent 58%); filter: blur(16px); opacity: .72; }
  .home-hero-grid { position: relative; min-height: 500px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.7fr); align-items: center; gap: 80px; padding-block: clamp(64px,8vw,120px); }
  .hero-copy h1, .recordings-hero h1 { margin: 0; font-size: clamp(3rem,7vw,7rem); line-height: .88; letter-spacing: -.075em; }
  .hero-copy h1 span, .recordings-hero h1 span { color: transparent; background: linear-gradient(100deg, var(--brand-3), var(--brand), var(--brand-2)); background-clip: text; -webkit-background-clip: text; }
  .hero-copy > p:not(.eyebrow), .recordings-hero p:not(.eyebrow) { max-width: 680px; margin: 24px 0; color: var(--text-soft); font-size: clamp(.98rem,1.7vw,1.18rem); line-height: 1.75; }
  .hero-search { max-width: 720px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .search-control { position: relative; display: block; }
  .search-control input { min-height: 52px; }
  .quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
  .quick-links a { padding: 7px 10px; border-radius: 9px; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: .72rem; }
  .quick-links a:hover, .quick-links a.active { color: var(--text); background: var(--surface-2); }
  .hero-dashboard { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--surface) 78%, transparent); box-shadow: var(--shadow-lg); backdrop-filter: blur(24px); }
  .hero-stat { min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
  .hero-stat-primary { grid-row: span 2; min-height: 272px; background: linear-gradient(155deg, color-mix(in srgb, var(--brand) 23%, var(--surface)), var(--surface-2)); }
  .hero-stat span { color: var(--muted); font-size: .71rem; text-transform: uppercase; letter-spacing: .08em; }
  .hero-stat strong { margin-top: 6px; font-size: clamp(2rem,4vw,4.2rem); line-height: 1; letter-spacing: -.065em; }
  .hero-stat small { margin-top: 7px; color: var(--muted); }
  .hero-orbit { position: absolute; right: -18px; top: -18px; width: 90px; height: 90px; border: 1px solid color-mix(in srgb, var(--brand-3) 25%, transparent); border-radius: 50%; animation: orbit-spin 13s linear infinite; }
  .hero-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3); }
  .hero-orbit i:nth-child(1) { left: 4px; top: 38px; } .hero-orbit i:nth-child(2) { right: 9px; top: 17px; background: var(--brand-2); } .hero-orbit i:nth-child(3) { right: 23px; bottom: 5px; background: var(--brand); }
  @keyframes orbit-spin { to { transform: rotate(360deg); } }
  .directory-section { padding-block: clamp(42px,6vw,88px); }
  .directory-toolbar { margin-bottom: 22px; }
  .toolbar-actions { display: flex; align-items: center; gap: 10px; }
  .filter-button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: .66rem; }
  .filter-popover { position: fixed; z-index: 1100; inset: var(--header-h) 0 auto auto; width: min(560px,100%); height: calc(100dvh - var(--header-h)); margin: 0; padding: 0; border: 0; color: var(--text); background: transparent; }
  .filter-popover::backdrop { background: rgba(3,5,9,.68); backdrop-filter: blur(6px); }
  .filter-popover > form { height: 100%; overflow: auto; padding: 24px; border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
  .filter-popover header, .filter-popover footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .filter-popover footer { position: sticky; bottom: -24px; margin: 24px -24px -24px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(16px); }
  .filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-block: 24px; }
  .recordings-strip { padding-block: clamp(44px,6vw,84px); border-block: 1px solid var(--line); background: var(--page-elevated); }
  .recording-grid-home { grid-template-columns: repeat(4,minmax(0,1fr)); }

  .saved-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-bottom: 22px; }

  .profile-shell { padding-top: 22px; }
  .profile-hero { position: relative; overflow: hidden; min-height: 330px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); }
  .profile-hero-art { position: absolute; inset: 0; }
  .profile-hero-art img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.72); transform: scale(1.08); opacity: .38; }
  .profile-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 4%, color-mix(in srgb, var(--surface) 84%, transparent) 46%, color-mix(in srgb, var(--surface) 30%, transparent)), linear-gradient(0deg, var(--surface), transparent 60%); }
  .profile-hero-content { position: relative; z-index: 2; min-height: 330px; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; padding: clamp(24px,4vw,48px); }
  .profile-avatar-wrap { position: relative; }
  .profile-avatar { width: clamp(112px,12vw,162px); height: clamp(112px,12vw,162px); object-fit: cover; border: 4px solid color-mix(in srgb, var(--surface) 85%, transparent); border-radius: 30px; box-shadow: var(--shadow-md); }
  .presence-ring { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border: 6px solid var(--surface); border-radius: 50%; background: var(--muted); }
  .presence-ring.is-live { background: var(--success); box-shadow: 0 0 18px color-mix(in srgb, var(--success) 50%, transparent); }
  .profile-state-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .profile-title-block h1 { margin: 0; font-size: clamp(2.3rem,5vw,5rem); line-height: .92; letter-spacing: -.065em; }
  .profile-handle { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
  .profile-stat-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
  .profile-stat-row span { display: grid; }
  .profile-stat-row strong { font-size: .92rem; }
  .profile-stat-row small { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
  .profile-hero-actions { display: flex; flex-direction: column; gap: 9px; min-width: 180px; }
  .profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; margin-top: 20px; }
  .profile-main-column, .profile-side-column { min-width: 0; display: grid; gap: 20px; }
  .player-card, .profile-info-card, .record-request-panel, .recording-detail-card, .recording-profile-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
  .player-card { overflow: hidden; }
  .player-card-heading { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
  .player-card-heading h2 { margin: 0; font-size: 1.14rem; }
  .player-live-indicator { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; }
  .live-player-shell { background: #03050a; }
  .live-player-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #05070b; }
  .live-player-stage video, .live-player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .live-player-poster { object-fit: cover; }
  .live-player-shell.is-playing .live-player-poster { opacity: 0; pointer-events: none; }
  .player-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,4,8,.62), transparent 25%, transparent 70%, rgba(2,4,8,.48)); pointer-events: none; }
  .player-overlay-top { position: absolute; z-index: 3; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 16px; }
  .live-badge { min-height: 26px; padding: 0 10px; color: white; background: var(--danger); }
  .live-badge.offline { color: #d2d6df; background: rgba(8,11,17,.72); }
  .player-health { align-self: center; color: rgba(255,255,255,.75); font-size: .7rem; }
  .player-loader, .player-message { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: white; background: rgba(3,5,9,.34); }
  .player-loader > span, .vod-buffer > span { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.18); border-top-color: white; border-radius: 50%; animation: spinner .8s linear infinite; }
  @keyframes spinner { to { transform: rotate(360deg); } }
  .player-loader p { margin: 0; font-size: .74rem; }
  .player-message span { max-width: 420px; color: rgba(255,255,255,.72); font-size: .76rem; }
  .live-player-toolbar, .vod-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-top: 1px solid rgba(255,255,255,.08); color: white; background: #080b11; }
  .player-controls-primary, .player-controls-secondary, .vod-toolbar > div { display: flex; align-items: center; gap: 7px; }
  .player-control { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: white; background: transparent; }
  .player-control:hover { background: rgba(255,255,255,.09); }
  .player-control-main { background: linear-gradient(135deg,var(--brand),var(--brand-2)); }
  .player-volume { width: 88px; display: flex; align-items: center; }
  .player-volume input { min-height: 0; height: 4px; padding: 0; border: 0; accent-color: var(--brand-2); background: rgba(255,255,255,.18); }
  .quality-select select { width: auto; min-width: 82px; min-height: 36px; padding-inline: 10px; color: white; border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.06); font-size: .72rem; }
  .player-live-text { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
  .player-live-text i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
  .profile-navigation { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
  .profile-navigation a, .profile-navigation > span { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); background: var(--surface); font-size: .75rem; font-weight: 730; }
  .profile-navigation a:hover { color: var(--text); background: var(--surface-2); }
  .record-request-panel { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
  .record-request-copy h2 { margin: 0; font-size: 1.25rem; }
  .record-request-copy p:last-child { margin: 7px 0 0; color: var(--muted); }
  .record-request-controls { display: flex; align-items: end; gap: 10px; }
  .record-request-controls select { min-width: 140px; }
  .record-status { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 180px auto; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .record-status > div:first-child { display: grid; }
  .record-status span { color: var(--muted); font-size: .72rem; }
  .record-progress { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
  .record-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),var(--brand-2)); transition: width .3s ease; }
  .record-status-meta { display: flex; gap: 12px; }
  .profile-section { padding-block: 26px; }
  .profile-info-card { padding: 20px; }
  .detail-list { display: grid; gap: 0; margin: 0; }
  .detail-list > div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
  .detail-list > div:last-child { border-bottom: 0; }
  .detail-list dt { color: var(--muted); font-size: .72rem; }
  .detail-list dd { margin: 0; text-align: right; font-size: .77rem; }
  .profile-bio { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .profile-bio h3 { margin: 0 0 8px; font-size: .82rem; }
  .profile-bio p { margin: 0; color: var(--text-soft); font-size: .76rem; line-height: 1.75; }
  .internal-link-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
  .related-section { padding-block: clamp(42px,6vw,82px); }

  .recordings-hero { position: relative; overflow: hidden; padding-block: clamp(62px,8vw,112px); border-bottom: 1px solid var(--line); background: linear-gradient(150deg, color-mix(in srgb,var(--brand) 10%,var(--page-elevated)), var(--page)); }
  .recordings-hero::after { content: ''; position: absolute; width: 48rem; height: 48rem; left: 55%; top: -28rem; border-radius: 50%; background: conic-gradient(from 140deg,var(--brand-2),transparent,var(--brand-3)); filter: blur(100px); opacity: .15; }
  .recordings-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(360px,.72fr); gap: 80px; align-items: center; }
  .recordings-hero h1 { font-size: clamp(3rem,6vw,6.2rem); }
  .recording-search-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb,var(--surface) 80%,transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(22px); }
  .recording-filter-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-block: 12px; }
  .recordings-index-section { padding-block: clamp(42px,6vw,86px); }
  .recording-grid-archive { grid-template-columns: repeat(4,minmax(0,1fr)); }

  .recording-watch-page { padding-top: 22px; }
  .recording-watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
  .recording-watch-main { min-width: 0; display: grid; gap: 18px; }
  .vod-shell { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #03050a; box-shadow: var(--shadow-md); }
  .vod-stage { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; background: #03050a; }
  .vod-stage video, .vod-stage > img { width: 100%; height: 100%; object-fit: contain; }
  .vod-center-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: white; background: rgba(5,7,12,.58); backdrop-filter: blur(14px); cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
  .vod-center-play:hover { transform: translate(-50%,-50%) scale(1.06); }
  .vod-shell.is-playing .vod-center-play { opacity: 0; pointer-events: none; }
  .vod-buffer { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3,5,9,.18); }
  .vod-controls { color: white; background: #080b11; }
  .vod-timeline { position: relative; height: 12px; display: flex; align-items: center; padding-inline: 12px; }
  .vod-timeline input { position: relative; z-index: 2; width: 100%; height: 4px; min-height: 0; padding: 0; border: 0; accent-color: var(--brand-2); background: rgba(255,255,255,.16); cursor: pointer; }
  .vod-time { color: rgba(255,255,255,.66); font: .67rem var(--font-mono); }
  .recording-detail-card { padding: 22px; }
  .recording-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
  .recording-detail-heading h1 { max-width: 900px; margin: 0; font-size: clamp(1.7rem,4vw,3.2rem); line-height: 1; letter-spacing: -.05em; }
  .recording-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0; padding-block: 15px; border-block: 1px solid var(--line); }
  .recording-facts span { display: grid; color: var(--muted); font-size: .67rem; }
  .recording-facts strong { color: var(--text); font-size: .78rem; }
  .recording-profile-card { position: sticky; top: calc(var(--header-h) + 18px); padding: 18px; }
  .recording-profile-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
  .recording-profile-identity img { width: 64px; height: 64px; object-fit: cover; border-radius: 18px; }
  .recording-profile-identity span { min-width: 0; display: grid; }
  .recording-profile-identity strong { margin-top: 6px; overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
  .recording-profile-identity em { color: var(--muted); font-size: .72rem; font-style: normal; }
  .recording-profile-card .button { margin-top: 8px; }
  .recording-profile-card .detail-list { margin-top: 16px; }

  .discover-page, .legal-page, .narrow-page, .capture-page, .community-page { padding-block: clamp(36px,6vw,78px); }
  .discover-hero { margin-bottom: 30px; padding: clamp(24px,5vw,60px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(135deg,color-mix(in srgb,var(--brand) 12%,var(--surface)),var(--surface)); }
  .discover-hero h1 { margin: 0; font-size: clamp(2.2rem,5vw,4.8rem); letter-spacing: -.065em; }
  .discover-count { margin-top: 18px; color: var(--muted); }
  .legal-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 30px; }
  .legal-nav { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 6px; }
  .legal-nav a { padding: 10px 12px; border-radius: 9px; color: var(--muted); }
  .legal-nav a:hover, .legal-nav a.active { color: var(--text); background: var(--surface-2); }
  .legal-article { padding: clamp(22px,4vw,46px); }
  .legal-article h1 { font-size: clamp(2rem,5vw,4rem); letter-spacing: -.06em; }
  .legal-article h2 { margin-top: 34px; }
  .message-card, .error-card, .auth-card { width: min(620px,100%); margin-inline: auto; padding: clamp(24px,5vw,46px); text-align: center; }
  .error-code { color: var(--brand-2); font: 800 1rem var(--font-mono); }
  .error-reference { color: var(--muted); font: .7rem var(--font-mono); }
  .auth-body { display: grid; place-items: center; padding: 20px; }
  .auth-shell { width: min(480px,100%); }
  .auth-brand { justify-content: center; margin-bottom: 18px; }
  .auth-card { text-align: left; }
}

@layer community {
  .community-hero { overflow: hidden; padding: clamp(26px,5vw,52px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(135deg,color-mix(in srgb,var(--brand) 12%,var(--surface)),var(--surface)); }
  .community-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
  .community-hero h1 { margin: 0; font-size: clamp(2.3rem,5vw,4.8rem); letter-spacing: -.06em; }
  .community-hero p { max-width: 700px; color: var(--text-soft); }
  .community-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .community-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .community-stats > div { min-width: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
  .community-stats strong, .community-stats span { display: block; }
  .community-stats span { color: var(--muted); font-size: .68rem; }
  .community-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; margin-top: 20px; }
  .community-feed-column, .community-sidebar { min-width: 0; display: grid; gap: 16px; align-content: start; }
  .community-live-bar, .community-notice, .community-account-card, .community-guidelines, .community-composer, .community-thread-card, .community-reply-surface { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
  .community-live-bar, .community-notice { padding: 13px 16px; }
  .community-composer, .community-account-card, .community-guidelines, .community-reply-surface { padding: 18px; }
  .community-thread-list, .community-messages { display: grid; gap: 12px; }
  .community-thread-card { padding: 18px; transition: border-color .18s ease, transform .18s ease; }
  .community-thread-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
  .community-thread-card-top, .community-thread-title-row, .community-thread-meta, .community-message-head, .community-message-actions, .community-reply-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .community-thread-card h2, .community-thread-card h3 { margin: 0; }
  .community-thread-card p, .community-message-body { color: var(--text-soft); }
  .community-avatar, .comment-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: white; background: linear-gradient(135deg,var(--brand),var(--brand-2)); font-weight: 800; }
  .community-message { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
  .community-message-main { min-width: 0; }
  .community-author-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .community-role, .community-time { color: var(--muted); font-size: .68rem; }
  .community-quote { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--brand); color: var(--muted); background: var(--surface-2); }
  .community-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
  .community-media-image, .community-media-video { overflow: hidden; border-radius: 12px; background: var(--surface-3); }
  .community-media img, .community-media video { width: 100%; max-height: 480px; object-fit: contain; }
  .community-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .community-reaction { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-soft); background: var(--surface-2); font-size: .72rem; }
  .community-action, .community-report { border: 0; color: var(--muted); background: none; cursor: pointer; font-size: .72rem; }
  .community-action:hover, .community-report:hover { color: var(--text); }
  .community-thread-page { padding-block: 32px; }
  .community-thread-hero { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
  .community-account-page { padding-block: 50px; }
  .community-account-card { width: min(520px,100%); margin-inline: auto; }
}

@layer utilities {
  @supports (view-transition-name: none) {
    .site-header { view-transition-name: site-header; }
    .model-card, .recording-card { view-transition-name: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  }
  @supports (content-visibility: auto) { .model-card, .recording-card { content-visibility: auto; } }
  @container (max-width: 235px) {
    .model-card .tag-row, .model-card .card-actions .button-secondary { display: none; }
    .model-card-body { padding: 11px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
  @media (max-width: 1280px) {
    .model-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .recording-grid, .recording-grid-home, .recording-grid-archive { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .profile-layout { grid-template-columns: minmax(0,1fr) 300px; }
  }
  @media (max-width: 1050px) {
    .header-search { display: none; }
    .home-hero-grid, .recordings-hero-grid { grid-template-columns: 1fr; gap: 46px; }
    .hero-dashboard { max-width: 720px; }
    .model-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .profile-layout, .recording-watch-layout, .community-layout { grid-template-columns: 1fr; }
    .profile-side-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .recording-profile-card { position: static; }
    .footer-main { grid-template-columns: 1.3fr repeat(3,.7fr); gap: 28px; }
  }
  @media (max-width: 760px) {
    :root { --header-h: 64px; }
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .header-inner { gap: 10px; }
    .brand-copy small { display: none; }
    .mobile-nav-toggle { display: grid; margin-left: auto; }
    .site-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-lg); }
    .site-nav.open { display: flex; }
    .site-nav a { justify-content: flex-start; }
    .theme-toggle { flex: 0 0 auto; }
    .home-hero-grid { min-height: auto; padding-block: 58px; }
    .hero-copy h1, .recordings-hero h1 { font-size: clamp(3rem,16vw,5.2rem); }
    .hero-search { grid-template-columns: 1fr; }
    .hero-dashboard { grid-template-columns: 1fr 1fr; }
    .hero-stat-primary { grid-column: 1/-1; grid-row: auto; min-height: 170px; }
    .directory-toolbar, .section-heading, .page-intro, .page-intro.split { align-items: flex-start; flex-direction: column; }
    .toolbar-actions { width: 100%; justify-content: space-between; }
    .model-grid, .recording-grid, .recording-grid-home, .recording-grid-archive { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .profile-hero-content { grid-template-columns: auto 1fr; align-items: center; }
    .profile-hero-actions { grid-column: 1/-1; flex-direction: row; min-width: 0; }
    .profile-hero-actions .button { flex: 1; }
    .profile-stat-row { gap: 14px; }
    .profile-side-column { grid-template-columns: 1fr; }
    .record-request-panel { grid-template-columns: 1fr; }
    .record-request-controls { align-items: stretch; flex-direction: column; }
    .record-status { grid-template-columns: 1fr; }
    .recording-filter-grid { grid-template-columns: 1fr; }
    .player-volume { display: none; }
    .player-live-text { display: none; }
    .footer-main { grid-template-columns: repeat(2,1fr); }
    .footer-brand { grid-column: 1/-1; }
    .cookie-banner { align-items: stretch; flex-direction: column; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; display: flex; overflow-x: auto; }
    .community-hero-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) {
    .model-grid, .recording-grid, .recording-grid-home, .recording-grid-archive { grid-template-columns: 1fr; }
    .hero-dashboard { grid-template-columns: 1fr; }
    .hero-stat-primary { grid-column: auto; }
    .filter-grid, .form-grid { grid-template-columns: 1fr; }
    .profile-hero-content { grid-template-columns: 1fr; align-items: start; }
    .profile-avatar { width: 100px; height: 100px; border-radius: 24px; }
    .profile-hero-actions { flex-direction: column; }
    .profile-navigation { grid-template-columns: 1fr; }
    .profile-navigation > span { display: none; }
    .live-player-toolbar, .vod-toolbar { align-items: flex-start; flex-direction: column; }
    .player-controls-primary, .player-controls-secondary, .vod-toolbar > div { width: 100%; justify-content: space-between; }
    .recording-detail-heading { flex-direction: column; }
    .saved-toolbar { align-items: stretch; flex-direction: column; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 15px; }
  }
}
