/* Olé Stream overlay — 1920x1080, saydam zemin. */
@font-face { font-family: "OleDisplay"; src: url("../fonts/BigShoulders-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "OleText"; src: url("../fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: block; }

:root {
  /* Font tek yerden değişir. Adobe Fonts kiti eklenirse: --font-display: "transducer-condensed", "OleDisplay", sans-serif; */
  --font-display: "OleDisplay", "Arial Narrow", sans-serif;
  --font-display-weight: 800;
  --font-text: "OleText", "Helvetica Neue", Arial, sans-serif;

  --cream-1: #fffcf3;
  --cream-2: #f6efd9;
  --cream-3: #e5ddc6;
  --ink: #0b0b0b;
  --muted: #8c836f;
  --gold: #ffb000;
  --red-card: #eb2926;
  --yellow-card: #ffd200;
  --rating-hi: #0f8a3c;
  --shadow: 10px 16px 26px rgba(0, 0, 0, .45);
  --shadow-sm: 5px 9px 14px rgba(0, 0, 0, .40);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1920px; height: 1080px; overflow: hidden; background: transparent; }
body { font-family: var(--font-text); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.preview { background: #3a6b3a; }
body.preview-dark { background: #1d1d1d; }

#stage { position: relative; width: 1920px; height: 1080px; }
.hidden { display: none !important; }
.display { font-family: var(--font-display); font-weight: var(--font-display-weight); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }

/* ---------- Kart (krem panel) ---------- */
.card {
  position: absolute;
  background: linear-gradient(135deg, var(--cream-1) 0%, var(--cream-2) 60%, var(--cream-3) 100%);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.card .tab {
  position: absolute; top: -36px; height: 40px; padding: 10px 26px 0 30px;
  background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 6px 0 0;
}
.card .tab.right { right: 0; }
.card .tab.left { left: 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%); border-radius: 6px 0 0 0; padding: 10px 30px 0 22px; }

/* Ölçüler tasarım dosyasından (Futbol-Ekrani-W_Template-Layout.svg, 1920x1080) birebir alınmıştır.
   Krem paneller tasarımın kendi görselleridir (img/vec/plate-*.svg: kenar, köşe ve gölge vektör; dolgu tasarımın degradesi, tools/vector_plates.py); yazı boyutları Transducer'ın büyük
   harf yüksekliğine eşitlenmiştir: Big Shoulders boyutu = tasarım boyutu x 0.934. */

/* ---------- Sol alt: logo ---------- */
#logo-card { position: absolute; left: 11.54px; top: 794.42px; width: 272px; height: 278px; background: url("../img/vec/plate-logo-flat.svg") no-repeat; }   /* üst sekme yok, düz üst (tasarımcı, 2026-11-21) */
#logo-card img { position: absolute; left: 85.86px; top: 86.88px; width: 78.3px; height: 106.8px; }
/* Kullanıcı logosu: yüksekliği skorbord takım kutularıyla birebir, yatayda Olé logosunun merkezinde, oranı korunur. */
#logo-card img.custom { left: 35.01px; top: 84.48px; width: 180px; height: 111.38px; object-fit: contain; }   /* üst/alt = skorborddaki takım kutularıyla aynı (878.89–990.27) */
#logo-card .tab { position: absolute; left: 33px; width: 123px; text-align: center; top: 48.34px; font-size: 15px; line-height: 15px; font-weight: 600; letter-spacing: -.026em; color: #998675; white-space: nowrap; }

/* ---------- Golcüler listesi ---------- */
#scorers { position: absolute; left: 237.29px; bottom: 228.09px; width: 185.71px; display: flex; flex-direction: column; gap: 7.22px; }
/* Deplasman golleri: ev sahibi listesinin aynası (deplasman plakasının sağ kenarına hizalı) */
#scorers-away { position: absolute; right: 533.74px; bottom: 228.09px; width: 185.71px; display: flex; flex-direction: column; gap: 7.22px; }
.scorer.new { animation: slideIn .5s ease-out both; }
.scorer {
  display: flex; justify-content: space-between; align-items: center;
  height: 22.58px; padding: 0 8px 0 9.63px; background: #fffcf3; border-radius: 2.95px;
  box-shadow: 1.32px 1.32px 1.32px rgba(0, 0, 0, .3); font-size: 13.07px; line-height: 13px; font-weight: 600;
}
.scorer b { font-weight: 900; margin-right: 3.4px; }
.scorer .min { font-weight: 600; }
.scorer.cancelled { text-decoration: line-through; opacity: .55; }

/* ---------- Skorbord ---------- */
/* Kapsayıcı tuvalin tamamıdır; çocuklar tasarımdaki mutlak koordinatlarla yerleşir. */
#scoreboard { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
#scoreboard .frame { position: absolute; left: 202.54px; top: 794.42px; width: 1240px; height: 279px; background: url("../img/vec/plate-scoreboard.svg") no-repeat; }
#tab-wide i { position: absolute; top: 794.42px; height: 67px; background: url("../img/vec/plate-scoreboard-tab.svg") no-repeat; }
#tab-wide.hidden { display: none; }
/* Süre sekmesi yazısı: sekme üstü (820.25) ile plakaların üstü (878.9) arasında dikey ortalı, iki modda da aynı. */
#scoreboard.tab-widened .frame { background-image: url("../img/vec/plate-scoreboard-notab.svg"); }
#scoreboard .timer-tab { position: absolute; left: 735px; top: 832.3px; width: 152px; height: 36.64px; text-align: center; }
#clock { display: block; font-size: 36.64px; line-height: 36.64px; letter-spacing: 0; white-space: nowrap; }
#clock.paused { opacity: .7; }
.plate {
  position: absolute; top: 878.9px; width: 433.47px; height: 111.38px; border-radius: 4.91px; overflow: hidden;
  box-shadow: 5.52px 9.2px 14.72px rgba(0, 0, 0, .45);
}
.plate .name { position: absolute; left: 0; right: 0; top: 20.9px; text-align: center; font-size: 72.85px; line-height: 72.85px; white-space: nowrap; letter-spacing: 0; }
.plate .gol { position: absolute; inset: 0; display: none; place-items: center; }
.plate .gol svg { height: 60.25px; width: auto; }
#plate-home { left: 256.65px; }
#plate-away { left: 933.43px; }
#score {
  /* Ortalı: ev plakası sağ kenarı 690.12 ile deplasman plakası sol kenarı 933.43 arası, merkez 811.78. Taban çizgisi 979.78. */
  position: absolute; left: 681.78px; width: 260px; top: 882.6px; height: 108px;
  text-align: center; white-space: pre; font-size: 108px; line-height: 108px; letter-spacing: -2.16px;
}
#score .sep { letter-spacing: -6px; }
.cards { position: absolute; top: 841.5px; display: flex; gap: 7.8px; }
.cards i { display: block; width: 17.5px; height: 25.6px; background: var(--red-card); box-shadow: 2.22px 2.22px 2.22px rgba(0, 0, 0, .3); animation: pop .5s ease-out both; }
#cards-home { right: 1231.1px; flex-direction: row-reverse; } /* ev plakasının sağ kenarına hizalı (aynalı) */
#cards-away { left: 934.6px; }

/* Gol animasyonu: plaka "GOOOOOLLLL!" yazısına döner, sonra skor güncellenir. */
.plate.goal .name { display: none; }
.plate.goal .gol { display: grid; }
.plate.goal .gol path { transform-box: fill-box; transform-origin: 50% 100%; }
/* Klasik: yanıp sönme */
.plate.goal.fx-blink .gol { animation: golFlash .32s steps(1) 8; }
/* Dalga: harfler soldan sağa sırayla zıplar, üç tur */
.plate.goal.fx-wave .gol path { animation: golWave .8s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 40ms) 3 both; }
@keyframes golWave { 0% { transform: none; } 16% { transform: translateY(-13px) scale(1.1); } 34%, 100% { transform: none; } }
/* Nabız: kalp atışı gibi çift vuruş (güm-güm ... güm-güm) */
.plate.goal.fx-beat .gol svg { animation: golBeat .66s ease-out 4; }
@keyframes golBeat { 0% { transform: scale(1); } 10% { transform: scale(1.16); } 22% { transform: scale(1); } 32% { transform: scale(1.09); } 46%, 100% { transform: scale(1); } }
/* Çakılma: harfler tek tek büyükten yerine çakılır, sonunda tek bir vuruş */
.plate.goal.fx-slam .gol path { animation: golSlam .22s cubic-bezier(.2, .9, .3, 1.3) calc(var(--i) * 65ms) both; }
.plate.goal.fx-slam .gol svg { animation: golPunch .45s ease-out 1.15s 2; }
@keyframes golSlam { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
@keyframes golPunch { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* Uzama: harfler ortadan dışa doğru açılır, "GOOOOL" bağırışı uzar gibi; iki nefes */
.plate.goal.fx-stretch .gol path { animation: golStretch 1.2s cubic-bezier(.2, .8, .2, 1) 2 both; }
@keyframes golStretch { 0% { transform: none; } 35% { transform: translateX(calc((var(--i) - 5.5) * 5px)) scaleY(1.12); } 60%, 100% { transform: none; } }
/* Tabela: harfler stadyum skor tabelası gibi tek tek dönüp yenilenir */
.plate.goal.fx-flap .gol path { transform-origin: 50% 50%; animation: golFlap .9s ease-in-out calc(var(--i) * 55ms) 3 both; }
@keyframes golFlap { 0% { transform: none; } 14% { transform: scaleY(.04); } 28%, 100% { transform: none; } }
/* Sarsıntı: tribün sallanır gibi sert başlayıp sönen titreşim */
.plate.goal.fx-quake { animation: golQuake 1.6s linear both; }
.plate.goal.fx-quake .gol svg { animation: golQuakeIn .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes golQuake {
  0% { transform: none; } 4% { transform: translate(-7px, 3px) rotate(-1deg); } 8% { transform: translate(6px, -4px) rotate(.8deg); }
  12% { transform: translate(-5px, -2px); } 16% { transform: translate(5px, 3px) rotate(.5deg); } 22% { transform: translate(-3px, 2px); }
  28% { transform: translate(3px, -2px); } 36% { transform: translate(-2px, 1px); } 46% { transform: translate(1px, -1px); } 60%, 100% { transform: none; } }
@keyframes golQuakeIn { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
/* Işık kovalamaca: stadyum ışıkları gibi harfler sırayla parlayıp söner */
.plate.goal.fx-chase .gol path { animation: golChase .75s linear calc(var(--i) * 55ms) 3 both; }
@keyframes golChase { 0% { fill: currentColor; transform: none; } 12% { fill: #fffcf3; transform: scale(1.08); } 30%, 100% { fill: currentColor; transform: none; } }
/* Uçuş: yazı skor tarafından hızla gelip frenler, ardından iki kısa vuruş */
.plate.goal.fx-fly .gol svg { animation: golFly .5s cubic-bezier(.15, .9, .25, 1.15) both, golBeat .66s ease-out .55s 3; }
@keyframes golFly { from { transform: translateX(calc(var(--dir) * 420px)) scaleX(1.6); filter: blur(6px); opacity: 0; } 60% { filter: blur(0); opacity: 1; } to { transform: none; } }
/* Tribün ailesi (Claude'un önerisi): tasarımcının GOL yazısı ve Big Shoulders; arkada akan konturlu GOL sıraları */
.plate.goal[class*="fx-tribun"] .gol { display: block; }
.tb { position: absolute; inset: 0; overflow: hidden; }
.tb-row { position: absolute; left: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 50px; line-height: 50px; letter-spacing: 3px;
  color: transparent; -webkit-text-stroke: 1.3px var(--plate-text); opacity: .2; }
.tb-row.r1 { top: 4px; animation: tbScroll 1.9s linear both; }
.tb-row.r2 { top: 58px; animation: tbScroll 1.9s linear reverse both; }
@keyframes tbScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tb-sweep { position: absolute; top: -20px; bottom: -20px; width: 80px; left: -120px; background: var(--plate-text); opacity: .9; transform: skewX(-20deg); animation: tbSweep .34s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes tbSweep { to { left: 115%; } }
.tb-word { position: absolute; inset: 0; display: grid; place-items: center; }
.tb-word svg { height: 60.25px; width: auto; }
.tb-word path { transform-box: fill-box; transform-origin: 50% 50%; }
/* 1: harfler sırayla belirir, iki vuruş */
.fx-tribun .tb-word path { opacity: 0; animation: tbPop .2s cubic-bezier(.2, 1.6, .4, 1) calc(.16s + var(--i) * 52ms) forwards; }
.fx-tribun .tb-word svg { animation: golBeat .55s ease-out 1.15s 2; }
@keyframes tbPop { from { opacity: 0; transform: scale(1.9); } to { opacity: 1; transform: none; } }
/* 2: harfler yukarıdan düşer, sonra soldan sağa bir ışık turu */
.fx-tribun2 .tb-word path { opacity: 0; animation: tbDrop .24s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 45ms) forwards, golChase .6s linear calc(1s + var(--i) * 40ms) 1; }
@keyframes tbDrop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
/* 3: süpürme bandı kelimeyi tek hamlede açar, ardından bir nefes uzama */
.fx-tribun3 .tb-word { animation: tbReveal .34s cubic-bezier(.5, 0, .3, 1) both; }
.fx-tribun3 .tb-word path { animation: golStretch 1s cubic-bezier(.2, .8, .2, 1) .5s 2 both; }
@keyframes tbReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.plate.goal { animation: plateKick .45s ease-out; }
@keyframes golFlash { 0% { color: var(--plate-text); } 50% { color: rgba(0, 0, 0, .55); } }
@keyframes plateKick { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
#score .changed { animation: scoreBump .6s ease-out; display: inline-block; }
@keyframes scoreBump { 0% { transform: scale(1.5); color: var(--gold); } 100% { transform: scale(1); } }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.3); } 100% { transform: none; } }

/* Gol iptali */
#var-banner {
  position: absolute; left: 810.5px; top: 762px; transform: translateX(-50%);
  background: #111; color: #fffcf3; padding: 6px 17px; border-radius: 4.91px; font-size: 27px; box-shadow: 5.52px 9.2px 14.72px rgba(0, 0, 0, .45);
}

/* Manşet (mesaj) modu: iki plakanın kapladığı alanı tek plaka kaplar */
#headline { position: absolute; left: 256.65px; top: 878.9px; width: 1110.25px; height: 111.38px; border-radius: 4.91px; overflow: hidden; box-shadow: 5.52px 9.2px 14.72px rgba(0, 0, 0, .45); }
#headline .text { position: absolute; left: 0; right: 0; text-align: center; top: 20.9px; font-size: 72.85px; line-height: 72.85px; white-space: nowrap; }
#scoreboard.headline-mode .plate, #scoreboard.headline-mode #score, #scoreboard.headline-mode .cards { display: none; }
#scoreboard:not(.headline-mode) #headline { display: none; }

/* ---------- Alt karartma ve kayan yazı ---------- */
#shade { position: absolute; left: 0; top: 859.68px; width: 1920px; height: 220.32px; background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 85%); }
#ticker { position: absolute; left: 0; right: 0; top: 1030px; height: 30px; overflow: hidden; white-space: nowrap; }
#ticker .track { display: inline-block; padding-left: 47.57px; animation: tick var(--ticker-dur, 60s) linear infinite; }
#ticker span b { font-weight: 700; }
#ticker span em { font-style: normal; font-size: 15px; font-weight: 600; opacity: .75; margin-left: 4px; }
#ticker span { display: inline-block; vertical-align: top; color: #fffcf3; font-size: 20.4px; line-height: 20.4px; margin-top: 5.85px; font-weight: 500; }
#ticker span.sep { width: 2.4px; height: 24.3px; margin: 2.85px 22.8px 0; background: #fffcf3; font-size: 0; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sağ üst panel ---------- */
/* Koordinatlar panel görselinin sol üstüne göredir (tuvalde 1361.54, 113.42). */
#side { position: absolute; left: 1361.54px; top: 113.42px; width: 569px; height: 693px; background: url("../img/vec/plate-side.svg") no-repeat; }
#side .card { position: absolute; inset: 0; background: none; box-shadow: none; border-radius: 0; padding: 0; }
#side .title {
  position: absolute; left: 73.92px; top: 9.68px; width: 399.3px; height: 56.61px; z-index: 2;
  background: #fffcf3; border-radius: 6.88px; box-shadow: 3.78px 6.3px 10.08px rgba(0, 0, 0, .45);
  /* Büyük harf gövdesi kutunun tam ortasında (ölçüldü: üst ve alt boşluk eşit, sağ-sol eşit) */
  text-align: center; font-size: 39.76px; line-height: 39.76px; padding-top: 9.87px; white-space: nowrap; overflow: hidden;
}
#side .meta span { position: absolute; top: 82.73px; font-size: 13.6px; line-height: 13.6px; font-weight: 700; white-space: nowrap; }
#side .meta .l { left: 75.86px; }
#side .meta .c { left: 278.96px; transform: translateX(-50%); }
#side .meta .r { right: 95.94px; }
#side .footnote { position: absolute; left: 56.46px; top: 579.19px; width: 340px; z-index: 2; font-size: 13.3px; line-height: 17.9px; font-weight: 600; }
.side-view { position: absolute; inset: 0; }

/* Saha (İlk 11 / Oyuncu puanları) — saha çizimi tasarımın kendisi (img/pitch.svg) */
.pitch-img { position: absolute; left: 18.46px; top: 81.58px; width: 520px; height: 540px; }
.player { position: absolute; width: 149.81px; height: 130.51px; }
.player .jersey { position: absolute; left: 0; top: 0; width: 149.81px; height: 130.51px; overflow: visible; }
.player { color: #fffcf3; }
.player .pname { position: absolute; left: 0; width: 145.5px; top: 38.51px; text-align: center; font-size: 12.37px; line-height: 12.37px; white-space: nowrap; transform: scaleX(.968); transform-origin: 72.75px 0; }
.player .num { position: absolute; left: 0; width: 145.5px; top: 49.31px; text-align: center; font-size: 40.86px; line-height: 40.86px; transform: scaleX(.968); transform-origin: 72.75px 0; }
.player.gk .pname, .player.gk .num { color: #1d4430; }
.side-view > .sub { position: absolute; display: flex; align-items: flex-start; gap: 5.2px; font: 600 13.07px/1 var(--font-text); color: #010101; white-space: nowrap; z-index: 4; }
.side-view > .sub img { width: 17.9px; height: 22.6px; }
.side-view > .sub span { padding-top: 4.2px; }
.player .sub { position: absolute; left: 94.1px; top: 6.9px; display: flex; align-items: flex-start; gap: 5.2px; font: 600 13.07px/1 var(--font-text); color: #010101; white-space: nowrap; z-index: 4; }
.player .sub img { width: 17.9px; height: 22.6px; }
.player .sub span { padding-top: 4.2px; }
/* Sağ yarıdaki oyuncularda değişiklik etiketi forma solunda (kart dışına taşmasın). */
.player .sub.flip { left: auto; right: 94.1px; flex-direction: row-reverse; }
.player .rating { position: absolute; left: 82.9px; top: 81.2px; width: 44.28px; height: 31.21px; border-radius: 5.73px; font: 600 20px/31.21px var(--font-text); padding-top: 1.7px; box-sizing: border-box; line-height: 29.51px; text-align: center; color: #fffcf3; background: var(--rating-hi); box-shadow: 2px 2px 2px rgba(0, 0, 0, .3); z-index: 2; }
/* İlk 11 / puanlar: alt kısım tek parça (sağ alttaki çentik yok), yedekler ortalı — tasarımcı, 2026-11-21 */
#side.full { background-image: url("../img/vec/plate-side-full.svg"); }
.player .subicon { position: absolute; left: 23px; top: 6px; width: 23.27px; height: 29.38px; z-index: 3; }
#side .subs { text-align: center; }
#side .subs { position: absolute; left: 56.46px; top: 579.19px; width: 432px; font-size: 13.3px; line-height: 17.9px; font-weight: 600; }
#side .subs b { font-weight: 900; }

/* Sağ üst istatistikler (Sag-ust-panel-istatistikler.svg) */
.srow { position: absolute; left: 66.56px; width: 414.5px; height: 54.7px; border-radius: 6.43px; background: #e5ddc6; box-shadow: 3.96px 3.96px 3.96px rgba(0, 0, 0, .3); }
.srow .label { position: absolute; left: 0; right: 0; top: 7.2px; text-align: center; font-size: 14.86px; line-height: 14.86px; font-weight: 700; white-space: nowrap; }
.srow .v { position: absolute; top: 18.17px; width: 90px; margin-left: -45px; text-align: center; font-size: 32.11px; line-height: 32.11px; }
.srow .v.h { left: 34.2px; }
.srow .v.a { left: 383.9px; }
.srow .track { position: absolute; top: 27.9px; width: 139.8px; height: 18.9px; border-radius: 6.43px; background: #fffcf3; box-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, .3); }
.srow .track.h { left: 63.6px; }
.srow .track.a { left: 211px; }
.srow .bar { position: absolute; top: 30.9px; height: 12.9px; border-radius: 6.43px; box-shadow: 1.1px 1.1px 1.38px rgba(0, 0, 0, .3); transition: width .6s ease; }
.srow .bar.h { right: 214.6px; }
.srow .bar.a { left: 215.2px; }
#side .footnote { left: 69.36px; top: 580.29px; width: 290px; color: #998675; }

/* İstatistikler / xG */
.stat { position: relative; height: 56px; margin-bottom: 9px; background: linear-gradient(180deg, #fffef8, #f3ecd8); border-radius: 4px; box-shadow: 3px 5px 8px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 0; }
.stat .label { position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 12px; font-weight: 700; }
.stat .v { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 34px; width: 70px; }
.stat .v.r { text-align: right; }
.stat .bars { flex: 1; display: flex; gap: 8px; align-items: center; padding: 0 8px; }
.stat .bar { flex: 1; height: 8px; border-radius: 5px; background: #fffcf3; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); overflow: hidden; display: flex; }
.stat .bar.home { justify-content: flex-end; }
.stat .bar i { display: block; height: 100%; border-radius: 5px; transition: width .6s ease; }

/* Puan durumu (Sag-ust-panel-puan-durumu.svg) */
.st-head span { position: absolute; top: 80.69px; font-size: 13.07px; line-height: 13.07px; font-weight: 600; color: #998675; white-space: nowrap; }
.st-head span.c { transform: translateX(-50%); }
.st-row { position: absolute; left: 0; width: 100%; height: 22.6px; }
.st-row b { position: absolute; top: 0; height: 22.6px; border-radius: 3.63px; background: #fffcf3; box-shadow: 1.45px 1.45px 1.46px rgba(0, 0, 0, .3); font-size: 13.07px; line-height: 22.6px; font-weight: 700; text-align: center; padding-top: .3px; }
.st-row .pos { left: 63.16px; width: 24.6px; background: #e5ddc6; }
.st-row .team { left: 91.36px; width: 223.3px; text-align: left; }
.st-row .team i { position: absolute; top: 4.2px; width: 7.2px; height: 14.3px; border-radius: 2.85px; }
.st-row .team i:first-child { left: 10.2px; }
.st-row .team i:nth-child(2) { left: 17.3px; }
.st-row .team span { position: absolute; left: 40.1px; }
.st-row .n { width: 24.6px; }
/* Oyuncu istatistikleri: puan durumu satırının kopyası; değişiklikle girip çıkanlarda küçük yeşil ikon, kartlar mini kart */
.st-row.pl, .st-row.pl b { height: var(--rh, 22.6px); }
.st-row.pl b { line-height: var(--rh, 22.6px); }
.st-row.pl .team i { top: calc((var(--rh, 22.6px) - 14.3px) / 2); }
.st-row.pl .subicon-s { position: absolute; right: 6px; top: calc((var(--rh, 22.6px) - 15.6px) / 2); width: 12.4px; height: 15.6px; }
.st-row .k { display: flex; align-items: center; justify-content: center; gap: 2px; }
.st-row .mc { display: block; width: 8.6px; height: 12.6px; border-radius: 1px; box-shadow: 1px 1px 1px rgba(0, 0, 0, .3); }
.st-row .mc.red { background: var(--red-card); }
.st-row .mc.yellow { background: #ffd400; }

/* Puan durumu (eski tablo) */
table.standings { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 11.5px; }
table.standings th { font-size: 9.5px; color: var(--muted); text-align: center; font-weight: 600; }
table.standings th.team { text-align: left; }
table.standings td { background: #fffef8; height: 21px; text-align: center; font-weight: 600; }
table.standings td.pos { width: 20px; font-weight: 700; }
table.standings td.team { text-align: left; font-weight: 700; padding-left: 4px; }
table.standings td.team i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
table.standings tr.hl td { background: #fff2c7; }

/* Chat (Sag-ust-panel-chat.svg) */
.chat-card { position: absolute; left: 0; top: 0; width: 569px; height: 693px; }
.chat { position: absolute; left: 84.76px; top: 91.52px; width: 392px; height: 492px; /* alt çerçeveye nefes payı */ overflow: hidden; display: flex; flex-direction: column; gap: 13.83px; font-size: 11.85px; line-height: 14.5px; font-weight: 500; }
.chat p { margin: 0; }
.chat p b { font-weight: 700; }
.chat .super { position: relative; flex: none; width: 381.44px; margin: 6.8px 0 9.6px -.6px; padding: 16.3px 24px 21px 25px; filter: drop-shadow(5.08px 9.15px 7.12px rgba(0, 0, 0, .45)); }
.chat .super .bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; }
.chat .super b { display: flex; align-items: center; font-size: 13.75px; line-height: 16.7px; font-weight: 700; margin-bottom: 14.7px; }
.chat .super .amt { padding-left: 9px; margin-left: 9px; border-left: 2px solid #010101; line-height: 16.4px; }
.chat .super .msg { display: block; font-size: 13.75px; line-height: 16.7px; font-weight: 500; }

/* Ekran paylaşımı çerçevesi (Sag-ust-panel-frame-screen-share.svg; tuvalde 1353.68, 96.42) */
#side.screenshare { background: none; overflow: visible; }
/* Paylaşılan görüntü çerçevenin penceresine tam oturur: pencere şekli tasarımın çerçevesinden çıkarılan maske
   (img/plate-screenshare-mask.png). Çerçeve PNG'si ve iç gölgesi en üstte. */
#ss { position: absolute; inset: 0; pointer-events: none; }
#ss video { position: absolute; left: 43.14px; top: 31px; width: 459px; height: 577px; object-fit: cover; background: transparent;
  -webkit-mask: url("../img/vec/plate-screenshare-mask.svg") no-repeat -50.99px -48px / 585px 712px; mask: url("../img/vec/plate-screenshare-mask.svg") no-repeat -50.99px -48px / 585px 712px; }
#ss video:not(.on) { visibility: hidden; }
#ss img { position: absolute; left: -7.86px; top: -17px; width: 585px; height: 712px; z-index: 3; }
#side.screenshare .title, #side.screenshare .side-view { display: none; }

/* Sağ panel geçişi: eski kutu solar, yeni kutu sağdan kayarak gelir (abartısız, ~0,6 sn) */
#side.side-in { z-index: 2; animation: ole-side-in .55s cubic-bezier(.22, 1, .36, 1) .12s both; }
#side.side-out { z-index: 1; pointer-events: none; animation: ole-side-out .35s ease-out both; }
@keyframes ole-side-in { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes ole-side-out { from { opacity: 1; } to { opacity: 0; transform: scale(.985); } }

/* ---------- Sağ alt panel ---------- */
/* Köşe kartı, logo kartı ve skorbordla aynı çizgide: sekme üstü 820.42, gövde 859.42–1008.42 (plate-corner-eq.png = tasarım görseli, gövdesi 2 px uzatıldı). */
#corner { position: absolute; left: 1386.4px; top: 820.42px; width: 488px; height: 188.5px; background: url("../img/vec/plate-corner-flat.svg") no-repeat 0 0 / 488px 188.5px; border-radius: 0; box-shadow: none; filter: drop-shadow(11.05px 18.41px 29.46px rgba(0, 0, 0, .45)); padding: 0; }
#corner .tab { position: absolute; top: 21.8px; left: 367px; width: 120.5px; right: auto; text-align: center; white-space: nowrap; height: auto; padding: 0; background: none; clip-path: none; font-size: 15.4px; line-height: 15.4px; font-weight: 500; letter-spacing: -.037em; color: #998675; }
#corner .inner { position: absolute; left: 32.99px; top: 58.48px; width: 433.47px; height: 111.38px; background: #fffcf3; border-radius: 6.88px; box-shadow: 5.52px 9.2px 14.72px rgba(0, 0, 0, .45); padding: 0 24px 0 36.1px; display: flex; flex-direction: column; justify-content: center; }
#corner .sc-head { font-size: 18.7px; line-height: 22.4px; font-weight: 600; margin-bottom: 7.4px; display: flex; align-items: center; }
#corner .sc-head .amt { padding-left: 11px; margin-left: 11px; border-left: 2.6px solid var(--ink); line-height: 22.3px; }
#corner .sc-msg { font-size: 18.7px; line-height: 22.4px; font-weight: 500; }
/* Abonelik ve xG: içerik doğrudan plakanın üstünde (Sa-alt-panel-abonelik.svg / -xG.svg ölçüleri). */
#corner .inner.bare { left: 0; top: 1.34px; width: 100%; height: 100%; background: none; box-shadow: none; border-radius: 0; padding: 0; display: block; }
#corner .sub-line { position: absolute; left: 32.99px; width: 433.47px; text-align: center; font-size: 38.6px; line-height: 38.6px; letter-spacing: -1px; white-space: nowrap; }
#corner .sub-line.l1 { top: 63.89px; }
#corner .sub-line.l2 { top: 100.49px; }
#corner .sub-line small { font-size: 24.75px; }
#corner .sub-links { position: absolute; left: 32.99px; width: 433.47px; top: 147.48px; text-align: center; white-space: nowrap; font-size: 16.85px; line-height: 16.85px; }   /* hesap satırı ortalı; hesap adı uzayınca da ortada kalır */
#corner .sub-link { font-size: 16.85px; line-height: 16.85px; font-weight: 600; letter-spacing: -.4px; color: #998675; white-space: nowrap; }
#corner .sub-link .ph { font-style: normal; opacity: .5; }   /* yer tutucu (hesap girilmemiş): %50 soluk */
#corner .sub-link.ig { margin-left: 37.8px; }   /* tasarımdaki iki hesap arası boşluk */
#corner .xrow { position: absolute; left: 40.5px; width: 416.6px; height: 52.6px; border-radius: 6.19px; background: #e5ddc6; box-shadow: 3.96px 3.96px 3.96px rgba(0, 0, 0, .3); }
#corner .xrow .label { position: absolute; left: 0; right: 0; top: 5.5px; text-align: center; font-size: 14.6px; line-height: 14.6px; font-weight: 700; white-space: nowrap; }
#corner .xrow .v { position: absolute; top: 17.47px; width: 90px; margin-left: -45px; text-align: center; font-size: 30.9px; line-height: 30.9px; }
#corner .xrow .v.h { left: 35.6px; }
#corner .xrow .v.a { left: 386.3px; }
#corner .xrow .track { position: absolute; top: 26.8px; width: 139.4px; height: 18.2px; border-radius: 6.19px; background: #fffcf3; box-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, .3); }
#corner .xrow .track.h { left: 65.1px; }
#corner .xrow .track.a { left: 211.9px; }
#corner .xrow .bar { position: absolute; top: 29.7px; height: 12.4px; border-radius: 6.19px; box-shadow: 1.1px 1.1px 1.38px rgba(0, 0, 0, .3); transition: width .6s ease; }
#corner .xrow .bar.h { right: 215.5px; }
#corner .xrow .bar.a { left: 215.9px; }

/* Veri tazeliği uyarısı yalnızca ?debug=1 iken görünür; yayına asla hata yazılmaz. */
#debug { position: absolute; left: 12px; top: 12px; font: 600 13px var(--font-text); color: #fffcf3; background: rgba(0, 0, 0, .55); padding: 6px 10px; border-radius: 4px; }

.empty { padding: 40px 10px; text-align: center; font-weight: 600; color: var(--muted); }

/* Canlı puan durumu animasyonu (skor değişince) */
.st-row { transition: top .9s cubic-bezier(.34, 1.56, .64, 1); }
.st-row.moving { z-index: 3; }
.st-row.moving.up { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
@keyframes ole-bump { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 55% { transform: scale(.9); } 75% { transform: scale(1.12); } 100% { transform: scale(1); } }
.st-row .bump { animation: ole-bump .9s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
#side .empty { position: absolute; left: 0; right: 0; top: 300px; }

/* Sol alt ve sağ alt kartlarda üst sekme ve sekme yazısı (takipçi, ABONE OL) yok (tasarımcı, 2026-11-21) */
#logo-card .tab, #corner .tab { display: none !important; }

/* Sağ üst panel: alt çıkıntı yok, gövde (x 33–512, y 26–628) içinde sağ-sol boşluklar eşit (tasarımcı, 2026-11-21) */
#side .title { left: 72.85px; }
#side[data-kind="lineup"] .side-view, #side[data-kind="ratings"] .side-view,
#side[data-kind="standings"] .side-view, #side[data-kind="players"] .side-view { transform: translateX(-1.05px); }
#side .meta .r { right: 97.76px; }
#side .meta .c { left: 273.55px; }
.srow { left: 65.25px; }
#side .footnote, #side .subs { left: 72.5px; width: 400px; text-align: center; }
#side .subs { left: 57.55px; width: 432px; }
/* Chat (tasarımcı, 2026-11-21): yazılar tasarımdaki yerinde; son satır ile kart altı arası en az başlık ile ilk satır arası kadar
   (sığmayan en eski mesaj düşer). Süper mesaj kutusu kartta sağ-sol eşit, yüksekliği yazısına göre, iç boşluklar eşit. */
.chat { left: 84.76px; top: 86.9px; width: 376px; height: 505px; justify-content: flex-start; overflow: visible; }   /* gölge kırpılmasın; sığmayan mesaj zaten düşer */
.chat p { letter-spacing: -.19px; }   /* tasarımdaki yazı sıklığı (Illustrator izlemesi) */
.chat .super { width: 376.62px; padding: 23.6px 24px 22.9px 24px; }

/* İstatistik: 8 satır sığsın diye yalnız satır kutusu 54.7 → 51 px (üst/alt iç boşluk eşit kırpıldı). Yazı boyutları, çubuklar ve kenarlar tasarımdakiyle birebir aynı. */
.srow.compact { height: 51px; }
.srow.compact .label { top: 5.35px; }
.srow.compact .v { top: 16.32px; }
.srow.compact .track { top: 26.05px; }
.srow.compact .bar { top: 29.05px; }
