/* ═══ kaynak: /v9-redesign/css/style-v9-foundation.css (v9-redesign/css/style-v9-foundation.css) ═══ */
/* ═══════════════════════════════════════════════════════════════════
   AnimeRank v9 — FOUNDATION
   Reset · Tokens · Base · Typography · Critical utilities
   Load order: 1 of 5  (critical, blocking)
═══════════════════════════════════════════════════════════════════ */

@layer reset, tokens, base, typography, a11y, utilities-critical;

/* ──────────────────────────────────────────────────────────────────
   RESET — modern, opinionated minimal reset
────────────────────────────────────────────────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; tab-size: 4; }
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
  ul, ol { padding: 0; margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; }
  html:focus-within { scroll-behavior: smooth; }
  body { min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  h1, h2, h3, h4, button, input, label { line-height: 1.15; }
  h1, h2, h3, h4 { text-wrap: balance; }
  p, li { text-wrap: pretty; }
  a:not([class]) { text-decoration-skip-ink: auto; color: currentColor; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  textarea:not([rows]) { min-height: 10em; }
  :target { scroll-margin-block: 5ex; }
  details > summary { cursor: pointer; }
  hr { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--space-md) 0; }
}

/* ──────────────────────────────────────────────────────────────────
   TOKENS — single source of truth
────────────────────────────────────────────────────────────────── */
@layer tokens {
  :root {
    color-scheme: dark;

    /* ═════ Brand crimson scale — Netflix red, 12-step + alpha ═════ */
    --c-crimson-1:  #0d0203;
    --c-crimson-2:  #170406;
    --c-crimson-3:  #220609;
    --c-crimson-4:  #2e070b;
    --c-crimson-5:  #3d090e;
    --c-crimson-6:  #500b12;
    --c-crimson-7:  #6c0d17;
    --c-crimson-8:  #93101e;
    --c-crimson-9:  #e50914;
    --c-crimson-10: #f6121d;
    --c-crimson-11: #ff5a63;
    --c-crimson-12: #ffc8cc;

    --c-crimson-a1:  rgba(229, 9, 20, 0.04);
    --c-crimson-a2:  rgba(229, 9, 20, 0.07);
    --c-crimson-a3:  rgba(229, 9, 20, 0.10);
    --c-crimson-a4:  rgba(229, 9, 20, 0.14);
    --c-crimson-a5:  rgba(229, 9, 20, 0.20);
    --c-crimson-a6:  rgba(229, 9, 20, 0.28);
    --c-crimson-a7:  rgba(229, 9, 20, 0.38);
    --c-crimson-a8:  rgba(229, 9, 20, 0.52);
    --c-crimson-a9:  rgba(229, 9, 20, 0.68);
    --c-crimson-a10: rgba(229, 9, 20, 0.80);
    --c-crimson-a11: rgba(255, 90, 99, 0.88);
    --c-crimson-a12: rgba(255, 200, 204, 0.95);

    /* ═════ Neutral ink scale ═════ */
    --c-ink-1:  #0a0a0c;
    --c-ink-2:  #111114;
    --c-ink-3:  #18181b;
    --c-ink-4:  #1e1e22;
    --c-ink-5:  #25252a;
    --c-ink-6:  #2d2d33;
    --c-ink-7:  #3a3a42;
    --c-ink-8:  #525259;
    --c-ink-9:  #6e6e76;
    --c-ink-10: #7e7e88;
    --c-ink-11: #b0b0b8;
    --c-ink-12: #ededee;

    --c-ink-a1:  rgba(255, 255, 255, 0.02);
    --c-ink-a2:  rgba(255, 255, 255, 0.04);
    --c-ink-a3:  rgba(255, 255, 255, 0.07);
    --c-ink-a4:  rgba(255, 255, 255, 0.10);
    --c-ink-a5:  rgba(255, 255, 255, 0.13);
    --c-ink-a6:  rgba(255, 255, 255, 0.17);
    --c-ink-a7:  rgba(255, 255, 255, 0.22);
    --c-ink-a8:  rgba(255, 255, 255, 0.32);
    --c-ink-a9:  rgba(255, 255, 255, 0.42);
    --c-ink-a10: rgba(255, 255, 255, 0.50);
    --c-ink-a11: rgba(255, 255, 255, 0.70);
    --c-ink-a12: rgba(255, 255, 255, 0.93);

    /* ═════ Semantic surfaces ═════ */
    --surface-canvas:      var(--c-ink-1);
    --surface-base:        var(--c-ink-2);
    --surface-elevated:    var(--c-ink-3);
    --surface-overlay:     color-mix(in srgb, var(--c-ink-4) 92%, transparent);
    --surface-interactive: var(--c-ink-3);
    --surface-interactive-hover: var(--c-ink-4);
    --surface-interactive-active: var(--c-ink-5);
    --surface-glass:       color-mix(in srgb, var(--c-ink-1) 38%, transparent);
    --surface-glass-strong:color-mix(in srgb, var(--c-ink-1) 55%, transparent);

    /* ═════ Borders ═════ */
    --border-subtle:  var(--c-ink-a4);
    --border-default: var(--c-ink-a6);
    --border-strong:  var(--c-ink-a8);
    --border-focus:   var(--c-crimson-8);

    /* ═════ Text ═════ */
    --text-primary:   var(--c-ink-12);
    --text-secondary: var(--c-ink-11);
    --text-tertiary:  var(--c-ink-10);
    --text-disabled:  var(--c-ink-8);
    --text-on-brand:  #ffffff;
    --text-link:      var(--c-crimson-11);

    /* ═════ Brand ═════ */
    --brand:        var(--c-crimson-9);
    --brand-hover:  var(--c-crimson-10);
    --brand-active: var(--c-crimson-8);
    --brand-subtle: var(--c-crimson-a3);
    --brand-border: var(--c-crimson-a7);
    --brand-text:   var(--c-crimson-11);

    /* ═════ Status colors ═════ */
    --status-watching:  #2ed573;
    --status-completed: #5352ed;
    --status-on-hold:   #ffa502;
    --status-dropped:   #e50914;
    --status-planning:  #747d8c;
    --status-success:   #2ed573;
    --status-info:      #5352ed;
    --status-warning:   #ffa502;
    --status-danger:    #e50914;

    /* ═════ Typography ═════ */
    --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    --text-xs:    clamp(0.6875rem, 0.66rem + 0.14vw, 0.75rem);
    --text-sm:    clamp(0.8125rem, 0.79rem + 0.14vw, 0.875rem);
    --text-base:  clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
    --text-md:    clamp(1.0625rem, 1.02rem + 0.21vw, 1.125rem);
    --text-lg:    clamp(1.25rem, 1.18rem + 0.36vw, 1.375rem);
    --text-xl:    clamp(1.5rem, 1.36rem + 0.71vw, 1.75rem);
    --text-2xl:   clamp(1.875rem, 1.66rem + 1.07vw, 2.25rem);
    --text-3xl:   clamp(2.375rem, 1.6rem + 3.87vw, 3.5rem);

    --w-light:    300;
    --w-regular:  400;
    --w-medium:   500;
    --w-semibold: 600;
    --w-bold:     700;
    --w-black:    800;

    --leading-tight:   1.15;
    --leading-snug:    1.3;
    --leading-normal:  1.5;
    --leading-relaxed: 1.65;

    --tracking-tighter: -0.04em;
    --tracking-tight:   -0.02em;
    --tracking-normal:  0;
    --tracking-wide:    0.02em;
    --tracking-widest:  0.08em;

    /* ═════ Spacing (8pt grid) ═════ */
    --space-3xs: 2px;
    --space-2xs: 4px;
    --space-xs:  8px;
    --space-sm:  12px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* ═════ Fluid gutters ═════ */
    --gutter-page:    clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --gutter-section: clamp(2rem, 1rem + 5vw, 4rem);
    --gutter-hero:    clamp(3rem, 1.5rem + 7.5vw, 6rem);

    /* ═════ Radius ═════ */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* ═════ Elevation ═════ */
    --elevation-0: none;
    --elevation-1: 0 1px 2px rgba(0,0,0,0.30), 0 1px 3px rgba(0,0,0,0.18);
    --elevation-2: 0 4px 8px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.25);
    --elevation-3: 0 24px 48px rgba(0,0,0,0.55), 0 12px 24px rgba(0,0,0,0.40), 0 4px 8px rgba(0,0,0,0.30);
    --elevation-crimson: 0 8px 24px rgba(229,9,20,0.50), 0 4px 12px rgba(229,9,20,0.32);

    /* ═════ Animation ═════ */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

    --dur-instant: 100ms;
    --dur-fast:    200ms;
    --dur-base:    300ms;
    --dur-slow:    500ms;
    --dur-slower:  800ms;

    /* ═════ Layout primitives ═════ */
    /* Akışkan (fluid) tavan: sabit px yerine vw-tabanlı clamp — küçük ekranda
       eskisiyle aynı davranır, geniş ekranda (27"+/2K/ultra-wide) içerik
       viewport'a orantılı büyür, sabit-genişlik + boş yan-boşluk sorunu biter. */
    --container-max:      clamp(320px, 90vw, 2200px);
    --container-narrow:   860px;
    --container-wide:     clamp(320px, 94vw, 2400px);
    --header-height:      64px;
    --footer-min-height:  320px;
    --z-dropdown:   1000;
    --z-sticky:     1010;
    --z-fixed:      1020;
    --z-modal-bg:   1030;
    --z-modal:      1040;
    --z-popover:    1050;
    --z-tooltip:    1060;
    --z-toast:      1070;
  }

  /* ═════ Light theme ═════ */
  [data-theme="light"] {
    color-scheme: light;

    --c-ink-1:  #fafafb;
    --c-ink-2:  #f3f3f5;
    --c-ink-3:  #ebebee;
    --c-ink-4:  #e1e1e6;
    --c-ink-5:  #d4d4da;
    --c-ink-6:  #c2c2c9;
    --c-ink-7:  #a8a8b2;
    --c-ink-8:  #84848e;
    --c-ink-9:  #6c6c75;
    --c-ink-10: #525259;
    --c-ink-11: #2e2e33;
    --c-ink-12: #0a0a0c;

    --c-ink-a1:  rgba(0, 0, 0, 0.025);
    --c-ink-a2:  rgba(0, 0, 0, 0.05);
    --c-ink-a3:  rgba(0, 0, 0, 0.075);
    --c-ink-a4:  rgba(0, 0, 0, 0.10);
    --c-ink-a5:  rgba(0, 0, 0, 0.13);
    --c-ink-a6:  rgba(0, 0, 0, 0.17);
    --c-ink-a7:  rgba(0, 0, 0, 0.22);
    --c-ink-a8:  rgba(0, 0, 0, 0.30);
    --c-ink-a9:  rgba(0, 0, 0, 0.42);
    --c-ink-a10: rgba(0, 0, 0, 0.55);
    --c-ink-a11: rgba(0, 0, 0, 0.72);
    --c-ink-a12: rgba(0, 0, 0, 0.92);

    --c-crimson-9:  #d50812;
    --c-crimson-10: #b40610;
    --c-crimson-11: #8a040c;
    --c-crimson-12: #5a0207;

    --surface-glass: color-mix(in srgb, #ffffff 75%, transparent);

    --elevation-1: 0 1px 2px rgba(20,20,30,0.08), 0 1px 3px rgba(20,20,30,0.05);
    --elevation-2: 0 4px 8px rgba(20,20,30,0.10), 0 2px 4px rgba(20,20,30,0.06);
    --elevation-3: 0 24px 48px rgba(20,20,30,0.18), 0 12px 24px rgba(20,20,30,0.12), 0 4px 8px rgba(20,20,30,0.08);
  }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      color-scheme: light;
      --c-ink-1:  #fafafb; --c-ink-2:  #f3f3f5; --c-ink-3:  #ebebee;
      --c-ink-4:  #e1e1e6; --c-ink-5:  #d4d4da; --c-ink-6:  #c2c2c9;
      --c-ink-7:  #a8a8b2; --c-ink-8:  #84848e; --c-ink-9:  #6c6c75;
      --c-ink-10: #525259; --c-ink-11: #2e2e33; --c-ink-12: #0a0a0c;
      --c-ink-a1:  rgba(0,0,0,0.025); --c-ink-a2:  rgba(0,0,0,0.05);
      --c-ink-a3:  rgba(0,0,0,0.075); --c-ink-a4:  rgba(0,0,0,0.10);
      --c-ink-a5:  rgba(0,0,0,0.13);  --c-ink-a6:  rgba(0,0,0,0.17);
      --c-ink-a7:  rgba(0,0,0,0.22);  --c-ink-a8:  rgba(0,0,0,0.30);
      --c-ink-a9:  rgba(0,0,0,0.42);  --c-ink-a10: rgba(0,0,0,0.55);
      --c-ink-a11: rgba(0,0,0,0.72);  --c-ink-a12: rgba(0,0,0,0.92);
      --c-crimson-9:  #d50812; --c-crimson-10: #b40610;
      --c-crimson-11: #8a040c; --c-crimson-12: #5a0207;
      --surface-glass: color-mix(in srgb, #ffffff 75%, transparent);
    }
  }
}

/* ──────────────────────────────────────────────────────────────────
   BASE — body, root containers, scrollbar
────────────────────────────────────────────────────────────────── */
@layer base {
  html, body { background: var(--surface-canvas); color: var(--text-primary); }
  body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--w-regular);
    line-height: var(--leading-normal);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* Page container */
  .page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .page__main { flex: 1; }

  /* Scrollbar (WebKit / Blink) */
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--c-ink-a5);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: var(--radius-full);
  }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--c-ink-a8); background-clip: padding-box; }
  ::-webkit-scrollbar-corner { background: transparent; }
  * { scrollbar-width: thin; scrollbar-color: var(--c-ink-a5) transparent; }

  /* Selection */
  ::selection { background: var(--c-crimson-a6); color: var(--text-primary); }

  /* Image defaults */
  img { color: transparent; font-style: italic; }

  /* Links (unclassed) */
  a:not([class]) { color: var(--text-link); text-underline-offset: 0.18em; }
  a:not([class]):hover { color: var(--c-crimson-12); }
}

/* ──────────────────────────────────────────────────────────────────
   TYPOGRAPHY — heading scale, prose
────────────────────────────────────────────────────────────────── */
@layer typography {
  h1, .h1 { font-size: var(--text-3xl); font-weight: var(--w-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tighter); }
  h2, .h2 { font-size: var(--text-2xl); font-weight: var(--w-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
  h3, .h3 { font-size: var(--text-xl); font-weight: var(--w-semibold); line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }
  h4, .h4 { font-size: var(--text-lg); font-weight: var(--w-semibold); line-height: var(--leading-snug); }
  h5, .h5 { font-size: var(--text-md); font-weight: var(--w-semibold); line-height: var(--leading-snug); }
  h6, .h6 { font-size: var(--text-base); font-weight: var(--w-semibold); line-height: var(--leading-snug); text-transform: uppercase; letter-spacing: var(--tracking-widest); }

  .lead { font-size: var(--text-md); color: var(--text-secondary); line-height: var(--leading-relaxed); max-width: 65ch; }
  .muted { color: var(--text-tertiary); }
  .display { font-size: clamp(3rem, 1rem + 8vw, 5.5rem); font-weight: var(--w-black); line-height: 1; letter-spacing: var(--tracking-tighter); }

  small, .text-sm { font-size: var(--text-sm); }
  .text-xs { font-size: var(--text-xs); }

  kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    padding: 0 var(--space-2xs);
    font-family: var(--font-mono);
    font-size: 0.75em;
    line-height: 1.4;
    background: var(--c-ink-a3);
    border: 1px solid var(--border-subtle);
    border-bottom-width: 2px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
  }

  code:not(pre > code) {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--c-ink-a3);
    border-radius: var(--radius-xs);
  }

  blockquote {
    border-inline-start: 3px solid var(--brand);
    padding-inline-start: var(--space-md);
    color: var(--text-secondary);
    font-style: italic;
  }
}

