/* Detay sahnesi — film ve oyun için tam ekran, öğenin rengine bürünen panel */

.scene {
  --tone: 255 106 61;
  position: fixed; inset: 0; z-index: 200;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  animation: scene-in 0.5s var(--ease) both;
}
.scene.is-closing { animation: scene-out 0.35s var(--ease) both; }
@keyframes scene-in { from { opacity: 0; } }
@keyframes scene-out { to { opacity: 0; } }
html.has-scene, html.has-scene body { overflow: hidden; }

.scene__bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.4s var(--ease);
  animation: kenburns 32s ease-in-out infinite alternate;
}
.scene__bg img.is-loaded { opacity: 0.5; }
.scene--game .scene__bg img { filter: blur(3px) saturate(1.2); }
.scene--game .scene__bg img.is-loaded { opacity: 0.42; }
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.18) translate(-2.5%, -2%); }
}
.scene__bg::after {
  content: ''; position: absolute; inset: 0; transition: background 1s;
  background:
    radial-gradient(ellipse 80% 70% at 75% 10%, rgb(var(--tone) / 0.28), transparent 70%),
    linear-gradient(to bottom, rgb(11 10 9 / 0.35), rgb(11 10 9 / 0.86) 45%, var(--bg) 90%),
    linear-gradient(to right, rgb(11 10 9 / 0.8), transparent 60%);
}
/* Oyun sahnesinde CRT tarama çizgileri */
.scene--game .scene__bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0.25;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.5) 2px 3px);
}

.scene__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgb(11 10 9 / 0.8), transparent);
}
.scene__id { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.scene__id b { color: rgb(var(--tone)); font-weight: 500; }
.scene__ctrl { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(11 10 9 / 0.5); backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--text); color: var(--bg); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: 0.3; pointer-events: none; }

.scene__body { position: relative; z-index: 2; padding-bottom: 96px; }

/* ---------- Üst kısım: görsel + bilgi ---------- */
.sc-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(8px, 4vw, 48px); }
@media (max-width: 760px) { .sc-grid { grid-template-columns: 1fr; } .sc-media { max-width: 260px; } }

.sc-media { position: relative; }
.poster-frame {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.08), 0 0 120px -30px rgb(var(--tone) / 0.6);
  background: var(--surface);
}
.poster-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-frame img.is-broken { display: none; }

/* İzleme damgası */
.stamp {
  position: absolute; right: -18px; bottom: 28px; z-index: 2;
  padding: 8px 14px; border: 2px solid rgb(var(--tone)); color: rgb(var(--tone)); border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.4;
  transform: rotate(-8deg); background: rgb(11 10 9 / 0.72); backdrop-filter: blur(6px);
  animation: stamp 0.6s 0.5s var(--ease-spring) both;
}
.stamp b { display: block; font-size: 13px; letter-spacing: 0.06em; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } }

.sc-info { display: grid; gap: 18px; animation: rise 0.8s 0.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.sc-title { font-size: clamp(42px, 7vw, 96px); }
.sc-orig { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--muted); margin: -8px 0 0; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.sc-meta li { display: flex; flex-direction: column; gap: 2px; }
.sc-meta small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.sc-meta span { color: var(--text); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chips .chip { border-color: rgb(var(--tone) / 0.45); color: var(--text); background: rgb(var(--tone) / 0.08); }
.chip.is-mine { background: rgb(var(--tone)); border-color: rgb(var(--tone)); color: #140b06; font-weight: 600; }
.sc-tagline { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; color: rgb(var(--tone)); filter: brightness(1.3); }
.sc-overview { margin: 0; max-width: 64ch; color: rgb(242 235 224 / 0.82); font-size: 16.5px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-actions .btn--accent { background: rgb(var(--tone)); border-color: rgb(var(--tone)); }

/* ---------- Benim notum ---------- */
.note { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; margin-top: clamp(48px, 7vw, 88px); align-items: center; }
@media (max-width: 860px) { .note { grid-template-columns: 1fr; } }
.note__paper {
  position: relative; padding: 34px 32px 28px; border-radius: 4px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 33px, rgb(36 29 22 / 0.09) 33px 34px),
    var(--paper);
  color: var(--ink);
  transform: rotate(-1.2deg);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
  animation: paper 0.9s 0.25s var(--ease) both;
}
@keyframes paper { from { opacity: 0; transform: rotate(-6deg) translateY(30px); } }
.note__tape {
  position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(2deg);
  background: rgb(var(--tone) / 0.55); mix-blend-mode: multiply;
  clip-path: polygon(3% 0, 97% 4%, 100% 100%, 0 94%);
}
.note__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(36 29 22 / 0.55); margin: 0 0 8px; }
.note__hand { font-family: var(--font-hand); font-size: clamp(24px, 2.6vw, 30px); line-height: 34px; margin: 0; white-space: pre-line; }
.note__hand.is-empty { color: rgb(36 29 22 / 0.45); }
.note__sign { display: block; text-align: right; font-family: var(--font-hand); font-size: 26px; margin-top: 8px; color: #b4401a; }

.score { display: grid; gap: 22px; justify-items: start; }
.score__ring { position: relative; width: 170px; height: 170px; }
.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 7; }
.score__ring .track { stroke: var(--line); }
.score__ring .val {
  stroke: rgb(var(--tone)); stroke-linecap: round;
  stroke-dasharray: 440; stroke-dashoffset: 440;
  animation: ring 1.4s 0.3s var(--ease) forwards;
  filter: drop-shadow(0 0 10px rgb(var(--tone) / 0.6));
}
@keyframes ring { to { stroke-dashoffset: var(--off); } }
.score__num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score__num b { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1; display: block; }
.score__num span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.score__fav { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--tone)); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.score__fav svg { width: 16px; height: 16px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.compare { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.compare__row { display: grid; grid-template-columns: 70px 1fr 38px; gap: 12px; align-items: center; font-size: 12px; }
.compare__row span:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.compare__bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.compare__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c, var(--muted)); transform-origin: left; animation: grow 1.2s 0.5s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.compare__row b { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.compare__verdict { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Bölüm başlıkları ---------- */
.sc-section { margin-top: clamp(56px, 7vw, 96px); }
.sc-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sc-section__head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); margin: 0; letter-spacing: -0.02em; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }

.cast { width: 112px; text-align: center; }
.cast__img { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--font-display); font-size: 30px; color: var(--muted); position: relative; }
.cast__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); transition: filter 0.3s; }
.cast:hover .cast__img img { filter: none; }
.cast b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.cast small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.rec { text-align: left; }
.rec__img { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface); margin-bottom: 8px; transition: transform 0.4s var(--ease); }
.rec:hover .rec__img { transform: translateY(-4px); }
.rec__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec__img img.is-broken { display: none; }
.rec b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.rec small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ---------- Fragman ---------- */
.trailer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: var(--gutter); background: rgb(0 0 0 / 0.88); backdrop-filter: blur(6px); animation: scene-in 0.3s both; }
.trailer__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 140px -20px rgb(var(--tone) / 0.6); }
.trailer__frame iframe { width: 100%; height: 100%; border: 0; }
.trailer .icon-btn { position: absolute; top: 18px; right: 18px; }

