/* =========================================================
   AURORA - Mavi / Beyaz tema katmanı
   ichan TV'nin theme-blue.css'i birebir korunur; tek fark, sabit renkler
   değişkenlere bağlandı: Site Ayar > Tema Renkleri'nden seçilen üç renk
   (ana, vurgu, zemin) aurora_renk_css() ile aşağıdaki :root değerlerini ezer.
   Buradaki değerler ichan'daki orijinal mavi görünümün aynısıdır.
   Orijinal Style.css / Responsive.css üzerine yüklenir, onları ezer.
   ========================================================= */
:root {
    --radius: 12px;
    --ic-bg: #030c23;
    --ic-bg-rgb: 3, 12, 35;
    --ic-bg-2: #061a40;
    --ic-deep: #020816;
    --ic-mobile: #08204d;
    --ic-blue: #1e90ff;
    --ic-blue-rgb: 30, 144, 255;
    --ic-blue-2: #1a5cff;
    --ic-cyan: #22c7f7;
    --ic-cyan-rgb: 34, 199, 247;
    --ic-text: #eaf4ff;
    --ic-text-rgb: 205, 228, 255;
    --ic-ink: #0b3d91;
    --ic-panel-rgb: 12, 40, 92;
    --ic-panel: rgba(var(--ic-panel-rgb), .38);
    --ic-border: rgba(var(--ic-cyan-rgb), .22);
    --ic-border-strong: rgba(var(--ic-cyan-rgb), .45);
    --ic-dim: rgba(var(--ic-text-rgb), .62);
    --ic-grad: linear-gradient(90deg, var(--ic-cyan), var(--ic-blue) 55%, var(--ic-blue-2));
}