/* ──────────────────────────────────────────────────────────────────
   ACCESSIBILITY — focus, sr-only, reduced motion
────────────────────────────────────────────────────────────────── */
@layer a11y {
  /* Suppress mouse-only focus, keep keyboard */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: inherit;
  }
  /* Inputs get inset focus, not outset */
  .input:focus-visible, .select:focus-visible, .textarea:focus-visible {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--c-crimson-a4);
  }

  /* Skip link */
  .skip-link {
    position: absolute;
    top: -40px;
    inset-inline-start: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--brand);
    color: var(--text-on-brand);
    border-radius: var(--radius-sm);
    z-index: var(--z-toast);
    transition: top var(--dur-fast) var(--ease-out-quart);
  }
  .skip-link:focus-visible { top: var(--space-md); }

  /* Visually-hidden but available to AT */
  .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .sr-only-focusable:focus { position: static !important; width: auto; height: auto; clip: auto; white-space: normal; }

  /* Reduced motion — preserve crucial feedback at 1ms */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 1ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 1ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* High-contrast (Windows) */
  @media (forced-colors: active) {
    .btn { border: 1px solid CanvasText; }
    :focus-visible { outline-color: Highlight; }
  }

  /* Touch target floor */
  button, a.btn, [role="button"] { min-height: 44px; min-width: 44px; }
  /* Inline link buttons exempt (text-flow) */
  a:not([class]), .btn-inline { min-height: 0; min-width: 0; }
}

/* ──────────────────────────────────────────────────────────────────
   CRITICAL UTILITIES — layout primitives needed above the fold
────────────────────────────────────────────────────────────────── */
@layer utilities-critical {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter-page);
  }
  .container--narrow { max-width: var(--container-narrow); }
  .container--wide   { max-width: var(--container-wide); }

  .stack > * + * { margin-block-start: var(--space-md); }
  .stack--xs > * + * { margin-block-start: var(--space-xs); }
  .stack--sm > * + * { margin-block-start: var(--space-sm); }
  .stack--lg > * + * { margin-block-start: var(--space-lg); }
  .stack--xl > * + * { margin-block-start: var(--space-xl); }

  .flex { display: flex; }
  .inline-flex { display: inline-flex; }
  .grid { display: grid; }
  .block { display: block; }
  .hidden { display: none !important; }

  .items-center { align-items: center; }
  .items-start  { align-items: flex-start; }
  .items-end    { align-items: flex-end; }
  .justify-center  { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .justify-end     { justify-content: flex-end; }

  .gap-xs { gap: var(--space-xs); }
  .gap-sm { gap: var(--space-sm); }
  .gap-md { gap: var(--space-md); }
  .gap-lg { gap: var(--space-lg); }

  /* No-FOUC pre-paint helper for theme switching */
  .no-fouc { visibility: hidden; }
  .no-fouc.is-ready { visibility: visible; }
}


/* ═══ kaynak: /v9-redesign/css/style-v9-layouts.css (v9-redesign/css/style-v9-layouts.css) ═══ */
/* ═══════════════════════════════════════════════════════════════════
   AnimeRank v9 — LAYOUTS
   Grids · Flex compositions · Container queries · Page templates
   Load order: 2 of 5  (critical, blocking)
═══════════════════════════════════════════════════════════════════ */

@layer layouts;

@layer layouts {
  /* ──────────────────────────────────────────────────────────────
     GRID — anime poster grid (auto-fill, 2:3 cards)
  ────────────────────────────────────────────────────────────── */
  .grid-anime {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
    gap: var(--space-md);
  }
  @media (min-width: 768px)  { .grid-anime { gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
  @media (min-width: 1024px) { .grid-anime { gap: var(--space-lg); grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); } }
  @media (min-width: 1280px) { .grid-anime { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
  @media (min-width: 1536px) { .grid-anime { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); } }
  @media (min-width: 1920px) { .grid-anime { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

  .grid-anime--dense  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-sm); }
  .grid-anime--spacey { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-xl); }

  /* ──────────────────────────────────────────────────────────────
     RAIL — horizontal scroll (continue-watching, recommendations)
  ────────────────────────────────────────────────────────────── */
  .rail {
    position: relative;
    --rail-fade-color: var(--surface-canvas);
  }
  .rail__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-block-end: var(--space-md);
  }
  .rail__title-text { font-size: var(--text-lg); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
  .rail__see-all { color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--w-medium); }
  .rail__see-all:hover { color: var(--brand-text); }

  .rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(140px, 28vw, 200px);
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter-page);
    padding-inline: var(--gutter-page);
    margin-inline: calc(-1 * var(--gutter-page));
    padding-block: var(--space-xs);
    scrollbar-width: none;
  }
  .rail__track::-webkit-scrollbar { display: none; }
  .rail__track > * { scroll-snap-align: start; }
  @media (min-width: 1024px) { .rail__track { grid-auto-columns: 200px; } }
  @media (min-width: 1536px) { .rail__track { grid-auto-columns: 216px; } }

  /* Edge fade overlays */
  .rail::before, .rail::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: var(--gutter-page);
    pointer-events: none;
    z-index: 2;
  }
  .rail::before { inset-inline-start: 0;  background: linear-gradient(90deg, var(--rail-fade-color), transparent); }
  .rail::after  { inset-inline-end: 0;    background: linear-gradient(270deg, var(--rail-fade-color), transparent); }

  /* ──────────────────────────────────────────────────────────────
     PAGE TEMPLATES
  ────────────────────────────────────────────────────────────── */
  .layout-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  @media (min-width: 1024px) {
    .layout-detail {
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: var(--space-2xl);
    }
  }

  .layout-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
  @media (min-width: 1024px) {
    .layout-profile {
      grid-template-columns: 240px minmax(0, 1fr);
      gap: var(--space-xl);
    }
  }

  .layout-watch {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
  }
  @media (min-width: 1280px) {
    .layout-watch {
      grid-template-columns: minmax(0, 1fr) 360px;
      grid-template-rows: auto;
    }
  }

  .layout-discover {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  @media (min-width: 1024px) {
    .layout-discover {
      grid-template-columns: 280px minmax(0, 1fr);
      gap: var(--space-xl);
    }
  }

  /* ──────────────────────────────────────────────────────────────
     SECTION rhythm
  ────────────────────────────────────────────────────────────── */
  .section { padding-block: var(--gutter-section); }
  .section--hero { padding-block: 0 var(--gutter-section); }
  .section--tight { padding-block: var(--space-lg); }

  .section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-block-end: var(--space-lg);
    flex-wrap: wrap;
  }
  .section__title { font-size: var(--text-xl); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
  .section__subtitle { color: var(--text-secondary); margin-block-start: var(--space-2xs); }

  /* ──────────────────────────────────────────────────────────────
     SPLIT — two-column with optional reverse
  ────────────────────────────────────────────────────────────── */
  .split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  @media (min-width: 768px)  { .split { grid-template-columns: 1fr 1fr; } }
  .split--reverse > :first-child { order: 2; }
  @media (min-width: 768px)  { .split--reverse > :first-child { order: 0; } }
  .split--narrow-first { grid-template-columns: 1fr; }
  @media (min-width: 768px)  { .split--narrow-first { grid-template-columns: 320px 1fr; } }

  /* ──────────────────────────────────────────────────────────────
     CLUSTER — flex-wrap rows (pills, chips)
  ────────────────────────────────────────────────────────────── */
  .cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  .cluster--md { gap: var(--space-md); }
  .cluster--lg { gap: var(--space-lg); }

  /* ──────────────────────────────────────────────────────────────
     FRAME — fixed aspect-ratio container with cover image
  ────────────────────────────────────────────────────────────── */
  .frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-elevated); }
  .frame > img, .frame > video, .frame > picture > img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }
  .frame--2-3   { aspect-ratio: 2 / 3; }
  .frame--16-9  { aspect-ratio: 16 / 9; }
  .frame--4-3   { aspect-ratio: 4 / 3; }
  .frame--1-1   { aspect-ratio: 1 / 1; }
  .frame--21-9  { aspect-ratio: 21 / 9; }

  /* ──────────────────────────────────────────────────────────────
     CENTER — full-bleed centered content
  ────────────────────────────────────────────────────────────── */
  .center {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 60vh;
  }

  /* ──────────────────────────────────────────────────────────────
     CONTAINER QUERIES — components adapt to slot, not viewport
  ────────────────────────────────────────────────────────────── */
  .container-host { container: host / inline-size; }
  .card-host      { container: card / inline-size; }
  .rail-host      { container: rail / inline-size; }

  @container card (min-width: 220px) { .card-anime__title { font-size: var(--text-base); } }
  @container card (min-width: 280px) {
    .card-anime__synopsis { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  }

  @container host (min-width: 720px) {
    .composed-card { grid-template-columns: 200px 1fr; }
  }

  /* ──────────────────────────────────────────────────────────────
     STICKY rail / sidebar
  ────────────────────────────────────────────────────────────── */
  .sticky-top {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    align-self: start;
  }
  @media (max-width: 1023px) { .sticky-top { position: static; } }

  /* ──────────────────────────────────────────────────────────────
     BOTTOM TAB BAR — mobile primary nav
  ────────────────────────────────────────────────────────────── */
  .tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--surface-glass);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-block-start: 1px solid var(--border-subtle);
  }
  @media (min-width: 1024px) { .tabbar { display: none; } }
  body { padding-bottom: 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  @media (min-width: 1024px) { body { padding-bottom: 0; } }

  /* ──────────────────────────────────────────────────────────────
     MEDIA-OBJECT — image + content side by side
  ────────────────────────────────────────────────────────────── */
  .media-object {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
  }
  .media-object__media { flex-shrink: 0; }
}


/* ═══ kaynak: /v9-redesign/css/style-v9-components.css (v9-redesign/css/style-v9-components.css) ═══ */
/* ═══════════════════════════════════════════════════════════════════
   AnimeRank v9 — COMPONENTS
   All 15 components from component-patterns.md
   Load order: 3 of 5  (deferred-friendly)
═══════════════════════════════════════════════════════════════════ */

@layer components;

