/* Oynatıcı arayüzü — filmle aynı "çini-piksel" tokenları */
:root {
  --gece: #131E45; --gece2: #1C2A5C; --derz: #27397A; --murekkep: #0B1333;
  --sir: #FFF4E0; --turkuaz: #1FC2B2; --turkuazA: #9BE9DF; --mercan: #FF5A45; --safran: #FFBC3A; --kobalt: #2748C2;
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --body: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(31,194,178,.16), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(255,90,69,.12), transparent 60%),
    linear-gradient(var(--derz) 2px, transparent 2px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--derz) 2px, transparent 2px) 0 0 / 60px 60px,
    var(--gece);
  background-blend-mode: normal, normal, soft-light, soft-light, normal;
  color: var(--sir); font-family: var(--body); font-weight: 600;
}
#app { display: grid; grid-template-rows: auto 1fr auto; height: 100%; max-width: 1500px; margin: 0 auto; padding: 14px 18px 16px; gap: 12px; }
.top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; background: var(--turkuaz); position: relative; box-shadow: 3px 4px 0 rgba(3,6,20,.4); }
.logo i { position: absolute; left: 20px; top: 9px; width: 6px; height: 22px; border-radius: 3px; background: var(--safran); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 60% { opacity: .15; } }
.titles { min-width: 0; flex: 1; }
h1 { margin: 0; font: 800 clamp(18px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -.01em; }
h1 em { font: 600 .55em var(--body); color: var(--turkuazA); font-style: normal; margin-left: .4em; }
.titles p { margin: 4px 0 0; font-size: 14px; color: var(--turkuazA); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now { text-align: right; flex: 0 0 auto; }
.now-scene { font: 800 15px var(--display); color: var(--safran); }
.now-concept { font-size: 13px; opacity: .8; }
.stage { min-height: 0; position: relative; }
.frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } /* boyutu oynatıcı hesaplar */
canvas { width: 100%; height: 100%; display: block; border-radius: 18px; box-shadow: 0 20px 60px rgba(3,6,20,.55), 0 0 0 2px var(--derz); background: var(--gece); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px var(--display); color: var(--turkuazA); }
.controls { display: grid; gap: 10px; background: rgba(11,19,51,.72); border: 2px solid var(--derz); border-radius: 16px; padding: 10px 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
button { font: 800 14px var(--body); color: var(--sir); background: var(--gece2); border: 2px solid var(--derz); border-radius: 10px; padding: 7px 11px; cursor: pointer; }
button:hover { border-color: var(--turkuaz); }
button:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
.icon, .play { display: grid; place-items: center; padding: 0; width: 42px; height: 42px; }
.play { background: var(--safran); border-color: var(--safran); color: var(--murekkep); }
svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.i-pause { display: none; } body.playing .i-pause { display: block; } body.playing .i-play { display: none; }
.time { font: 600 14px var(--display); min-width: 150px; } .time small { opacity: .6; margin-left: 6px; }
.scrub { position: relative; flex: 1; min-width: 160px; height: 30px; cursor: pointer; touch-action: none; }
.track { position: absolute; left: 0; right: 0; top: 11px; height: 8px; border-radius: 4px; background: var(--derz); overflow: hidden; }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--turkuaz), var(--safran)); }
.markers i { position: absolute; top: 6px; width: 4px; height: 18px; border-radius: 2px; background: var(--sir); opacity: .5; transform: translateX(-2px); }
.head { position: absolute; top: 5px; width: 20px; height: 20px; border-radius: 5px; background: var(--turkuaz); transform: translateX(-10px); box-shadow: 2px 3px 0 rgba(3,6,20,.5); }
.grp { display: flex; align-items: center; gap: 8px; }
.grp > span { font: 800 12px var(--display); color: var(--turkuazA); text-transform: uppercase; letter-spacing: .04em; }
.seg { display: flex; gap: 4px; }
.seg button { padding: 6px 10px; }
.seg button.on { background: var(--turkuaz); border-color: var(--turkuaz); color: var(--murekkep); }
.ghost { background: transparent; }
.snd { font: 600 12px var(--body); color: var(--turkuazA); font-style: normal; }
@media (max-width: 720px) {
  #app { padding: 10px 10px 12px; }
  .now { display: none; }
  .titles p { white-space: normal; }
  .time { min-width: 0; }
}
/* dışa aktarım modu */
body.render { background: var(--gece); }
body.render #app { display: block; padding: 0; max-width: none; }
body.render .top, body.render .controls, body.render .loading { display: none; }
body.render .frame { position: static; transform: none; }
body.render canvas { width: auto; height: auto; border-radius: 0; box-shadow: none; }
