/* ============================================================
   AURA — Premium Streaming Design System
   Tokens + base + components
   ============================================================ */

/* Typefaces — served from OUR server (fonts/). Nothing on this site is loaded
   from anyone else's (Guda, 2026-11-11): the old @import sent every visitor's
   address and the page they were on to a font host.
   Clash Display = the headings, exactly as before. */
@font-face { font-family: 'Clash Display'; src: url('fonts/clash-display-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/clash-display-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/clash-display-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* General Sans is what --font-body names, but the old @import only ever
   delivered the FIRST family, so body text has always shown in the fallback
   (Helvetica/Arial). Left that way on purpose — the look is unchanged. To switch
   the designed body face on, uncomment these four lines (files are in fonts/):
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/general-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
*/

:root {
  /* ---------- COLOR · backgrounds & surfaces ---------- */
  /* Cool near-black with a faint violet undertone for depth */
  --bg:           oklch(0.155 0.012 285);   /* page base            */
  --bg-deep:      oklch(0.125 0.013 285);   /* deepest wells, footer */
  --surface:      oklch(0.195 0.014 285);   /* default card          */
  --surface-2:    oklch(0.235 0.016 286);   /* raised card           */
  --elevated:     oklch(0.285 0.018 286);   /* menus, popovers        */

  /* ---------- COLOR · hairlines & overlays ---------- */
  --line:         oklch(1 0 0 / 0.08);      /* default border         */
  --line-strong:  oklch(1 0 0 / 0.14);      /* emphasised border      */
  --scrim:        oklch(0.10 0.01 285 / 0.72);

  /* ---------- COLOR · accent (violet) ---------- */
  --accent:       oklch(0.645 0.205 282);   /* #7c5cff base           */
  --accent-hover: oklch(0.705 0.190 283);
  --accent-press: oklch(0.585 0.205 281);
  --accent-soft:  oklch(0.645 0.205 282 / 0.14);  /* tinted fills     */
  --accent-line:  oklch(0.645 0.205 282 / 0.38);
  --on-accent:    oklch(0.99 0.004 285);
  /* The purple BEHIND white text (buttons, "new" badges, active chips): the same
     hue a shade deeper, so the label reads — white on --accent is 3.46:1, on
     this 4.59:1 (the readability standard asks for 4.5). --accent itself (links,
     glows, sliders, highlights) is unchanged. */
  --accent-fill:       oklch(0.575 0.210 282);
  --accent-fill-hover: oklch(0.555 0.210 282);
  --accent-fill-press: oklch(0.540 0.210 282);

  /* secondary accent — same L/C, hue shifted (magenta) for duotones */
  --accent-2:     oklch(0.645 0.205 350);
  --accent-2-soft:oklch(0.645 0.205 350 / 0.14);

  /* ---------- COLOR · text hierarchy ---------- */
  --text:         oklch(0.972 0.004 285);   /* primary                */
  --text-2:       oklch(0.795 0.008 285);   /* secondary              */
  --text-3:       oklch(0.620 0.010 285);   /* tertiary / meta        */
  --text-disabled:oklch(0.460 0.010 285);

  /* ---------- COLOR · semantic ---------- */
  --success:      oklch(0.72 0.15 158);
  --warning:      oklch(0.80 0.13 78);
  --danger:       oklch(0.64 0.20 22);

  /* ---------- TYPE ---------- */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body:    'General Sans', 'Helvetica Neue', Arial, sans-serif;

  --fs-display-xl: 76px;
  --fs-display:    56px;
  --fs-h1:         40px;
  --fs-h2:         31px;
  --fs-h3:         24px;
  --fs-h4:         20px;
  --fs-body-lg:    18px;
  --fs-body:       16px;
  --fs-body-sm:    14px;
  --fs-caption:    13px;
  --fs-overline:   12px;

  /* ---------- SPACING (4px base) ---------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* ---------- RADIUS ---------- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* ---------- ELEVATION ---------- */
  --sh-1: 0 1px 2px oklch(0 0 0 / 0.40);
  --sh-2: 0 4px 16px oklch(0 0 0 / 0.45);
  --sh-3: 0 12px 36px oklch(0 0 0 / 0.55);
  --sh-4: 0 24px 64px oklch(0 0 0 / 0.62);
  --glow: 0 8px 32px oklch(0.645 0.205 282 / 0.45);   /* accent glow */
  --glow-soft: 0 6px 24px oklch(0.645 0.205 282 / 0.28);

  /* ---------- MOTION ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.32s;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01";
}

/* faint cinematic glows behind the page */
.aura-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura-field::before, .aura-field::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px);
}
.aura-field::before {
  width: 60vw; height: 60vw; top: -22vw; left: -12vw;
  background: radial-gradient(circle, oklch(0.645 0.205 282 / 0.20), transparent 65%);
}
.aura-field::after {
  width: 48vw; height: 48vw; bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, oklch(0.645 0.205 350 / 0.14), transparent 65%);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0; color: var(--text); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.font-display { font-family: var(--font-display); }
.mono { font-family: 'SFMono-Regular', ui-monospace, 'Menlo', monospace; }

/* ============================================================
   TYPOGRAPHIC SCALE UTILITIES
   ============================================================ */
.t-display-xl { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display-xl); line-height: 0.98; letter-spacing: -0.03em; }
.t-display    { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.025em; }
.t-h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); letter-spacing: -0.02em; }
.t-h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -0.02em; }
.t-h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.015em; }
.t-h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); letter-spacing: -0.01em; }
.t-body-lg { font-size: var(--fs-body-lg); line-height: 1.6; }
.t-body    { font-size: var(--fs-body); line-height: 1.6; }
.t-body-sm { font-size: var(--fs-body-sm); line-height: 1.55; }
.t-caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--text-3); }
.t-overline { font-size: var(--fs-overline); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.accent { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --pad-y: 12px; --pad-x: 22px; --bfs: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--bfs);
  line-height: 1; letter-spacing: -0.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform 0.12s var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent-fill); color: var(--on-accent); box-shadow: var(--glow-soft); }