@layer components {
  /* ──────────────────────────────────────────────────────────────
     1. NAVIGATION (.nav-header)
  ────────────────────────────────────────────────────────────── */
  .nav-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    height: var(--header-height);
    padding-inline: var(--gutter-page);
    background: color-mix(in srgb, var(--c-ink-1) 22%, transparent);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-block-end: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease-out-quart),
                box-shadow var(--dur-fast) var(--ease-out-quart),
                background var(--dur-fast) var(--ease-out-quart);
  }
  .nav-header.is-scrolled {
    background: color-mix(in srgb, var(--c-ink-1) 50%, transparent);
    border-block-end-color: var(--c-ink-a3);
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  }

  .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-primary);
    font-weight: var(--w-bold);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
    text-decoration: none;
    flex-shrink: 0;
  }
  .nav-logo__mark { width: 28px; height: 28px; color: var(--brand); }
  .nav-logo__img { height: 30px; width: auto; display: block; }
  @media (max-width: 480px) { .nav-logo__text { display: none; } .nav-logo__img { height: 26px; } }

  .nav-primary {
    display: none;
    gap: var(--space-xl);
    flex: 1;
    margin-inline: var(--space-md);
  }
  @media (min-width: 768px) { .nav-primary { display: flex; } }

  .nav-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
    text-decoration: none;
    padding-block: var(--space-xs);
    transition: color var(--dur-fast) var(--ease-out-quart);
    position: relative;
  }
  .nav-link:hover { color: var(--text-primary); }
  .nav-link.is-active, .nav-link[aria-current="page"] { color: var(--brand-text); }
  .nav-link.is-active::after, .nav-link[aria-current="page"]::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 2px;
    background: var(--brand);
    border-radius: var(--radius-full);
  }

  .nav-actions { display: flex; align-items: center; gap: var(--space-xs); margin-inline-start: auto; }

  .nav-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    height: 40px;
    padding-inline: var(--space-sm);
    background: var(--c-ink-a3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    transition: all var(--dur-fast) var(--ease-out-quart);
  }
  .nav-search-trigger:hover { background: var(--c-ink-a4); border-color: var(--border-default); color: var(--text-secondary); }
  .nav-search-trigger > kbd { margin-inline-start: var(--space-md); }
  @media (max-width: 768px) { .nav-search-trigger > kbd { display: none; } .nav-search-trigger { padding: 0; width: 40px; justify-content: center; } }

  .nav-profile-trigger {
    display: inline-flex;
    border-radius: var(--radius-full);
    transition: transform var(--dur-fast) var(--ease-out-quart);
  }
  .nav-profile-trigger:hover { transform: scale(1.05); }

  /* Mobile hamburger */
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
  }
  @media (min-width: 768px) { .nav-menu-toggle { display: none; } }

  /* ──────────────────────────────────────────────────────────────
     2. ANIME CARD (.card-anime)
  ────────────────────────────────────────────────────────────── */
  .card-anime {
    --i: 0;
    position: relative;
    border-radius: var(--radius-md);
    background: var(--surface-base);
    overflow: hidden;
    box-shadow: var(--elevation-1);
    transform-origin: center bottom;
    transition:
      transform 380ms cubic-bezier(.34, 1.56, .64, 1),
      box-shadow 320ms var(--ease-out-quart),
      z-index 0s linear 380ms;
    will-change: transform;
    /* card-enter kaldırıldı — reveal sistemi (IntersectionObserver) kontrol ediyor */
  }
  /* Netflix-style billboard: 250ms hover-delay → kazara hover'da tetiklenmez.
     Unhover ANINDA recoil (delay 0). z-index transition delay kullanılır ki
     kart aşağı inerken bir an üstte kalmasın. */
  .card-anime:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow:
      0 22px 48px -12px rgba(0,0,0,.7),
      0 12px 24px -8px rgba(255, 45, 63, .25);
    z-index: 5;
    transition:
      transform 360ms cubic-bezier(.34, 1.56, .64, 1) 250ms,
      box-shadow 320ms var(--ease-out-quart) 250ms,
      z-index 0s linear 250ms;
  }
  /* Edge-safe: ilk/son sütun kenardan taşmasın */
  .grid-anime > .card-anime:first-child,
  .rail__track > .card-anime:first-child { transform-origin: left bottom; }
  .grid-anime > .card-anime:last-child,
  .rail__track > .card-anime:last-child { transform-origin: right bottom; }

  /* ANI-11/SORUN4: Crimson spotlight efekti kullanıcı talebi ile devre dışı.
     Önceki versiyona dönmek için: `display: none` kaldır + `opacity: 1` hover'a geri ekle. */
  .card-anime::before {
    display: none;
  }

  .card-anime__link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: absolute;
    inset: 0;
    z-index: 4;
  }

  /* POSTER — kartın üst kısmı, 2:3 oranlı */
  .card-anime__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    background: var(--surface-elevated);
    overflow: hidden;
  }
  /* Poster ana resmi — :not(.card-anime__watermark) ile watermark hariç tutulur,
     böylece grid-override !important kuralları sadece poster image'a uygulanır,
     watermark'ın absolute konumlandırması bozulmaz. */
  .card-anime__poster > img:not(.card-anime__watermark) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block !important;
    transition: transform 600ms var(--ease-out-quart);
  }
  .card-anime:hover .card-anime__poster > img:not(.card-anime__watermark) { transform: scale(1.06); }
  /* Hover'da poster alt kısmına yumuşak vinyet (meta ile geçişi yumuşatır) */
  .card-anime__poster::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5) 100%);
    opacity: 0;
    transition: opacity 360ms ease 200ms;
    pointer-events: none;
  }
  /* ANI-11/SORUN4: Hover'da koyu gradient overlay devre dışı (kullanıcı talebi). */
  .card-anime:hover .card-anime__poster::after { opacity: 0; }

  /* WATERMARK — siyah meta panelinin hemen üstünde, poster içinde sağ alt köşe.
     Logo doğal renklerini korur (white "ANIME" + crimson "/RANK"); mask-image
     gradient ile sağ üstten sola alta doğru şeffaflık dağılır → premium imza.
     NOT: v9-grid-override .card-anime__poster img { width:100% !important; height:100% !important; object-fit:cover !important; }
     watermark'a da uyguluyor → !important ile override gerekiyor. */
  .card-anime__poster img.card-anime__watermark {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    width: 64px !important;
    height: auto !important;
    max-width: 64px !important;
    object-fit: contain !important;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(225deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.95) 35%, rgba(0,0,0,1) 70%);
            mask-image: linear-gradient(225deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.95) 35%, rgba(0,0,0,1) 70%);
    filter:
      drop-shadow(0 1px 2px rgba(0,0,0,.85))
      drop-shadow(0 0 4px rgba(0,0,0,.55));
    transition: opacity 320ms var(--ease-out-quart), transform 360ms cubic-bezier(.16,1,.3,1);
    transform-origin: right bottom;
  }
  .card-anime:hover .card-anime__poster img.card-anime__watermark {
    opacity: 1;
    transform: scale(1.04);
  }
  /* Mobile/küçük poster — watermark biraz küçül */
  @media (max-width: 768px) {
    .card-anime__poster img.card-anime__watermark {
      width: 50px !important;
      max-width: 50px !important;
      right: 6px !important;
      bottom: 6px !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .card-anime__poster img.card-anime__watermark { transition: none !important; }
  }

  /* META — eski siyah panel, başlık her zaman görünür */
  .card-anime__meta {
    position: relative;
    padding: 10px 12px 12px;
    background: var(--surface-base);
    z-index: 2;
  }
  .card-anime__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 200ms ease;
  }
  .card-anime:hover .card-anime__title { color: #fff; }

  /* HOVER PANEL — title'ın ALTINDA inline açılır (max-height collapse) */
  .card-anime__hover-panel {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition:
      max-height 380ms cubic-bezier(.34, 1.56, .64, 1) 200ms,
      opacity   220ms var(--ease-out-quart) 240ms,
      margin-top 320ms cubic-bezier(.34, 1.56, .64, 1) 200ms;
  }
  .card-anime:hover .card-anime__hover-panel {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
  }
  .card-anime__hover-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
    color: rgba(255,255,255,.92);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
  }
  .card-anime__hover-panel-meta > span {
    padding: 2px 7px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 4px;
    color: #fff;
  }
  .card-anime__hover-panel-meta > span.is-score {
    background: var(--brand);
    border-color: transparent;
    color: var(--text-on-brand);
  }

  @media (prefers-reduced-motion: reduce) {
    .card-anime, .card-anime:hover, .card-anime__hover-panel,
    .card-anime__poster::after, .card-anime:hover .card-anime__poster img {
      transition: none !important;
      animation: none !important;
      transform: none !important;
      filter: none !important;
    }
  }
  @media (hover: none) {
    .card-anime:hover {
      transform: none;
      box-shadow: var(--elevation-1);
      z-index: auto;
    }
    .card-anime:hover .card-anime__poster img { transform: none; }
    .card-anime:hover .card-anime__poster::after { opacity: 0; }
    .card-anime:hover .card-anime__hover-panel {
      max-height: 0; opacity: 0; margin-top: 0;
    }
  }

  /* WATCH PROGRESS — poster'in tam alt kenarında (meta'nın hemen üstü).
     Crunchyroll/Netflix tarzı: ince çubuk, hover'da kalınlaşır + parlak gradient. */
  .card-anime__progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 3;
    overflow: hidden;
    transition: height 280ms var(--ease-out-quart);
  }
  .card-anime__progress::after {
    content: '';
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, #ff8c42 0%, #ff2d3f 60%, #ff5263 100%);
    box-shadow: 0 0 8px rgba(255, 45, 63, .55);
    transition: width 600ms var(--ease-out-quart);
  }
  .card-anime:hover .card-anime__progress { height: 5px; }

  .card-anime__badge {
    position: absolute; top: var(--space-xs); inset-inline-start: var(--space-xs);
    padding: 3px 8px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    font-size: var(--text-xs);
    font-weight: var(--w-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: #fff;
  }
  .card-anime__badge--brand { background: var(--brand); color: var(--text-on-brand); }

  /* RATING BADGE — sağ üstte (format badge sol üstte). 4 tier renk kodu. */
  .card-anime__rating {
    position: absolute;
    top: var(--space-xs);
    inset-inline-end: var(--space-xs);
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: var(--radius-xs);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid transparent;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    z-index: 2;
  }
  .card-anime__rating--r {
    background: rgba(255, 165, 0, 0.85);
    border-color: rgba(255, 200, 80, 0.6);
  }
  .card-anime__rating--rplus {
    background: rgba(255, 80, 120, 0.85);
    border-color: rgba(255, 130, 160, 0.55);
  }
  .card-anime__rating--rx {
    background: linear-gradient(135deg, rgba(180, 30, 60, 0.92) 0%, rgba(120, 10, 40, 0.92) 100%);
    border-color: rgba(255, 90, 140, 0.5);
    box-shadow: 0 0 8px rgba(255, 45, 80, .35);
  }

  /* meta artık metin barındırmıyor — sadece blur tabakası. Aşağıdaki span'ler
     hover-panel için ayrıca .card-anime__hover-panel-meta altında stillenir. */
  .stat-score {
    color: var(--brand-text);
    font-weight: var(--w-semibold);
    font-variant-numeric: tabular-nums;
  }
  /* Yıldız (★) puan METNİNİN parçası olarak yazılır (bkz. docs/component-patterns.md:
     <span class="stat-score">★ 8.54</span>). Burada ::before ile ikinci bir yıldız
     BASILMAZ — yoksa "★★ 8.54" görünür. */

  /* ──────────────────────────────────────────────────────────────
     3. HERO BANNER (.hero) — cinematic carousel
  ────────────────────────────────────────────────────────────── */
  .hero {
    position: relative;
    height: clamp(560px, 82vh, 920px);
    display: flex;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
  }
  .hero__media {
    position: absolute; inset: 0;
    z-index: -1;
    will-change: transform;
  }
  .hero__media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 25%;
  }
  /* ─── HERO 3-LAYER CINEMATIC OVERLAY ───
     Netflix/Crunchyroll grade darkening:
       1. Top scrim (under nav) — sayfa header'ı backdrop'u kesmesin
       2. Bottom waterfall — text taban + canvas surface'e bağlanır
       3. Left fade — sol kolondaki text okunaklı kalır
     + Vinyet (radial dark corners)
     + Film grain (statik noise SVG, çok düşük opacity) */
  .hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 14%, rgba(0,0,0,.05) 28%, transparent 38%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background:
      /* 1. Bottom waterfall — surface'e geçiş */
      linear-gradient(0deg, var(--surface-canvas) 0%, rgba(0,0,0,.92) 18%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.2) 65%, transparent 100%),
      /* 2. Left dramatic fade — content okunaklı */
      linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 28%, rgba(0,0,0,.1) 55%, transparent 75%),
      /* 3. Vinyet — köşeleri karart */
      radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(0,0,0,.35) 75%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
  }
  /* Film grain — SVG noise, çok ince */
  .hero-carousel::after {
    content: '';
    position: absolute; inset: 0; z-index: 4;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
  }
  /* hero__media — backdrop ise tam genişlikte hafif zoom; portre poster ise blur dolgu
     Mouse parallax: --mx, --my CSS değişkenleriyle (preview.html JS feed eder).
     Composed transform: translate(parallax) + scale(ken-burns). */
  .hero__media {
    --mx: 0;
    --my: 0;
    transition: transform 380ms cubic-bezier(.16,1,.3,1);
    will-change: transform;
  }
  .hero__media img {
    transition: transform 12s ease-out, filter 600ms ease;
    transform-origin: center center;
  }
  /* Subtle parallax — hero kabını (media wrapper) translate eder, img ken-burns yapar */
  .hero-carousel .hero.is-active .hero__media {
    transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0);
  }
  .hero--noBackdrop .hero__media img { filter: blur(40px) saturate(1.2); transform: scale(1.18); }

  /* hero__shell: 2 kolonlu grid — sol metin, sağ poster card */
  .hero__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    padding: 0 var(--gutter-page) clamp(48px, 7vh, 96px);
    max-width: 1480px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .hero__content {
    max-width: 640px;
    align-self: end;
  }
  .hero__title {
    font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
    font-weight: var(--w-bold);
    letter-spacing: var(--tracking-tighter);
    line-height: 1.05;
    margin-block: var(--space-md);
    text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  }
  .hero__synopsis {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 60ch;
    margin-block-end: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  }
  .hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

  /* ─── HERO POSTER CARD — sağda, tilt + glow + rank badge ─── */
  .hero__poster {
    position: relative;
    width: clamp(180px, 18vw, 260px);
    aspect-ratio: 2 / 3;
    align-self: end;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
      0 30px 60px -20px rgba(0,0,0,.7),
      0 18px 30px -10px rgba(0,0,0,.5),
      0 0 0 1px rgba(255,255,255,.06) inset;
    transform: perspective(900px) rotateY(-6deg) translateY(0);
    transition: transform 600ms cubic-bezier(.16,1,.3,1), box-shadow 500ms ease;
    will-change: transform;
  }
  .hero__poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1200ms cubic-bezier(.16,1,.3,1), filter 400ms ease;
  }
  .hero__poster::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
  }
  .hero__poster-glow {
    position: absolute; inset: -2px; z-index: -1;
    background: conic-gradient(from 180deg at 50% 50%, var(--brand, #ff2d3f), #ff8c42, #ff2d3f, transparent 70%);
    filter: blur(28px); opacity: .55;
    border-radius: 18px;
    animation: hero-poster-orbit 9s linear infinite;
  }
  .hero__poster-rank {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(12px);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .08em;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
  }
  .hero__poster:hover {
    /* 2026-08-25 KULLANICI KARARI: 3B hover efekti (perspective + rotateY)
       KALDIRILDI — kesfet ve detay sayfasinda poster fareyle egiliyordu.
       Duz yukselme + hafif buyume KORUNDU (kullanici buyume efektini
       istiyor, egilmeyi istemiyor). */
    transform: translateY(-6px) scale(1.025);
    box-shadow:
      0 40px 80px -20px rgba(0,0,0,.85),
      0 24px 40px -12px rgba(255,45,63,.35),
      0 0 0 1px rgba(255,82,99,.4) inset;
  }
  .hero__poster:hover img { transform: scale(1.06); filter: saturate(1.1); }

  @keyframes hero-poster-orbit {
    0%   { filter: blur(28px) hue-rotate(0deg); opacity: .55; }
    50%  { filter: blur(34px) hue-rotate(20deg); opacity: .75; }
    100% { filter: blur(28px) hue-rotate(0deg); opacity: .55; }
  }

  /* Mobil: poster gizle, sadece backdrop + içerik */
  @media (max-width: 768px) {
    .hero__shell { grid-template-columns: 1fr; padding-bottom: clamp(40px, 8vh, 72px); }
    .hero__poster { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__poster, .hero__poster img, .hero__poster-glow,
    .hero__media, .hero__media img,
    .hero-carousel::after,
    .hero-carousel .hero.is-active .hero__content > *,
    .hero-carousel .hero.is-active .hero__poster {
      animation: none !important;
      transition: none !important;
      transform: none !important;
    }
    .hero-carousel::after { display: none; }
  }
  /* Mobile — film grain ve heavy efektler kaldır (perf) */
  @media (max-width: 640px) {
    .hero-carousel::after { display: none; }
    .hero-carousel .hero.is-active .hero__media { transform: none !important; }
  }

  /* ─── CAROUSEL: slot-based, fade-cross transitions ─── */
  .hero-carousel { position: relative; height: clamp(560px, 82vh, 920px); overflow: hidden; isolation: isolate; }
  .hero-carousel .hero {
    position: absolute; inset: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 900ms;
  }
  .hero-carousel .hero.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
    z-index: 1;
  }
  /* Active slide content animates in — Netflix-style cinematic stagger */
  .hero-carousel .hero.is-active .hero__content > * {
    animation: hero-slide-in 800ms var(--ease-out-expo) backwards;
  }
  .hero-carousel .hero.is-active .hero__content > *:nth-child(1) { animation-delay: 80ms; }
  .hero-carousel .hero.is-active .hero__content > *:nth-child(2) { animation-delay: 160ms; }
  .hero-carousel .hero.is-active .hero__content > *:nth-child(3) { animation-delay: 240ms; }
  .hero-carousel .hero.is-active .hero__content > *:nth-child(4) { animation-delay: 320ms; }
  .hero-carousel .hero.is-active .hero__content > *:nth-child(5) { animation-delay: 400ms; }
  /* Sağ poster card — content'ten sonra giriş, 3D pop-in */
  .hero-carousel .hero.is-active .hero__poster {
    animation: hero-poster-in 1000ms cubic-bezier(.16,1,.3,1) backwards;
    animation-delay: 280ms;
  }
  @keyframes hero-poster-in {
    0%   { opacity: 0; transform: perspective(900px) rotateY(-18deg) translateY(40px) scale(.92); }
    100% { opacity: 1; transform: perspective(900px) rotateY(-6deg) translateY(0) scale(1); }
  }

  /* Active slide background slow zoom (Ken Burns) */
  .hero-carousel .hero.is-active .hero__media {
    animation: ken-burns 12s ease-out forwards;
  }

  /* ─── 5 TEXT EFFECTS — slide bazlı [data-effect] ile seçilir ─── */
  .hero__title-words { display: inline; }
  .hero__title-words .word, .hero__title-chars .char { display: inline-block; }

  /* Effect 1: WORDS — fade + blur + lift (default) */
  [data-effect="words"] .word {
    opacity: 0; transform: translateY(0.5em); filter: blur(8px);
    transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo), filter 500ms var(--ease-out-expo);
    transition-delay: calc(var(--wi, 0) * 80ms + 200ms);
  }
  .hero-carousel .hero.is-active [data-effect="words"] .word {
    opacity: 1; transform: translateY(0); filter: blur(0);
  }

  /* Effect 2: CHARS — typewriter slide-up, char by char */
  [data-effect="chars"] .char {
    opacity: 0; transform: translateY(100%) rotateX(-90deg);
    transform-origin: center bottom;
    transition: opacity 500ms var(--ease-out-expo), transform 600ms var(--ease-spring);
    transition-delay: calc(var(--ci, 0) * 28ms + 250ms);
  }
  .hero-carousel .hero.is-active [data-effect="chars"] .char {
    opacity: 1; transform: translateY(0) rotateX(0);
  }

  /* Effect 3: SCRAMBLE — JS-driven decrypted text reveal (no CSS animation needed) */
  [data-effect="scramble"] .scramble-target {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
  }
  [data-effect="scramble"] .scramble-target.is-scrambling {
    color: var(--brand-text);
    text-shadow: 0 0 12px var(--c-crimson-a8);
  }

  /* Effect 4: SWEEP — gradient light passes left to right across chars */
  [data-effect="sweep"] .hero__title-words {
    background: linear-gradient(110deg,
      #fff 0%, #fff 35%,
      var(--c-crimson-9) 47%, #ffe5e8 50%, var(--c-crimson-9) 53%,
      #fff 65%, #fff 100%);
    background-size: 220% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .hero-carousel .hero.is-active [data-effect="sweep"] .hero__title-words {
    animation: text-sweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) 350ms forwards;
  }
  @keyframes text-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -50% 0; }
  }

  /* Effect 5: GLITCH — RGB shift + jitter on entrance */
  [data-effect="glitch"] .hero__title-words {
    position: relative;
    display: inline-block;
  }
  [data-effect="glitch"] .hero__title-words::before,
  [data-effect="glitch"] .hero__title-words::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
  }
  [data-effect="glitch"] .hero__title-words::before {
    color: #ff5a63; mix-blend-mode: screen;
    clip-path: inset(0 0 55% 0);
  }
  [data-effect="glitch"] .hero__title-words::after {
    color: #4fc3f7; mix-blend-mode: screen;
    clip-path: inset(60% 0 0 0);
  }
  .hero-carousel .hero.is-active [data-effect="glitch"] .hero__title-words {
    animation: glitch-base 800ms steps(2) 250ms;
  }
  .hero-carousel .hero.is-active [data-effect="glitch"] .hero__title-words::before {
    animation: glitch-r 1000ms steps(2) 250ms;
  }
  .hero-carousel .hero.is-active [data-effect="glitch"] .hero__title-words::after {
    animation: glitch-b 1000ms steps(2) 250ms;
  }
  @keyframes glitch-base {
    0%   { opacity: 0; transform: translate(0); }
    10%  { opacity: 1; transform: translate(-2px, 0); }
    20%  { transform: translate(3px, 1px); }
    30%  { transform: translate(-1px, -2px); }
    50%  { transform: translate(2px, 0); }
    100% { transform: translate(0); }
  }
  @keyframes glitch-r {
    0%, 100% { opacity: 0; transform: translate(0); }
    10%      { opacity: 0.85; transform: translate(-4px, 0); }
    30%      { transform: translate(4px, 1px); }
    60%      { opacity: 0.6; transform: translate(-2px, 0); }
    99%      { opacity: 0; }
  }
  @keyframes glitch-b {
    0%, 100% { opacity: 0; transform: translate(0); }
    10%      { opacity: 0.85; transform: translate(4px, 0); }
    30%      { transform: translate(-4px, -1px); }
    60%      { opacity: 0.6; transform: translate(2px, 0); }
    99%      { opacity: 0; }
  }

  /* ─── MODERN BUTTON VARIANTS — referans-tarzı ─── */
  /* btn--cinema: Netflix-Linear hibrit · siyah base + kırmızı liquid sweep + arrow */
  .btn--cinema {
    position: relative;
    background: #0d0d0f;
    color: #fff;
    border: 1px solid var(--c-ink-a4);
    overflow: hidden;
    isolation: isolate;
  }
  .btn--cinema::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, var(--c-crimson-9), var(--c-crimson-10));
    transform: translateX(-101%) skewX(-12deg);
    transition: transform 500ms cubic-bezier(0.85, 0, 0.15, 1);
    z-index: -1;
  }
  .btn--cinema:hover::before { transform: translateX(0) skewX(-12deg); }
  .btn--cinema:hover { border-color: var(--c-crimson-9); box-shadow: var(--elevation-crimson); transform: translateY(-2px); }
  .btn--cinema svg { transition: transform 300ms var(--ease-out-quart); }
  .btn--cinema:hover svg { transform: translateX(4px); }

  /* btn--frost: glassmorphic with animated stroke */
  .btn--frost {
    position: relative;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 24px rgba(0,0,0,0.25);
  }
  .btn--frost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.32);
    transform: translateY(-2px);
  }

  /* btn--shine: gradient + animated shine sweep on hover */
  .btn--shine {
    position: relative;
    background: linear-gradient(135deg, var(--c-crimson-9), var(--c-crimson-10));
    color: #fff;
    border: 0;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(229,9,20,0.35);
  }
  .btn--shine::after {
    content: '';
    position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    transform: skewX(-22deg);
  }
  .btn--shine:hover::after {
    animation: shine-sweep 700ms ease-out;
  }
  .btn--shine:hover { transform: translateY(-2px); box-shadow: var(--elevation-crimson); }
  @keyframes shine-sweep {
    0%   { left: -75%; }
    100% { left: 125%; }
  }

  /* btn--magnetic-outline: border draws on hover (SVG-stroke feel) */
  .btn--outline-draw {
    position: relative;
    background: transparent;
    color: var(--text-primary);
    border: 0;
    padding-inline: var(--space-lg);
  }
  .btn--outline-draw::before {
    content: '';
    position: absolute; inset: 0;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: inherit;
    transition: border-color var(--dur-fast) var(--ease-out-quart);
  }
  .btn--outline-draw::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 600ms var(--ease-out-expo);
    pointer-events: none;
  }
  .btn--outline-draw:hover::before { border-color: var(--c-crimson-9); }
  .btn--outline-draw:hover::after { background-position: -100% 0; }

  /* ─── RAIL prev/next nav buttons ─── */
  .rail { position: relative; }
  .rail__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px; height: 64px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity var(--dur-fast) var(--ease-out-quart),
                transform var(--dur-fast) var(--ease-out-quart),
                background var(--dur-fast) var(--ease-out-quart);
  }
  .rail:hover .rail__nav, .rail__nav:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  .rail__nav:hover { background: var(--c-crimson-9); border-color: var(--c-crimson-9); }
  .rail__nav--prev { left: var(--space-xs); }
  .rail__nav--next { right: var(--space-xs); }
  .rail__nav:disabled { opacity: 0 !important; cursor: not-allowed; }
  @media (max-width: 768px) { .rail__nav { display: none; } }

  /* Carousel controls */
  .hero-carousel__nav {
    position: absolute;
    bottom: var(--space-2xl);
    inset-inline-end: var(--gutter-page);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  @media (max-width: 768px) {
    .hero-carousel__nav {
      bottom: var(--space-md);
      inset-inline-end: 50%;
      transform: translateX(50%);
    }
  }
  .hero-carousel__dots { display: flex; gap: var(--space-2xs); }
  .hero-carousel__dot {
    width: 32px; height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out-quart), width var(--dur-base) var(--ease-out-quart);
    border: 0; padding: 0;
    min-width: 32px; min-height: 12px; /* tap target via padding */
    position: relative;
  }
  .hero-carousel__dot::before {
    content: '';
    position: absolute;
    inset: -8px 0;
  }
  .hero-carousel__dot.is-active { background: var(--brand); width: 56px; }
  .hero-carousel__arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
  }
  .hero-carousel__arrow:hover { background: var(--brand); transform: scale(1.05); }
  @media (max-width: 768px) { .hero-carousel__arrow { display: none; } }

  /* Progress bar at the bottom of the active slide (auto-rotate visual) */
  .hero-carousel__progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 2;
  }
  .hero-carousel__progress-fill {
    height: 100%;
    background: var(--brand);
    width: 0%;
    box-shadow: 0 0 8px rgba(229,9,20,0.6);
  }
  .hero-carousel.is-rotating .hero-carousel__progress-fill {
    animation: rotate-progress var(--rotate-dur, 7s) linear forwards;
  }
  @keyframes rotate-progress { from { width: 0%; } to { width: 100%; } }

  @keyframes hero-slide-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes ken-burns {
    from { transform: scale(1) translate3d(0,0,0); }
    to   { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
  }

  /* ──────────────────────────────────────────────────────────────
     4. BUTTONS (.btn)
  ────────────────────────────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    height: 40px;
    padding-inline: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: transform var(--dur-fast) var(--ease-out-quart),
                background var(--dur-fast) var(--ease-out-quart),
                color var(--dur-fast) var(--ease-out-quart),
                box-shadow var(--dur-fast) var(--ease-out-quart),
                border-color var(--dur-fast) var(--ease-out-quart);
    will-change: transform;
  }
  .btn:active { transform: translateY(1px); }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

  .btn--sm { height: 32px; padding-inline: var(--space-sm); font-size: var(--text-xs); }
  .btn--md { height: 40px; }
  .btn--lg { height: 48px; padding-inline: var(--space-lg); font-size: var(--text-base); }

  .btn--primary {
    background: linear-gradient(135deg, var(--c-crimson-9) 0%, var(--c-crimson-10) 100%);
    color: var(--text-on-brand);
    box-shadow: var(--elevation-1);
  }
  .btn--primary:hover { box-shadow: var(--elevation-crimson); transform: translateY(-2px); }
  .btn--primary:active { transform: translateY(0); }

  .btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
  }
  .btn--secondary:hover { background: var(--c-ink-a3); border-color: var(--border-strong); }

  .btn--tertiary {
    background: transparent;
    color: var(--brand-text);
    padding-inline: var(--space-sm);
  }
  .btn--tertiary:hover { color: var(--c-crimson-12); text-decoration: underline; text-underline-offset: 0.2em; }

  .btn--ghost {
    background: var(--c-ink-a3);
    color: var(--text-primary);
    border: 1px solid transparent;
  }
  .btn--ghost:hover { background: var(--c-ink-a4); }

  .btn--danger {
    background: var(--status-danger);
    color: var(--text-on-brand);
  }
  .btn--danger:hover { background: color-mix(in srgb, var(--status-danger) 88%, #000); }

  .btn--icon { width: 40px; padding: 0; }
  .btn--icon.btn--sm { width: 32px; }
  .btn--icon.btn--lg { width: 48px; }

  .btn__spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
  }
  .btn.is-loading .btn__label { opacity: 0.5; }

  /* ──────────────────────────────────────────────────────────────
     5. MODAL / DIALOG (.modal)
  ────────────────────────────────────────────────────────────── */
  .modal {
    position: fixed; inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: modal-fade-in var(--dur-base) var(--ease-out-quart);
  }
  .modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 2 * var(--space-md));
    display: flex;
    flex-direction: column;
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-3);
    animation: modal-pop-in var(--dur-base) var(--ease-out-expo);
  }
  .modal__dialog:focus { outline: none; }
  .modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-block-end: 1px solid var(--border-subtle);
  }
  .modal__title { font-size: var(--text-lg); font-weight: var(--w-semibold); }
  .modal__close {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 20px;
  }
  .modal__close:hover { background: var(--c-ink-a3); color: var(--text-primary); }
  .modal__body { padding: var(--space-lg); overflow-y: auto; flex: 1; }
  .modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-block-start: 1px solid var(--border-subtle);
  }
  .modal--lg .modal__dialog { max-width: 800px; }
  .modal--xl .modal__dialog { max-width: 1024px; }
  .modal--full .modal__dialog { max-width: calc(100vw - 2 * var(--space-md)); height: calc(100dvh - 2 * var(--space-md)); }

  /* ──────────────────────────────────────────────────────────────
     6. FORM INPUTS
  ────────────────────────────────────────────────────────────── */
  .field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .field__label {
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
    color: var(--text-primary);
  }
  .field__helper {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: var(--leading-snug);
  }
  .field__error {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    color: var(--status-danger);
  }
  .field__error::before { content: '⚠'; font-size: 14px; }

  .input, .select, .textarea {
    width: 100%;
    height: 40px;
    padding-inline: var(--space-sm);
    background: var(--surface-base);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--text-primary);
    transition: border-color var(--dur-fast) var(--ease-out-quart),
                box-shadow var(--dur-fast) var(--ease-out-quart),
                background var(--dur-fast) var(--ease-out-quart);
  }
  .input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }
  .input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
  .input:disabled, .select:disabled, .textarea:disabled { opacity: 0.5; cursor: not-allowed; }
  .field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--status-danger); }
  .field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(255,71,87,0.15); }

  .textarea { height: auto; min-height: 96px; padding: var(--space-sm); resize: vertical; line-height: var(--leading-normal); }

  /* SELECT — sayfanın .btn--frost ile aynı glassmorphic ton (filter reset
     ve view toggle butonlarıyla aynı görsel grup). */
  .select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* .btn--frost ile aynı zemin */
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5l3-3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    padding-inline-end: var(--space-xl);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 4px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition:
      border-color 220ms var(--ease-out-quart),
      background-color 220ms var(--ease-out-quart),
      transform 220ms var(--ease-out-quart),
      box-shadow 240ms var(--ease-out-quart);
  }
  .select:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    transform: translateY(-2px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ff5263' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5l3-3'/%3E%3C/svg%3E") !important;
  }
  .select:focus,
  .select:focus-visible {
    outline: none !important;
    border-color: var(--c-crimson-9, #ff2d3f) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 3px rgba(255, 45, 63, .22),
      0 4px 24px rgba(0, 0, 0, 0.25) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ff5263' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M9 7.5L6 4.5 3 7.5'/%3E%3C/svg%3E") !important;
  }
  .select:active { transform: translateY(0); transition-duration: 80ms; }

  /* Option panel — koyu surface, brand crimson :checked */
  .select option {
    background-color: #14141a;
    color: #fff;
    padding: 8px 12px;
    font-weight: 500;
  }
  .select option:checked {
    background: linear-gradient(0deg, rgba(255, 45, 63, .25), rgba(255, 45, 63, .25)), #14141a;
    color: #fff;
  }
  .select option[disabled] { color: rgba(255, 255, 255, .35); }

  [dir="rtl"] .select {
    background-position: left var(--space-sm) center;
    padding-inline-end: var(--space-sm);
    padding-inline-start: var(--space-xl);
  }

  .search-box {
    position: relative;
    display: flex;
    align-items: center;
  }
  .search-box__icon {
    position: absolute;
    inset-inline-start: var(--space-sm);
    width: 16px; height: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
  }
  .search-box__input { padding-inline-start: calc(var(--space-sm) + 16px + var(--space-xs)); }
  .search-box__shortcut { position: absolute; inset-inline-end: var(--space-xs); }

  .checkbox-row, .toggle-row {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    user-select: none;
  }

  .checkbox {
    appearance: none;
    flex-shrink: 0;
    width: 18px; height: 18px;
    background: var(--surface-base);
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-spring);
    position: relative;
  }
  .checkbox:checked {
    background: var(--brand);
    border-color: var(--brand);
  }
  .checkbox:checked::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 7l3 3 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    animation: pop-in var(--dur-fast) var(--ease-spring);
  }

  .toggle {
    appearance: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .toggle__visual {
    display: inline-block;
    width: 40px; height: 22px;
    background: var(--c-ink-a4);
    border-radius: var(--radius-full);
    position: relative;
    transition: background var(--dur-fast) var(--ease-out-quart);
  }
  .toggle__visual::before {
    content: '';
    position: absolute;
    top: 2px; inset-inline-start: 2px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: transform var(--dur-base) var(--ease-spring);
  }
  .toggle:checked + .toggle__visual { background: var(--brand); }
  .toggle:checked + .toggle__visual::before { transform: translateX(18px); }
  .toggle:focus-visible + .toggle__visual { outline: 2px solid var(--border-focus); outline-offset: 2px; }

  /* ──────────────────────────────────────────────────────────────
     7. LOADING SKELETON (.skeleton)
  ────────────────────────────────────────────────────────────── */
  .skeleton {
    --shimmer-from: var(--surface-elevated);
    --shimmer-to:   var(--c-ink-5);
    background: linear-gradient(90deg, var(--shimmer-from) 0%, var(--shimmer-to) 50%, var(--shimmer-from) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
  }
  .skeleton--card {
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
  }
  .skeleton--row { height: 56px; }
  .skeleton--avatar { width: 40px; height: 40px; border-radius: 50%; }
  .skeleton--text { height: 12px; }
  .skeleton--text-lg { height: 18px; }

  .skeleton-stack > * + * { margin-block-start: var(--space-xs); }
  .skeleton__line { height: 12px; border-radius: var(--radius-xs); }
  .skeleton__line--short { width: 60%; }
  .skeleton__poster { aspect-ratio: 2/3; border-radius: var(--radius-md); }

  /* ──────────────────────────────────────────────────────────────
     8. AVATAR (.avatar)
  ────────────────────────────────────────────────────────────── */
  .avatar {
    --avatar-size: 40px;
    flex-shrink: 0;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-elevated);
  }
  .avatar--xs { --avatar-size: 24px; }
  .avatar--sm { --avatar-size: 32px; }
  .avatar--md { --avatar-size: 40px; }
  .avatar--lg { --avatar-size: 56px; }
  .avatar--xl { --avatar-size: 96px; }

  .avatar.is-premium {
    box-shadow: 0 0 0 2px var(--surface-canvas), 0 0 0 4px var(--brand);
  }
  .avatar.is-online::after {
    content: '';
    position: absolute;
    bottom: 0; inset-inline-end: 0;
    width: 25%; height: 25%;
    background: var(--status-watching);
    border: 2px solid var(--surface-canvas);
    border-radius: 50%;
  }
  .avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: var(--w-semibold);
    text-transform: uppercase;
  }

  /* ──────────────────────────────────────────────────────────────
     9. TOAST (.toast)
  ────────────────────────────────────────────────────────────── */
  .toast-region {
    position: fixed;
    bottom: var(--space-md);
    inset-inline-end: var(--space-md);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    pointer-events: none;
    max-width: calc(100vw - 2 * var(--space-md));
  }
  @media (max-width: 480px) {
    .toast-region { inset-inline: var(--space-md); top: var(--space-md); bottom: auto; }
  }
  .toast {
    pointer-events: auto;
    display: flex;
    align-items: start;
    gap: var(--space-xs);
    min-width: 280px;
    max-width: 400px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-overlay);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-inline-start: 3px solid var(--c-ink-9);
    border-radius: var(--radius-md);
    box-shadow: var(--elevation-2);
    animation: toast-in var(--dur-fast) var(--ease-out-expo);
  }
  .toast__icon { width: 18px; height: 18px; flex-shrink: 0; margin-block-start: 2px; }
  .toast__message { flex: 1; font-size: var(--text-sm); color: var(--text-primary); margin: 0; }
  .toast__close {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: var(--radius-xs);
    color: var(--text-tertiary);
    font-size: 18px;
    line-height: 1;
  }
  .toast__close:hover { color: var(--text-primary); background: var(--c-ink-a3); }

  .toast--success { border-inline-start-color: var(--status-success); }
  .toast--success .toast__icon { color: var(--status-success); }
  .toast--error   { border-inline-start-color: var(--status-danger); }
  .toast--error .toast__icon   { color: var(--status-danger); }
  .toast--info    { border-inline-start-color: var(--status-info); }
  .toast--info .toast__icon    { color: var(--status-info); }
  .toast--warning { border-inline-start-color: var(--status-warning); }
  .toast--warning .toast__icon { color: var(--status-warning); }

  /* ──────────────────────────────────────────────────────────────
     10. DROPDOWN (.dropdown)
  ────────────────────────────────────────────────────────────── */
  .dropdown { position: relative; display: inline-block; }
  .dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    height: 36px;
    padding-inline: var(--space-sm);
    background: var(--c-ink-a3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
  }
  .dropdown__trigger:hover { background: var(--c-ink-a4); border-color: var(--border-strong); }
  .dropdown__chevron { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out-quart); }
  .dropdown__trigger[aria-expanded="true"] .dropdown__chevron { transform: rotate(180deg); }

  .dropdown__menu {
    position: absolute;
    top: calc(100% + var(--space-xs));
    inset-inline-start: 0;
    min-width: 200px;
    z-index: var(--z-dropdown);
    background: var(--surface-overlay);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--elevation-2);
    padding: var(--space-2xs);
    list-style: none;
    animation: dropdown-in var(--dur-fast) var(--ease-out-expo);
  }
  .dropdown__menu[hidden] { display: none; }
  .dropdown__menu li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-xs);
    font-size: var(--text-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--dur-instant) var(--ease-out-quart);
  }
  .dropdown__menu li:hover, .dropdown__menu li[aria-selected="true"] {
    background: var(--c-ink-a4);
  }
  .dropdown__menu li.is-active {
    background: var(--brand-subtle);
    color: var(--brand-text);
  }
  .dropdown__menu li.is-divider { padding: 0; height: 1px; background: var(--border-subtle); margin-block: var(--space-2xs); }

  /* ──────────────────────────────────────────────────────────────
     11. PROGRESS BAR (.progress)
  ────────────────────────────────────────────────────────────── */
  .progress {
    width: 100%;
    height: 3px;
    background: var(--c-ink-a4);
    border-radius: var(--radius-full);
    overflow: hidden;
  }
  .progress__fill {
    width: var(--progress, 0%);
    height: 100%;
    background: var(--brand);
    border-radius: inherit;
    transition: width var(--dur-base) var(--ease-out-quart);
  }
  .progress--video {
    height: 6px;
    background: rgba(255,255,255,0.15);
  }
  .progress--video .progress__fill { background: #fff; }
  .progress--md { height: 8px; }
  .progress--lg { height: 12px; }

  /* ──────────────────────────────────────────────────────────────
     12. BADGE / PILL (.badge)
  ────────────────────────────────────────────────────────────── */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 4px 10px;
    background: var(--c-ink-a3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--w-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    line-height: 1.2;
    transition: all var(--dur-fast) var(--ease-out-quart);
  }
  .badge:hover { border-color: var(--border-default); }

  .badge--genre { cursor: pointer; }
  .badge--genre:hover { border-color: var(--brand); color: var(--brand-text); }
  .badge--genre.is-active { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand-text); }

  .badge--brand {
    background: var(--brand-subtle);
    border-color: var(--brand-border);
    color: var(--brand-text);
  }

  /* ─── Trending badge — hero #1 / Top için cinematic gradient + shimmer ─── */
  .badge--trending {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    background: linear-gradient(110deg, #1a0a0a 0%, #2a0d10 50%, #1a0a0a 100%);
    border: 1px solid rgba(255, 70, 85, .55);
    color: #ffb3bb;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 999px;
    overflow: hidden;
    box-shadow:
      inset 0 1px 0 rgba(255, 200, 200, .15),
      0 4px 12px -4px rgba(255, 45, 63, .35);
  }
  .badge--trending::before {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 40%; height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 180, 200, .35) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: badge-trending-sweep 4s cubic-bezier(.65,.05,.35,1) infinite;
    pointer-events: none;
  }
  @keyframes badge-trending-sweep {
    0%   { left: -50%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { left: 130%; opacity: 1; }
    51%  { opacity: 0; }
    100% { left: 130%; opacity: 0; }
  }
  .badge--trending__rank {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ff5263 0%, #ff2d3f 100%);
    color: #fff;
    border-radius: 999px;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  }
  .badge--trending__flame {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 100, 60, .6));
    animation: badge-trending-flicker 1.6s ease-in-out infinite;
  }
  @keyframes badge-trending-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 6px rgba(255, 100, 60, .6)); }
    50%      { transform: scale(1.08) rotate(2deg); filter: drop-shadow(0 0 10px rgba(255, 140, 80, .85)); }
  }
  @media (prefers-reduced-motion: reduce) {
    .badge--trending::before, .badge--trending__flame { animation: none !important; }
  }
  .badge--solid {
    background: var(--brand);
    border-color: transparent;
    color: var(--text-on-brand);
  }
  .badge--count {
    padding: 2px 8px;
    background: var(--brand);
    border-color: transparent;
    color: var(--text-on-brand);
    text-transform: none;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }

  .badge--watching  { color: var(--status-watching);  border-color: color-mix(in srgb, var(--status-watching) 40%, transparent); }
  .badge--completed { color: var(--status-completed); border-color: color-mix(in srgb, var(--status-completed) 40%, transparent); }
  .badge--on-hold   { color: var(--status-on-hold);   border-color: color-mix(in srgb, var(--status-on-hold) 40%, transparent); }
  .badge--dropped   { color: var(--status-dropped);   border-color: color-mix(in srgb, var(--status-dropped) 40%, transparent); }

  /* ──────────────────────────────────────────────────────────────
     13. COMMAND PALETTE (.cmdk)
  ────────────────────────────────────────────────────────────── */
  .cmdk {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  .cmdk[open] {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    width: 100vw; height: 100dvh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-block-start: 15vh;
    animation: modal-fade-in var(--dur-fast) var(--ease-out-quart);
  }
  .cmdk::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
  .cmdk-dialog {
    width: min(640px, 92vw);
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-overlay);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-3);
    overflow: hidden;
    animation: modal-pop-in var(--dur-base) var(--ease-out-expo);
  }
  .cmdk__input-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border-block-end: 1px solid var(--border-subtle);
  }
  .cmdk__input-row svg { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; }
  .cmdk__input {
    flex: 1;
    height: 28px;
    background: transparent;
    border: 0;
    outline: none;
    font-size: var(--text-md);
    color: var(--text-primary);
  }
  .cmdk__input::placeholder { color: var(--text-tertiary); }

  .cmdk__list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2xs);
    list-style: none;
    margin: 0;
  }
  .cmdk__group-header {
    padding: var(--space-sm) var(--space-sm) var(--space-2xs);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--text-tertiary);
    font-weight: var(--w-semibold);
  }
  .cmdk__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
  }
  .cmdk__item img { width: 32px; height: 48px; object-fit: cover; border-radius: var(--radius-xs); }
  .cmdk__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-tertiary); }
  .cmdk__item[aria-selected="true"] {
    background: var(--brand);
    color: var(--text-on-brand);
  }
  .cmdk__item[aria-selected="true"] svg { color: inherit; }
  .cmdk__hint { margin-inline-start: auto; opacity: 0.6; font-size: var(--text-xs); }

  /* ──────────────────────────────────────────────────────────────
     14. SIDEBAR (.sidebar)
  ────────────────────────────────────────────────────────────── */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    padding: var(--space-sm);
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
  }
  @media (max-width: 1023px) {
    .sidebar { flex-direction: row; overflow-x: auto; padding: var(--space-xs); }
  }
  .sidebar__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--w-medium);
    text-decoration: none;
    border-inline-start: 3px solid transparent;
    transition: all var(--dur-fast) var(--ease-out-quart);
  }
  .sidebar__item:hover { background: var(--c-ink-a3); color: var(--text-primary); }
  .sidebar__item.is-active, .sidebar__item[aria-current="page"] {
    background: var(--brand-subtle);
    border-inline-start-color: var(--brand);
    color: var(--brand-text);
  }
  .sidebar__icon { width: 18px; height: 18px; flex-shrink: 0; }
  .sidebar__item .badge { margin-inline-start: auto; }

  /* ──────────────────────────────────────────────────────────────
     15. FOOTER (.footer)
  ────────────────────────────────────────────────────────────── */
  .footer {
    margin-block-start: var(--space-4xl);
    padding: var(--space-3xl) var(--gutter-page) var(--space-xl);
    border-block-start: 1px solid var(--border-subtle);
    background: var(--surface-base);
    color: var(--text-secondary);
    font-size: var(--text-sm);
  }
  .footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin-inline: auto;
  }
  @media (min-width: 480px)  { .footer__grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl); } }
  .footer__col h2.footer__heading {
    font-size: var(--text-xs);
    font-weight: var(--w-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--text-tertiary);
    margin-block-end: var(--space-md);
  }
  .footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
  .footer__col a { color: var(--text-secondary); text-decoration: none; transition: color var(--dur-fast) var(--ease-out-quart); }
  .footer__col a:hover { color: var(--text-primary); }
  .footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-block-start: var(--space-2xl);
    padding-block-start: var(--space-md);
    border-block-start: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
  }
  .footer__bottom a { color: inherit; text-decoration: none; }
  .footer__bottom a:hover { color: var(--text-secondary); }
  .footer__social { display: flex; gap: var(--space-xs); }
  .footer__social a {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--c-ink-a3);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
  }
  .footer__social a:hover { background: var(--brand); color: var(--text-on-brand); }
}

