/* Film & oyun arşivi: hero, araç çubuğu, kart ızgarası, bilet koçanı önizleme */

/* Ortam ışığı: üzerine gelinen öğenin görseli tüm sayfaya yayılır */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient__img {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  opacity: 0; filter: blur(40px) saturate(1.2); transform: scale(1.05);
  transition: opacity 1.1s var(--ease);
}
.ambient__img.is-on { opacity: 0.28; }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%), linear-gradient(to bottom, transparent 40%, var(--bg));
}

.archive-hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: 40px; display: grid; gap: 28px; }
.archive-hero h1 { font-size: clamp(48px, 9vw, 128px); max-width: 13ch; }
.archive-hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }

.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 18px 28px 18px 0; margin-right: 28px; border-right: 1px solid var(--line); min-width: 110px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; margin: 0; padding: 14px 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 18px; }
}

/* ---------- Araç çubuğu ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-block: 14px;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
}
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 44px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--line-strong); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; background: none; border: 0; outline: none; height: 100%; min-width: 0; }
.search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

.select {
  height: 44px; padding: 0 38px 0 16px; border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39a8c' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  border: 1px solid var(--line); appearance: none; font-size: 14px; max-width: 100%;
}
.select option { background: var(--surface); }

.toggle {
  height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted);
  transition: all 0.2s;
}
.toggle svg { width: 15px; height: 15px; }
.toggle[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: 1 1 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); border: 1px solid transparent; white-space: nowrap;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.tab__count { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.result-line { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 10px 0 18px; }

/* ---------- Kart ızgarası ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(172px, 44%), 1fr));
  gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 22px);
}

.card { position: relative; perspective: 900px; animation: card-in 0.7s var(--ease) both; animation-delay: calc(min(var(--i, 0), 18) * 35ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.card__hit { display: block; width: 100%; text-align: left; border-radius: var(--radius); }
.card__media {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.card.is-hover .card__media, .card.is-peek .card__media {
  transition: transform 0.12s linear, box-shadow 0.5s var(--ease);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-strong);
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s, transform 0.8s var(--ease);
}
.card__media img.is-loaded { opacity: 1; }
.card__media img.is-broken { display: none; }
.card.is-hover .card__media img, .card.is-peek .card__media img { transform: scale(1.06); }

/* Görsel yoksa tipografik afiş */
.fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, hsl(var(--h) 70% 55% / 0.55), transparent 55%),
    radial-gradient(circle at 90% 90%, hsl(calc(var(--h) + 40) 60% 40% / 0.5), transparent 60%),
    hsl(var(--h) 25% 12%);
}
.fallback b { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; letter-spacing: -0.02em; }
.fallback small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(242, 235, 224, 0.65); }
.spot .fallback b, .spot .fallback small, .gbox__front .fallback > * { display: none; }

/* Parıltı: imleci takip eden ışık */
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.22), transparent 45%);
  mix-blend-mode: overlay;
}
.card.is-hover .card__glare { opacity: 1; }

.card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 10, 9, 0.6); backdrop-filter: blur(8px); color: var(--accent);
}
.card__fav svg { width: 14px; height: 14px; }
.card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  background: rgba(11, 10, 9, 0.66); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Bilet koçanı: hover'da alttan kayar */
.card__stub {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4;
  padding: 14px 14px 12px; border-radius: 10px;
  background: var(--paper); color: var(--ink);
  transform: translateY(calc(100% + 12px)) rotate(-2deg); opacity: 0;
  transition: transform 0.55s var(--ease-spring), opacity 0.3s;
  /* üst kenarda delikli bilet yırtığı */
  -webkit-mask: radial-gradient(circle 4px at 8px 0, transparent 98%, #000) -4px 0 / 16px 100% repeat-x;
          mask: radial-gradient(circle 4px at 8px 0, transparent 98%, #000) -4px 0 / 16px 100% repeat-x;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}
.card.is-hover .card__stub, .card.is-peek .card__stub, .card__hit:focus-visible .card__stub { transform: translateY(0) rotate(0); opacity: 1; }
.stub__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(36, 29, 22, 0.6); border-bottom: 1px dashed rgba(36, 29, 22, 0.3); padding-bottom: 7px; margin-bottom: 8px; }
.stub__title { font-family: var(--font-display); font-size: 17px; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 6px; }
.stub__meta { font-size: 11.5px; color: rgba(36, 29, 22, 0.72); line-height: 1.4; margin: 0 0 8px; }
.stub__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stub__foot .stars { color: #c2410c; }
.stub__score { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.stub__open { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(36, 29, 22, 0.55); }

.card__caption { padding: 12px 2px 0; display: grid; gap: 2px; }
.card__title { font-size: 14.5px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card__sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.card__sub .stars svg { width: 11px; height: 11px; }

/* Oyun: "şu an oynuyorum" vitrini */
.spotlight { display: grid; gap: 18px; margin-bottom: 48px; }
.spotlight__head { display: flex; align-items: center; gap: 12px; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.spotlight__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.spot {
  position: relative; display: grid; grid-template-columns: 1fr; min-height: 230px; border-radius: var(--radius-lg); overflow: hidden;
  text-align: left; border: 1px solid var(--line); isolation: isolate;
}
.spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 10, 9, 0.95) 25%, rgba(11, 10, 9, 0.3)); }
.spot:hover img { transform: scale(1.05); }
.spot__body { padding: 26px; display: flex; flex-direction: column; justify-content: end; gap: 8px; max-width: 70%; }
.spot__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1; margin: 0; }
.spot__meta { color: var(--muted); font-size: 13px; }
.spot__days { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
