/* Yayın Asistanı: düz CSS, açık tema, yüksek kontrast. Ekrana 2 m uzaktan bakılır: büyük punto, az tıklama. */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #eef0f3; --panel: #fff; --ink: #0d1117; --ink-2: #3a4351; --mute: #566170;
  --line: #d9dee5; --line-2: #e9ecf0;
  --teal: #1f6f6b; --teal-dark: #164f4c; --teal-soft: #e0efee;
  --yellow: #ffd21f; --red: #c62828; --red-soft: #fdeaea; --green: #17803d; --green-soft: #e4f4ea;
  --radius: 12px; --shadow: 0 1px 2px rgba(13, 17, 23, .06), 0 2px 6px rgba(13, 17, 23, .05);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
b { font-weight: 800; }

/* ---- kabuk ---- */
.ya-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.ya-topbar { flex: none; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--ink); color: #fff; }
.ya-brand { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ya-brand small { margin-left: 8px; font-size: 13px; font-weight: 500; color: #9aa6b4; }
.ya-demo { padding: 3px 10px; border: 1px solid var(--yellow); border-radius: 999px; color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.ya-ekran-link { margin-left: auto; padding: 8px 14px; border-radius: 8px; background: #1b2530; color: #fff; font-weight: 600; text-decoration: none; }
.ya-ekran-link:hover { background: #26323f; }
.ya-ekran-link[aria-disabled='true'] { opacity: .4; pointer-events: none; }
.ya-tabs { display: none; flex: none; gap: 6px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ya-tab { flex: 1; padding: 11px 0; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 16px; font-weight: 700; }
.ya-tab.is-on { background: var(--ink); color: #fff; }
.ya-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 440px; grid-template-rows: minmax(0, 1fr); gap: 12px; padding: 12px; }
.ya-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.ya-pane--matches { gap: 0; overflow: hidden; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.ya-pane--match { container-type: inline-size; }
@media (max-width: 1099px) {
  .ya-tabs { display: flex; }
  .ya-main { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .ya-pane { display: none; }
  .ya-app[data-tab='matches'] .ya-pane--matches, .ya-app[data-tab='match'] .ya-pane--match,
  .ya-app[data-tab='analyses'] .ya-pane--analyses { display: flex; }
}

/* ---- ortak: düğme, çip, pil, durum kutuları ---- */
.ya-btn { padding: 10px 18px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); font-size: 16px; font-weight: 700; }
.ya-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.ya-btn:disabled { opacity: .45; }
.ya-btn--primary { padding: 12px 26px; background: var(--ink); color: #fff; font-size: 18px; }
.ya-btn--primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.ya-btn--danger { border-color: var(--red); color: var(--red); }
.ya-btn--danger:hover:not(:disabled) { background: var(--red); }
.ya-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ya-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 700; }
.ya-chip:hover { border-color: var(--ink-2); }
.ya-chip.is-sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.ya-chip.is-zero:not(.is-sel) { opacity: .6; }
.ya-chip--minute { padding: 8px 20px; font-size: 18px; }
.ya-chip--live.is-sel { background: var(--yellow); border-color: var(--yellow); color: #000; }
.ya-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 800; text-align: center; }
.ya-chip.is-sel .ya-count { background: #fff; color: var(--ink); }
.ya-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 3px rgba(229, 57, 53, .2); animation: ya-pulse 1.6s ease-in-out infinite; }
.ya-mode { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 20px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ya-mode--live { background: var(--yellow); color: #000; }
.ya-mode--replay { background: var(--teal); color: #fff; }
.ya-mode--prematch { background: #6b7280; color: #fff; }
.ya-mode--sm { padding: 2px 10px; font-size: 12px; }
.ya-empty { padding: 14px 8px; color: var(--mute); font-size: 15px; }
.ya-note { color: var(--mute); font-size: 14px; }
.ya-h { margin-bottom: 8px; color: var(--mute); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ya-error { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--red-soft); color: #7f1d1d; font-weight: 600; }
.ya-error--bar { flex-direction: row; align-items: center; justify-content: space-between; }
.ya-skels { display: flex; flex-direction: column; gap: 10px; padding: 8px; }
.ya-skel { border-radius: var(--radius); background: linear-gradient(90deg, #e5e8ec 25%, #f3f5f7 40%, #e5e8ec 60%); background-size: 400% 100%; animation: ya-shimmer 1.4s ease infinite; }
.is-loading { opacity: .6; transition: opacity .15s; }
.ya-toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transform: translateX(-50%); animation: ya-toast-in .18s ease-out; }

/* ---- sol: maçlar ---- */
.ya-list-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ya-list-head { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.ya-list-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ya-list-date { color: var(--ink-2); font-size: 15px; font-weight: 700; }
.ya-dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ya-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; border: 2px solid transparent; border-radius: 10px; background: var(--bg); color: var(--ink-2); }
.ya-date-wd { color: var(--mute); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ya-date-num { font-size: 19px; font-weight: 800; line-height: 1.15; }
.ya-date.is-today { border-color: var(--teal); }
.ya-date.is-today .ya-date-wd { color: var(--teal); font-weight: 800; }
.ya-date.is-sel { border-color: var(--ink); background: var(--ink); color: #fff; }
.ya-date.is-sel .ya-date-wd { color: #c8d0da; }
.ya-input { width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.ya-input:focus { border-color: var(--teal); outline: none; }
.ya-hint { color: var(--mute); font-size: 13px; }
.ya-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; }
.ya-group { margin-top: 10px; }
.ya-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ya-group--live .ya-group-title { color: #8a6d00; }
.ya-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; width: 100%; padding: 9px 8px; border-radius: 10px; text-align: left; }
.ya-row:hover { background: var(--bg); }
.ya-row.is-sel { background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--teal); }
.ya-pill { padding: 5px 0; border-radius: 8px; font-size: 15px; font-weight: 800; text-align: center; }
.ya-pill--live { background: var(--yellow); color: #000; }
.ya-pill--done { background: #e3e6ea; color: var(--ink-2); }
.ya-pill--soon { padding: 3px 0; border: 2px solid var(--line); background: #fff; }
.ya-teams, .ya-scores { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 600; line-height: 1.25; }
.ya-teams > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ya-scores { align-items: flex-end; min-width: 18px; font-size: 17px; font-weight: 800; }
.ya-row-sub { grid-column: 2 / 4; color: var(--mute); font-size: 12px; }
.ya-more { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 2px dashed var(--line); border-radius: 10px; color: var(--teal); font-weight: 700; }

/* ---- orta: maç ve anlık durum ---- */
.ya-center { display: flex; flex-direction: column; gap: 12px; }
.ya-placeholder { max-width: 420px; margin: auto; color: var(--mute); font-size: 17px; text-align: center; }
.ya-placeholder-title { margin-bottom: 8px; color: var(--ink); font-size: 28px; font-weight: 800; }
.ya-header, .ya-replay, .ya-live, .ya-block-card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.ya-header { padding: 16px 20px 14px; }
.ya-header-top { display: flex; align-items: center; gap: 14px; }
.ya-league { flex: 1; min-width: 0; overflow: hidden; color: var(--mute); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ya-asof { flex: none; color: var(--ink-2); font-size: 16px; white-space: nowrap; }
.ya-asof b { color: var(--ink); font-size: 18px; }
.ya-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 14px; }
.ya-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ya-team--home { justify-content: flex-end; text-align: right; }
.ya-team-name { font-size: 30px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.ya-score { display: flex; align-items: baseline; gap: 14px; font-size: 80px; font-weight: 800; line-height: 1; }
.ya-score-sep { color: var(--mute); font-weight: 600; }
.ya-score--pre { font-size: 64px; }
.ya-period { margin-top: 6px; color: var(--mute); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.ya-reds { display: inline-flex; gap: 3px; }
.ya-red { width: 14px; height: 20px; border-radius: 3px; background: var(--red); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ya-notes { padding: 0 6px; color: var(--mute); font-size: 13px; }
.ya-notes li { margin: 2px 0; }
@container (max-width: 540px) {
  .ya-header-top { flex-direction: column; gap: 6px; }
  .ya-league { order: 3; flex: none; max-width: 100%; }
  .ya-asof { order: 2; }
  .ya-ev { grid-template-columns: 1fr 56px 1fr; font-size: 15px; }
  .ya-scoreboard { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  .ya-team--home { justify-content: center; text-align: center; }
  .ya-team-name { font-size: 26px; }
  .ya-score { font-size: 64px; }
}
.ya-replay { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; }
.ya-replay-row { display: flex; align-items: center; gap: 16px; }
.ya-replay-label { flex: none; font-size: 18px; font-weight: 600; }
.ya-replay-label b { font-size: 24px; }
.ya-range { flex: 1; min-width: 0; height: 10px; border-radius: 5px; background: var(--line); -webkit-appearance: none; appearance: none; }
.ya-range::-webkit-slider-thumb { width: 32px; height: 32px; border: 4px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--teal), 0 2px 6px rgba(0, 0, 0, .25); cursor: grab; -webkit-appearance: none; }
.ya-range::-moz-range-thumb { width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); cursor: grab; }
.ya-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; }
.ya-snaps { display: flex; flex-wrap: wrap; gap: 8px; }
.ya-snap { padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 17px; font-weight: 700; }
.ya-snap.is-on { border-color: var(--yellow); background: var(--yellow); color: #000; }
.ya-block-card { padding: 14px 18px; }
.ya-ev { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 17px; }
.ya-ev-side { display: flex; min-width: 0; }
.ya-ev--home > .ya-ev-side:first-child { justify-content: flex-end; }
.ya-ev-min { color: var(--ink-2); font-size: 18px; font-weight: 800; text-align: center; }
.ya-ev-body { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.ya-ev--home .ya-ev-body { flex-direction: row-reverse; }
.ya-ev-player { font-weight: 600; overflow-wrap: anywhere; }
.ya-ev-player i { color: var(--mute); font-size: 13px; font-style: normal; font-weight: 400; }
.ya-tag { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ya-tag--goal { background: var(--teal); color: #fff; }
.ya-tag--yellow { background: var(--yellow); color: #000; }
.ya-tag--red { background: var(--red); color: #fff; }
.ya-tag--miss { background: #e3e6ea; color: var(--ink-2); }
.ya-legend { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.ya-dot { display: inline-block; width: 12px; height: 12px; margin: 0 8px; border-radius: 50%; }
.ya-dot--home, .ya-bar-home { background: var(--teal); }
.ya-dot--away, .ya-bar-away { background: #2b3440; }
.ya-stat { padding: 8px 0; }
.ya-stat-row { display: grid; grid-template-columns: 84px 1fr 84px; align-items: baseline; }
.ya-stat-val { font-size: 24px; font-weight: 800; }
.ya-stat-val:last-child { text-align: right; }
.ya-stat-label { color: var(--ink-2); font-size: 18px; font-weight: 600; text-align: center; }
.ya-bar { display: flex; gap: 3px; height: 12px; margin-top: 6px; overflow: hidden; border-radius: 6px; }
.ya-bar.is-empty span { background: var(--line); }

/* ---- sağ: analizler ve kart ---- */
.ya-analyses, .ya-analyses-body, .ya-block { display: flex; flex-direction: column; gap: 12px; }
.ya-pane-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 6px; background: var(--bg); }
.ya-pane-title { font-size: 20px; font-weight: 800; }
.ya-highlights { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--teal-soft); }
.ya-highlights .ya-h { margin: 0; color: var(--teal-dark); }
.ya-block { gap: 10px; }
.ya-block-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; font-weight: 800; }
.ya-block-note { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel); }
.ya-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-left: 5px solid var(--teal); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.ya-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ya-card-market { color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ya-card-text { font-size: 18px; font-weight: 500; line-height: 1.4; }
.ya-badge { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ya-badge--hit { background: var(--green-soft); color: var(--green); }
.ya-badge--miss { background: var(--red-soft); color: var(--red); }
.ya-badge--unk { background: #e3e6ea; color: var(--ink-2); }
.ya-card-result { padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ya-card-result--hit { background: var(--green-soft); color: #115c2b; }
.ya-card-result--miss { background: var(--red-soft); color: #8e1c1c; }
.ya-card-result--unk { background: var(--bg); color: var(--ink-2); }
.ya-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ya-source { padding: 6px 2px; color: var(--teal); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ya-actions { display: flex; gap: 4px; }
.ya-icon-btn { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; line-height: 1; opacity: .6; filter: grayscale(1); }
.ya-icon-btn:hover { background: var(--bg); opacity: 1; }
.ya-icon-btn.is-on { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); opacity: 1; filter: none; }
.ya-send { padding: 11px 14px; border: 2px solid var(--teal); border-radius: 10px; background: #fff; color: var(--teal); font-size: 16px; font-weight: 800; }
.ya-send:hover:not(:disabled) { background: var(--teal); color: #fff; }
.ya-send--sending { opacity: .6; }
.ya-send--sent { background: var(--teal); color: #fff; }
.ya-send--error { border-color: var(--red); color: var(--red); }
.ya-evidence { overflow-x: auto; }
.ya-evidence table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ya-evidence th { padding: 4px; color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.ya-evidence td { padding: 6px 4px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.ya-evidence td.ya-ev-opp { font-weight: 700; white-space: normal; }
.ya-ev-hit { font-weight: 800; text-align: center; }
.is-hit .ya-ev-hit { color: var(--green); }
.is-miss .ya-ev-hit { color: var(--red); }
.ya-ev-note td { padding: 0 4px 6px; border: 0; color: var(--mute); font-size: 12px; }

/* ---- /ekran: stüdyo ekranı ---- */
.ek-body { overflow: hidden; background: #060a0f; color: #fff; }
.ek-root { position: relative; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 2fr 1fr; }
.ek-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 40px; color: #5b6878; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.ek-status { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: #2fbf71; }
.ek-status.is-off { background: #e53935; }
.ek-band { display: flex; align-items: center; padding: 0 56px; border-left: 16px solid var(--teal); background: linear-gradient(180deg, #0f1c24, #0a1218); }
.ek-item { animation: ek-in .7s cubic-bezier(.2, .7, .2, 1); }
.ek-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-bottom: 14px; font-size: clamp(22px, 2vw, 40px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ek-market { color: #6fd1c9; }
.ek-fixture { color: #aab6c3; }
.ek-text { font-size: clamp(40px, 4.2vw, 96px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ek-text b { color: var(--yellow); font-weight: 800; }
.ek-text--empty { color: #5b6878; font-weight: 600; animation: ek-in .7s ease both; }
.ek-hint { position: absolute; right: 40px; bottom: 24px; color: #5b6878; font-size: 18px; }

@keyframes ya-pulse { 50% { opacity: .35; } }
@keyframes ya-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ya-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes ek-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
