/**
 * style.css - THE PREMIER SETRAS CHAMPIONSHIP
 * SETRAS PREMYER LIG'in koyu temasi + Championship sekmeli yapisi
 * 36 Takim destegi + Takim Detay Modal (SETRAS PREMYER LIG tasarimina uygun)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-ana: #232323;
    --bg-hover: #111111;
    --bg-tablo: #1a1a1a;
    --bg-baslik: #2d2d2d;
    --bg-satir-koyu: #1e1e1e;
    --bg-satir-acik: #252525;
    --bg-card: #1a1a2e;
    --bg-dark: #0f0f1a;
    --border-color: #333;
    --text-beyaz: #ffffff;
    --text-gri: #cccccc;
    --text-koyu: #888888;
    --text-muted: #9e9e9e;
    --text-blue: #90caf9;
    --form-g: #4ade80;
    --form-m: #ef4444;
    --form-bilinmiyor: #888888;
    --rozet-1: #008000;
    --rozet-2: #006400;
    --rozet-3: #374151;
    --rozet-dusme: #dc2626;
    --rozet-normal: #374151;
    --av-pozitif: #4ade80;
    --av-negatif: #ef4444;
    --modal-bg: #1a1a1a;
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --modal-card: #252525;
    --modal-border: #333333;
    --btn-active: #3a3a3a;
    --btn-hover: #444444;
    --btn-border: #555555;
    --altin: #d4af37;
    --altin-koyu: #b8941f;
    --blue: #1a237e;
    --blue-light: #283593;
    --orange: #e65100;
    --orange-light: #f57c00;
    --red: #b71c1c;
    --red-light: #c62828;
    --gold: #ffd700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-ana);
    color: var(--text-beyaz);
    min-height: 100vh;
    padding: 10px;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   CHAMPIONSHIP HEADER
   ============================================ */
.championship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 10px;
}

.championship-header h1 {
    color: var(--altin);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sezon-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0 4px 0 10px;
    transition: all 0.2s ease;
}

.sezon-select-wrapper:hover {
    border-color: var(--altin);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.sezon-select-wrapper:focus-within {
    border-color: var(--altin);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.sezon-icon {
    font-size: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}

.sezon-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px 8px 4px;
    cursor: pointer;
    min-width: 180px;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sezon-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
    font-size: 12px;
}

.sezon-select option:checked {
    background: var(--altin);
    color: #000;
}

.sezon-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--altin);
    font-size: 9px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.sezon-select-wrapper:hover .sezon-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.aktif-badge {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
    animation: pulse-badge 2s infinite;
}

.arsiv-badge {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(74, 222, 128, 0.5); }
}

/* ============================================
   CHAMPIONSHIP TABS
   ============================================ */
.championship-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    background: #1a1a2e;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2a2a4a;
}

.championship-tabs a {
    padding: 10px 18px;
    color: var(--text-blue);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid transparent;
}

.championship-tabs a:hover,
.championship-tabs a.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue-light);
}

/* ============================================
   PUAN TABLOSU
   ============================================ */
