/* Tutkusports — canlı maç izleme */
:root {
  --bg: #050507;
  --panel: #0c0d12;
  --panel-2: #13151c;
  --line: rgb(255 255 255 / .07);
  --line-2: rgb(255 255 255 / .13);
  --text: #f4f5f8;
  --muted: #8b90a0;
  --faint: #5b6070;
  --iris: #8f7cff;
  --sky: #4cc9f0;
  --mint: #5ef2c2;
  --live: #ff4d5e;
  --grad: linear-gradient(120deg, var(--iris), var(--sky) 55%, var(--mint));
  --r: 22px;
  --header: 68px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--text); color: #000; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 10px; }
:where(button) { transition: background-color .2s, color .2s, scale .15s ease-out, opacity .2s; }
:where(button):active { scale: .96; }

/* Ambient */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .13; }
.aurora i:first-child { background: var(--iris); left: -20vmax; top: -30vmax; }
.aurora i:last-child { background: var(--sky); right: -25vmax; top: 10vh; opacity: .08; }

/* ---------- Header ---------- */
.topbar {
  height: var(--header); display: flex; align-items: center; gap: 1rem;
  padding-inline: clamp(1rem, 3vw, 2rem); max-width: 1680px; width: 100%; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #050507; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.live-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; color: #ffd6da; background: rgb(255 77 94 / .12); border: 1px solid rgb(255 77 94 / .28); white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.8s infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 77 94 / .7); } 70%, 100% { box-shadow: 0 0 0 7px rgb(255 77 94 / 0); } }

.search {
  margin-left: auto; display: flex; align-items: center; gap: .6rem; width: min(360px, 100%);
  padding: .6rem .7rem .6rem .95rem; border-radius: 14px; background: rgb(255 255 255 / .04); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.search:focus-within { border-color: var(--line-2); background: rgb(255 255 255 / .07); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { all: unset; flex: 1; min-width: 0; font-size: .9rem; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
kbd { font: 600 .7rem var(--mono); color: var(--muted); padding: .15rem .45rem; border-radius: 7px; border: 1px solid var(--line-2); }
@media (max-width: 640px) {
  .topbar { height: auto; flex-wrap: wrap; padding-block: .8rem; row-gap: .7rem; }
  .search { order: 3; width: 100%; margin-left: 0; }
  .search kbd { display: none; }
  .live-pill { margin-left: auto; }
}

/* ---------- Layout ---------- */
.watch {
  flex: 1; width: 100%; max-width: 1680px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem;
  padding: .5rem clamp(1rem, 3vw, 2rem) 2rem; align-items: start;
}
.watch > * { min-width: 0; }
.stage { display: grid; gap: 1rem; }

/* Sinema modu: oynatıcı tam genişlik, liste altta */
.watch.theater { grid-template-columns: 1fr; }
.watch.theater .list { position: static; max-height: none; }
.watch.theater .matches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* ---------- Player ---------- */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgb(0 0 0 / .95);
}
.player:fullscreen { border-radius: 0; border: 0; }
.player:focus-visible { outline-offset: 4px; border-radius: var(--r); }

.poster { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.poster-bg { position: absolute; inset: 0;
  background:
    radial-gradient(70% 100% at 0% 50%, color-mix(in oklab, var(--home, #2a2d3a) 45%, transparent), transparent 70%),
    radial-gradient(70% 100% at 100% 50%, color-mix(in oklab, var(--away, #1b1e28) 45%, transparent), transparent 70%),
    radial-gradient(circle at 50% 50%, #12141b, #050507 80%);
}
.poster-bg::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.poster-vs { position: relative; display: flex; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding: 1rem; opacity: .95; }
.pv-team { display: grid; justify-items: center; gap: .7rem; text-align: center; width: clamp(90px, 18vw, 200px); }
.pv-team b { font-size: clamp(.85rem, 1.6vw, 1.2rem); font-weight: 700; line-height: 1.2; }
.pv-team .crest { --s: clamp(56px, 9vw, 112px); filter: drop-shadow(0 16px 30px rgb(0 0 0 / .6)); }
.pv-mid { display: grid; justify-items: center; gap: .3rem; }
.pv-mid strong { font: 700 clamp(1.8rem, 5vw, 3.6rem)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pv-mid span { font: 600 .8rem var(--mono); color: var(--muted); }
.pv-mid span.live { color: var(--live); }
.pv-empty { display: grid; justify-items: center; gap: .4rem; text-align: center; color: var(--muted); }
.pv-empty b { color: var(--text); font-size: 1.15rem; }

.player[data-state="idle"] .big-play,
.player[data-state="idle"] .controls { display: none; }

.big-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); cursor: pointer;
  background: rgb(255 255 255 / .12); backdrop-filter: blur(14px); display: grid; place-items: center;
  box-shadow: 0 20px 60px -10px rgb(0 0 0 / .7);
}
.big-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.big-play:hover { background: rgb(255 255 255 / .22); }
.player[data-state="soon"] .big-play, .player[data-state="ended"] .big-play { display: none; }

.scorebug {
  position: absolute; z-index: 3; left: 1rem; top: 1rem; display: flex; align-items: center; gap: .55rem;
  padding: .4rem .55rem .4rem .45rem; border-radius: 12px; background: rgb(8 9 13 / .72); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); font-size: .82rem; font-weight: 700;
}
.sb-live { font: 700 .62rem var(--mono); letter-spacing: .08em; background: var(--live); color: #fff; padding: .2rem .4rem; border-radius: 6px; }
.sb-team { display: inline-flex; align-items: center; gap: .4rem; }
.sb-team .crest { --s: 18px; }
.sb-score { font: 700 .95rem var(--mono); padding: .05rem .5rem; border-radius: 7px; background: rgb(255 255 255 / .08); font-variant-numeric: tabular-nums; }
.sb-min { font: 700 .75rem var(--mono); color: var(--live); padding-left: .2rem; }
.bump { animation: bump .8s ease-out; }
@keyframes bump { 30% { background: var(--mint); color: #04130d; } }
@media (max-width: 520px) { .scorebug { left: .6rem; top: .6rem; font-size: .72rem; } .sb-team span { display: none; } }

.notice {
  position: absolute; z-index: 4; left: 50%; top: 1rem; translate: -50% 0; max-width: calc(100% - 2rem);
  padding: .6rem 1rem; border-radius: 12px; background: rgb(8 9 13 / .85); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); font-size: .85rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.notice.show { opacity: 1; }
.player:has(.scorebug:not([hidden])) .notice { top: auto; bottom: 5rem; }

/* Controls */
.controls {
  position: absolute; z-index: 3; inset: auto 0 0 0; display: flex; align-items: center; gap: .35rem;
  padding: 2.5rem .75rem .7rem; background: linear-gradient(transparent, rgb(0 0 0 / .75));
  transition: opacity .3s, translate .3s;
}
@media (hover: hover) {
  .player:not(:hover):not(:focus-within) .controls { opacity: 0; translate: 0 6px; }
}
.ctl { height: 40px; min-width: 40px; padding: 0 .55rem; border: 0; border-radius: 10px; background: none; cursor: pointer; display: grid; place-items: center; }
.ctl:hover { background: rgb(255 255 255 / .12); }
.ctl svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#c-play svg { fill: #fff; stroke: none; }
#c-mute[aria-pressed="true"] .wave { opacity: 0; }
#c-theater[aria-pressed="true"] svg rect { fill: rgb(255 255 255 / .3); }
.ctl-live { display: inline-flex; align-items: center; gap: .4rem; font: 700 .72rem var(--mono); letter-spacing: .08em; padding: 0 .5rem; }
.ctl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.vol { display: flex; align-items: center; }
.vol input { width: 0; opacity: 0; transition: width .25s, opacity .25s; accent-color: #fff; }
.vol:hover input, .vol:focus-within input { width: 90px; opacity: 1; margin-inline: .25rem .5rem; }
@media (hover: none) { .vol input { display: none; } }
.ctl-spacer { flex: 1; }
.q-btn { font: 600 .78rem var(--mono); }
.q-menu {
  margin: 0; inset: auto; position-area: top span-left; translate: 0 -8px;
  padding: .35rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(14 15 20 / .96); backdrop-filter: blur(16px);
  color: var(--text); min-width: 150px; transform-origin: bottom right;
}
.q-menu:is(:popover-open) { display: grid; }
@media (prefers-reduced-motion: no-preference) { .q-menu:popover-open { animation: grow .18s ease-out both; } }
@keyframes grow { from { opacity: 0; scale: .94; } }
.q-menu button { display: flex; justify-content: space-between; gap: 1rem; align-items: center; text-align: left; border: 0; background: none; padding: .55rem .7rem; border-radius: 9px; cursor: pointer; font-size: .85rem; }
.q-menu button:hover { background: rgb(255 255 255 / .08); }
.q-menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.q-menu small { font: 700 .6rem var(--mono); color: var(--muted); margin-left: auto; }
@media (max-width: 520px) { #c-theater, .ctl-live { display: none; } }

/* Now playing */
.now { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .25rem .25rem 0; }
.now-main { min-width: 0; }
.now-league { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.now-title { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; margin-top: .2rem; }
.lg-code { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 700 .55rem var(--mono); background: var(--lc, #333); color: #fff; flex: none; }
.pill-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); cursor: pointer; font-size: .85rem; font-weight: 600; }
.pill-btn:hover { background: rgb(255 255 255 / .09); }
.pill-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Crest ---------- */
.crest {
  --s: 40px; width: var(--s); aspect-ratio: 40 / 46; flex: none; display: grid; place-items: center; position: relative;
  clip-path: polygon(50% 0, 100% 13%, 100% 58%, 50% 100%, 0 58%, 0 13%);
  background: linear-gradient(180deg, var(--c1) 0 68%, var(--c2) 68% 100%);
  padding-bottom: calc(var(--s) * .26);
  color: var(--ink, #fff); font: 800 calc(var(--s) * .25)/1 var(--font); letter-spacing: .01em;
}
.crest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .28), transparent 45%); }
.crest.athlete { aspect-ratio: 1; clip-path: circle(50%); padding: 0; background: radial-gradient(circle at 30% 25%, var(--c2), var(--c1) 70%); font-size: calc(var(--s) * .32); }
.crest.sm { font-size: 0; }
.crest.logo { clip-path: none; background: none; padding: 0; aspect-ratio: 1; }
.crest.logo::after { content: none; }
.crest.logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .45)); }
.lg-code.img { background: rgb(255 255 255 / .92); padding: 2px; }
.lg-code.img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Match list ---------- */
.list {
  position: sticky; top: 1rem; max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.list-head { padding: .75rem; display: grid; gap: .7rem; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgb(255 255 255 / .04); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .55rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.seg b { font: 700 .7rem var(--mono); padding: .1rem .4rem; border-radius: 6px; background: rgb(255 255 255 / .08); }
.seg label:has(:checked) span { background: var(--text); color: #08080b; }
.seg label:has(:checked) b { background: rgb(0 0 0 / .1); }
.seg label:first-child:has(:checked) b { background: var(--live); color: #fff; }
.seg label:has(:focus-visible) span { outline: 2px solid var(--sky); outline-offset: 2px; }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { color: var(--text); }
.chip:has(:checked) span { color: var(--text); border-color: transparent; background: rgb(255 255 255 / .1); }
.chip:has(:focus-visible) span { outline: 2px solid var(--sky); outline-offset: 2px; }

.matches { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; overscroll-behavior-y: contain; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .12) transparent; }
.match {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: center;
  padding: .75rem .8rem; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left;
}
.match:hover { background: rgb(255 255 255 / .04); }
.match[aria-current="true"] { background: rgb(143 124 255 / .1); border-color: rgb(143 124 255 / .35); }
.m-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--muted); min-width: 0; }
.m-top .lg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-status { margin-left: auto; flex: none; font: 700 .72rem var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.is-live .m-status { color: var(--live); }
.is-live .m-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-teams { display: grid; gap: .35rem; min-width: 0; }
.m-team { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem; align-items: center; font-size: .9rem; font-weight: 500; }
.m-team .crest { --s: 18px; }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team.lead { font-weight: 700; }
.m-score { display: grid; gap: .35rem; font: 700 .9rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.m-score .lead { color: var(--mint); }
.watching { display: none; align-items: flex-end; gap: 2px; height: 12px; color: var(--iris); }
.watching i { width: 3px; background: currentColor; border-radius: 1px; height: 40%; }
.match[aria-current="true"] .watching { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  .watching i { animation: eq .9s ease-in-out infinite alternate; }
  .watching i:nth-child(2) { animation-delay: -.3s; } .watching i:nth-child(3) { animation-delay: -.6s; }
}
@keyframes eq { to { height: 100%; } }
.list-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.list-empty b { display: block; color: var(--text); margin-bottom: .2rem; }

/* ---------- Mobile: oynatıcı üstte sabit ---------- */
@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; padding-top: 0; gap: 1rem; }
  .stage { display: contents; }
  .player { position: sticky; top: 0; z-index: 10; margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem)); border-radius: 0; border-inline: 0; }
  .now { order: 1; }
  .list { order: 2; position: static; max-height: none; }
  .matches { overflow: visible; }
  #c-theater { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { width: 100%; max-width: 1680px; margin-inline: auto; padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: var(--faint); font-size: .82rem; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a:hover { color: var(--text); }

[hidden] { display: none !important; }

/* =========== v4: kanallar, sohbet, çoklu izle, ışıklar, yardım =========== */
.now-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pill-btn[aria-pressed="true"] { background: var(--text); color: #08080b; border-color: transparent; }
.pill-btn.solid { background: var(--text); color: #08080b; border-color: transparent; }
.pill-btn.solid:hover { background: #fff; }
.pill-btn.icon-only { padding: .6rem; position: relative; }
.pill-btn .tip { position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap; font-size: .75rem; padding: .3rem .55rem; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity .15s; }
.pill-btn:is(:hover, :focus-visible) .tip { opacity: 1; }
@media (max-width: 640px) { .now-actions .pill-btn:not(.icon-only) span { display: none; } .now-actions .pill-btn { padding: .6rem; } }

/* Yardım popover */
.help-pop {
  margin: 0; inset: auto; position-area: top span-left; translate: 0 -10px; width: min(300px, calc(100vw - 2rem));
  padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line-2); background: rgb(14 15 20 / .97); color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .9); transform-origin: bottom right;
}
@media (prefers-reduced-motion: no-preference) { .help-pop:popover-open { animation: grow .18s ease-out both; } }
.help-pop h2 { font-size: .95rem; margin-bottom: .5rem; }
.help-pop ol { margin: 0 0 .9rem; padding-left: 1.1rem; color: var(--muted); font-size: .85rem; display: grid; gap: .25rem; }
.help-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.help-actions .pill-btn { padding: .5rem .85rem; font-size: .8rem; }

/* Işıklar */
.dim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .88); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .dim { animation: fade .4s ease-out both; } }
@keyframes fade { from { opacity: 0; } }
body.lights-off .player, body.lights-off .multiview { z-index: 60; }
body.lights-off .player { position: relative; }
@media (max-width: 1000px) { body.lights-off .player { position: sticky; } }
body.lights-off #lights-btn { position: relative; z-index: 60; }

/* Çoklu izle */
.multiview { display: grid; gap: .6rem; position: relative; }
.mv-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.mv-bar p { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; font-size: .9rem; }
.mv-bar #mv-count { font: 700 .8rem var(--mono); padding: .15rem .5rem; border-radius: 6px; background: rgb(255 255 255 / .08); }
.mv-hint { color: var(--muted); font-size: .8rem; }
.mv-bar div { display: flex; gap: .5rem; }
.mv-bar .pill-btn { padding: .45rem .9rem; font-size: .8rem; }
.mv-grid { aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.tile { position: relative; overflow: hidden; isolation: isolate; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: #0a0b10; color: var(--text); outline-offset: -3px; }
.tile .poster-bg { position: absolute; inset: 0; z-index: -1; }
.tile .t-vs { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.tile .crest { --s: clamp(28px, 4.5vw, 58px); }
.tile .t-score { font: 700 clamp(1rem, 2.4vw, 1.7rem) var(--mono); font-variant-numeric: tabular-nums; }
.tile .t-meta { position: absolute; left: .55rem; top: .55rem; display: flex; gap: .4rem; align-items: center; font: 700 .65rem var(--mono); padding: .25rem .45rem; border-radius: 8px; background: rgb(8 9 13 / .7); }
.tile .t-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.tile .t-audio { position: absolute; right: .55rem; top: .55rem; font-size: .7rem; font-weight: 600; padding: .25rem .5rem; border-radius: 8px; background: rgb(8 9 13 / .7); opacity: 0; }
.t-remove { position: absolute; z-index: 2; right: .55rem; bottom: .55rem; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); background: rgb(8 9 13 / .75); border: 1px solid var(--line-2); font-size: .8rem; opacity: 0; transition: opacity .2s, background-color .2s; }
.t-remove:hover { background: var(--live); }
.tile-wrap:is(:hover, :focus-within) .t-remove { opacity: 1; }
@media (hover: none) { .t-remove { opacity: 1; } }
.tile.active { box-shadow: inset 0 0 0 2px var(--iris); }
.tile.active .t-audio { opacity: 1; }
.tile.empty { cursor: default; color: var(--faint); font-size: .85rem; background: repeating-linear-gradient(135deg, #08090c 0 12px, #0b0c10 12px 24px); }
.tile.empty span { display: grid; justify-items: center; gap: .3rem; }
.tile.empty b { font-size: 1.4rem; font-weight: 400; }
.tile-wrap { position: relative; display: grid; }
.tile-wrap > .tile { width: 100%; height: 100%; }
.match[aria-pressed="true"] { background: rgb(143 124 255 / .1); border-color: rgb(143 124 255 / .35); }
.match .mv-check { display: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); place-items: center; font-size: .7rem; flex: none; }
.mv-on .match .mv-check { display: grid; }
.mv-on .match[aria-pressed="true"] .mv-check { background: var(--iris); border-color: var(--iris); color: #fff; }
.mv-on .match .watching { display: none !important; }
@media (max-width: 1000px) { .multiview { position: sticky; top: 0; z-index: 10; background: var(--bg); padding-block: .5rem; } .mv-hint { display: none; } }

/* Yan panel sekmeleri */
.side-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: .4rem; gap: .25rem; border-bottom: 1px solid var(--line); }
.side-tabs button { position: relative; border: 0; background: none; padding: .6rem .4rem; border-radius: 10px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); }
.side-tabs button:hover { color: var(--text); }
.side-tabs button[aria-selected="true"] { color: var(--text); background: rgb(255 255 255 / .07); }
.chat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-left: .3rem; vertical-align: middle; }
.panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.panel[hidden] { display: none; }

/* İskelet */
.skel { padding: .75rem .8rem; display: grid; gap: .5rem; }
.skel i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .1), rgb(255 255 255 / .05)) 0 0 / 200% 100%; }
.skel i:nth-child(1) { width: 40%; height: 8px; } .skel i:nth-child(2) { width: 70%; } .skel i:nth-child(3) { width: 55%; }
@media (prefers-reduced-motion: no-preference) { .skel i { animation: shimmer 1.2s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Kanallar */
.channels { list-style: none; margin: 0; padding: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; overflow-y: auto; align-content: start; }
.channel { width: 100%; display: grid; gap: .55rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .02); cursor: pointer; text-align: left; }
.channel:hover { border-color: var(--line-2); background: rgb(255 255 255 / .04); }
.channel[aria-current="true"] { border-color: rgb(143 124 255 / .45); background: rgb(143 124 255 / .1); }
.ch-logo { aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--cg); font: 800 .95rem var(--font); letter-spacing: .04em; color: #fff; }
.ch-logo small { font: 700 .6rem var(--mono); opacity: .85; display: block; text-align: center; }
.ch-live { position: absolute; left: .4rem; top: .4rem; font: 700 .55rem var(--mono); letter-spacing: .06em; background: var(--live); padding: .12rem .3rem; border-radius: 4px; }
.ch-name { font-size: .82rem; font-weight: 600; }
.ch-now { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-channel { display: grid; justify-items: center; gap: .9rem; text-align: center; }
.pv-channel .ch-logo { width: clamp(160px, 26vw, 300px); font-size: clamp(1.2rem, 2.6vw, 2rem); box-shadow: 0 20px 60px -15px rgb(0 0 0 / .8); }
.pv-channel p { color: var(--muted); font-size: .9rem; }

/* Sohbet */
.chat-room { padding: .6rem .9rem; font-size: .76rem; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .45rem; }
.chat-room b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room .online { margin-left: auto; flex: none; font-family: var(--mono); }
.chat-room .online::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: .35rem; }
.chat-log { list-style: none; margin: 0; padding: .6rem .9rem; overflow-y: auto; overscroll-behavior-y: contain; flex: 1; min-height: 280px; display: flex; flex-direction: column; gap: .45rem; font-size: .86rem; }
.chat-log li { line-height: 1.4; overflow-wrap: anywhere; }
.chat-log .u { font-weight: 700; margin-right: .35rem; color: var(--uc, var(--sky)); }
.chat-log .me .u { color: var(--mint); }
.chat-log time { font: .68rem var(--mono); color: var(--muted); margin-right: .4rem; opacity: .7; }
.chat-log .admin { background: rgb(94 242 194 / .08); border: 1px solid rgb(94 242 194 / .25); border-radius: 10px; padding: .35rem .55rem; }
.chat-log .badge { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--mint); color: #062; border-radius: 5px; padding: .08rem .3rem; margin-right: .35rem; vertical-align: 1px; }
.chat-pin { margin: 0; padding: .5rem .9rem; font-size: .8rem; background: linear-gradient(90deg, rgb(245 197 24 / .16), transparent); border-bottom: 1px solid var(--line); }
.chat-pin b { color: #f5c518; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; margin-right: .5rem; }
.chat-log .sys { align-self: center; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: rgb(94 242 194 / .12); color: var(--mint); border: 1px solid rgb(94 242 194 / .3); }
@media (prefers-reduced-motion: no-preference) { .chat-log li.new { animation: rise .25s ease-out both; } }
@keyframes rise { from { opacity: 0; translate: 0 6px; } }
.chat-form { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: .65rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / .04); color: var(--text); font: inherit; font-size: .88rem; }
.chat-form input:focus { outline: none; border-color: var(--line-2); background: rgb(255 255 255 / .07); }
.send { width: 42px; border-radius: 12px; border: 0; background: var(--text); color: #08080b; cursor: pointer; display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 1000px) { .chat-log { max-height: 55vh; } .channels { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.panel > .matches, .panel > .channels { flex: 1; min-height: 0; }
.player:has(.pv-channel) .big-play { top: auto; bottom: 12%; translate: -50% 0; width: 60px; height: 60px; }
.player:has(.pv-channel) .poster-vs { margin-bottom: 8%; }

/* =========== v5: saat + lig satırları, canlı üstte =========== */
.side-tabs { grid-template-columns: 1fr 1fr; }
.match { grid-template-columns: 54px minmax(0, 1fr) auto; gap: .8rem; padding: .7rem .75rem; align-items: center; }
.m-time { display: grid; justify-items: start; gap: .3rem; }
.m-time b { font: 700 .92rem var(--mono); font-variant-numeric: tabular-nums; }
.m-badge:empty { display: none; }
.m-badge { font: 700 .58rem var(--mono); letter-spacing: .08em; color: #fff; background: var(--live); padding: .15rem .35rem; border-radius: 5px; display: inline-flex; align-items: center; gap: .3rem; }
.m-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .m-badge::before { animation: blink 1.2s steps(2) infinite; } }
@keyframes blink { 50% { opacity: .25; } }
.match:not(.is-live) .m-time b { color: var(--muted); }
.m-body { display: grid; gap: .4rem; min-width: 0; }
.m-teams { gap: .3rem; }
.m-team { font-weight: 600; }
.m-league { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-league .lg-code { width: 16px; height: 16px; border-radius: 5px; font-size: .45rem; }
.m-side { display: grid; place-items: center; min-width: 18px; }
.grp-h { display: flex; align-items: center; gap: .45rem; padding: .7rem .75rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.grp-h span { font: 700 .66rem var(--mono); padding: .05rem .4rem; border-radius: 5px; background: rgb(255 255 255 / .07); letter-spacing: 0; }
.grp-h.live { color: var(--text); }
.grp-h.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.grp-h:not(:first-child) { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* =========== v6: üst bar, menü, reklam mimarisi, sosyal, ince liste =========== */
:root { --rail-w: 90px; --rail-h: 720px; --rail-gap: 16px; --social-w: 52px; }

/* 1) Üst bar */
.newsbar {
  display: flex; align-items: center; gap: .9rem; height: 36px; padding-inline: clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgb(255 77 94 / .16), rgb(5 5 7 / .4) 35%); font-size: .8rem; overflow: hidden;
}
.nb-tag { flex: none; font: 700 .64rem var(--mono); letter-spacing: .1em; color: #fff; background: var(--live); padding: .22rem .5rem; border-radius: 5px; }
.nb-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nb-track p { display: inline-block; white-space: nowrap; padding-left: 100%; color: rgb(255 255 255 / .82); }
.nb-track p span + span::before { content: "•"; margin: 0 1.2rem; color: var(--live); }
@media (prefers-reduced-motion: no-preference) { .nb-track p { animation: marquee var(--nb-dur, 30s) linear infinite; } }
@media (prefers-reduced-motion: reduce) { .nb-track p { padding-left: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
.nb-addr { flex: none; color: var(--muted); }
.nb-addr b { color: var(--text); letter-spacing: .04em; padding: .15rem .5rem; border-radius: 6px; background: rgb(255 255 255 / .07); margin-left: .2rem; }
@media (max-width: 640px) { .nb-addr { display: none; } }

/* 2) Menü */
.menu { display: flex; gap: .15rem; margin-left: .5rem; }
.menu a { padding: .5rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.menu a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .08); }
.topbar .search { margin-left: auto; width: min(300px, 100%); }
@media (max-width: 1240px) { .topbar .live-pill { display: none; } }
@media (max-width: 1080px) {
  .topbar { flex-wrap: wrap; height: auto; padding-block: .7rem; row-gap: .6rem; }
  .menu { order: 3; width: 100%; margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem)); padding-inline: clamp(1rem, 3vw, 2rem); overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * clamp(1rem, 3vw, 2rem)); }
  .menu::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) { .topbar .search { order: 2; } .menu { order: 4; } }

/* Reklam alanları (ortak) */
.ad { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; aspect-ratio: var(--ar, 468 / 60); background: rgb(255 255 255 / .025); border: 1px dashed rgb(255 255 255 / .12); }
.ad.filled { border: 0; background: none; }
.ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad > a { display: block; width: 100%; height: 100%; }
.ad .ad-ph { display: grid; justify-items: center; gap: .15rem; color: var(--faint); font-size: .72rem; text-align: center; padding: .25rem; }
.ad .ad-ph b { font: 600 .62rem var(--mono); letter-spacing: .12em; color: var(--muted); }
.ad::after { content: "Reklam"; position: absolute; right: 6px; top: 4px; font: 600 .55rem var(--font); letter-spacing: .06em; color: rgb(255 255 255 / .55); text-shadow: 0 1px 2px rgb(0 0 0 / .7); pointer-events: none; }
.ad:not(.filled)::after { display: none; }

/* 3) & 7) 4'lü banner satırları */
.ad-row { width: 100%; max-width: 1680px; margin: .75rem auto 0; padding-inline: clamp(1rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ad-row.in-stage { padding-inline: 0; margin: 0; }
@media (max-width: 900px) { .ad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .ad-row.in-stage { order: 1; } }

/* 4) Ön gösterim reklamı */
.preroll { position: absolute; inset: 0; z-index: 8; background: #000; display: grid; }
.pr-media { position: absolute; inset: 0; display: grid; place-items: center; }
.pr-media :is(img, video) { width: 100%; height: 100%; object-fit: contain; }
.pr-media a { display: contents; }
.pr-ph { display: grid; justify-items: center; gap: .5rem; text-align: center; color: var(--muted); padding: 1rem;
  background: radial-gradient(circle at 50% 40%, rgb(143 124 255 / .25), transparent 60%); width: 100%; height: 100%; place-content: center; }
.pr-ph b { color: var(--text); font-size: clamp(1rem, 2.4vw, 1.6rem); }
.pr-ph small { font: 600 .7rem var(--mono); letter-spacing: .12em; }
.pr-label { position: absolute; left: .9rem; top: .9rem; font: 600 .72rem var(--mono); padding: .3rem .6rem; border-radius: 8px; background: rgb(0 0 0 / .6); color: #fff; }
.pr-visit { position: absolute; left: .9rem; bottom: 1.4rem; font-size: .8rem; font-weight: 600; padding: .5rem .85rem; border-radius: 10px; background: rgb(0 0 0 / .6); border: 1px solid var(--line-2); }
.pr-visit:hover { background: rgb(255 255 255 / .12); }
.pr-skip { position: absolute; right: 0; bottom: 1.4rem; display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem .8rem 1.2rem; border: 1px solid rgb(255 255 255 / .25); border-right: 0; border-radius: 12px 0 0 12px; background: rgb(0 0 0 / .72); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.pr-skip:disabled { cursor: default; color: rgb(255 255 255 / .75); }
.pr-skip:disabled svg { display: none; }
.pr-skip:not(:disabled):hover { background: #fff; color: #000; }
.pr-skip svg { width: 18px; height: 18px; fill: currentColor; }
.pr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .15); }
.pr-bar i { display: block; height: 100%; width: 0; background: #ffd23d; }
.player[data-ad="on"] :is(.scorebug, .big-play, .controls, .notice) { display: none; }

/* 5) İnce, tek satırlık maç listesi */
.matches { gap: 0; padding: .3rem .4rem .5rem; }
.match {
  grid-template-columns: 46px minmax(0, 1fr) auto; gap: .65rem; align-items: center;
  padding: .55rem .6rem; min-height: 44px; border-radius: 10px; border: 0; position: relative;
}
.matches > li + li:not(.grp-h):not(.ad-li) .match::before { content: ""; position: absolute; left: .6rem; right: .6rem; top: 0; height: 1px; background: var(--line); }
.match:hover { background: rgb(255 255 255 / .04); }
.match:hover::before, .match:hover + * .match::before { opacity: 0; }
.match[aria-current="true"] { background: rgb(143 124 255 / .12); border: 0; }
.match[aria-current="true"]::after { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--iris); }
.m-time { display: flex; align-items: center; gap: .4rem; }
.m-time b { font: 600 .8rem var(--mono); color: var(--muted); }
.is-live .m-time b { color: var(--text); }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; display: none; }
.is-live .m-dot { display: block; }
@media (prefers-reduced-motion: no-preference) { .is-live .m-dot { animation: blink 1.2s steps(2) infinite; } }
.m-line { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .86rem; font-weight: 500; white-space: nowrap; }
.m-line .vs { color: var(--faint); flex: none; }
.m-line .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-line .t:first-child { flex: 0 1 auto; }
.m-lg { display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: var(--faint); white-space: nowrap; max-width: 110px; }
.m-lg span:last-child { overflow: hidden; text-overflow: ellipsis; }
.m-lg .lg-code { width: 16px; height: 16px; border-radius: 5px; font-size: .45rem; }
.match .mv-check { margin-left: .2rem; }
.grp-h { padding: .65rem .6rem .35rem; }
.grp-h:not(:first-child) { margin-top: .35rem; padding-top: .8rem; }
@media (max-width: 420px) { .m-lg span:last-child { display: none; } }

/* 6) Liste içi banner */
.ad-li { padding: .45rem .2rem; }
.ad-li .ad { border-radius: 10px; }

/* 8) Sabit sosyal bağlantılar */
.social { position: fixed; z-index: 45; left: 0; top: 50%; translate: 0 -50%; display: grid; gap: 2px; }
.social a { display: flex; align-items: center; gap: .6rem; width: var(--social-w); height: 50px; padding-left: 15px; overflow: hidden; color: #fff; transition: width .25s ease, filter .2s; }
.social a svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social a span { font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.social a:is(:hover, :focus-visible) { width: 140px; }
.social a:is(:hover, :focus-visible) span { opacity: 1; }
#soc-tg { background: #229ed9; border-radius: 0 12px 0 0; }
#soc-x { background: #111; border: 1px solid #333; border-left: 0; border-radius: 0 0 12px 0; }
@media (max-width: 640px) { .social { top: auto; bottom: 1rem; translate: none; } .social a { width: 42px; height: 42px; padding-left: 10px; } }

/* 9) Kenar bannerları */
.rail { position: fixed; z-index: 40; top: 50%; translate: 0 -50%; width: var(--rail-w); display: none; }
.rail-left { left: calc(var(--social-w) + var(--rail-gap)); }
.rail-right { right: var(--rail-gap); }
.rail .ad { aspect-ratio: var(--rail-w-n, 90) / var(--rail-h-n, 720); max-height: calc(100dvh - 2rem); border-radius: 10px; }
.rail-close { position: absolute; z-index: 2; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: .65rem; cursor: pointer; display: grid; place-items: center; }
.rail-close:hover { background: var(--live); color: #fff; }
.rail-close::before { content: ""; position: absolute; inset: -8px; } /* geniş dokunma alanı */
/* Yalnızca yeterince geniş ekranlarda göster ve içeriği kenarlardan uzaklaştır */
@media (min-width: 1500px) {
  body:not(.rail-l-off) .rail-left, body:not(.rail-r-off) .rail-right { display: block; }
  body:not(.rail-l-off) { --pad-l: calc(var(--social-w) + var(--rail-w) + 2 * var(--rail-gap)); }
  body:not(.rail-r-off) { --pad-r: calc(var(--rail-w) + 2 * var(--rail-gap)); }
  .topbar, .ad-row:not(.in-stage), .watch, .site-footer { padding-left: max(clamp(1rem, 3vw, 2rem), var(--pad-l, 0px)); padding-right: max(clamp(1rem, 3vw, 2rem), var(--pad-r, 0px)); max-width: calc(1680px + var(--pad-l, 0px) + var(--pad-r, 0px)); }
}

/* Tam ekranda ve ışıklar kapalıyken sabit öğeleri gizle */
body.is-fs :is(.social, .rail), body.lights-off :is(.social, .rail) { display: none !important; }
/* v6 düzeltmeleri */
.m-lg { overflow: hidden; width: 104px; max-width: none; justify-content: flex-start; }
.m-lg .lg-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.m-lg .watching, .m-lg .mv-check { flex: none; }
@media (max-width: 420px) { .m-lg { width: auto; } .m-lg .lg-n { display: none; } }
.ad .ad-ph { display: flex; align-items: center; gap: .4rem; font-size: .66rem; white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .search { width: 100%; margin-left: 0; }
  .social a { width: 36px; height: 36px; padding-left: 8px; }
  .social a svg { width: 18px; height: 18px; }
  .social { bottom: .75rem; opacity: .92; }
}
.rail .ad-ph { writing-mode: vertical-rl; }
@media (min-width: 1200px) { .watch:not(.theater) { grid-template-columns: minmax(0, 1fr) 410px; } }
.m-lg { width: 96px; }
/* v7: üst ve alt banner alanları 728×90 — 2×2 düzen, her alan en fazla 728px */
.ad-row { grid-template-columns: repeat(2, minmax(0, 728px)); justify-content: center; gap: .75rem; }
.ad-row .ad { width: 100%; max-width: 728px; }
@media (max-width: 760px) { .ad-row { grid-template-columns: minmax(0, 728px); gap: .5rem; } }

/* =========== v8: responsive denetim düzeltmeleri =========== */

/* A) Dar ekranda takımlar iki satır: okunabilir, hâlâ ince */
@media (max-width: 480px) {
  .match { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; padding-block: .5rem; }
  .m-line { flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .84rem; }
  .m-line .vs { display: none; }
  .m-line .t { max-width: 100%; }
}

/* B) Küçük oynatıcıda skor bandı armaya binmesin */
@media (max-width: 520px) {
  .poster-vs { padding-top: 2.6rem; gap: 1.25rem; }
  .pv-team .crest { --s: clamp(44px, 13vw, 64px); }
  .pv-team b { font-size: .8rem; }
}

/* C) Sol sabit sosyal bar içerikle çakışmasın */
@media (min-width: 1024px) and (max-width: 1499px) {
  .topbar, .ad-row:not(.in-stage), .watch, .site-footer { padding-left: calc(var(--social-w) + 16px); }
}
@media (max-width: 1023px) {
  .social { top: auto; bottom: calc(.75rem + env(safe-area-inset-bottom)); translate: none; }
  .social a { width: 30px; height: 36px; padding-left: 7px; }
  .social a svg { width: 17px; height: 17px; }
  .social a:is(:hover, :focus-visible) { width: 120px; }
  .site-footer { padding-bottom: 6rem; }
}

/* D) Liste içi banner gerçek ölçüsünü aşmasın */
.ad-li .ad { max-width: 400px; margin-inline: auto; width: 100%; }

/* E) Yatay telefon: oynatıcı + liste yan yana, sabit oynatıcı yok */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) {
  .ad-row:not(.in-stage) { display: none; }
  .watch { grid-template-columns: minmax(0, 1fr) minmax(240px, 34%); padding-top: .5rem; }
  .stage { display: grid; }
  .player { position: relative; margin-inline: 0; border-radius: 14px; border-inline: 1px solid var(--line-2); max-height: calc(100dvh - 1rem); }
  .list { position: sticky; top: .5rem; max-height: calc(100dvh - 1rem); order: 0; }
  .matches { overflow-y: auto; }
  .newsbar .nb-addr { display: none; }
}

/* F) Ön gösterim: küçük ekranda sade */
@media (max-width: 520px) {
  .pr-ph span, .pr-ph small { display: none; }
  .pr-ph b { font-size: .95rem; }
  .pr-skip { font-size: .78rem; padding: .55rem .7rem .55rem .85rem; bottom: .9rem; }
  .pr-visit { bottom: .9rem; font-size: .72rem; padding: .4rem .6rem; }
  .pr-label { left: .6rem; top: .6rem; }
}

/* G) Çoklu izle: küçük karede yalnızca ikon */
@media (max-width: 640px) {
  .tile .t-audio { padding: .2rem .35rem; }
  .tile .t-audio .lbl { display: none; }
  .tile .t-meta { font-size: .58rem; padding: .2rem .35rem; }
  .mv-bar .pill-btn { padding: .4rem .7rem; }
}

/* H) Dokunma alanları ve popover kenar boşluğu */
.site-footer nav a { padding: .5rem .25rem; display: inline-block; }
.site-footer nav { gap: .75rem; }
.help-pop, .q-menu { position-try-fallbacks: flip-inline, flip-block; }
.help-pop { max-width: calc(100vw - 1.5rem); }
/* E2) Yatay telefon: başlık tek satır, oynatıcı ekrana sığsın */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) {
  .newsbar { height: 30px; }
  .topbar { flex-wrap: nowrap; padding-block: .4rem; gap: .6rem; }
  .menu { order: 0; width: auto; flex: 1; min-width: 0; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .menu a { padding: .4rem .6rem; font-size: .82rem; }
  .topbar .search { order: 0; width: 180px; flex: none; }
  .topbar .search kbd, .brand-name { display: none; }
  .player { max-height: calc(100dvh - 30px - 3.6rem); aspect-ratio: auto; height: min(calc((100vw - 34% - 3rem) * 9 / 16), calc(100dvh - 30px - 3.6rem)); }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 640px) {
  .m-lg { width: auto; } .m-lg .lg-n { display: none; }
  .match { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .m-line { flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .82rem; }
  .m-line .vs { display: none; }
}
/* Marka: TUTKUSPORTS */
.brand-name { letter-spacing: .06em; }
.brand-name b { font-weight: 800; background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; }

/* ---------- v11: IPTV oynatıcı, ses senkronu, kanal grupları ---------- */
.player .stream { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; visibility: hidden; }
.player:is([data-playing="playing"], [data-playing="buffering"], [data-playing="muted"]) .stream { visibility: visible; }
.player:is([data-playing="playing"], [data-playing="buffering"], [data-playing="muted"]) .poster { display: none; }
.player[data-playing] .big-play { display: none; }
.player[data-src="iptv"] #c-quality, .player:not([data-src="iptv"]) #c-sync { display: none; }
.go-live { height: 30px; min-width: 0; padding: 0 .7rem; font: 700 .7rem var(--mono); letter-spacing: .04em; color: #fff; background: var(--live); border-radius: 8px; }
.go-live:hover { background: var(--live); filter: brightness(1.12); }
.sync-menu { min-width: 250px; }
.sm-h { font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .4rem .7rem .2rem; }
.sync-menu button:disabled { opacity: .45; cursor: not-allowed; }
.sm-offset { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; font-size: .85rem; }
.sm-offset[hidden] { display: none; }
.sm-offset div { display: flex; align-items: center; gap: .25rem; }
.sync-menu .sm-offset button { width: 30px; height: 30px; padding: 0; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; font-size: 1rem; }
.sm-offset output { min-width: 64px; text-align: center; font: 600 .78rem var(--mono); }
.sm-note { max-width: 250px; padding: .3rem .7rem .45rem; font-size: .72rem; line-height: 1.4; color: var(--muted); }
.ch-group select { width: 100%; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); color: var(--text); font: inherit; font-size: .85rem; }
.ch-group option { background: #0e0f14; }
.ch-logo img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.ch-logo img + span { visibility: hidden; }
.channel .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player:has(.pv-channel) .big-play { z-index: 4; }

/* Kanal kaynakları (Kanal 1, Kanal 2 (Yedek)…) */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .1rem .25rem; }
.sources[hidden] { display: none; }
.src-h { font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.src-btn { display: inline-flex; align-items: baseline; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); color: var(--text); cursor: pointer; font-family: inherit; font-size: .8rem; font-weight: 600; }
.src-btn small { font: 600 .62rem var(--mono); color: var(--muted); }
.src-btn:hover { background: rgb(255 255 255 / .09); }
.src-btn.backup { border-style: dashed; }
.src-btn[aria-pressed="true"] { background: var(--text); color: #08080b; border-color: transparent; border-style: solid; }
.src-btn[aria-pressed="true"] small { color: #08080b; opacity: .65; }

/* Kanal listesi: yatay satırlar (solda logo, sağda ad + bilgi) */
.channels { grid-template-columns: 1fr; gap: .35rem; }
.channel { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; row-gap: .15rem; align-items: center; padding: .45rem .6rem .45rem .45rem; border-radius: 12px; }
.channel .ch-logo { grid-row: 1 / 3; border-radius: 8px; font-size: .74rem; }
.channel .ch-logo small { display: none; }
.channel .ch-live { left: .25rem; top: .25rem; font-size: .48rem; padding: .08rem .22rem; }
.channel .ch-name { align-self: end; }
.channel .ch-now { align-self: start; }
@media (max-width: 1000px) { .channels { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.ch-logo:has(img) { background: #f2f2f5; }
.ch-logo:has(img) img { inset: 10%; width: 80%; height: 80%; }