/* ---------- Genel ---------- */
body, input, textarea, option, select, .sr-bb, .plyr--video, .sr-widget {
    font-family: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif !important;
}
body {
    background: var(--ic-bg) !important;
    color: var(--ic-text);
    --mobilbg: var(--ic-mobile);
    --ampbg: var(--ic-mobile);
}
body::before {
    background-image: radial-gradient(circle at center, rgba(var(--ic-blue-rgb), .30) 0, rgba(var(--ic-blue-rgb), .08) 35%, transparent 62%) !important;
}
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: rgba(var(--ic-cyan-rgb), .08); }
*::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--ic-cyan), var(--ic-blue)); border-radius: 4px; }
::selection { background: var(--ic-blue); color: #fff; }

/* ---------- Üst bar + header ---------- */
.header-top {
    background: linear-gradient(180deg, rgba(var(--ic-blue-rgb), 0), rgba(var(--ic-blue-rgb), .14));
    border: 1px solid var(--ic-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
}
.header-text { color: var(--ic-dim); }
.header-text a { color: var(--ic-cyan); }
.header-top svg { color: rgba(var(--ic-text-rgb), .55); }
.header-top svg:hover { color: #fff; filter: drop-shadow(0 0 6px rgba(var(--ic-cyan-rgb), .8)); }

header .logo img { border-radius: 10px; }
header ul { gap: .25em; }
header ul li a {
    padding: .45em 1em;
    border-radius: 12px;
    color: rgba(var(--ic-text-rgb), .75);
    transition: color .2s, background .2s, box-shadow .2s;
}
header ul li.blink a { color: #fff; }
header ul li a:hover, header ul li a.active {
    color: #fff;
    background: rgba(var(--ic-blue-rgb), .16);
    box-shadow: inset 0 0 0 1px var(--ic-border);
}
header ul li a i { color: var(--ic-cyan); text-shadow: 0 0 12px rgba(var(--ic-cyan-rgb), .55); }
/* Menü isimleri admin'de nasıl girildiyse öyle görünsün (Style.css'teki uppercase iptal) */
header ul li a span { font-weight: 600; letter-spacing: .3px; text-transform: none; }

/* ---------- Kanal şeridi ---------- */
.channel-area svg { color: var(--ic-cyan); }
.single-channel {
    border: 1px solid var(--ic-border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(var(--ic-blue-rgb), .16), rgba(var(--ic-panel-rgb), .65));
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.single-channel::after { display: none; }
.single-channel:hover {
    border-color: var(--ic-border-strong);
    box-shadow: 0 8px 22px -10px rgba(var(--ic-blue-rgb), .7);
    transform: translateY(-2px);
}
.single-channel.active {
    border-color: var(--ic-cyan);
    box-shadow: inset 0 0 0 1px var(--ic-cyan), 0 0 18px rgba(var(--ic-cyan-rgb), .35);
}
.channel-area .channel-list [data-stream].active::after { background: rgba(var(--ic-blue-rgb), .12); }

/* ---------- Player ---------- */
.live-player, .plyr--video, .player-attributes { --color: var(--ic-blue); }
.player-attributes {
    border-radius: 16px;
    background: var(--ic-deep);
    box-shadow: 0 0 0 1px var(--ic-border-strong), 0 20px 50px -20px rgba(var(--ic-blue-rgb), .6);
}
.plyr--video { border-radius: 16px; }
video { background: var(--ic-deep); }

/* Player önü görsele inen gölge düzeltmesi:
   - kontrol barındaki koyu siyah gradient + beyaz çizgi kaldırıldı
   - görsel gösterilirken (video başlamamışken) bar tamamen şeffaf
   - yükleniyor katmanı görseli karartmıyor / bulanıklaştırmıyor */
.plyr--video .plyr__controls {
    background: linear-gradient(to top, rgba(var(--ic-bg-rgb), .70), rgba(var(--ic-bg-rgb), 0)) !important;
    border-top: 0 !important;
    padding: 1.4em 1em .7em !important;
}
.plyr--stopped .plyr__controls,
.plyr__poster-enabled.plyr--stopped .plyr__controls { background: transparent !important; }
.plyr__controls .plyr__control svg,
.plyr__controls .live-text { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.plyr__poster { background-color: transparent !important; background-size: cover !important; }
.video-loader { background: rgba(var(--ic-bg-rgb), .30) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.video-loader .loader-text, .video-loader .loader-loading { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.lastTime { background: radial-gradient(circle at center, rgba(var(--ic-bg-rgb), .55), transparent 70%) !important; }
.plyr__controls [role=tooltip] { color: var(--ic-ink); font-weight: 600; }
.live-blink { background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; }

.matchEndedScreen {
    background: linear-gradient(160deg, var(--ic-mobile), var(--ic-bg)) !important;
    border: 1px solid var(--ic-border-strong) !important;
    border-radius: 16px;
}
.matchEndedScreen .title { color: var(--ic-cyan); }
.next-match-splash { background: rgba(var(--ic-bg-rgb), .88); }

/* ---------- Canlı liste ---------- */
.live-list {
    border: 1px solid var(--ic-border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(var(--ic-panel-rgb), .55), rgba(var(--ic-bg-rgb), .70));
}
.head-grid { background: radial-gradient(circle at center, rgba(var(--ic-blue-rgb), .18), transparent); }
.head-grid > div { border-bottom-color: var(--ic-border); }
.vertical-line { background: linear-gradient(to bottom, transparent, var(--ic-cyan), transparent); }
[data-focustab] { color: rgba(var(--ic-text-rgb), .5); font-weight: 600; }
[data-focustab]:hover { background: linear-gradient(to bottom, rgba(var(--ic-blue-rgb), .10), transparent); }
[data-focustab].active {
    color: #fff;
    background: linear-gradient(to bottom, rgba(var(--ic-blue-rgb), .28), transparent);
    box-shadow: inset 0 -2px 0 var(--ic-cyan);
}
.list-blink { background: #ff3b5c; box-shadow: 0 0 6px #ff3b5c; }
[data-focustab=next] .list-blink { background: #fff; box-shadow: none; }

.list-tabbed { border-right-color: var(--ic-border); }
.list-tabbed > div { border-bottom-color: var(--ic-border); }
.list-tabbed svg { fill: rgba(var(--ic-text-rgb), .45); }
.list-tabbed div.active { background: radial-gradient(circle at center, rgba(var(--ic-blue-rgb), .38), transparent); }
.list-tabbed > div.active svg { fill: #fff; }
[data-matchfilter]:hover { background-color: rgba(var(--ic-blue-rgb), .14); }
.list-count { background: var(--ic-grad) !important; color: #fff; font-weight: 700; }
[data-tabbed=next] .list-count { background: #fff !important; color: var(--ic-ink); }

.match-search { border-bottom-color: var(--ic-border); }
.match-search input { background-color: rgba(var(--ic-bg-rgb), .55); color: #fff; outline: none; transition: box-shadow .2s; }
.match-search input:focus { box-shadow: inset 0 0 0 1px var(--ic-cyan); }
input[type=search]::placeholder { color: rgba(var(--ic-text-rgb), .55); }

.single-match:nth-child(odd) { background: linear-gradient(135deg, transparent, rgba(var(--ic-blue-rgb), .10)); }
.single-match:hover, .single-match.active { background: #fff; box-shadow: inset 4px 0 0 var(--ic-blue); }
.single-match:hover .date, .single-match.active .date { color: var(--ic-blue) !important; }
.single-match:hover .event, .single-match.active .event { color: rgba(var(--ic-panel-rgb), .75) !important; }
.single-match:hover .teams, .single-match.active .teams { color: var(--ic-ink) !important; }
.match-detail .date { color: var(--ic-cyan); font-weight: 600; }
.match-detail .event { color: rgba(var(--ic-text-rgb), .5); }
.match-detail .teams { color: var(--ic-text); font-weight: 600; }

/* ---------- Oran / bahis kutusu ---------- */
.odds-container {
    border: 1px solid var(--ic-border);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(var(--ic-panel-rgb), .55), rgba(var(--ic-bg-rgb), .75));
    overflow: hidden;
    isolation: isolate;
}
.odds-container .list-head { border-bottom-color: var(--ic-border); }
.list-head { background: radial-gradient(circle at center, rgba(var(--ic-blue-rgb), .22), transparent); }
.list-head svg { color: var(--ic-cyan); }
.single-bet > div { border-color: rgba(var(--ic-cyan-rgb), .25); }
.single-bet > div:first-child { background: rgba(var(--ic-blue-rgb), .18); }
.single-bet > div:not(:first-child):hover { background: #fff; color: var(--ic-ink); border-color: #fff; }

/* ---------- Footer ---------- */
footer { color: var(--ic-dim); border-top: 1px solid var(--ic-border); padding-top: 1em; }
.copyright-text { color: rgba(var(--ic-text-rgb), .45); }
.footer-links a { border-color: var(--ic-border); color: var(--ic-text); }
.site-footer-copyright {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5em;
    padding: .75em 0 1em; font-size: .85em; color: var(--ic-dim);
}
.site-footer-copyright strong { color: #fff; }
.footer-separator { color: rgba(var(--ic-cyan-rgb), .45); }
.footer-link { color: var(--ic-cyan); }
.footer-link:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   Banner slider (header altı + footer üstü)
   Görseller Reklam Ayar > Slider'dan gelir (önerilen 1664 x 475).
   ========================================================= */
.ic-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1664 / 475;
    margin: 0 0 1em;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ic-bg);
    isolation: isolate;
    box-shadow: 0 0 0 1px rgba(var(--ic-cyan-rgb), .28), 0 14px 40px -16px rgba(var(--ic-blue-rgb), .55);
}
@supports not (aspect-ratio: 1 / 1) {
    .ic-slider { height: 0; padding-bottom: 28.55%; }
}
.ic-slider--footer { margin: 1.5em 0 .5em; }
.ic-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.ic-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.ic-slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ic-slider__dots {
    position: absolute; left: 50%; bottom: 10px; z-index: 2;
    transform: translateX(-50%);
    display: flex; gap: 6px; padding: 5px 8px;
    border-radius: 999px;
    background: rgba(var(--ic-bg-rgb), .45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ic-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .45); cursor: pointer;
    transition: width .3s, background .3s;
}
.ic-dot.is-active { width: 22px; background: var(--ic-cyan); box-shadow: 0 0 8px rgba(var(--ic-cyan-rgb), .8); }
.ic-slider__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .08); }
.ic-slider__progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--ic-grad); }
.ic-slider__progress.run span { animation: icProgress var(--ic-interval, 10s) linear forwards; }
@keyframes icProgress { to { transform: scaleX(1); } }

/* =========================================================
   Dikey kuleler (Reklam Ayar > Dikey Reklam, önerilen 160 x 600)
   İçerik 1000 px genişliğinde ortalanır; kuleler geniş ekranda içeriğin iki
   yanında sabit durur, sığmadığı ekranlarda hiç gösterilmez.
   ========================================================= */
.ic-tower { display: none; }

@media only screen and (min-width: 1380px) {
    .ic-tower {
        position: fixed;
        top: 96px;
        z-index: 20;
        display: block;
        width: 160px;
    }
    .ic-tower--left  { left:  calc(50% - (var(--maxwidth, 1000px) / 2) - 176px); }
    .ic-tower--right { right: calc(50% - (var(--maxwidth, 1000px) / 2) - 176px); }
    .ic-tower a { display: block; }
    .ic-tower img {
        display: block;
        width: 160px; height: auto;
        max-height: calc(100vh - 128px);
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 0 0 1px var(--ic-border), 0 14px 40px -16px rgba(var(--ic-blue-rgb), .55);
    }
}

/* =========================================================
   Popup (Reklam Ayar > Popup Yönetimi; renkleri temadan gelir)
   ========================================================= */
.ic-noscroll { overflow: hidden; }

/* ---------- Mobil ---------- */
@media only screen and (max-width: 1200px) {
    body {
        padding: 0 1em;
        background: linear-gradient(160deg, var(--ic-mobile) 0%, var(--ic-bg) 55%, var(--ic-deep) 100%) !important;
        background-attachment: fixed !important;
    }
}
@media only screen and (max-width: 1024px) {
    header ul li a { padding: .4em 0; }
}
@media (max-width: 480px) {
    .ic-slider { border-radius: 10px; }
    .ic-slider__dots { bottom: 6px; gap: 4px; padding: 4px 6px; }
    .ic-dot { width: 6px; height: 6px; }
    .ic-dot.is-active { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ic-slide, .ic-slide.is-active { transition: none; }
    .ic-slider__progress { display: none; }
}

/* =========================================================
   RTL (ar / he): <html dir="rtl">. Yerleşim korunur, yalnızca
   kenar boşlukları ve kenarlıklar aynalanır. Player, kanal şeridi
   (glide), slider ve oran hücreleri soldan sağa kalır.
   Dikey kuleler sabit left/right konumludur; dokunulmaz.
   ========================================================= */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .plyr,
[dir="rtl"] .player-attributes,
[dir="rtl"] .channel-area,
[dir="rtl"] .glide,
[dir="rtl"] .ic-slider,
[dir="rtl"] .ic-tower,
[dir="rtl"] .odds-list .single-bet > div:not(:first-child) { direction: ltr; }
[dir="rtl"] .plyr .channel-name,
[dir="rtl"] .plyr .plyr__tooltip,
[dir="rtl"] .video-loader .loader-loading,
[dir="rtl"] .lastTime .title,
[dir="rtl"] .matchEndedScreen,
[dir="rtl"] .next-match-splash,
[dir="rtl"] #gerisayim,
[dir="rtl"] .reklamalani .gec { direction: rtl; unicode-bidi: plaintext; }

[dir="rtl"] .header-text a { margin-left: 0; margin-right: .5em; }
[dir="rtl"] .social-area a:not(:first-child) { margin-left: 0; margin-right: 1em; }
[dir="rtl"] header ul { margin-right: 0; margin-left: -1em; }

[dir="rtl"] .list-head svg { margin-right: 0; margin-left: 1em; }
[dir="rtl"] .list-blink { margin-right: 0; margin-left: 1em; }
[dir="rtl"] .list-tabbed { border-right: 0; border-left: 1px solid var(--ic-border); }
[dir="rtl"] .wide .list-tabbed { border-left: 0; }
[dir="rtl"] .wide .list-tabbed div.active { padding-left: .75em; padding-right: 52px; }
[dir="rtl"] .favorite-match { margin-right: 0; margin-left: 1em; }
[dir="rtl"] .match-detail { text-align: right; }
[dir="rtl"] .single-match:hover, [dir="rtl"] .single-match.active { box-shadow: inset -4px 0 0 var(--ic-blue); }

[dir="rtl"] .single-bet > div { margin-left: 0; margin-right: .5em; }
[dir="rtl"] [customContextMenu] .icon { margin-right: 0; margin-left: 1em; }
[dir="rtl"] .status-bar { right: auto; left: 2em; }
