/* ==========================================================================
   gece.men — tasarım sistemi (mobil öncelikli)
   Tek aksan rengi: lamba altını. Sade yüzeyler, net hiyerarşi.
   ========================================================================== */

:root {
  --bg: #0a0c11;
  --surface: #12161e;
  --surface-2: #1a2030;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f6;
  --muted: #9aa5b4;
  --faint: #6b7685;

  --gold: #f5b942;
  --gold-2: #ffd47a;
  --gold-ink: #1b1305;
  --good: #34d399;
  --bad: #f87171;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1400px;
  --gutter: 16px;
  --header-h: 60px;
  --bottom-h: 64px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 24px; --header-h: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(245, 185, 66, 0.07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 10px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ==========================================================================
   Üst menü
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 12, 17, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-lamp { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(245, 185, 66, 0.35)); transition: transform 0.3s var(--ease); }
.brand:hover .brand-lamp { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-name b { color: var(--gold); font-weight: 800; }
.brand-tag { display: none; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-top: 2px; }

.main-nav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a[aria-current='page'] { color: var(--gold); background: rgba(245, 185, 66, 0.1); }

.header-search { display: none; position: relative; margin-left: auto; width: min(340px, 30vw); }
.header-search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 0.92rem;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.header-search input::placeholder { color: var(--faint); }
.header-search input:focus { border-color: rgba(245, 185, 66, 0.6); background: var(--surface-2); }
.hs-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }

.search-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(420px, 90vw);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); overflow: hidden; max-height: 72vh; overflow-y: auto; z-index: 70;
}
.sp-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sp-item:hover, .sp-item:focus-visible { background: var(--surface-2); }
.sp-thumb { width: 38px; aspect-ratio: 2 / 3; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.sp-title { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.sp-sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.sp-all { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: 0.88rem; color: var(--gold); }
.sp-all:hover { background: var(--surface-2); }
.sp-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }

.icon-btn {
  position: relative; display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover, .icon-btn[aria-current='page'] { color: var(--gold); border-color: rgba(245, 185, 66, 0.5); }

.count-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.68rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

@media (min-width: 900px) {
  .brand-tag { display: block; }
  .main-nav { display: flex; }
  .header-search { display: block; }
  .icon-btn { display: grid; }
}
body[data-route='ara'] .header-search { visibility: hidden; }

/* ==========================================================================
   Mobil alt menü
   ========================================================================== */

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 12, 17, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 0.68rem; font-weight: 700; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a[aria-current='page'] { color: var(--gold); }
.bn-icon { position: relative; display: grid; }
.bn-icon .count-badge { top: -5px; right: -9px; }

body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Butonlar, çipler, rozetler
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.93rem; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn.on { border-color: var(--gold); color: var(--gold); background: rgba(245, 185, 66, 0.1); }
.btn.on svg { fill: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; flex: 0 0 auto;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-weight: 600; font-size: 0.88rem; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active, .chip[aria-current='true'] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.chip.sm { height: 32px; padding: 0 13px; font-size: 0.82rem; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #d3dae4; font-size: 0.8rem; font-weight: 600;
}
.pill.gold { background: rgba(245, 185, 66, 0.14); color: var(--gold); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill .dot.live { background: var(--good); box-shadow: 0 0 8px var(--good); }

.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg a { padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.seg a:hover { color: var(--text); }
.seg a[aria-current='true'] { background: var(--gold); color: var(--gold-ink); }

.select {
  height: 40px; padding: 0 36px 0 14px; border-radius: var(--radius-sm);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%239aa5b4'%3E%3Cpath d='M7.25 11.1 2.45 5.66C1.9 5 2.35 4 3.2 4h9.6a1 1 0 0 1 .75 1.66l-4.8 5.48a1 1 0 0 1-1.5 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 0.88rem; font-weight: 600;
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 0.2s;
}
.select:hover { border-color: var(--line-strong); }
.select:focus-visible { border-color: var(--gold); outline: none; }
.select option { background: var(--surface); color: var(--text); }

/* ==========================================================================
   Kaydırıcı (raylar, çip satırları) — asansör yok, ok + sürükle + dokunma
   ========================================================================== */

.scroller { position: relative; }
.scroller.bleed { margin-inline: calc(var(--gutter) * -1); }

.scroller-track {
  display: flex; gap: var(--gap, 14px); overflow-x: auto; padding: 4px 2px 8px;
  scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroller-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.scroller.bleed .scroller-track { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.scroller-track.dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.scroller-track.dragging * { pointer-events: none; }
.scroller-track img, .scroller-track a { -webkit-user-drag: none; user-drag: none; }

.scroller-btn {
  position: absolute; top: var(--btn-top, 50%); transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center;
  background: rgba(10, 12, 17, 0.88); color: var(--text); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.scroller-btn:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.scroller-btn.prev { left: 6px; }
.scroller-btn.next { right: 6px; }
.scroller[data-at-start] .scroller-btn.prev,
.scroller[data-at-end] .scroller-btn.next { opacity: 0; pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
  .scroller-btn { display: grid; }
  .scroller-track { cursor: grab; }
}

/* Çip satırlarında kenar solması */
.fade .scroller-track {
  --fl: 28px; --fr: 28px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.fade[data-at-start] .scroller-track { --fl: 0px; }
.fade[data-at-end] .scroller-track { --fr: 0px; }
.fade .scroller-btn { --btn-top: 50%; width: 34px; height: 34px; }

/* ==========================================================================
   Kartlar ve ızgara
   ========================================================================== */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card { position: relative; min-width: 0; }
.card-link { display: block; color: inherit; -webkit-tap-highlight-color: transparent; }

.poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; text-align: center; color: var(--faint); font-size: 0.8rem; font-weight: 600;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
@media (hover: hover) {
  .card:hover .poster { transform: translateY(-4px); border-color: rgba(245, 185, 66, 0.55); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
}

.score {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; line-height: 1.4;
  background: rgba(10, 12, 17, 0.84); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.score.hi { color: var(--good); }
.score.mid { color: var(--gold); }
.score.lo { color: var(--bad); }
.score.none { color: var(--faint); }

.save {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(10, 12, 17, 0.8);
  border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.save:hover { background: var(--gold); color: var(--gold-ink); }
.save:active { transform: scale(0.9); }
.save.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.save.on svg { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .card .save { opacity: 0; }
  .card:hover .save, .card:focus-within .save, .card .save.on { opacity: 1; }
}

.card-title {
  margin-top: 10px; font-size: 0.92rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: 3px; color: var(--muted); font-size: 0.78rem; }

.rail { --card-w: 134px; --gap: 12px; --btn-top: 36%; }
.rail .card { flex: 0 0 var(--card-w); }
@media (min-width: 600px)  { .rail { --card-w: 154px; --gap: 14px; } }
@media (min-width: 1100px) { .rail { --card-w: 178px; --gap: 16px; } }

/* ==========================================================================
   Bölümler
   ========================================================================== */

.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.2rem; font-weight: 800; }
@media (min-width: 900px) { .section-head h2 { font-size: 1.4rem; } }
.more-link { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.more-link:hover { color: var(--gold-2); }

.platforms { --gap: 10px; }
.platform-tile {
  flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 10px 18px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 0.92rem; transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.platform-tile img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
@media (hover: hover) { .platform-tile:hover { border-color: rgba(245, 185, 66, 0.55); background: var(--surface-2); transform: translateY(-2px); } }

/* ==========================================================================
   Vitrin (hero)
   ========================================================================== */

.hero { position: relative; }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  min-height: clamp(400px, 62vh, 600px); display: flex; align-items: flex-end; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 1%, rgba(10, 12, 17, 0.7) 38%, rgba(10, 12, 17, 0.1) 100%),
    linear-gradient(to right, rgba(10, 12, 17, 0.78) 0%, rgba(10, 12, 17, 0) 62%);
}
.hero-body { position: relative; width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) 78px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hero-title { font-size: clamp(1.7rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 780px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hero-title a:hover { color: var(--gold-2); }
.hero-overview {
  margin-top: 12px; max-width: 60ch; color: #d3dae4; font-size: 0.98rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 700px) { .hero-overview { -webkit-line-clamp: 3; font-size: 1.02rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.hero { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.hero-arrow {
  position: absolute; bottom: 20px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center; background: rgba(10, 12, 17, 0.7); color: #fff; border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero-arrow:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); transform: scale(1.08); }
.hero-arrow.next { right: var(--edge); }
.hero-arrow.prev { right: calc(var(--edge) + 54px); }
@media (hover: hover) and (pointer: fine) { .hero-arrow { display: grid; } }

.hero-dots { position: absolute; left: var(--edge); right: var(--edge); bottom: 40px; display: flex; justify-content: flex-start; gap: 8px; z-index: 5; pointer-events: none; }
.hero-dots .hero-dot { pointer-events: auto; }
@media (max-width: 899px) { .hero-dots { justify-content: center; bottom: 28px; } }
.hero-dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s var(--ease), background 0.3s;
}
.hero-dot::after { content: ''; position: absolute; inset: -12px -4px; } /* dokunma alanı */
.hero-dot.active { width: 26px; background: var(--gold); }

/* ==========================================================================
   Liste sayfaları
   ========================================================================== */

.page { padding-bottom: 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 26px; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.page-sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; max-width: 60ch; }

.filters { display: grid; gap: 14px; margin: 20px 0 6px; }
.filter-block { display: grid; gap: 8px; }
.filter-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .filter-block { grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; }
}

.result-meta { color: var(--faint); font-size: 0.85rem; margin: 14px 0; min-height: 1.3em; }

.load-more { display: flex; justify-content: center; margin-top: 34px; }
.load-more[hidden] { display: none; }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 1.25rem; margin-bottom: 8px; }
.empty p { max-width: 42ch; margin: 0 auto 20px; }

/* ==========================================================================
   Detay sayfası
   ========================================================================== */

.d-hero { position: relative; }
.d-backdrop { position: absolute; inset: 0 0 auto 0; height: min(64vh, 580px); overflow: hidden; }
.d-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0.5; }
.d-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 12, 17, 0.3), var(--bg) 96%); }

.d-head {
  position: relative; display: grid; gap: 16px 18px; align-items: end;
  grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: 'poster main' 'actions actions';
  padding-top: clamp(100px, 22vw, 190px);
}
.d-poster { grid-area: poster; }
.d-poster img, .d-poster .poster-ph {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); background: var(--surface);
}
.d-main { grid-area: main; min-width: 0; }
.d-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }

.d-title { font-size: clamp(1.45rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.d-orig { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.d-score { display: inline-flex; align-items: baseline; gap: 6px; }
.d-score strong { font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.d-score span { color: var(--muted); font-size: 0.82rem; }
.d-score.hi strong { color: var(--good); }
.d-score.lo strong { color: var(--bad); }
.d-score.none strong { color: var(--faint); font-size: 1.1rem; }

@media (min-width: 900px) {
  .d-head { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: 'poster main' 'poster actions'; gap: 20px 40px; padding-top: 180px; }
  .d-main { align-self: end; }
  .d-actions { align-self: start; }
}

.d-body { position: relative; padding-block: 32px 56px; display: grid; gap: 40px; }
.d-body > *, .filters > *, .filter-block > * { min-width: 0; }
.tagline { color: var(--muted); font-style: italic; margin-bottom: 10px; }
.overview { max-width: 74ch; color: #d3dae4; line-height: 1.75; font-size: 1rem; }
.d-section h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 28px; margin-top: 4px; }
.facts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 3px 0 0; font-weight: 600; }

.prov-group + .prov-group { margin-top: 16px; }
.prov-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prov-list { display: flex; flex-wrap: wrap; gap: 10px; }
.prov { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 0.9rem; }
.prov img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.prov-note { margin-top: 12px; color: var(--faint); font-size: 0.78rem; }
.prov-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.trailer {
  position: relative; max-width: 900px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #000 center / cover no-repeat; border: 1px solid var(--line);
}
.trailer button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: grid; place-items: center; background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)); }
.trailer .play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 36px rgba(245, 185, 66, 0.4); transition: transform 0.25s var(--ease); }
.trailer button:hover .play { transform: scale(1.08); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.notice {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem;
  border: 1px solid rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.08);
}
.notice b { color: var(--gold); }

.person { flex: 0 0 108px; text-align: center; }
.person-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--line); background: var(--surface-2); }
.person-ph { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); border: 2px solid var(--line); }
.person-name { font-size: 0.84rem; font-weight: 700; line-height: 1.25; }
.person-role { font-size: 0.74rem; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.season { flex: 0 0 136px; }
.season .poster { border-radius: 12px; }
.season-name { margin-top: 8px; font-weight: 700; font-size: 0.9rem; }
.season-sub { color: var(--muted); font-size: 0.78rem; }

.cast, .seasons { --gap: 14px; }

/* ==========================================================================
   Arama sayfası
   ========================================================================== */

.search-page-box { position: relative; margin-top: 20px; max-width: 720px; }
.search-page-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-page-box input {
  width: 100%; height: 54px; padding: 0 20px 0 52px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 1.05rem; outline: none;
}
.search-page-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.12); }
.search-page-box input::placeholder { color: var(--faint); }

/* ==========================================================================
   İskelet yükleme, bildirim, alt bilgi
   ========================================================================== */

.sk { background: linear-gradient(90deg, #12161e 25%, #1c2333 50%, #12161e 75%); background-size: 200% 100%; animation: sk 1.4s infinite linear; border-radius: var(--radius); }
.sk-poster { aspect-ratio: 2 / 3; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 10px; }
.sk-hero { min-height: clamp(400px, 62vh, 600px); border-radius: 0; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 14px); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
@media (min-width: 900px) { .toast-root { bottom: 28px; } }
.toast {
  pointer-events: auto; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  padding: 11px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.3s var(--ease);
}
.toast a { color: var(--gold); margin-left: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 32px var(--gutter) 36px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.footer-brand b { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-note { color: var(--faint); font-size: 0.78rem; max-width: 62ch; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