/* ---------- Oyun kutusu (3D) ---------- */
.gbox { perspective: 1200px; padding: 12px 0 0 18px; }
.gbox__case {
  position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(4deg);
  transition: transform 0.9s var(--ease);
  animation: box-in 1.1s var(--ease) both;
}
@keyframes box-in { from { transform: rotateY(-70deg) rotateX(4deg) translateX(-40px); opacity: 0; } }
.gbox:hover .gbox__case { transform: rotateY(-6deg) rotateX(2deg); }
.gbox__front {
  position: absolute; inset: 0; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--surface);
  box-shadow: 30px 40px 60px -20px rgb(0 0 0 / 0.9), 0 0 100px -30px rgb(var(--tone) / 0.7);
  transform: translateZ(14px);
}
.gbox__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gbox__front img.is-broken { display: none; }
.gbox__front::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgb(255 255 255 / 0.18) 0%, transparent 30%, transparent 70%, rgb(0 0 0 / 0.3)),
    linear-gradient(to top, rgb(0 0 0 / 0.75), transparent 45%);
}
.gbox__label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-family: var(--font-display); font-size: 24px; line-height: 1; text-shadow: 0 2px 12px rgb(0 0 0 / 0.6); }
.gbox__strip { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 26px; display: flex; align-items: center; padding: 0 12px; background: rgb(var(--tone)); color: #140b06; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.gbox__spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 28px;
  transform-origin: left; transform: rotateY(-90deg) translateX(-14px) translateZ(0);
  background: linear-gradient(to right, rgb(var(--tone) / 0.9), rgb(var(--tone) / 0.6));
  display: grid; place-items: center; border-radius: 4px 0 0 4px;
}
.gbox__spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: #140b06; white-space: nowrap; overflow: hidden; max-height: 90%; }

.status {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; width: max-content;
}
.status .pulse { background: var(--c); }
.status .pulse::after { border-color: var(--c); }
.status--oynuyorum { --c: var(--accent); }
.status--bitirdim { --c: var(--ok); }
.status--biraktim { --c: var(--bad); }
.status--oynayacagim { --c: var(--gold); }
.status__icon { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.meta-score {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: #0b0a09;
  background: var(--c, var(--muted));
}

/* Oynama zaman çizelgesi */
.timeline { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg); background: rgb(26 23 20 / 0.7); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.timeline__end small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.timeline__end b { font-weight: 500; font-size: 14px; }
.timeline__end:last-child { text-align: right; }
.timeline__track { position: relative; height: 2px; background: var(--line-strong); border-radius: 2px; }
.timeline__track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 100%); background: var(--c, rgb(var(--tone))); border-radius: inherit; animation: grow 1.4s 0.4s var(--ease) both; transform-origin: left; }
.timeline__track .pulse { position: absolute; top: 50%; left: var(--p, 100%); transform: translate(-50%, -50%); }
.timeline__track.is-dashed { background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px); }
.timeline__track.is-broken i { width: 62%; }
.timeline__track.is-broken::after { content: '✕'; position: absolute; left: 62%; top: 50%; transform: translate(-50%, -52%); color: var(--bad); font-size: 13px; }
.timeline__days { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }

.shots .shot { width: min(460px, 78vw); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; background: rgb(0 0 0 / 0.92); padding: var(--gutter); animation: scene-in 0.25s both; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }

.sc-desc { color: rgb(242 235 224 / 0.78); max-width: 68ch; margin: 0; font-size: 15.5px; }
.sc-desc small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }

.sc-keys { position: fixed; z-index: 6; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.1em; display: flex; gap: 14px; background: rgb(11 10 9 / 0.7); backdrop-filter: blur(8px); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.sc-keys kbd { border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; margin-right: 4px; }
@media (hover: none) { .sc-keys { display: none; } }