/* ═══════════════════════════════════════════════════════════════
   CARD FIX & RIPPLE — 2026-05-09
   1) transform 3D context'inde border-radius clipping bug fix
   2) tıklama dalga (ripple) efekti — v9-effects.js initRipple() ile bağlı
   3) inline <style> override neutralization (homepage vs.) — 2026-05-10
   ═══════════════════════════════════════════════════════════════ */

/* SORUN 2 — Title clamp bozuluyordu çünkü homepage inline'da
   white-space: nowrap + text-overflow: ellipsis kalıyordu.
   Bu rules paylaşımlıda tanımsızdı, cascade'de inline rules ayakta kalıyordu.
   Şimdi explicit reset: 2 satır clamp + wrap + ellipsis off. */
.card-anime__title {
  white-space: normal !important;
  text-overflow: unset !important;
  -webkit-line-clamp: 2 !important;
}

/* SORUN 3 — Badge sol üstte olmalıydı (discover referans).
   Inline'da `right: 8px` vardı, paylaşımlıda `right` tanımsızdı.
   Element hem sol hem sağa yapışıp stretch oluyordu. Şimdi kilitli sol üst. */
.card-anime__badge {
  right: auto !important;
  inset-inline-end: auto !important;
  top: var(--space-xs, 8px) !important;
  inset-inline-start: var(--space-xs, 8px) !important;
}