.puan-tablosu-wrapper {
    background-color: var(--bg-tablo);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.puan-tablosu {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    position: relative;
    z-index: 1;
    table-layout: fixed;
}

.puan-tablosu thead tr {
    background-color: var(--bg-baslik);
    border-bottom: 2px solid #3a3a3a;
}

.puan-tablosu th {
    padding: 10px 4px;
    text-align: center;
    font-weight: 600;
    color: var(--text-gri);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.puan-tablosu th.col-takim {
    text-align: left;
    padding-left: 10px;
    width: 32%;
}

.puan-tablosu th.col-sira {
    width: 45px;
}

.puan-tablosu th.col-durum {
    width: 36px;
}

.puan-tablosu th.col-o,
.puan-tablosu th.col-g,
.puan-tablosu th.col-m {
    width: 30px;
}

.puan-tablosu th.col-gol {
    width: 50px;
}

.puan-tablosu th.col-av {
    width: 38px;
}

.puan-tablosu th.col-p {
    width: 38px;
}

.puan-tablosu th.col-form {
    width: 100px;
}

.tablo-satiri {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}

.satir-koyu {
    background-color: var(--bg-satir-koyu);
}

.satir-acik {
    background-color: var(--bg-satir-acik);
}

.tablo-satiri:hover {
    background-color: var(--bg-hover) !important;
}

.puan-tablosu td {
    padding: 8px 4px;
    vertical-align: middle;
    height: 44px;
}

/* === ZONE COLORS FOR 36 TEAM === */
.zone-blue td {
    border-bottom: 1px solid rgba(26, 35, 126, 0.3);
}

.zone-orange td {
    border-bottom: 1px solid rgba(230, 81, 0, 0.25);
}

.zone-red td {
    border-bottom: 1px solid rgba(183, 28, 28, 0.25);
}

.zone-blue {
    background: rgba(26, 35, 126, 0.12);
    border-left: 6px solid rgba(26, 35, 126, 0.95);
}
.zone-orange {
    background: rgba(230, 81, 0, 0.10);
    border-left: 6px solid rgba(230, 81, 0, 0.95);
}
.zone-red {
    background: rgba(183, 28, 28, 0.10);
    border-left: 6px solid rgba(183, 28, 28, 0.95);
}

/* === SIRA ROZETLERI === */
.hücre-sira {
    width: 45px;
    text-align: center;
}

.sira-rozet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}

.sira-altin {
    background-color: #008000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.4);
}

.sira-gumus {
    background-color: #006400;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.4);
}

.sira-bronz {
    background-color: #374151;
    color: var(--text-gri);
    box-shadow: none;
}

.sira-dusme {
    background-color: var(--rozet-dusme);
    color: #fff;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
    border: 2px solid #991b1b;
}

.sira-normal {
    background-color: var(--rozet-normal);
    color: var(--text-beyaz);
}

/* === MATEMATIKSEL DURUM === */
.hücre-durum {
    width: 36px;
    text-align: center;
}

.mat-durum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-weight: 900;
    cursor: help;
    position: relative;
    line-height: 1;
}

.mat-durum:hover::after {
    content: attr(data-mesaj);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid #444;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    letter-spacing: normal;
    line-height: 1.4;
}

.mat-sampiyon {
    background: rgba(40, 40, 40, 0.9);
    color: #8a7a3a;
    border: 1px solid rgba(90, 80, 30, 0.4);
    font-size: 15px;
}