.btn-primary:hover { background: var(--accent-fill-hover); box-shadow: var(--glow); }
.btn-primary:active { background: var(--accent-fill-press); }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--elevated); border-color: var(--accent-line); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.06); color: var(--text); }

.btn-sm { --pad-y: 8px; --pad-x: 16px; --bfs: 13px; }
.btn-lg { --pad-y: 16px; --pad-x: 30px; --bfs: 17px; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.4; pointer-events: none; box-shadow: none;
}

/* ============================================================
   VIDEO THUMBNAIL CARDS
   ============================================================ */

/* landscape 16:9 card */
.vcard {
  position: relative; display: block; width: 100%;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vcard__art { position: absolute; inset: 0; }
.vcard__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.10 0.01 285 / 0.85) 100%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.vcard__body {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  transform: translateY(8px); opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.vcard__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.vcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--text-2); font-size: 12.5px; }
.vcard__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  width: 56px; height: 56px; border-radius: 50%;
  background: oklch(0.99 0.004 285 / 0.92); color: oklch(0.15 0.012 285);
  display: grid; place-items: center; opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: var(--sh-2);
}
.vcard__play svg { width: 22px; height: 22px; margin-left: 2px; }
.vcard__badge {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: oklch(0.12 0.01 285 / 0.7); color: var(--text); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.vcard__badge--new { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }

.vcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.vcard:hover .vcard__grad,
.vcard:hover .vcard__body,
.vcard:hover .vcard__play { opacity: 1; }
.vcard:hover .vcard__body { transform: translateY(0); }
.vcard:hover .vcard__play { transform: translate(-50%, -50%) scale(1); }

/* caption shown beneath landscape cards in rows (always visible variant) */
.vcard-row { display: flex; flex-direction: column; gap: var(--s-3); }
.vcard-row .vcard__caption { padding: 0 2px; }
.vcard-row .vcard__caption .ttl { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.vcard-row .vcard__caption .sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }

/* poster 2:3 card */
.pcard {
  position: relative; display: block; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 2 / 3; cursor: pointer; background: var(--surface);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pcard .art { position: absolute; inset: 0; }
.pcard .art img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.pcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--glow-soft); }
.pcard:hover .ring { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.pcard .rank {
  position: absolute; bottom: -6px; left: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 80px;
  line-height: 1; color: var(--bg); -webkit-text-stroke: 2px oklch(1 0 0 / 0.5);
}

/* generative "art" placeholders — premium duotone fields */
.art-ph { width: 100%; height: 100%; position: relative; }
.art-ph::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.05em;
  color: oklch(1 0 0 / 0.45);
}
.ph-a { background:
  radial-gradient(120% 120% at 20% 10%, oklch(0.645 0.205 282 / 0.9), transparent 55%),
  radial-gradient(120% 120% at 90% 90%, oklch(0.50 0.18 320 / 0.9), transparent 60%),
  linear-gradient(135deg, oklch(0.28 0.06 285), oklch(0.18 0.03 285)); }