/* Rank badge variant'ı (homepage için) — sağ üste sabit */
.card-anime__badge--rank {
  left: auto !important;
  inset-inline-start: auto !important;
  right: var(--space-xs, 8px) !important;
  inset-inline-end: var(--space-xs, 8px) !important;
}

/* SORUN 1 — Yatay layout buglarına karşı kart yapısını dikey kilitle.
   Block + width:100% inline override'ları, parent flex/grid'i zorla geçer. */
.card-anime {
  position: relative;
  display: block !important;
}
.card-anime__poster {
  display: block !important;
  width: 100% !important;
}
.card-anime__meta {
  display: block !important;
  width: 100% !important;
}


/* Sorun 1 fix: transform-3d + border-radius corner clipping */
.card-anime,
.anime-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-anime__poster,
.anime-card .anime-poster {
  border-radius: inherit;
}
.card-anime__poster > img:not(.card-anime__watermark),
.card-anime__poster::after,
.anime-card .anime-poster img {
  border-radius: inherit;
}

/* Sorun 3: tıklama ripple/pulse efekti */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  width: 10px; height: 10px;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
  z-index: 5;
}
@keyframes ripple-anim {
  to { transform: scale(40); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card-ripple { animation: none; opacity: 0; }
}


/* ═══ kaynak: /v9-redesign/css/style-v9-utilities.css (v9-redesign/css/style-v9-utilities.css) ═══ */
/* ═══════════════════════════════════════════════════════════════════
   AnimeRank v9 — UTILITIES
   Atomic utility classes · Spacing · Typography · Colors · Layout
   Load order: 5 of 5  (deferred-friendly)
═══════════════════════════════════════════════════════════════════ */

@layer utilities;

@layer utilities {
  /* ──────────────────────────────────────────────────────────────
     DISPLAY
  ────────────────────────────────────────────────────────────── */
  .d-block        { display: block; }
  .d-inline-block { display: inline-block; }
  .d-inline       { display: inline; }
  .d-flex         { display: flex; }
  .d-inline-flex  { display: inline-flex; }
  .d-grid         { display: grid; }
  .d-inline-grid  { display: inline-grid; }
  .d-contents     { display: contents; }
  .d-none         { display: none !important; }

  @media (min-width: 480px)  { .sm\:d-block{display:block} .sm\:d-flex{display:flex} .sm\:d-grid{display:grid} .sm\:d-none{display:none} }
  @media (min-width: 768px)  { .md\:d-block{display:block} .md\:d-flex{display:flex} .md\:d-grid{display:grid} .md\:d-none{display:none} }
  @media (min-width: 1024px) { .lg\:d-block{display:block} .lg\:d-flex{display:flex} .lg\:d-grid{display:grid} .lg\:d-none{display:none} }
  @media (min-width: 1280px) { .xl\:d-block{display:block} .xl\:d-flex{display:flex} .xl\:d-grid{display:grid} .xl\:d-none{display:none} }

  /* ──────────────────────────────────────────────────────────────
     FLEX & GRID
  ────────────────────────────────────────────────────────────── */
  .flex-row         { flex-direction: row; }
  .flex-row-reverse { flex-direction: row-reverse; }
  .flex-col         { flex-direction: column; }
  .flex-col-reverse { flex-direction: column-reverse; }
  .flex-wrap        { flex-wrap: wrap; }
  .flex-nowrap      { flex-wrap: nowrap; }
  .flex-1           { flex: 1; }
  .flex-auto        { flex: auto; }
  .flex-none        { flex: none; }
  .flex-shrink-0    { flex-shrink: 0; }
  .flex-grow        { flex-grow: 1; }

  .items-start    { align-items: flex-start; }
  .items-center   { align-items: center; }
  .items-end      { align-items: flex-end; }
  .items-stretch  { align-items: stretch; }
  .items-baseline { align-items: baseline; }

  .justify-start    { justify-content: flex-start; }
  .justify-center   { justify-content: center; }
  .justify-end      { justify-content: flex-end; }
  .justify-between  { justify-content: space-between; }
  .justify-around   { justify-content: space-around; }
  .justify-evenly   { justify-content: space-evenly; }

  .self-start    { align-self: flex-start; }
  .self-center   { align-self: center; }
  .self-end      { align-self: flex-end; }
  .self-stretch  { align-self: stretch; }

  .grid-cols-1 { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
  .grid-cols-12{ grid-template-columns: repeat(12, 1fr); }

  @media (min-width: 768px)  { .md\:grid-cols-2{grid-template-columns:repeat(2,1fr)} .md\:grid-cols-3{grid-template-columns:repeat(3,1fr)} .md\:grid-cols-4{grid-template-columns:repeat(4,1fr)} }
  @media (min-width: 1024px) { .lg\:grid-cols-3{grid-template-columns:repeat(3,1fr)} .lg\:grid-cols-4{grid-template-columns:repeat(4,1fr)} .lg\:grid-cols-5{grid-template-columns:repeat(5,1fr)} .lg\:grid-cols-6{grid-template-columns:repeat(6,1fr)} }

  .col-span-1  { grid-column: span 1; }
  .col-span-2  { grid-column: span 2; }
  .col-span-3  { grid-column: span 3; }
  .col-span-4  { grid-column: span 4; }
  .col-span-full { grid-column: 1 / -1; }

  .place-center  { place-items: center; }
  .place-start   { place-items: start; }
  .place-end     { place-items: end; }

  /* ──────────────────────────────────────────────────────────────
     GAP
  ────────────────────────────────────────────────────────────── */
  .gap-0   { gap: 0; }
  .gap-2xs { gap: var(--space-2xs); }
  .gap-xs  { gap: var(--space-xs); }
  .gap-sm  { gap: var(--space-sm); }
  .gap-md  { gap: var(--space-md); }
  .gap-lg  { gap: var(--space-lg); }
  .gap-xl  { gap: var(--space-xl); }
  .gap-2xl { gap: var(--space-2xl); }
  .gap-x-xs { column-gap: var(--space-xs); }
  .gap-x-md { column-gap: var(--space-md); }
  .gap-y-xs { row-gap: var(--space-xs); }
  .gap-y-md { row-gap: var(--space-md); }

  /* ──────────────────────────────────────────────────────────────
     SPACING — margin
  ────────────────────────────────────────────────────────────── */
  .m-0   { margin: 0; }
  .m-2xs { margin: var(--space-2xs); }
  .m-xs  { margin: var(--space-xs); }
  .m-sm  { margin: var(--space-sm); }
  .m-md  { margin: var(--space-md); }
  .m-lg  { margin: var(--space-lg); }
  .m-xl  { margin: var(--space-xl); }
  .m-auto{ margin: auto; }
  .mx-auto { margin-inline: auto; }
  .my-auto { margin-block: auto; }

  .mt-0  { margin-top: 0; }
  .mt-xs { margin-top: var(--space-xs); }
  .mt-sm { margin-top: var(--space-sm); }
  .mt-md { margin-top: var(--space-md); }
  .mt-lg { margin-top: var(--space-lg); }
  .mt-xl { margin-top: var(--space-xl); }
  .mt-2xl{ margin-top: var(--space-2xl); }
  .mt-3xl{ margin-top: var(--space-3xl); }

  .mb-0  { margin-bottom: 0; }
  .mb-xs { margin-bottom: var(--space-xs); }
  .mb-sm { margin-bottom: var(--space-sm); }
  .mb-md { margin-bottom: var(--space-md); }
  .mb-lg { margin-bottom: var(--space-lg); }
  .mb-xl { margin-bottom: var(--space-xl); }
  .mb-2xl{ margin-bottom: var(--space-2xl); }

  .ms-auto { margin-inline-start: auto; }
  .me-auto { margin-inline-end: auto; }
  .ms-xs { margin-inline-start: var(--space-xs); }
  .me-xs { margin-inline-end: var(--space-xs); }
  .ms-sm { margin-inline-start: var(--space-sm); }
  .me-sm { margin-inline-end: var(--space-sm); }
  .ms-md { margin-inline-start: var(--space-md); }
  .me-md { margin-inline-end: var(--space-md); }

  /* ──────────────────────────────────────────────────────────────
     SPACING — padding
  ────────────────────────────────────────────────────────────── */
  .p-0   { padding: 0; }
  .p-2xs { padding: var(--space-2xs); }
  .p-xs  { padding: var(--space-xs); }
  .p-sm  { padding: var(--space-sm); }
  .p-md  { padding: var(--space-md); }
  .p-lg  { padding: var(--space-lg); }
  .p-xl  { padding: var(--space-xl); }
  .p-2xl { padding: var(--space-2xl); }

  .px-0  { padding-inline: 0; }
  .px-xs { padding-inline: var(--space-xs); }
  .px-sm { padding-inline: var(--space-sm); }
  .px-md { padding-inline: var(--space-md); }
  .px-lg { padding-inline: var(--space-lg); }
  .px-xl { padding-inline: var(--space-xl); }

  .py-0  { padding-block: 0; }
  .py-xs { padding-block: var(--space-xs); }
  .py-sm { padding-block: var(--space-sm); }
  .py-md { padding-block: var(--space-md); }
  .py-lg { padding-block: var(--space-lg); }
  .py-xl { padding-block: var(--space-xl); }
  .py-2xl{ padding-block: var(--space-2xl); }
  .py-3xl{ padding-block: var(--space-3xl); }

  .pt-xs { padding-top: var(--space-xs); }
  .pt-md { padding-top: var(--space-md); }
  .pt-lg { padding-top: var(--space-lg); }
  .pb-xs { padding-bottom: var(--space-xs); }
  .pb-md { padding-bottom: var(--space-md); }
  .pb-lg { padding-bottom: var(--space-lg); }

  /* ──────────────────────────────────────────────────────────────
     TEXT
  ────────────────────────────────────────────────────────────── */
  .text-xs   { font-size: var(--text-xs); }
  .text-sm   { font-size: var(--text-sm); }
  .text-base { font-size: var(--text-base); }
  .text-md   { font-size: var(--text-md); }
  .text-lg   { font-size: var(--text-lg); }
  .text-xl   { font-size: var(--text-xl); }
  .text-2xl  { font-size: var(--text-2xl); }
  .text-3xl  { font-size: var(--text-3xl); }

  .font-light    { font-weight: var(--w-light); }
  .font-regular  { font-weight: var(--w-regular); }
  .font-medium   { font-weight: var(--w-medium); }
  .font-semibold { font-weight: var(--w-semibold); }
  .font-bold     { font-weight: var(--w-bold); }
  .font-black    { font-weight: var(--w-black); }
  .font-mono     { font-family: var(--font-mono); }

  .leading-tight   { line-height: var(--leading-tight); }
  .leading-snug    { line-height: var(--leading-snug); }
  .leading-normal  { line-height: var(--leading-normal); }
  .leading-relaxed { line-height: var(--leading-relaxed); }

  .tracking-tighter { letter-spacing: var(--tracking-tighter); }
  .tracking-tight   { letter-spacing: var(--tracking-tight); }
  .tracking-normal  { letter-spacing: var(--tracking-normal); }
  .tracking-wide    { letter-spacing: var(--tracking-wide); }
  .tracking-widest  { letter-spacing: var(--tracking-widest); }

  .text-left    { text-align: left; }
  .text-center  { text-align: center; }
  .text-right   { text-align: right; }
  .text-start   { text-align: start; }
  .text-end     { text-align: end; }

  .uppercase   { text-transform: uppercase; }
  .lowercase   { text-transform: lowercase; }
  .capitalize  { text-transform: capitalize; }
  .normal-case { text-transform: none; }

  .underline   { text-decoration: underline; }
  .no-underline{ text-decoration: none; }
  .italic      { font-style: italic; }
  .not-italic  { font-style: normal; }

  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .line-clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
  .line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .line-clamp-4 { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

  .text-balance { text-wrap: balance; }
  .text-pretty  { text-wrap: pretty; }

  .tabular-nums { font-variant-numeric: tabular-nums; }

  /* ──────────────────────────────────────────────────────────────
     COLORS — text
  ────────────────────────────────────────────────────────────── */
  .text-primary   { color: var(--text-primary); }
  .text-secondary { color: var(--text-secondary); }
  .text-tertiary  { color: var(--text-tertiary); }
  .text-disabled  { color: var(--text-disabled); }
  .text-brand     { color: var(--brand-text); }
  .text-on-brand  { color: var(--text-on-brand); }
  .text-success   { color: var(--status-success); }
  .text-info      { color: var(--status-info); }
  .text-warning   { color: var(--status-warning); }
  .text-danger    { color: var(--status-danger); }

  /* ──────────────────────────────────────────────────────────────
     COLORS — background
  ────────────────────────────────────────────────────────────── */
  .bg-canvas      { background: var(--surface-canvas); }
  .bg-base        { background: var(--surface-base); }
  .bg-elevated    { background: var(--surface-elevated); }
  .bg-overlay     { background: var(--surface-overlay); }
  .bg-glass       { background: var(--surface-glass); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); }
  .bg-brand       { background: var(--brand); }
  .bg-brand-subtle{ background: var(--brand-subtle); }
  .bg-transparent { background: transparent; }
  .bg-success { background: var(--status-success); }
  .bg-info    { background: var(--status-info); }
  .bg-warning { background: var(--status-warning); }
  .bg-danger  { background: var(--status-danger); }

  /* ──────────────────────────────────────────────────────────────
     BORDERS
  ────────────────────────────────────────────────────────────── */
  .border        { border: 1px solid var(--border-default); }
  .border-subtle { border: 1px solid var(--border-subtle); }
  .border-strong { border: 1px solid var(--border-strong); }
  .border-brand  { border: 1px solid var(--brand-border); }
  .border-0      { border: 0; }
  .border-t      { border-top: 1px solid var(--border-subtle); }
  .border-b      { border-bottom: 1px solid var(--border-subtle); }
  .border-s      { border-inline-start: 1px solid var(--border-subtle); }
  .border-e      { border-inline-end: 1px solid var(--border-subtle); }

  .rounded-xs   { border-radius: var(--radius-xs); }
  .rounded-sm   { border-radius: var(--radius-sm); }
  .rounded-md   { border-radius: var(--radius-md); }
  .rounded-lg   { border-radius: var(--radius-lg); }
  .rounded-xl   { border-radius: var(--radius-xl); }
  .rounded-full { border-radius: var(--radius-full); }
  .rounded-none { border-radius: 0; }

  /* ──────────────────────────────────────────────────────────────
     SHADOWS
  ────────────────────────────────────────────────────────────── */
  .shadow-none  { box-shadow: none; }
  .shadow-1     { box-shadow: var(--elevation-1); }
  .shadow-2     { box-shadow: var(--elevation-2); }
  .shadow-3     { box-shadow: var(--elevation-3); }
  .shadow-brand { box-shadow: var(--elevation-crimson); }

  /* ──────────────────────────────────────────────────────────────
     POSITION
  ────────────────────────────────────────────────────────────── */
  .relative { position: relative; }
  .absolute { position: absolute; }
  .fixed    { position: fixed; }
  .sticky   { position: sticky; }
  .static   { position: static; }

  .inset-0  { inset: 0; }
  .top-0    { top: 0; }
  .bottom-0 { bottom: 0; }
  .start-0  { inset-inline-start: 0; }
  .end-0    { inset-inline-end: 0; }

  .z-0      { z-index: 0; }
  .z-10     { z-index: 10; }
  .z-20     { z-index: 20; }
  .z-30     { z-index: 30; }
  .z-40     { z-index: 40; }
  .z-50     { z-index: 50; }
  .z-auto   { z-index: auto; }
  .z-modal  { z-index: var(--z-modal); }
  .z-toast  { z-index: var(--z-toast); }

  /* ──────────────────────────────────────────────────────────────
     SIZING
  ────────────────────────────────────────────────────────────── */
  .w-full   { width: 100%; }
  .w-screen { width: 100vw; }
  .w-auto   { width: auto; }
  .w-min    { width: min-content; }
  .w-max    { width: max-content; }
  .w-fit    { width: fit-content; }
  .h-full   { height: 100%; }
  .h-screen { height: 100dvh; }
  .h-auto   { height: auto; }
  .min-h-screen { min-height: 100dvh; }
  .min-h-0  { min-height: 0; }
  .min-w-0  { min-width: 0; }
  .max-w-prose { max-width: 65ch; }
  .max-w-screen-md { max-width: 768px; }
  .max-w-screen-lg { max-width: 1024px; }

  /* ──────────────────────────────────────────────────────────────
     OVERFLOW
  ────────────────────────────────────────────────────────────── */
  .overflow-auto    { overflow: auto; }
  .overflow-hidden  { overflow: hidden; }
  .overflow-visible { overflow: visible; }
  .overflow-scroll  { overflow: scroll; }
  .overflow-x-auto  { overflow-x: auto; }
  .overflow-y-auto  { overflow-y: auto; }
  .overflow-x-hidden{ overflow-x: hidden; }
  .overflow-y-hidden{ overflow-y: hidden; }

  /* ──────────────────────────────────────────────────────────────
     OPACITY
  ────────────────────────────────────────────────────────────── */
  .opacity-0   { opacity: 0; }
  .opacity-25  { opacity: 0.25; }
  .opacity-50  { opacity: 0.5; }
  .opacity-75  { opacity: 0.75; }
  .opacity-100 { opacity: 1; }

  /* ──────────────────────────────────────────────────────────────
     ASPECT RATIO
  ────────────────────────────────────────────────────────────── */
  .aspect-square { aspect-ratio: 1 / 1; }
  .aspect-video  { aspect-ratio: 16 / 9; }
  .aspect-poster { aspect-ratio: 2 / 3; }
  .aspect-cinema { aspect-ratio: 21 / 9; }
  .aspect-4-3    { aspect-ratio: 4 / 3; }

  /* ──────────────────────────────────────────────────────────────
     OBJECT FIT / POSITION
  ────────────────────────────────────────────────────────────── */
  .object-cover    { object-fit: cover; }
  .object-contain  { object-fit: contain; }
  .object-fill     { object-fit: fill; }
  .object-none     { object-fit: none; }
  .object-center   { object-position: center; }
  .object-top      { object-position: top; }

  /* ──────────────────────────────────────────────────────────────
     CURSOR
  ────────────────────────────────────────────────────────────── */
  .cursor-pointer    { cursor: pointer; }
  .cursor-not-allowed{ cursor: not-allowed; }
  .cursor-default    { cursor: default; }
  .cursor-text       { cursor: text; }
  .cursor-grab       { cursor: grab; }
  .cursor-grabbing   { cursor: grabbing; }

  /* ──────────────────────────────────────────────────────────────
     POINTER & SELECT
  ────────────────────────────────────────────────────────────── */
  .pointer-none { pointer-events: none; }
  .pointer-auto { pointer-events: auto; }
  .select-none  { user-select: none; }
  .select-text  { user-select: text; }
  .select-all   { user-select: all; }

  /* ──────────────────────────────────────────────────────────────
     VISIBILITY & PRINT
  ────────────────────────────────────────────────────────────── */
  .visible   { visibility: visible; }
  .invisible { visibility: hidden; }
  .collapse  { visibility: collapse; }

  @media print {
    .no-print { display: none !important; }
  }

  /* ──────────────────────────────────────────────────────────────
     BACKDROP / FILTER
  ────────────────────────────────────────────────────────────── */
  .blur-sm { filter: blur(4px); }
  .blur-md { filter: blur(8px); }
  .blur-lg { filter: blur(16px); }
  .blur-none { filter: none; }
  .backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .backdrop-blur-lg { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .grayscale  { filter: grayscale(1); }
  .saturate-150 { filter: saturate(1.5); }
  .brightness-90 { filter: brightness(0.9); }
  .brightness-110{ filter: brightness(1.1); }

  /* ──────────────────────────────────────────────────────────────
     ISOLATION & TRANSFORMS
  ────────────────────────────────────────────────────────────── */
  .isolate { isolation: isolate; }
  .transform-gpu { transform: translate3d(0,0,0); }

  /* ──────────────────────────────────────────────────────────────
     SCROLL
  ────────────────────────────────────────────────────────────── */
  .scroll-smooth { scroll-behavior: smooth; }
  .snap-x        { scroll-snap-type: x mandatory; }
  .snap-y        { scroll-snap-type: y mandatory; }
  .snap-start    { scroll-snap-align: start; }
  .snap-center   { scroll-snap-align: center; }
  .scrollbar-none { scrollbar-width: none; }
  .scrollbar-none::-webkit-scrollbar { display: none; }

  /* ──────────────────────────────────────────────────────────────
     SAFE AREA (iOS notch)
  ────────────────────────────────────────────────────────────── */
  .safe-top    { padding-top: env(safe-area-inset-top, 0); }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }
  .safe-x      { padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0); }
}


/* ═══ kaynak: /css/anime-card.css (modernization/css/anime-card.css) ═══ */
/* AnimeCard v4 — sabit footer + hover detail expand */

.anime-card {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  perspective: 800px;
  transform-style: preserve-3d;
  will-change: transform;
  isolation: isolate;
}

.anime-card__inner {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  will-change: transform;
  background: #0a0a0a;
}

.anime-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Poster */
.anime-card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

.anime-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover büyümesi — KART ve FOTOĞRAF farklı oranda büyür (2026-08-10).
   Fotoğraf karttan daha hızlı büyüdüğü için çerçeve içinde "ileri gelme"/derinlik
   hissi oluşur. Oranlar bilerek ayrı:
     kart  (__inner) : 1.04
     resim (__image) : 1.10   → resim ~2.5 kat daha fazla büyür
   3B eğilme YOK (anime-card.js'teki tilt kaldırıldı), sadece uniform scale. */
.anime-card:hover .anime-card__inner {
  transform: scale(1.04);
}

.anime-card:hover .anime-card__image {
  transform: scale(1.10);
}

/* Büyüyen kart komşularının altında kalmasın */
.anime-card:hover {
  position: relative;
  z-index: 2;
}

.anime-card__continue-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5;
}

.anime-card__continue-fill {
  height: 100%;
  width: var(--ar-progress, 0%);
  background: linear-gradient(90deg, var(--ar-red, #e50914), #ff6b75);
  transition: width 0.35s ease;
}

.anime-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(229, 9, 20, 0.4) 0%,
    rgba(229, 9, 20, 0.1) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  filter: blur(25px);
}

.anime-card:hover .anime-card__glow {
  opacity: 1;
}

.anime-card__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

.anime-card:hover .anime-card__shine {
  opacity: 1;
}

.anime-card__badge--air {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 45, 63, 0.35);
  color: #ff8c9a;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11px;
  font-weight: 700;
}

.anime-card__badge--air--past {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

.anime-card__cal-line {
  color: rgba(255, 215, 0, 0.9);
  font-weight: 600;
}

.anime-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: linear-gradient(135deg, #00d26a, #00a854);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  z-index: 4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.anime-card__badge--movie {
  background: linear-gradient(135deg, #e50914, #b00710);
}

/* ANI-30 (REVISED): Footer padding sabit — hover'da değişiklik yok. */
.anime-card__footer {
  position: relative;
  background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
  padding: 10px 12px;
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* ANI-30 (REVISED): Title default 2 satır — bilgi her zaman görünür. */
.anime-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  word-break: break-word;
}

/* ANI-30 (REVISED): Bilgi alanı (year • episode • score) HER ZAMAN GÖRÜNÜR.
   Eski default state "collapsed" idi; yeni davranışta hover gerekmeden açık. */
.anime-card__details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  max-height: 88px;
  opacity: 1;
  overflow: hidden;
}

.anime-card__score {
  color: #ffd700;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.anime-card__year {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.anime-card__type {
  padding: 2px 6px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 3px;
  font-size: 11px; /* Görev 12 (a11y): 9px okunaksızdı; 4.79:1 kontrast 11px'te yeterli */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
}

.anime-card__episodes {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.anime-card__separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
}

.anime-card:hover .anime-card__inner {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(229, 9, 20, 0.5),
    0 0 30px rgba(229, 9, 20, 0.2);
}

.rail__track .anime-card,
[data-rail-mode] .anime-card,
.continue-list .anime-card {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
}

.ar-rail__track .anime-card {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
}

/* ANI-30 (REVISED): Rail context'inde hover-collapse KALDIRILDI.
   Kullanıcı isteği: bilgiler her zaman görünür kalsın. Önceki "hover'da
   gizle" davranışı buradan kaldırıldı; rail'lerde de details her zaman açık.
   Kart yüksekliği bilgilerin gerektirdiği kadar otomatik artar. */

.anime-grid .anime-card {
  width: 100%;
  flex: none;
}

@media (max-width: 768px) {
  .rail__track .anime-card,
  [data-rail-mode] .anime-card,
  .ar-rail__track .anime-card {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
  }
  .anime-card__footer {
    padding: 8px 10px;
  }
  .anime-card__title {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-card__inner,
  .anime-card__image,
  .anime-card__details,
  .anime-card__footer {
    transition: none !important;
  }
  /* 3D tilt: card-3d.js init etmez; transform:none burada tilt'i kırmaz */
}

/* Takvim grid — ana sayfadaki AnimeCard ile aynı yapı */
.cal-grid .anime-card {
  width: 100%;
  min-width: 0;
}

/* ═════════════════════════════════════════════════════════════════════
 * ANI-30: ALWAYS-OPEN INFO PANEL (grid context'leri)
 * ─────────────────────────────────────────────────────────────────────
 * Default davranış: detaylar hover'da expand olur. Grid context'lerinde
 * kart boyutu sabit olmadığı için detaylar her zaman açık olabilir —
 * hover gerekmeden bilgi görünür.
 *
 * KAPSAMA ALANI:
 *   .ar-rail__track--grid     → "İzlemeye devam et" grid varyantı
 *   .anime-grid               → genel anime grid'leri
 *   .discover-grid            → discover.html catalog
 *   .catalog-grid             → catalog sayfası
 *   .cal-grid                 → takvim grid
 *
 * DIŞARIDA KALAN (kompakt görünüm korunur):
 *   .ar-rail__track (yatay)   → satır yüksekliği sabit
 *   .ar-marquee__track        → kayan band, kart boyu sabit
 *   .rail__track / [data-rail-mode]
 * ═════════════════════════════════════════════════════════════════════ */
.ar-rail__track--grid .anime-card .anime-card__title,
.anime-grid .anime-card .anime-card__title,
.discover-grid .anime-card .anime-card__title,
.catalog-grid .anime-card .anime-card__title,
.cal-grid .anime-card .anime-card__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ar-rail__track--grid .anime-card .anime-card__details,
.anime-grid .anime-card .anime-card__details,
.discover-grid .anime-card .anime-card__details,
.catalog-grid .anime-card .anime-card__details,
.cal-grid .anime-card .anime-card__details {
  max-height: 88px;
  opacity: 1;
  margin-top: 8px;
}

.ar-rail__track--grid .anime-card .anime-card__footer,
.anime-grid .anime-card .anime-card__footer,
.discover-grid .anime-card .anime-card__footer,
.catalog-grid .anime-card .anime-card__footer,
.cal-grid .anime-card .anime-card__footer {
  padding: 10px 12px;
}


/* ═══════════════════════════════════════════════════════════════════
 * DISCOVER SAYFA KURALLARI (eski discover-overrides.css — Görev 10/#33
 * konsolidasyonu, dosya SİLİNDİ). Tüm seçiciler .discover-grid /
 * .discover-catalog / [data-page="discover"] kapsamlı — diğer sayfaları
 * ETKİLEMEZ. Davranış: discover'da 3D tilt/glare kapalı, hover yalnız
 * hafif karartma + minik scale (ANI-30 REVISED).
 * ═══════════════════════════════════════════════════════════════════ */

/* ── 1) Discover kartlarında containment yok (panel hissi vermesin) ── */
.discover-grid .anime-card,
.discover-catalog .anime-card,
[data-page="discover"] .anime-card {
  /* ar-perf.css contain/will-change kalıntılarını sıfırla */
  contain: none !important;
  will-change: auto !important;
  /* Compositor layer hint'i kaldır — "görünmez panel" izlenimi yapan
     translateZ(0)'ı resetle */
  transform: none;
  /* 3D efekt parent perspective'i discover'da gereksiz */
  perspective: none !important;
  transform-style: flat !important;
  /* card-3d.js setup edemedi ama defensive: kart üzerinde rotateX/rotateY
     inline kaldıysa nötrle */
  isolation: auto;
}

/* card-3d.js'in eklediği glare layer'ı defensive olarak gizle */
.discover-grid .ar-card-glare,
.discover-catalog .ar-card-glare,
[data-page="discover"] .ar-card-glare {
  display: none !important;
}

/* ── 2) Bilgi alanı her zaman görünür (mevcut anime-card.css ile uyumlu)
        Discover ayrı override istemiyor — base CSS zaten "always open" yapıyor,
        burada sadece doğrulayıcı sıfırlama. ── */
.discover-grid .anime-card .anime-card__details,
.discover-catalog .anime-card .anime-card__details {
  max-height: 88px;
  opacity: 1;
  margin-top: 8px;
}
.discover-grid .anime-card .anime-card__title,
.discover-catalog .anime-card .anime-card__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ── 3) Hover: SADECE poster üzerine hafif karartma overlay + minik scale
        (3D YOK — transform tek eksende uniform scale). ── */
.discover-grid .anime-card,
.discover-catalog .anime-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* NOT: buradaki scale(1.01) KALDIRILDI — kart büyümesi artık global olarak
   .anime-card:hover .anime-card__inner'da (1.04). İkisi birlikte kalsaydı
   keşfette ölçekler ÇARPILIRDI (1.04 × 1.01) ve keşfet diğer sayfalardan
   farklı büyürdü. Buradaki hafif yukarı kalkma (translateY) korunuyor. */
.discover-grid .anime-card:hover,
.discover-catalog .anime-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Poster overlay — gradient'den karartma. anime-card__inner içinde
   bir overlay ekleyemediğimiz için poster üzerinden pseudo-element. */
.discover-grid .anime-card__poster,
.discover-catalog .anime-card__poster {
  position: relative;
}
.discover-grid .anime-card__poster::after,
.discover-catalog .anime-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.0) 100%);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.discover-grid .anime-card:hover .anime-card__poster::after,
.discover-catalog .anime-card:hover .anime-card__poster::after {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 100%);
}

