/* ==========================================================================
   OPUS - canlı yayın sahnesi
   Renk ve ölçü sistemi tek yerden yönetilir.
   ========================================================================== */

:root{
    --bg:        #08090C;
    --rail:      #0E1117;
    --card:      #141922;
    --line:      rgba(255,255,255,.07);
    --line-2:    rgba(255,255,255,.12);
    --text:      #F2F4F7;
    --muted:     #7C8698;
    --accent:    #F5A524;
    --alert:     #E5484D;

    --r-lg: 12px;
    --r-md: 8px;
    --r-sm: 4px;

    --dock-w: 410px;
    --rail-w: 56px;
    --tower-w: 160px;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ margin: 0; font-weight: 700; }
p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg{ width: 100%; height: 100%; }

.mono{ font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.d-none{ display: none !important; }

::selection{ background: var(--accent); color: #000; }

::-webkit-scrollbar{ width: 4px; height: 4px; }
::-webkit-scrollbar-track{ background: var(--rail); }
::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.15); border-radius: 2px; }

/* --------------------------------------------------------------- durumlar */

.pulse-dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--alert);
    display: inline-block; flex: none;
    animation: opus-pulse 1.6s ease-in-out infinite;
}
.pulse-dot.amber{ background: var(--accent); }

@keyframes opus-pulse{
    0%,100%{ opacity: 1; transform: scale(1); }
    50%{ opacity: .35; transform: scale(.8); }
}

.ghost-btn{
    display: inline-flex; align-items: center; gap: 8px;
    height: 30px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--card);
    color: var(--muted);
    font-size: 11px; font-weight: 600; letter-spacing: .02em;
    transition: color .18s, border-color .18s;
}
.ghost-btn:hover{ color: var(--text); border-color: var(--line-2); }
.ghost-btn svg{ width: 14px; height: 14px; }

.accent-btn{
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 20px;
    border-radius: var(--r-sm);
    background: var(--accent); color: #000;
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    transition: filter .18s;
}
.accent-btn:hover{ filter: brightness(1.08); }

.icon-btn{
    width: 32px; height: 32px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--card); color: var(--muted);
    transition: color .18s, border-color .18s;
}
.icon-btn:hover{ color: var(--text); border-color: var(--line-2); }
.icon-btn svg{ width: 14px; height: 14px; }

/* ----------------------------------------------------------------- başlık */

.masthead{
    position: sticky; top: 0; z-index: 60;
    height: 72px;
    display: flex; align-items: center;
    padding: 0 24px;
    background: rgba(8,9,12,.96);
    border-bottom: 1px solid var(--line);
}