.mat-playoff {
    background: rgba(26, 35, 126, 0.25);
    color: #90caf9;
    border: 1px solid rgba(26, 35, 126, 0.45);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.mat-son16 {
    background: rgba(230, 81, 0, 0.20);
    color: #ffcc80;
    border: 1px solid rgba(230, 81, 0, 0.45);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Kesin sıra garantisi: T1, T2 ... T8 */
.mat-torba {
    background: rgba(20, 120, 220, 0.22);
    color: #7ec8ff;
    border: 1px solid rgba(20, 120, 220, 0.50);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.3px;
    width: 34px;
}

.mat-beklemede {
    background: rgba(80, 80, 80, 0.25);
    color: #bdbdbd;
    border: 1px solid rgba(120, 120, 120, 0.35);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.mat-elendi {
    background: rgba(40, 40, 40, 0.9);
    color: #8a3a3a;
    border: 1px solid rgba(100, 40, 40, 0.4);
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* === TAKIM HUCRESI (TIKLANABILIR) === */
.hücre-takim {
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.takim-bilgi {
    display: flex;
    align-items: center;
    gap: 8px;
}

.takim-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px;
    flex-shrink: 0;
}

.takim-adi {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-beyaz);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tablo-satiri:hover .takim-adi {
    color: var(--altin);
}

.hücre-sayi {
    text-align: center;
    font-weight: 500;
    color: var(--text-gri);
    font-size: 12px;
}

.hücre-gol {
    text-align: center;
    font-weight: 500;
    color: var(--text-gri);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.av-pozitif { color: var(--av-pozitif); font-weight: 600; }
.av-negatif { color: var(--av-negatif); font-weight: 600; }

.hücre-puan {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-beyaz);
}

.hücre-form {
    width: 100px;
    text-align: center;
}

.form-kutulari {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
}

.form-kutu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 9px;
    color: #fff;
    position: relative;
    cursor: help;
    flex-shrink: 0;
}

.form-kutu:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid #444;
}

.form-galibiyet { background-color: var(--form-g); color: #000; font-weight: 700; }
.form-maglubiyet { background-color: var(--form-m); color: #fff; }
.form-bilinmiyor { background-color: #444; color: var(--form-bilinmiyor); }

/* === TABLE LEGEND === */
.tablo-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-dot.green { background: rgba(26, 35, 126, 0.6); }
.legend-dot.orange { background: rgba(230, 81, 0, 0.6); }
.legend-dot.red { background: rgba(183, 28, 28, 0.6); }

/* ============================================
   KNOCKOUT SECTIONS (PlayOff / Son16 / etc)
   ============================================ */
.knockout-section {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2a4a;
}

.section-title {
    text-align: center;
    color: var(--text-blue);
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.section-title .icon {
    margin-right: 8px;
}

.bos-mesaj {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

/* Pair Card */
.pair-card {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    border: 1px solid #2a2a4a;
}

.pair-card h4 {
    color: var(--text-blue);
    margin-bottom: 12px;
    font-size: 15px;
}

.match-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a4a;
}

.match-line:last-child {
    border-bottom: none;
}

.side {
    flex: 1;
    font-weight: 700;
    font-size: 14px;
}

.home-side { text-align: right; color: var(--text-blue); }
.away-side { text-align: left; color: var(--text-blue); }

.score-box {
    min-width: 70px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--altin);
    background: #1a1a3a;
    padding: 6px 12px;
    border-radius: 6px;
}

.match-date {
    min-width: 100px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.leg-badge {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
}

/* Bracket */
.bracket-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.quarter-bracket { grid-template-columns: repeat(2, 1fr); }
.semi-bracket { grid-template-columns: repeat(2, 1fr); }

.bracket-match {
    background: var(--bg-dark);
    border: 2px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
}

.bracket-match.large { transform: scale(1.05); }

.bracket-team {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a4a;
    font-weight: 700;
    font-size: 14px;
}

.bracket-team:last-child {
    border-bottom: none;
}

.bracket-team.winner {
    background: rgba(26, 35, 126, 0.25);
    color: var(--gold);
    border-left: 4px solid var(--gold);
}

.bracket-team small {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.view-toggle button {
    padding: 8px 16px;
    border: 1px solid var(--blue-light);
    background: var(--bg-dark);
    color: var(--text-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.view-toggle button:hover {
    background: var(--blue);
    color: #fff;
}

/* ============================================
   FINAL
   ============================================ */
.final-section {
    text-align: center;
}

.final-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 35px 25px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 2px solid var(--altin);
    margin-bottom: 20px;
}

.final-team-box {
    flex: 1;
}

.final-team-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-blue);
}

.final-score-box {
    min-width: 120px;
    text-align: center;
}

.score-big {
    font-size: 42px;
    font-weight: 800;
    color: var(--altin);
}

.vs-big {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-muted);
}

.final-date {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.final-winner {
    font-size: 24px;
    font-weight: 800;
    color: var(--altin);
    padding: 20px;
    background: rgba(255,215,0,0.1);
    border-radius: 10px;
    border: 1px solid var(--altin);
}

/* ============================================
   CHAMPION BANNER
   ============================================ */
.champion-banner {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(26,35,126,0.2));
    border: 2px solid var(--altin);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.trophy-emoji {
    font-size: 56px;
}

.champion-text h2 {
    color: var(--altin);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.champion-text h1 {
    color: #fff;
    font-size: 28px;
    margin: 6px 0;
}

.champion-text p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   ANNOUNCEMENTS
   ============================================ */
.announcements-section {
    margin-top: 25px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2a4a;
}

.announcements-section h3 {
    color: var(--orange);
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-item {
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--orange);
}

.ann-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   ARSIV MODAL
   ============================================ */
#arsiv-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    overflow: auto;
}

.arsiv-icerik {
    background: var(--bg-card);
    margin: 60px auto;
    max-width: 500px;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #2a2a4a;
    position: relative;
}

.arsiv-kapat {
    position: absolute;
    right: 15px; top: 10px;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

.arsiv-kapat:hover { color: #fff; }

.arsiv-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arsiv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-dark);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #2a2a4a;
    transition: 0.2s;
    color: var(--text);
}

.arsiv-item:hover {
    border-color: var(--altin);
    background: rgba(212, 175, 55, 0.05);
}

.arsiv-sezon {
    font-weight: 700;
}

.arsiv-sampiyon {
    color: var(--altin);
    font-weight: 700;
}

.bos-arsiv {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-style: italic;
}

/* ============================================
   BILGI NOTU
   ============================================ */
.bilgi-notu {
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
    color: var(--text-gri);
    font-size: 11px;
    line-height: 1.6;
}

/* ============================================
   PROFESYONEL MODAL (TAKIM DETAY)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-icerik {
    background-color: var(--modal-bg);
    margin: 2% auto;
    border-radius: 12px;
    width: 95%;
    max-width: 1400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--modal-border);
    position: relative;
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-kapat {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
}

.modal-kapat:hover {
    color: #fff;
    background: rgba(255,0,0,0.3);
}

.modal-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 0;
    min-height: 600px;
}

.modal-sol {
    background: linear-gradient(180deg, #1e1e1e 0%, #252525 100%);
    padding: 20px;
    border-right: 1px solid var(--modal-border);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-logo-container {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.modal-logo-bg {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #444;
    overflow: hidden;
}

.modal-logo-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.modal-logo-bg img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.modal-takim-adi {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.modal-takim-sira {
    font-size: 13px;
    color: var(--altin);
    font-weight: 600;
    margin-bottom: 10px;
}

.bilgi-kart {
    background: var(--modal-card);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--modal-border);
}

.bilgi-kart-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.bilgi-kart-deger {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.yakin-siralama-baslik {
    font-size: 12px;
    color: var(--altin);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--altin);
    padding-bottom: 5px;
}

.yakin-siralama-tablo {
    background: var(--modal-card);
    border-radius: 8px;
    border: 1px solid var(--modal-border);
    overflow: hidden;
    font-size: 11px;
}

.yakin-sira-header {
    display: grid;
    grid-template-columns: 25px 1fr 20px 20px 20px 30px 25px;
    gap: 2px;
    padding: 6px 8px;
    background: #333;
    color: #888;
    font-weight: 600;
    text-align: center;
    font-size: 10px;
}

.yakin-sira-satir {
    display: grid;
    grid-template-columns: 25px 1fr 20px 20px 20px 30px 25px;
    gap: 2px;
    padding: 5px 8px;
    border-bottom: 1px solid #333;
    align-items: center;
    text-align: center;
    color: #ccc;
}

.yakin-sira-satir:last-child {
    border-bottom: none;
}

.yakin-sira-aktif {
    background: rgba(212, 175, 55, 0.15);
    border-left: 3px solid var(--altin);
}

.yakin-sira-no {
    font-weight: 700;
    color: #fff;
}

.yakin-sira-takim {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: left;
    overflow: hidden;
}

.yakin-sira-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.yakin-sira-adi {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.yakin-sira-puan {
    font-weight: 700;
    color: var(--altin);
}

.mac-kutu {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.mac-kutu:hover {
    transform: scale(1.1);
}

.mac-kutu:hover::after {
    content: attr(data-mac);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.mac-g { background: var(--form-g); color: #000; }
.mac-m { background: var(--form-m); color: #fff; }
.mac-bilinmiyor { background: #444; color: #888; }

.modal-orta {
    padding: 25px;
    border-right: 1px solid var(--modal-border);
}

.son-mac-form-orta {
    background: var(--modal-card);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--modal-border);
    margin-bottom: 20px;
}

.son-mac-form-baslik {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.son-mac-form-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.oyuncular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.oyuncu-kolon {
    background: var(--modal-card);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--modal-border);
}

.oyuncu-kolon-baslik {
    font-size: 11px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.oyuncu-block-liste {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oyuncu-block-item {
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid #333;
    display: block;
    line-height: 1.4;
}

.oyuncu-block-item:last-child {
    border-bottom: none;
}

.oyuncu-block-item::before {
    content: '\2022';
    color: #d4af37;
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.oyuncu-block-bos {
    padding: 10px 0;
    color: #666;
    font-style: italic;
    text-align: center;
}

.modal-butons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--btn-border);
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn:hover {
    background: var(--btn-hover);
    color: #fff;
}

.modal-btn.active {
    background: var(--btn-active);
    color: #fff;
    border-color: #666;
}

.modal-icerik-alani {
    background: var(--modal-card);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--modal-border);
    min-height: 200px;
}

.modal-icerik-alani h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.modal-icerik-alani p {
    color: #bbb;
    line-height: 1.8;
    font-size: 14px;
}

.lig-kategori {
    background: var(--modal-card);
    border-radius: 10px;
    border: 1px solid var(--modal-border);
    margin-bottom: 15px;
    overflow: hidden;
}

.lig-kategori-baslik {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-bottom: 2px solid var(--altin);
}

.lig-kategori-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.lig-kategori-adi {
    font-size: 14px;
    font-weight: 700;
    color: var(--altin);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lig-kategori-icerik {
    padding: 12px 15px;
}

.lig-basari-satir {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 13px;
}

.lig-basari-satir:last-child {
    border-bottom: none;
}

.lig-basari-tur {
    color: #fff;
    font-weight: 600;
    min-width: 90px;
}

.lig-basari-sayi {
    color: var(--altin);
    font-weight: 700;
    font-size: 14px;
}

.lig-basari-yillar {
    color: #aaa;
    font-size: 12px;
    margin-left: 5px;
}

.lig-basari-bos {
    color: #666;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

.modal-sag {
    padding: 25px;
    background: linear-gradient(180deg, #252525 0%, #1e1e1e 100%);
}

.yonetim-kart {
    background: var(--modal-card);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--modal-border);
    margin-bottom: 20px;
}

.yonetim-baslik {
    font-size: 14px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.yonetim-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
    object-fit: contain;
}

.yonetim-yazar {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.yonetim-unvan {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 15px;
}

.yonetim-metin {
    font-size: 13px;
    color: #bbb;
    line-height: 1.8;
    text-align: justify;
}

.fikstur-baslik {
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.fikstur-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 5px;
}

.fikstur-nav-btn {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #fff;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fikstur-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #000;
    border-color: #d4af37;
}

.fikstur-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.fikstur-sayfa {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.fikstur-liste {
    list-style: none;
}

.fikstur-mac {
    background: var(--modal-card);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--modal-border);
    transition: all 0.2s;
    min-width: 0;
}

.fikstur-mac:hover {
    border-color: #555;
    transform: translateX(3px);
}

.fikstur-hafta {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.fikstur-takimlar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    gap: 8px;
    min-width: 0;
}

.fikstur-takim-adi {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
}

.fikstur-takimlar .fikstur-takim-adi:first-child {
    text-align: left;
}

.fikstur-takimlar .fikstur-takim-adi:last-child {
    text-align: right;
}

.fikstur-tarih {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    text-align: center;
    letter-spacing: 0.3px;
}

.fikstur-skor {
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #d4af37;
    font-size: 13px;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.yukleniyor {
    text-align: center;
    padding: 60px;
}

.yukleniyor-spinner {
    border: 4px solid #333;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 30px;
    border-top: 1px solid #333;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- TABLET (768px) ---- */
@media (max-width: 768px) {
    /* Header */
    .championship-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }
    .championship-header h1 {
        font-size: 15px;
        text-align: center;
    }
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sezon-select { min-width: 140px; font-size: 12px; }

    /* Sekmeler: kaydırılabilir yatay şerit */
    .championship-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 8px;
        scroll-snap-type: x mandatory;
    }
    .championship-tabs::-webkit-scrollbar { display: none; }
    .championship-tabs a {
        flex-shrink: 0;
        padding: 8px 11px;
        font-size: 11px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    /* ---- PUAN TABLOSU: yatay kaydır ---- */
    .puan-tablosu-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        /* İpucu gölgesi – sağda daha fazla içerik olduğunu hissettirir */
        background:
            linear-gradient(to right, var(--bg-tablo) 30%, transparent) center left,
            linear-gradient(to left,  var(--bg-tablo) 30%, transparent) center right,
            radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.3), transparent) center left,
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.3), transparent) center right;
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }
    .puan-tablosu {
        font-size: 11px;
        table-layout: auto;       /* sabit genişlik yerine otomatik */
        min-width: 480px;         /* minimum genişlik - içerik sığar */
    }
    .puan-tablosu th,
    .puan-tablosu td {
        padding: 7px 4px;
    }
    .puan-tablosu th.col-takim { width: auto; min-width: 120px; }
    .puan-tablosu th.col-sira  { width: 34px; }
    .puan-tablosu th.col-durum { width: 30px; }
    .puan-tablosu th.col-o,
    .puan-tablosu th.col-g,
    .puan-tablosu th.col-m     { width: 26px; }
    .puan-tablosu th.col-gol   { width: 46px; }
    .puan-tablosu th.col-av    { width: 32px; }
    .puan-tablosu th.col-p     { width: 30px; }
    .puan-tablosu th.col-form  { width: 90px; }

    /* Takım hücresi */
    .takim-logo {
        width: 26px;
        height: 26px;
    }
    .takim-adi {
        font-size: 11px;
        max-width: 120px;
    }
    .hücre-puan { font-size: 12px; }

    /* Sıra & durum rozeti küçül */
    .sira-rozet {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 8px;
    }
    .mat-durum {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        font-size: 9px;
    }

    /* Form kutuları */
    .form-kutu {
        width: 15px;
        height: 15px;
        font-size: 8px;
        border-radius: 3px;
    }
    .form-kutulari { gap: 2px; }

    /* PNG butonu */
    .png-kaydet-btn {
        font-size: 11px;
        padding: 7px 12px;
    }

    /* Legend */
    .tablo-legend {
        flex-direction: column;
        gap: 6px;
        padding: 10px 14px;
        font-size: 11px;
    }

    /* Modal */
    .modal-grid { grid-template-columns: 1fr; }
    .modal-sol, .modal-orta, .modal-sag { border: none; border-bottom: 1px solid #333; }
    .oyuncular-grid { grid-template-columns: 1fr; }

    /* Knockout */
    .final-card { flex-direction: column; gap: 15px; }
    .bracket-container { grid-template-columns: 1fr; }
    .match-line { flex-wrap: wrap; gap: 6px; }
    .side { min-width: 90px; font-size: 12px; }
    .score-box { font-size: 14px; min-width: 55px; }
}

/* ---- MOBİL KÜÇÜK (480px ve altı) ---- */
@media (max-width: 480px) {
    body { padding: 6px; }

    .championship-header h1 {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .championship-header h1 img {
        height: 1em !important;
    }

    .aktif-badge, .arsiv-badge {
        font-size: 9px;
        padding: 4px 8px;
    }

    /* Sekme çubuğu */
    .championship-tabs {
        padding: 6px;
        gap: 4px;
        margin-bottom: 10px;
    }
    .championship-tabs a {
        padding: 7px 9px;
        font-size: 10px;
        border-radius: 5px;
    }
    .championship-tabs a i { display: none; } /* sadece metin göster */

    /* Tablo daha dar ekran için daha da küçük */
    .puan-tablosu { min-width: 430px; font-size: 10px; }
    .puan-tablosu th,
    .puan-tablosu td { padding: 6px 3px; }
    .puan-tablosu td { height: 38px; }

    /* Gol sütununu gizle (AV kalır) - yer kazanmak için */
    .col-gol, .hücre-gol { display: none; }

    .takim-logo { width: 22px; height: 22px; }
    .takim-adi { font-size: 10px; max-width: 100px; }
    .hücre-puan { font-size: 11px; }
    .sira-rozet { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
    .mat-durum  { width: 22px; height: 22px; font-size: 8px; }
    .form-kutu  { width: 13px; height: 13px; font-size: 7px; }

    /* Bilgi notu */
    .bilgi-notu { font-size: 11px; line-height: 1.6; }
    .tablo-legend { font-size: 10px; gap: 5px; }

    /* PNG kaydet butonu → tam genişlik */
    .png-kaydet-btn {
        width: 100%;
        justify-content: center;
        font-size: 11px;
    }

    /* Knockout */
    .pair-card { padding: 12px; }
    .pair-card h4 { font-size: 13px; }
    .side { font-size: 11px; }
    .score-box { font-size: 12px; min-width: 46px; padding: 4px 8px; }
    .section-title { font-size: 16px; letter-spacing: 1px; }

    /* Modal daha iyi mobil görünüm */
    .modal-icerik {
        margin: 5px;
        border-radius: 10px;
        padding: 0;
    }
    .modal-sol, .modal-orta, .modal-sag { padding: 16px; }
}

@media (max-width: 1100px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-sol, .modal-orta, .modal-sag {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    .oyuncular-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== MOBİL KAYDIRMA İPUCU ===== */
.mobil-kaydirma-ipucu {
    display: none; /* masaüstünde gizli */
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    font-style: italic;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .mobil-kaydirma-ipucu {
        display: inline-flex;
    }
}

/* ===== PNG KAYDET BUTONU ===== */
.png-kaydet-btn {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.png-kaydet-btn:hover {
    background: linear-gradient(135deg, #283593 0%, #3949ab 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 53, 147, 0.4);
}

/* ===== CANLI İKON - YUVARLAK (FIFA/SOFASCORE STİLİ) ===== */
.canli-simge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #e5002b;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 6px 2px 4px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 5px;
    line-height: 1;
    box-shadow: 0 0 0 0 rgba(229, 0, 43, 0.7);
    animation: canli-pulse 1.6s ease-out infinite;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

.canli-simge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    animation: canli-dot 1.6s ease-in-out infinite;
}

@keyframes canli-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(229, 0, 43, 0.7); }
    50%  { box-shadow: 0 0 0 5px rgba(229, 0, 43, 0.0); }
    100% { box-shadow: 0 0 0 0   rgba(229, 0, 43, 0.0); }
}

@keyframes canli-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ===== SOL PANEL SCROLL KALDIRMA ===== */
.modal-sol {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}
/* Modal genel scroll izni - yalnız modal-icerik'te */
.modal-icerik {
    overflow-y: auto;
}