.ph-b { background:
  radial-gradient(120% 120% at 80% 20%, oklch(0.645 0.205 350 / 0.8), transparent 55%),
  radial-gradient(120% 120% at 10% 90%, oklch(0.55 0.16 250 / 0.8), transparent 60%),
  linear-gradient(135deg, oklch(0.26 0.05 320), oklch(0.16 0.03 300)); }
.ph-c { background:
  radial-gradient(120% 120% at 50% 0%, oklch(0.60 0.16 230 / 0.85), transparent 55%),
  radial-gradient(120% 120% at 100% 100%, oklch(0.55 0.20 290 / 0.8), transparent 60%),
  linear-gradient(160deg, oklch(0.24 0.05 260), oklch(0.15 0.02 270)); }
.ph-d { background:
  radial-gradient(120% 120% at 30% 80%, oklch(0.66 0.17 30 / 0.7), transparent 55%),
  radial-gradient(120% 120% at 80% 10%, oklch(0.55 0.20 300 / 0.85), transparent 60%),
  linear-gradient(135deg, oklch(0.25 0.05 320), oklch(0.15 0.03 300)); }
.ph-e { background:
  radial-gradient(120% 120% at 70% 30%, oklch(0.62 0.14 180 / 0.7), transparent 55%),
  radial-gradient(120% 120% at 20% 100%, oklch(0.55 0.18 285 / 0.85), transparent 60%),
  linear-gradient(135deg, oklch(0.23 0.04 240), oklch(0.15 0.02 260)); }
.ph-f { background:
  radial-gradient(120% 120% at 50% 50%, oklch(0.58 0.19 340 / 0.85), transparent 60%),
  linear-gradient(135deg, oklch(0.27 0.06 330), oklch(0.16 0.03 310)); }

/* ============================================================
   Brand logomark — "xxx" (overlapping X's, middle enlarged)
   Overrides the old box-with-hole .mark across every page.
   ============================================================ */
.mark {
  width: auto !important; height: auto !important;
  background: none !important; box-shadow: none !important;
  border-radius: 0 !important;
  display: inline-flex !important; align-items: flex-end; justify-content: center;
  font-family: var(--font-display); line-height: 1;
  font-size: 16.5px;            /* base; child X's scale from this */
}
.mark::after { display: none !important; }   /* kill the old punched hole */
.mark b {
  font-style: normal; font-weight: 800; display: inline-block; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
}
/* Option 2 · Soft Drop — middle X biggest & BEHIND; smaller side X's overlap IN FRONT,
   each casting a soft shadow down onto the middle for depth. */
.mark b:nth-child(2) { font-size: 1.55em; z-index: 1; filter: brightness(0.8); }
.mark b:nth-child(1) { font-size: 1em; margin-right: -0.34em; z-index: 2;
  filter: brightness(1.05) drop-shadow(0.5px 1px 1.2px rgba(0,0,0,0.6)); }
.mark b:nth-child(3) { font-size: 1em; margin-left:  -0.34em; z-index: 2;
  filter: brightness(1.05) drop-shadow(0.5px 1px 1.2px rgba(0,0,0,0.6)); }

/* subtle film grain on art */
.grain::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