.masthead-edge{ flex: 1 1 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.masthead-edge-right{ justify-content: flex-end; }

.masthead-nav{ display: flex; align-items: center; gap: 26px; }

.nav-link{
    font-size: 12px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap;
    transition: color .18s, opacity .18s;
}
/* Logodan uzaklaştıkça menü sönümlenir */
.nav-left .depth-0, .nav-right .depth-0{ color: var(--text); }
.nav-left .depth-1, .nav-right .depth-1{ color: rgba(242,244,247,.7); }
.nav-left .depth-2, .nav-right .depth-2{ color: rgba(242,244,247,.45); }
.nav-link:hover{ color: var(--accent); }

.brand{
    display: flex; align-items: center; justify-content: center;
    padding: 0 32px; flex: none;
}
.brand img{ max-height: 40px; width: auto; }

.wordmark{
    font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.wordmark-o{ position: relative; display: inline-flex; align-items: center; justify-content: center; }
.wordmark-o .diamond{
    position: absolute; width: 8px; height: 8px;
    background: var(--accent); transform: rotate(45deg);
}

.socials{ display: flex; align-items: center; gap: 14px; margin: 0; padding: 0 4px 0 0; list-style: none; }
.socials a{ display: block; width: 16px; height: 16px; color: var(--muted); transition: color .18s; }
.socials a:hover{ color: var(--text); }

.live-chip{
    display: inline-flex; align-items: center; gap: 8px;
    height: 26px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--card);
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
}

.nav-toggle{ display: none; }

/* -------------------------------------------------------------- pageskin */

.pageskin{
    position: fixed; inset: 0; z-index: 0;
    display: block;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
body.has-pageskin{ background: #000; }
body.has-pageskin .workspace{ background: rgba(8,9,12,.94); }
body.has-pageskin .adbar{ position: relative; z-index: 1; }

.masthead, .page, .site-footer{ position: relative; z-index: 1; }

/* ------------------------------------------------------------ sayfa ızgarası */

.page{
    display: flex; align-items: flex-start; justify-content: center;
    gap: 12px; padding: 12px;
    zoom: var(--page-zoom, 1);
}

.page-main{
    flex: 1 1 auto; min-width: 0; max-width: 1240px;
    display: flex; flex-direction: column; gap: 14px;
}

.tower{
    width: var(--tower-w); flex: none;
    position: sticky; top: 84px;
}
.tower img{ width: 100%; height: auto; border-radius: var(--r-md); }

.adbar{ width: 100%; max-width: 1000px; margin: 0 auto; }
.adbar img{ width: 100%; height: auto; border-radius: var(--r-md); }

/* ------------------------------------------------------------------ sahne */

.workspace{
    display: flex; align-items: stretch;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: rgba(20,25,34,.25);
    overflow: hidden;
}

.stage{
    flex: 1 1 auto; min-width: 0;
    padding: 18px 22px;
    display: flex; flex-direction: column; gap: 14px;
}

.context{
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted);
}
.context-info{ display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.context-strong{ color: var(--text); font-weight: 700; }
.context-strong .gunun-maci{ margin-right: 6px; vertical-align: middle; }

@keyframes gunun-shine{
    0%,100%{ transform: scale(1); box-shadow: 0 0 8px rgba(255,215,0,.45); }
    50%{ transform: scale(1.04); box-shadow: 0 0 14px rgba(255,215,0,.8); }
}
.gunun-maci{
    display: inline-block;
    padding: 1px 5px;
    margin-right: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #000;
    border-radius: 3px;
    background: linear-gradient(45deg,#ffd700,#ffed4e,#ffd700);
    animation: gunun-shine 2.5s infinite;
    vertical-align: middle;
}
.context .dot{ opacity: .4; }

.stage-row{ display: flex; align-items: stretch; gap: 14px; }

.player-wrap{ position: relative; flex: 1 1 auto; min-width: 0; }

/* videodan sızan ortam ışığı */
.ambient{
    position: absolute; inset: -40px;
    z-index: 0; pointer-events: none;
    opacity: .3; filter: blur(48px) saturate(1.4);
    overflow: hidden; border-radius: 50%;
}
.ambient canvas{ width: 100%; height: 100%; display: block; }

/* Kule, oynatıcı ne kadar yüksekse tam o kadar uzar; görsel kırpılmaz. */
.tower-player{ position: static; width: var(--tower-w); display: flex; }
.tower-player > a{ flex: 1 1 auto; min-height: 0; }
.tower-player img{ width: 100%; height: 100%; object-fit: contain; object-position: top center; }

#stream-player{
    position: relative; z-index: 1;
    width: 100%; aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
}
#stream-player .plyr,
#stream-player .plyr__video-wrapper,
#stream-player video{ width: 100%; height: 100%; }
#stream-player .plyr{ border-radius: var(--r-lg); }
#stream-player .plyr__poster{
    background-size: cover !important;
    background-position: center center !important;
}

/* oynatıcı üstü katmanlar */
.stage-overlay{
    position: absolute; inset: 0; z-index: 30;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 24px; text-align: center;
    background: rgba(8,9,12,.88);
}
.stage-overlay svg{ width: 32px; height: 32px; color: var(--muted); }
.stage-overlay h3{ font-size: 16px; }
.stage-overlay p{ font-size: 12px; color: var(--muted); max-width: 340px; }

/* ------------------------------------------------------------ skor başlığı */

.scoreboard{
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: rgba(20,25,34,.5);
    border: 1px solid var(--line); border-radius: var(--r-lg);
}
.scoreboard .team{ display: flex; align-items: center; gap: 14px; min-width: 0; }
.scoreboard .team.home{ justify-content: flex-end; text-align: right; }
.scoreboard .team.away{ justify-content: flex-start; text-align: left; }
.scoreboard .team-crest{ width: 48px; height: 48px; object-fit: contain; flex: none; }
.scoreboard .team-name{ font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.scoreboard .team-role{ font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.scoreboard .team-text{ min-width: 0; }

.scoreboard .score{ display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 18px; }
.score-value{ display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 700; line-height: 1; }
.score-sep{ color: var(--muted); font-weight: 400; }
.score-state{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 10px; border-radius: 999px;
    border: 1px solid rgba(229,72,77,.3); background: rgba(229,72,77,.12);
    color: var(--alert);
    font-size: 10px; font-weight: 700; letter-spacing: .08em;
}

.scoreboard.is-channel .away,
.scoreboard.is-channel .score{ display: none; }
.scoreboard.is-channel{ grid-template-columns: 1fr; }
.scoreboard.is-channel .team.home{ justify-content: center; text-align: center; }

/* ------------------------------------------------------------------ anket */

.poll{
    padding: 14px 16px;
    background: rgba(20,25,34,.5);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    display: flex; flex-direction: column; gap: 12px;
}
.poll-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.poll-title h3{ font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.poll-title p{ font-size: 11px; color: var(--muted); margin-top: 2px; }
.poll-total{ display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.poll-total strong{ color: var(--text); }

.poll-bar{
    display: flex; gap: 2px; height: 8px;
    padding: 2px; border-radius: 999px;
    background: rgba(0,0,0,.5); border: 1px solid var(--line);
    overflow: hidden;
}
.poll-seg{ height: 100%; border-radius: 999px; transition: width .4s ease; }
.seg-home{ background: var(--accent); }
.seg-draw{ background: rgba(124,134,152,.5); }
.seg-away{ background: #3E7BFA; }

.poll-options{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poll-option{
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    height: 38px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--card);
    transition: border-color .18s, background .18s;
}
.poll-option:hover{ border-color: var(--line-2); }
.poll-option.voted{ border-color: var(--accent); }
.poll-option-label{ font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-option-value{ font-size: 11px; font-weight: 700; color: var(--muted); flex: none; }
.poll-option.voted .poll-option-value{ color: var(--accent); }
.poll.is-voted .poll-option{ cursor: default; }

/* ------------------------------------------------------------------- dock */

.dock{
    width: var(--dock-w); flex: none;
    display: flex; align-items: stretch;
    background: var(--rail);
    border-left: 1px solid var(--line);
}

/* spor dalı rayı */
.dock .tabs{
    width: var(--rail-w); flex: none;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 0;
    border-right: 1px solid var(--line);
    background: rgba(8,9,12,.45);
    overflow-y: auto; overflow-x: hidden;
}
.dock .tabs a{
    position: relative;
    width: 42px; flex: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 6px 0;
    border-radius: var(--r-sm);
    color: var(--muted);
    transition: color .18s, background .18s;
}
.dock .tabs a:hover{ color: var(--text); background: var(--card); }
.dock .tabs a.active{ color: var(--accent); background: var(--card); }
.dock .tabs a.active::before{
    content: ''; position: absolute; left: -7px; top: 6px; bottom: 6px;
    width: 3px; background: var(--accent);
}
.dock .tabs .icon{ width: 17px; height: 17px; fill: currentColor; }
.dock .tabs .icon-stroke{ fill: none; stroke: currentColor; }
.rail-label{
    font-size: 8px; font-style: normal; font-weight: 600;
    letter-spacing: -.01em; text-transform: uppercase;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-badge{
    position: absolute; top: 0; right: 0;
    min-width: 14px; height: 13px; padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--accent); color: #000;
    font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700;
}
.dock .tabs a:not(.active) .rail-badge{ background: rgba(255,255,255,.1); color: var(--muted); }

/* dock gövdesi */
.dock-body{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.dock-head{
    height: 40px; flex: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
}
.dock-title{ display: flex; align-items: center; gap: 8px; }
.dock-title h3{ font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dock-count{ font-size: 11px; color: var(--muted); }

.sections{
    display: flex; align-items: center; gap: 6px; flex: none;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.sections a{
    padding: 3px 10px; border-radius: var(--r-sm);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}
.sections a:hover{ color: var(--text); }
.sections a.active{
    color: var(--accent); border-color: var(--accent);
    background: rgba(255,255,255,.06);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.search{
    position: relative; flex: none;
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    height: 40px;
    border-bottom: 1px solid var(--line);
}
.search svg{ width: 14px; height: 14px; flex: none; color: var(--muted); }
.search input{
    flex: 1 1 auto; min-width: 0;
    height: 100%; border: 0; background: transparent;
    color: var(--text); font-size: 12px;
}
.search input::placeholder{ color: var(--muted); }
.search input:focus{ outline: none; }
.search input::-webkit-search-cancel-button{ filter: invert(.6); }

.dock .section{ flex: 1 1 auto; min-height: 0; }

/* maç listesi */
.items{ max-height: 520px; overflow: hidden; }

.items a,
.items .upcoming-row{
    display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px;
    height: 68px; padding: 0 12px;
    position: relative;
    color: var(--text);
    transition: background .18s;
}
.items .upcoming-row{ grid-template-columns: 44px 1fr auto; }
.items a::after,
.items .upcoming-row::after{
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
    height: 1px; background: var(--line);
}
.items a:hover{ background: rgba(20,25,34,.6); }
.items a.active{ background: rgba(20,25,34,.9); }
.items a.active::before{
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--accent);
}

.crests{ position: relative; width: 44px; height: 30px; flex: none; }
.crests img{
    position: absolute; top: 2px;
    width: 26px; height: 26px; object-fit: contain;
    background: rgba(255,255,255,.04); border-radius: 50%;
}
.crests img:first-child{ left: 0; z-index: 2; }
.crests img:last-child{ left: 16px; z-index: 1; }

.row-text{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-text .league{
    font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.items a.active .row-text .league{ color: var(--accent); }
.row-text .teams{
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    overflow: hidden; white-space: nowrap;
}
.row-text .teams .home,
.row-text .teams .away{ overflow: hidden; text-overflow: ellipsis; }
.row-text .teams .vs{ color: var(--muted); font-weight: 400; flex: none; }

.row-state{ display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.kickoff{ font-size: 12px; font-weight: 700; color: var(--text); }
.kickoff-label{ font-size: 9px; color: var(--muted); }
.upcoming-row{ opacity: .75; }

/* kanallar */
#channels{ max-height: 520px; overflow: hidden; padding: 10px; }
#channels a{
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    height: 76px; padding: 8px;
    border: 1px solid var(--line); border-radius: var(--r-md);
    transition: border-color .18s, background .18s;
}
#channels a:hover{ border-color: var(--line-2); background: var(--card); }
#channels a.active{
    border-color: var(--accent);
    background: rgba(255,255,255,.05);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
#channels img{ max-height: 34px; width: auto; object-fit: contain; }
.channel-name{
    font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#channels .scroll-content{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------------------------------------------ altlık */

.site-footer{
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: 72px; padding: 16px 28px;
    border-top: 1px solid var(--line);
}
.footer-brand{ display: flex; align-items: center; gap: 16px; min-width: 0; }
.footer-brand img{ max-height: 28px; width: auto; opacity: .8; }
.footer-text{ font-size: 11px; color: var(--muted); }
.footer-text a{ color: var(--muted); text-decoration: underline; }
.footer-text a:hover{ color: var(--text); }

/* popup stilleri footer.php içinde, Safir/Ultimate ile aynı alanlardan geliyor */

.plyr__poster{
    display: block !important;
    opacity: 1 !important;
    background-size: cover !important;
    background-position: center !important;
}
.plyr.stream-started .plyr__poster{
    display: none !important;
}

/* --------------------------------------------------------------- oynatıcı */

.plyr{
    --plyr-color-main: var(--accent);
    --plyr-video-control-color: #fff;
    --plyr-range-thumb-background: #fff;
    --plyr-font-family: 'Inter', sans-serif;
}
.plyr__controls{
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 26px 14px 12px !important;
    background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.45) 55%, transparent) !important;
}
.player-flex{ display: flex; align-items: center; gap: 10px; }
.plyr__control svg{ width: 16px; height: 16px; }

.live-button{ display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.live-blink{
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--alert);
    animation: opus-pulse 1.6s ease-in-out infinite;
}
.live-text{ font-size: 10px; font-weight: 800; letter-spacing: .1em; }

#stream-player .stream-name{
    position: absolute; top: 14px; left: 16px; z-index: 3;
    font-size: 12px; font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
    opacity: 0; transition: opacity .25s;
    pointer-events: none;
}
#stream-player:hover .stream-name{ opacity: 1; }

#stream-player .logo{
    position: absolute !important;
    z-index: 6;
    opacity: .45;
    pointer-events: auto;
}
#stream-player .logo img{ max-width: 102px; max-height: 38px; width: auto; }
#stream-player .logo.top-left{ top: 16px; left: 12px; }
#stream-player .logo.top-right{ top: 16px; right: 12px; }
#stream-player .logo.bottom-left{ bottom: 18px !important; left: 12px !important; }
#stream-player .logo.bottom-right{ bottom: 56px; right: 12px; }

#stream-player .plyr--fullscreen .logo.top-left,
#stream-player:fullscreen .logo.top-left,
#stream-player .plyr:fullscreen .logo.top-left{ top: 16px; left: 18px; }
#stream-player .plyr--fullscreen .logo.top-right,
#stream-player:fullscreen .logo.top-right,
#stream-player .plyr:fullscreen .logo.top-right{ top: 16px; right: 18px; }
#stream-player .plyr--fullscreen .logo.bottom-left,
#stream-player:fullscreen .logo.bottom-left,
#stream-player .plyr:fullscreen .logo.bottom-left{ bottom: 18px !important; left: 18px; }
#stream-player .plyr--fullscreen .logo.bottom-right,
#stream-player:fullscreen .logo.bottom-right,
#stream-player .plyr:fullscreen .logo.bottom-right{ bottom: 72px; right: 18px; }

@media (max-width: 860px){
    #stream-player .logo img{ max-width: 98px; max-height: 36px; }
    #stream-player .logo.top-left{ top: 14px; left: 10px; }
    #stream-player .logo.top-right{ top: 14px; right: 10px; }
    #stream-player .logo.bottom-left{ bottom: 14px !important; left: 10px !important; }
    #stream-player .logo.bottom-right{ bottom: 52px; right: 10px; }
}

#stream-player .banner{
    position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
    width: auto; max-width: 68%;
}
#stream-player .banner img{ width: 100%; height: auto; border-radius: var(--r-sm); }
#stream-player .banner.top{ top: 12px; }
#stream-player .banner.bottom{ bottom: 62px; }
#stream-player .banner.none{ display: none !important; }

/* yükleniyor ekranı */
.video-loader{
    position: absolute; inset: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: rgba(8,9,12,.92);
}
.loader-teams{ display: flex; align-items: center; gap: 22px; }
.loader-home, .loader-away{ display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loader-home img, .loader-away img, .video-loader .event-logo{ width: 44px; height: 44px; object-fit: contain; }
.loader-home span, .loader-away span{ font-size: 12px; font-weight: 700; }
.loader-bar{ display: flex; gap: 4px; }
.loader-bar div{
    width: 4px; height: 18px; background: var(--accent); border-radius: 2px;
    animation: opus-bars 1s ease-in-out infinite;
}
.loader-bar div:nth-child(2){ animation-delay: .12s; }
.loader-bar div:nth-child(3){ animation-delay: .24s; }
.loader-bar div:nth-child(4){ animation-delay: .36s; }
.loader-loading{ font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

@keyframes opus-bars{
    0%,100%{ transform: scaleY(.4); opacity: .5; }
    50%{ transform: scaleY(1); opacity: 1; }
}

/* duraklatma katmanı */
#stream-player .pause{
    position: absolute; inset: 0; z-index: 15;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,9,12,.5); cursor: pointer;
}
#stream-player .pause svg{ width: 54px; height: 54px; opacity: .9; }

/* video öncesi reklam */
.reklamalani{
    position: absolute; inset: 0; z-index: 40;
    display: none; background: #000;
}
.reklamalani video{ width: 100%; height: 100%; object-fit: contain; }
.reklamalani .gec{
    position: absolute; right: 14px; bottom: 14px;
    display: none; padding: 8px 14px;
    background: var(--accent); color: #000;
    font-size: 12px; font-weight: 700; border-radius: var(--r-sm);
    cursor: pointer;
}
#gerisayim{
    position: absolute; top: 14px; left: 16px; z-index: 2;
    font-size: 12px; color: #fff;
}

/* sinema modu */
body.lights-off{ background: #000; }
body.lights-off .masthead,
body.lights-off .tower,
body.lights-off .adbar,
body.lights-off .dock,
body.lights-off .scoreboard,
body.lights-off .poll,
body.lights-off .site-footer,
body.lights-off .context{ opacity: .12; transition: opacity .3s; }
body.lights-off .masthead:hover,
body.lights-off .dock:hover{ opacity: 1; }

/* ================================================================ responsive */

/* Her iki kule de doluysa, dar ekranda içerik %90'a inip kuleleri sığdırır.
   Böylece kullanıcı tarayıcıyı %100'de tutsa bile reklamlar görünür. */
@media (min-width: 1330px) and (max-width: 1560px){
    body.has-towers .page{ --page-zoom: .9; }
    body.has-towers .tower{ top: 93px; }
}

@media (max-width: 1560px){
    body:not(.has-towers) .tower-left,
    body:not(.has-towers) .tower-right{ display: none; }
}

@media (max-width: 1329px){
    .tower-left, .tower-right{ display: none; }
}

@media (max-width: 1340px){
    .tower-player{ display: none; }
    :root{ --dock-w: 350px; }
}

@media (max-width: 1100px){
    .workspace{ flex-direction: column; }
    .dock{
        width: 100%;
        border-left: 0; border-top: 1px solid var(--line);
    }
    .items, #channels{ max-height: 420px; }
    .stage{ padding: 14px; }
}

@media (max-width: 860px){
    .masthead{
        height: auto; flex-wrap: wrap; gap: 10px;
        padding: 10px 14px;
    }
    .masthead-edge{ flex: 0 0 auto; }
    .masthead-edge-left{ order: 1; }
    .brand{ order: 2; flex: 1 1 auto; padding: 0; justify-content: flex-start; }
    .masthead-edge-right{ order: 3; }
    .masthead-nav{
        order: 4; flex: 1 0 100%;
        display: none;
        flex-wrap: wrap; gap: 6px;
        padding-top: 8px; border-top: 1px solid var(--line);
    }
    body.nav-open .masthead-nav{ display: flex; }
    .masthead-nav .nav-link{
        flex: 1 1 30%;
        padding: 8px 10px; text-align: center;
        border: 1px solid var(--line); border-radius: var(--r-md);
        background: var(--card);
        color: var(--text) !important;
        font-size: 11px;
    }
    .nav-toggle{ display: inline-flex; }
    .socials{ gap: 12px; }
    .live-chip{ display: none; }

    .page{ padding: 8px; gap: 8px; }
    .page-main{ gap: 10px; }
    .workspace{ border-radius: var(--r-md); }

    .stage{ padding: 10px; gap: 10px; }
    .context{ font-size: 10px; }
    .context .ghost-btn{ display: none; }

    /* sticky oynatıcı için taşma kesilmemeli */
    .workspace{ overflow: visible; }

    /* mobilde oynatıcı üstte sabit kalır */
    .player-wrap{ position: sticky; top: 0; z-index: 50; margin: -10px -10px 0; }
    #stream-player{ border-radius: 0; }
    .ambient{ display: none; }

    .scoreboard{ padding: 10px 12px; gap: 8px; }
    .scoreboard .team-crest{ width: 34px; height: 34px; }
    .scoreboard .team-name{ font-size: 13px; }
    .scoreboard .team-role{ display: none; }
    .score-value{ font-size: 24px; gap: 6px; }
    .scoreboard .score{ padding: 0 6px; }

    .poll-options{ gap: 6px; }
    .poll-option{ flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 44px; padding: 0 10px; }
    .poll-option-label{ font-size: 10px; }

    /* spor rayı yatay şeride dönüşür */
    .dock{ flex-direction: column; }
    .dock .tabs{
        width: 100%; flex-direction: row; gap: 4px;
        padding: 6px 8px;
        border-right: 0; border-bottom: 1px solid var(--line);
        overflow-x: auto;
    }
    .dock .tabs a{ flex: none; width: 46px; }
    .dock .tabs a.active::before{ left: 6px; right: 6px; top: auto; bottom: -6px; width: auto; height: 2px; }

    .items, #channels{ max-height: 360px; }
    #channels .scroll-content{ grid-template-columns: repeat(3, 1fr); }

    .site-footer{ flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
}

@media (max-width: 420px){
    .items a, .items .upcoming-row{ grid-template-columns: 40px 1fr auto; height: 62px; padding: 0 10px; }
    .row-text .teams{ font-size: 11px; }
    #channels .scroll-content{ grid-template-columns: repeat(2, 1fr); }
}