/* ── 4) Grid: kartlar arası normal gap, taşma yok ── */
.discover-grid,
.discover-catalog {
  /* card 3D scale yok → kartlar gridin kendi kuralında durur,
     ekstra padding gerekmez */
  overflow: visible;
}


/* ── 4K tier rozeti (2026-09-12, 2026-10-04 yenilendi) ─────────────────────
   Sahip Editörün Seçimi'ndeki altın tier'i seçti ve kartta da aynısını istedi: sitenin tier dili
   (üst menüdeki LEGENDARY çipi) — koyu zemin, altın çerçeve, altın JetBrains Mono "4K ULTRA HD".
   Dar kartta (mobil) "ULTRA HD" gizlenir, yalnız "4K" kalır; sağ üstteki YENİ/MOVIE rozetiyle çakışmasın. */
.anime-card__4k {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; height: 20px; box-sizing: border-box;
  padding: 0 7px; border-radius: 4px; white-space: nowrap;
  background: linear-gradient(rgb(22, 18, 10), rgb(11, 9, 6));
  border: 1px solid rgba(246, 196, 83, .55);
  color: rgb(246, 196, 83);
  font: 700 9.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, .1), 0 0 10px rgba(246, 196, 83, .16), 0 2px 8px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.anime-card__4k-uhd { white-space: pre; }
