.ucl-container {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 10px;
}

/* GRİD SİSTEMİ - Üst ve Altı Çivileyen Yapı */
.ucl-grid {
    display: grid;
    grid-template-columns: 8% 25% 8% 25% 29% 5%; /* Toplam 100% */
    align-items: center;
    width: 100%;
}
/* Sadece Sezon sütununu hizaya getiren özel ayar */
.c-sezon-ayar {
    font-size: 12px !important; /* Laptop için bir tık küçülttük */
    white-space: nowrap !important; /* Alt satıra geçişi yasakladık */
    padding-left: 10px;
    color: #00ffcc;
    font-weight: bold;
}

/* Logoları ve isimleri yan yana tutan sihirli dokunuş */
.flex-box {
    display: flex;
    align-items: center;
    gap: 10px; /* Logo ve yazı arası boşluk */
}

/* Başlık Satırı */
.ucl-header {
    background: #1a2a6c;
    border-bottom: 3px solid #00ffcc;
    padding: 12px 0;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
}

/* Final Satırı */
.ucl-row {
    background: #0d1b3e;
    border-bottom: 1px solid #1a2a6c;
    cursor: pointer;
    padding: 8px 0;
    transition: 0.3s;
    margin-bottom: 5px; /* İŞTE BU! Satırlar arasına 5px boşluk bırakır */
}

.ucl-row:hover { background: #162a5e; }

/* Detay Paneli */
.ucl-panel {
    display: none;
    background: #050a18;
    border-left: 3px solid #00ffcc;
}

.ucl-detail-grid, .ucl-goal-grid {
    display: grid;
    grid-template-columns: 8% 25% 8% 25% 29% 5%;
    padding: 4px 0;
    align-items: center;
}

.ucl-detail-grid { color: #f1c40f; font-size: 11px; border-bottom: 1px solid #111; }
.ucl-goal-grid { font-size: 12px; }

/* Hizalamalar */
.c-center { text-align: center; }
.c-right { text-align: right; padding-right: 15px; }

.ucl-logo { height: 25px; width: auto; }
.ucl-gol-ikon { height: 14px; width: auto; }
.ucl-penalty-header {
    grid-column: span 6; /* Tüm satırı kaplaması için */
    background: #09ea5b;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 5px 15px;
    text-transform: uppercase;
    margin: 5px 0;
}
/* Sezon Detay Butonu Standart Tasarımı */
.ucl-sezon-detay-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: transparent;
    color: #00ffcc; /* O meşhur UCL turkuazı */
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #00ffcc;
    border-radius: 4px;
    transition: all 0.3s ease; /* Üzerine gelince yumuşak geçiş yapar */
    text-align: center;
}

/* Fareyle üzerine gelince (Hover) efekti */
.ucl-sezon-detay-btn:hover {
    background-color: #00ffcc;
    color: #000; /* Yazı siyah olur */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    transform: translateY(-2px); /* Hafifçe yukarı zıplar */
}
/* Sayfa Genel Arka Planı */
body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Finallerin Genel Satır Yapısı */
.ucl-row {
    transition: background 0.2s ease, transform 0.2s ease;
    border-left: 4px solid transparent;
}

.ucl-row:hover {
    background: #1a1a1a !important;
    transform: scale(1.01);
    border-left: 4px solid #00ffcc;
    cursor: pointer;
}

/* Sezon Detay Butonu (Tek Merkezden Kontrol) */
.ucl-sezon-detay-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #00ffcc;
    border-radius: 20px; /* Daha modern, yuvarlak tasarım */
    transition: all 0.3s ease;
    margin: 10px 0;
}

.ucl-sezon-detay-btn:hover {
    background-color: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

/* Skor Tabelası Merkezi */
.c-center {
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 2px;
}
/* Takım isimlerini ve logoları yan yana getiren iç kutu */
.flex-box {
    display: flex;
    align-items: center; /* Dikeyde tam orta */
    gap: 10px;           /* Logo ve isim arası boşluk */
    width: 100%;
}

/* Ev sahibi (Sol taraf) içeriği sağa yasla */
.flex-box.home {
    justify-content: flex-end;
}

/* Deplasman (Sağ taraf) içeriği sola yasla */
.flex-box.away {
    justify-content: flex-start;
}

/* Logoların standart boyutu */
.ucl-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}



/* --- TEKNİK DİREKTÖRLER TABLO TASARIMI --- */

.ucl-td-table {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1000px;
    /* --- YENİ ÇERÇEVE AYARLARI --- */
    border: 2px solid #00ffcc; /* Turkuaz Çerçeve */
    border-radius: 15px;      /* Oval Köşeler */
    overflow: hidden;         /* İçeriklerin köşelerden taşmasını engeller */
    /* ---------------------------- */
    margin: 20px 0;
    background: #001f3f;      /* Koyu Lacivert Zemin */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2); /* Hafif bir dış parıltı */
}

.ucl-td-row {
    display: flex;
    border-bottom: 1px solid #000;
}

.ucl-td-row:last-child {
    border-bottom: none;
}

.ucl-td-cell {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #004080; /* Daha yumuşak bir iç çizgi */
    background: #001f3f;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.ucl-td-cell:last-child {
    border-right: none;
}

/* Fotoğraf ve İsim Konteynırı */
.td-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Teknik Direktör Yuvarlak Fotoğraf */
.td-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #333;
    margin-left: 10px;
    flex-shrink: 0; /* Fotoğrafın ezilmesini engeller */
}

/* İç Tablo Yapısı (Yıllar ve Kulüpler) */
.nested-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* İç tablo çizgilerini de yumuşatalım */
.nested-row {
    height: 35px;
    border-bottom: 1px solid #004080; 
    display: flex;
    align-items: center;
    padding: 5px 10px;
}

.nested-row:last-child {
    border-bottom: none;
}

/* Logo Ayarları */
.nested-row img {
    height: 25px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Sayfa Başı Linki */
.top-link {
    text-align: right;
    font-size: 12px;
    margin-bottom: 10px;
}

html {
    scroll-behavior: smooth;
}

/* --- MOBİL KESİN GİZLEME (768px ve Altı) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Grid Sütun Sayısını 6'dan 4'e düşürüp genişliği paylaştırıyoruz */
    .ucl-grid, .ucl-header, .ucl-row, .ucl-detail-grid, .ucl-goal-grid {
        grid-template-columns: 18% 32% 18% 32% 0% 0% !important;
        width: 100% !important;
    }

    /* 2. Logoları Tamamen Buharlaştırıyoruz */
    .ucl-logo, .flex-box img, img.ucl-logo {
        visibility: hidden !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Stadyum ve Hakem Bilgilerini (5. ve 6. sütunları) "Hidden" Yapıyoruz */
    /* Buradaki püf nokta: Hem genişliği 0 yapıyoruz hem de görünmez kılıyoruz */
    .ucl-grid > div:nth-child(5), 
    .ucl-grid > div:nth-child(6),
    .ucl-header > div:nth-child(5),
    .ucl-header > div:nth-child(6) {
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important; /* Yer kaplamasın diye ekrandan koparıyoruz */
    }

    /* 4. Takım isimleri yanındaki boşluğu (gap) sıfırlıyoruz */
    .flex-box {
        gap: 0 !important;
    }

    /* 5. Mobilde yazıların birbirine girmemesi için font ayarı */
    .ucl-grid div {
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Sığmazsa üç nokta koyar */
    }
}