.anime-card:hover .anime-card__4k { border-color: rgba(246, 196, 83, .8); }
@media (max-width: 640px) {
  .anime-card__4k { top: 6px; left: 6px; height: 18px; padding: 0 6px; font-size: 9px; }
  .anime-card__4k-uhd { display: none; }
}


/* ═══ kaynak: /css/ar-navbar.css (modernization/css/ar-navbar.css) ═══ */
:root {
  --ar-red: #e50914;
  --ar-red-light: #ff6b75;
  --ar-red-dark: #b00710;
  --ar-gold: #ffd700;
}

.ar-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  /* Geniş ekranda (2K/ultra-wide) 5% dolgu logo/menü/sağ-blok arasında devasa boşluk
     bırakıyordu. İçerik genişliği artık sayfa gövdesiyle aynı akışkan tavana
     (--container-max, vw-tabanlı clamp) hizalanır — sabit px değil. */
  padding: 0 max(5%, calc((100% - var(--container-max, 1440px)) / 2));
  z-index: 1000;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition:
    top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s ease,
    padding 0.3s ease,
    background 0.4s ease,
    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.ar-navbar.is-scrolled {
  top: 10px;
  left: max(12%, calc((100% - var(--container-max, 1440px)) / 2));
  right: max(12%, calc((100% - var(--container-max, 1440px)) / 2));
  height: 60px;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.ar-navbar__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ar-navbar__logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  isolation: isolate;
}

/* Sürekli cam / glass shimmer — hover yok */
.ar-navbar__logo::after {
  content: '';
  position: absolute;
  top: -35%;
  left: -30%;
  width: 45%;
  height: 170%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.1) 56%,
    transparent 62%,
    transparent 100%
  );
  transform: rotate(14deg) translateX(-120%);
  animation: ar-logo-glass-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

@keyframes ar-logo-glass-shimmer {
  0% {
    transform: rotate(14deg) translateX(-140%);
    opacity: 0.75;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: rotate(14deg) translateX(320%);
    opacity: 0.75;
  }
}

.ar-navbar__logo-img {
  height: 34px;
  width: auto;
  /* İLK-KARE KUTU REZERVASYONU (2026-08-24): logodark.svg viewBox
     356.90 x 59.60 → oran 5.988. SVG inmeden ÖNCE bile kutu 203.6 x 34
     olarak rezerve edilir; menünün sol kenarı artık kaymaz.
     ÖLÇÜM (önce): 140x34 @1613ms → 204x34 @2109ms, menuLeft 434→466 px,
     CLS 0.0395. SABİT width VERİLMEZ: ≤640px kuralı height:28px diyor,
     aspect-ratio orada 167.6 x 28 (gerçek kutu) üretir — sabit 204px
     mobilde YENİ bir kayma doğururdu. */
  aspect-ratio: 356.9 / 59.6;
  display: block;
  position: relative;
  z-index: 1;
}

.ar-navbar__nav {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.ar-navbar__nav-indicator {
  position: absolute;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition:
    left 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  z-index: 0;
}

.ar-navbar__menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.ar-navbar__menu li {
  position: relative;
}


.ar-navbar__menu a {
  display: block;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.2px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ar-navbar__menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
}

/* JS indicator çalışırken arka plan indicator'dan gelir, a:hover background gerekmiyor */
body.has-nav-js .ar-navbar__menu a:hover {
  background: transparent;
}

/* Aktif sekme */
.ar-navbar__menu li.is-active a {
  color: #fff;
  font-weight: 600;
}

.ar-navbar__menu li.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--ar-red);
  border-radius: 2px;
}

.ar-navbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ar-navbar__search-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}

.ar-navbar__search-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.08);
}

.ar-navbar__search-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.ar-navbar__login {
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.ar-navbar__login:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ar-navbar__cta {
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ar-red), var(--ar-red-dark));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
  white-space: nowrap;
}

.ar-navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/*
 * Premium — altın çerçeve + hap köşe (statik); sadece hover EFEKTİ yok (:hover = :default)
 */
.ar-star-border__bottom,
.ar-star-border__top {
  display: none;
}

.ar-star-border {
  --ar-star-speed: 12s;
  display: inline-block;
  position: relative;
  border-radius: 999px;
  overflow: visible;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  vertical-align: middle;
}

.ar-star-border__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(246, 196, 83, 0.5);
  /* Katman 1: shimmer ışık bandı (background-position ile süpürülür), Katman 2: siyah zemin */
  background:
    linear-gradient(115deg, rgba(255, 222, 120, 0) 42%, rgba(255, 222, 120, 0.13) 50%, rgba(255, 222, 120, 0) 58%) no-repeat,
    linear-gradient(180deg, #16120a, #0b0906);
  background-size: 220% 100%, 100% 100%;
  background-position: 180% 0, 0 0;
  animation: ar-premium-shimmer 5s linear infinite;
  color: #f6c453;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 7px 16px;
  border-radius: 999px;
  z-index: 1;
  white-space: nowrap;
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.1), 0 0 10px rgba(246, 196, 83, 0.14);
  text-shadow: 0 0 8px rgba(246, 196, 83, 0.35);
  transition: border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

@keyframes ar-premium-shimmer {
  0%   { background-position: 180% 0, 0 0; }
  45%  { background-position: -80% 0, 0 0; }
  100% { background-position: -80% 0, 0 0; } /* süpürmeler arası nefes payı */
}

@media (prefers-reduced-motion: reduce) {
  .ar-star-border__inner { animation: none; }
}

.ar-star-border:hover .ar-star-border__inner,
.ar-star-border:focus-visible .ar-star-border__inner {
  border-color: rgba(246, 196, 83, 0.75);
  background:
    linear-gradient(115deg, rgba(255, 222, 120, 0) 42%, rgba(255, 222, 120, 0.13) 50%, rgba(255, 222, 120, 0) 58%) no-repeat,
    linear-gradient(180deg, #1b160c, #0d0a06);
  background-size: 220% 100%, 100% 100%;
  color: #ffd98a;
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.12), 0 0 14px rgba(246, 196, 83, 0.18);
  transform: none;
}

.ar-star-border:hover,
.ar-star-border:focus-visible {
  filter: none;
  box-shadow: none;
  transform: none;
}

.ar-star-border:active .ar-star-border__inner {
  transform: none;
}

.ar-star-border__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.ar-star-border__icon {
  flex-shrink: 0;
  display: block;
  color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .ar-star-border__inner {
    transition: none !important;
  }
}

.ar-navbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ar-navbar__avatar:hover {
  border-color: var(--ar-red);
}


.ar-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.ar-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.ar-search-box {
  width: min(720px, 95vw);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(-40px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.ar-search-overlay.is-open .ar-search-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ar-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.ar-search-input-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--ar-red, #dc2626);
  flex-shrink: 0;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.4));
}

.ar-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  caret-color: var(--ar-red, #dc2626);
  letter-spacing: -0.02em;
}

.ar-search-input:focus-visible,
.ar-search-input:focus {
  outline: none;
}

.ar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.ar-search-input-wrap kbd {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ar-search-input-wrap kbd:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ar-search-results {
  max-height: 55vh;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ar-search-results::-webkit-scrollbar {
  width: 8px;
}
.ar-search-results::-webkit-scrollbar-track {
  background: transparent;
}
.ar-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.ar-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ar-search-hint {
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  text-align: center;
  font-weight: 500;
}

.ar-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.ar-search-result-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.ar-search-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.ar-search-result-item:hover::before {
  opacity: 1;
}

.ar-search-result-item__poster {
  position: relative;
  width: 52px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.ar-search-result-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ar-search-result-item:hover .ar-search-result-item__poster img {
  transform: scale(1.1);
}

.ar-search-result-item__info {
  flex: 1;
  min-width: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ar-search-result-item__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.ar-search-result-item:hover .ar-search-result-item__title {
  color: var(--ar-red-light, #ff6b75);
}

.ar-search-result-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.ar-search-result-item__score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 999px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.05);
}

.ar-search-result-item__score-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

body:has(.ar-navbar) {
  padding-top: 80px;
}

@media (max-width: 1100px) {
  .ar-navbar.is-scrolled {
    left: 4%;
    right: 4%;
    padding: 0 20px;
  }
  .ar-navbar__menu {
    gap: 2px;
  }
  .ar-navbar__menu a {
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .ar-navbar {
    padding: 0 16px;
  }
  .ar-navbar.is-scrolled {
    left: 8px;
    right: 8px;
    padding: 0 16px;
  }
  .ar-navbar__menu {
    display: none;
  }
  .ar-navbar__login {
    display: none;
  }
}

/* ── Mobil (≤640px): sağ blok kompakt — taşma/iç-içe binme fix (2026-07-08) ──
   390px'te sağ blok 373px ölçülüyordu (isim 40 + tier rozeti 77 + Premium 110):
   isim+rozet gizlenir (avatar+ok kalır), Premium sıkılaşır, dropdown viewport'a kelepçelenir. */
@media (max-width: 640px) {
  body:has(.ar-navbar) { padding-top: 72px; }
  .ar-navbar { height: 52px; padding: 0 12px; top: 8px; left: 8px; right: 8px; }
  .ar-navbar__right { gap: 8px; }
  .header-username,
  .header-tier-badge { display: none !important; }
  .ar-star-border__inner { padding: 5px 10px !important; font-size: 11px !important; }
  .ar-navbar__cta { height: 32px; padding: 0 12px; font-size: 12px; }
  .header-dropdown { right: 0 !important; left: auto !important; max-width: calc(100vw - 24px); }
  #ar-search-close { display: none !important; }
}
@media (max-width: 400px) {
  /* Çok dar ekran: marka yazısı gizli, yalnız logo ikonu */
  .ar-navbar__brand { display: none; }
}

/* Mobil ek: Premium butonu ikon-only (yazı gizli, yıldız kalır) */
@media (max-width: 640px) {
  .ar-star-border__row { font-size: 0 !important; gap: 0 !important; }
  .ar-star-border__row svg { width: 16px !important; height: 16px !important; }
  .ar-star-border__inner { padding: 6px 9px !important; }
  .ar-navbar__search-btn { width: 36px; height: 36px; }
}

/* MOBIL-BASLIK (2026-09-27, sahip): telefonda baslik en usttayken de 8 px bosluklu kapsuldu (banner kenarlari
   gorunuyordu). Masaustundeki gibi: en ustte tam yasli, kaydirinca kapsul. */
@media (max-width: 640px) {
  .ar-navbar:not(.is-scrolled) { top: 0; left: 0; right: 0; border-radius: 0; }
}

/* TABLET (641-900px, 2026-09-27, sahip Responsively geri bildirimi): iPad 768 px'de Premium dugmesi basliktan
   tasiyordu — telefon kurallari yalniz <=640 px'te gecerliydi. Kullanici adi gizli, Premium yalniz yildiz. */
@media (min-width: 641px) and (max-width: 900px) {
  .header-username { display: none !important; }
  .ar-star-border__row { font-size: 0 !important; gap: 0 !important; }
  .ar-star-border__row svg { width: 16px !important; height: 16px !important; }
  .ar-star-border__inner { padding: 6px 9px !important; }
}

/* Mobil ek-2: sol blok kompakt + sayfa geneli yatay taşma kelepçesi */
@media (max-width: 640px) {
  html, body { overflow-x: clip; }
  .ar-navbar__left { gap: 6px; min-width: 0; }
  .ar-navbar__brand { font-size: 14px; letter-spacing: 0.6px; }
  /* width:28px SABİT değer, 140x34 geniş logoyu kare kutuya kırpıyordu (yazı
     kenarlardan kesiliyordu) — width:auto en-boy oranını korur. */
  .ar-navbar__logo-img { height: 28px; width: auto; }
}

/* ── Arama sonuç geliştirmeleri (Görev 6) ────────────────────────── */
.ar-search-result-item.is-active {
  background: rgba(232, 0, 61, .14);
  outline: 1px solid rgba(232, 0, 61, .35);
}
.ar-search-seeall {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent, #e8003d);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ar-search-seeall:hover { background: rgba(232, 0, 61, .08); }
.ar-search-suggest-label {
  font-size: 12px;
  color: var(--text-muted, #9a9aa4);
  padding: 8px 12px 2px;
  margin: 0;
}


/* ── 2026-09-11: 420px alti sigdirma (bkz. olcum notu) ─────────────────────
   Sag kume 386 px isterken 374 px yer vardi; Premium ekran disina tasiyordu.
   Hedefler kuculur, bosluk daralir — hicbir oge gizlenmez. */
@media (max-width: 420px) {
  /* KOK NEDEN (olculdu): navbar'da gap:20px var ve ortadaki .ar-navbar__nav
     SIFIR genislikte olmasina ragmen IKI bosluk slotu tuketiyor (40 px).
     144 + 20 + 0 + 20 + 203 + 16 = 403 > 378  -> Premium ekran disina tasiyordu.
     Bos orta blok tamamen kaldirilir, bosluk daraltilir. */
  .ar-navbar { padding: 0 8px; left: 6px; right: 6px; gap: 6px; }
  .ar-navbar__nav { display: none; }
  .ar-navbar__right { gap: 6px; min-width: 0; }
  .ar-navbar__left { gap: 4px; }

  .ar-hamburger,
  .ar-navbar__search-btn { width: 38px !important; height: 38px !important; }

  /* Misafir CTA'si: yazi kisalmaz ama kutu daralir */
  .ar-navbar__cta { height: 30px; padding: 0 10px; font-size: 11.5px; }

  /* Premium: ikon-only zaten; kutusu biraz daha kompakt */
  .ar-star-border__inner { padding: 5px 8px !important; }
  .ar-star-border__row svg { width: 15px !important; height: 15px !important; }

  /* Logo: en-boy orani korunur, yukseklik kisilir */
  .ar-navbar__logo-img { height: 24px; width: auto; }
}


/* ── 2026-09-11: MOBILDE HEADER YUKSEKLIGI SABIT ───────────────────────────
   Olculdu (390x844): kaydirmadan once 52 px, kaydirinca 60 px — yani header
   sayfa kayarken BOY DEGISTIRIYOR ve icerik ziplıyordu. Sebep: mobil kural
   .ar-navbar icin 52 px veriyor ama .is-scrolled masaustunden gelen 60 px'i
   miras aliyordu. Mobilde yukseklik ve ic bosluk SABIT tutulur. */
@media (max-width: 640px) {
  .ar-navbar.is-scrolled {
    height: 52px;
    padding: 0 12px;
    left: 8px;
    right: 8px;
    top: 8px;
  }
}
@media (max-width: 420px) {
  .ar-navbar.is-scrolled {
    height: 52px;
    padding: 0 8px;
    left: 6px;
    right: 6px;
  }
}


/* ═══ kaynak: /dist/css/ar-header-auth.css (dist/css/ar-header-auth.css) ═══ */
/* ─────────────────────────────────────────────────────────────
   ANI-AUTH Header — paylaşılan stiller
   ───────────────────────────────────────────────────────────── */

/* FOUC önleme — sync (showGuest/showAuthed) çağrılana kadar her ikisini de
   gizle. ar-header-auth.js init sonunda <body>'ye .ar-header-ready class
   ekler; o anda doğru paneli göster (boş daire flicker'ını önler). */
body:not(.ar-header-ready) .header-user,
body:not(.ar-header-ready) .header-guest {
  visibility: hidden !important;
}

.header-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.header-user:hover { background: rgba(255, 255, 255, 0.06); }

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff4466, #8b0000);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Inter', system-ui, sans-serif;
}
.header-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.header-avatar .avatar-initial {
  font-weight: 800;
  color: white;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-tier-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(232, 0, 61, 0.15);
  color: #ff4466;
  border: 1px solid rgba(232, 0, 61, 0.25);
}
.header-tier-badge[data-tier="elite"]    { background: rgba(232, 0, 61, 0.15); color: #ff4466; border-color: rgba(232, 0, 61, 0.3); }
.header-tier-badge[data-tier="ultra"]    { background: rgba(197, 0, 47, 0.15); color: #ff5577; border-color: rgba(197, 0, 47, 0.3); }
.header-tier-badge[data-tier="legendary"] {
  /* Premium butonla aynı dil: siyah zemin + altın yazı, hafif dış parıltı */
  background: linear-gradient(180deg, #16120a, #0b0906);
  color: #f6c453;
  border-color: rgba(246, 196, 83, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.1), 0 0 10px rgba(246, 196, 83, 0.14);
  text-shadow: 0 0 8px rgba(246, 196, 83, 0.35);
}

/* ─── Dropdown ─────────────────────────────────────────── */
/* ── Anizium tarzı profil dropdown — TÜM sayfalarda tutarlı (anasayfa kendi
   .ar-navbar__user özgül kurallarıyla aynı görünür; bu generic sürüm diğer
   sayfalarda — detay vb. — devreye girer). ── */
.header-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 252px;
  display: block;
  margin: 0;
  background: var(--bg-elevated, #1a1a1a);
  border: 1px solid var(--border-strong, #2a2a2a);
  border-radius: var(--radius-lg, 12px);
  padding: 6px;
  box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.header-dropdown:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ar-pf__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border, #1f1f1f);
}
.ar-pf__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f5);
}
.ar-pf__name:empty::before { content: "Hesabım"; }
.ar-pf__sub {
  font-size: 12px;
  color: var(--text-muted, #aaa);
}
.header-dropdown__link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary, #a3a3a3);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  margin: 0;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.header-dropdown__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  transform: translateY(-50%);
  background: var(--primary, #dc2626);
  border-radius: 0 2px 2px 0;
  transition: height 0.16s ease;
}
.header-dropdown__link svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted, #aaa);
  flex: 0 0 auto;
  transition: color 0.16s ease;
}
.header-dropdown__link:hover,
.header-dropdown__link:focus-visible {
  background: rgba(220, 38, 38, 0.12);
  color: #fff;
  outline: none;
}
.header-dropdown__link:hover::before,
.header-dropdown__link:focus-visible::before { height: 58%; }
.header-dropdown__link:hover svg,
.header-dropdown__link:focus-visible svg { color: var(--primary, #dc2626); }
.header-dropdown__link--premium .header-tier-badge { margin-left: auto; }
.ar-pf__sep { height: 1px; background: var(--border, #1f1f1f); margin: 6px 4px; }
.header-dropdown__link--logout { color: rgba(255, 100, 130, 0.92); }
.header-dropdown__link--logout svg { color: rgba(255, 100, 130, 0.7); }
.header-dropdown__link--logout:hover { background: rgba(232, 0, 61, 0.1); color: #ff4466; }
.header-dropdown__link--logout:hover svg { color: #ff4466; }
@media (prefers-reduced-motion: reduce) { .header-dropdown { transition: none; } }

/* HAFIF-MOD (2026-10-01, sahip: "bende yok ama bazi kisilerde cok fazla sikayet var, ana sayfada kasma").
   Olculdu (mobil, CPU 4x, girisli): ana sayfa ilk 10 sn'de ~6 sn donuyor; yarisi cizim (stil/layout/boyama).
   Ana sayfada ~50 backdrop-filter (hero rozetleri 24, slayt dugmeleri 16...), 30 kart parlamasi blur(25px)
   ve GORUNMEZ (opacity:0) 7 hero slaytinda 5'er blur(12px) katman vardi — guclu GPU'da fark edilmez, orta/dusuk
   telefonda kaydirma ve gecis kasar. Dokunmatik cihazda (CSS, JS beklemez) ve zayif masaustunde (ar-header-auth.js
   html.ar-hafif: <=4 cekirdek ya da <=4 GB bellek) bu efektler kapanir; bulaniklik yerine ayni tonda duz arka plan.
   Katman disi (unlayered) yazildi: @layer icindeki kurallari yener. */
@media (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-slide__meta-item, .btn-slide, .hero-slider__nav, .ar-rail__nav, .vip-curator__btn, .toast,
  .ar-bottomnav, .ar-mnav__overlay, .ar-search-overlay, .ar-search-box { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .hero-slider__nav { background-color: rgba(0, 0, 0, 0.55) !important; }
  .ar-search-overlay { background-color: rgba(0, 0, 0, 0.88) !important; }
  .anime-card__glow { display: none !important; }
  .hero-slide:not(.is-active), .hero-slide:not(.is-active) * { filter: none !important; }
  .hero-slide__poster-wrap, .hero-slide__logo-cap, .hero-slide__title, .hero-slide__desc, .hero-slide__meta, .hero-slide__actions { filter: none !important; }
  lord-icon { filter: none !important; }
}
html.ar-hafif .hero-slide__meta-item, html.ar-hafif .btn-slide, html.ar-hafif .hero-slider__nav, html.ar-hafif .ar-rail__nav,
html.ar-hafif .vip-curator__btn, html.ar-hafif .toast, html.ar-hafif .ar-bottomnav, html.ar-hafif .ar-mnav__overlay,
html.ar-hafif .ar-search-overlay, html.ar-hafif .ar-search-box { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.ar-hafif .hero-slider__nav { background-color: rgba(0, 0, 0, 0.55) !important; }
html.ar-hafif .ar-search-overlay { background-color: rgba(0, 0, 0, 0.88) !important; }
html.ar-hafif .anime-card__glow { display: none !important; }
html.ar-hafif .hero-slide:not(.is-active), html.ar-hafif .hero-slide:not(.is-active) * { filter: none !important; }
html.ar-hafif .hero-slide__poster-wrap, html.ar-hafif .hero-slide__logo-cap, html.ar-hafif .hero-slide__title,
html.ar-hafif .hero-slide__desc, html.ar-hafif .hero-slide__meta, html.ar-hafif .hero-slide__actions { filter: none !important; }
html.ar-hafif lord-icon { filter: none !important; }

/* YAZILIM-CIZIM (2026-10-01): tarayicinin donanim hizlandirmasi kapali (WebGL cizici yazilim) — ar-header-auth.js
   html.ar-yazilim ekler. Olculdu (ekran kartsiz Chrome, 1920x1080, girisli ana sayfa): 7 fps; filtreler kalkinca 38 fps,
   animasyonlar kalkinca 55 fps. Burada butun filter/backdrop-filter ve surekli donen suslemeler kapanir. */
html.ar-yazilim *, html.ar-yazilim *::before, html.ar-yazilim *::after {
  filter: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.ar-yazilim .ar-marquee__track, html.ar-yazilim .marquee-track, html.ar-yazilim .ar-navbar__logo,
html.ar-yazilim .ar-navbar__logo *, html.ar-yazilim .ar-star-border__inner, html.ar-yazilim .ar-li-flame,
html.ar-yazilim .badge-row, html.ar-yazilim .badge-row * { animation: none !important; }

/* Bilgilendirme notu — admin tasarim dili (siyah panel, mono etiket, #e8003d vurgu) */
#ar-gpu-not {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; width: min(360px, calc(100vw - 32px));
  background: #000; color: #ebebeb; border: 1px solid #1e1e1e; border-left: 3px solid #e8003d; border-radius: 10px;
  padding: 12px 14px 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); font-size: 13px; line-height: 1.5;
}
#ar-gpu-not .ar-gpu-not__ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
#ar-gpu-not .ar-gpu-not__etiket { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.14em; color: #e8003d; }
#ar-gpu-not .ar-gpu-not__kapat { width: 26px; height: 26px; border: 1px solid #1e1e1e; border-radius: 6px; background: #0b0b0b; color: #9a9a9a; font-size: 16px; line-height: 1; cursor: pointer; }
#ar-gpu-not .ar-gpu-not__kapat:hover { background: #141414; color: #ebebeb; }
#ar-gpu-not .ar-gpu-not__baslik { margin: 0 0 4px; font-weight: 600; font-size: 14px; color: #fff; }
#ar-gpu-not .ar-gpu-not__metin { margin: 0; color: #a8a8a8; }
#ar-gpu-not .ar-gpu-not__metin b { color: #ebebeb; font-weight: 600; }
@media (max-width: 768px) { #ar-gpu-not { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
