/* --- GENEL AYARLAR --- */
.kupa-konteyner {
    width: 100%;
    max-width: 900px; /* İkişerli dizilim için genişliği biraz artırdık */
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    font-family: sans-serif;
    color: #fff;
    display: flex;
    flex-wrap: wrap; /* Kutuların yan yana gelmesini sağlar */
}

/* Masaüstü: Her satırda 2 ülke olması için %50 genişlik */
.kupa-row {
    display: flex;
    width: 50%; /* <--- MASAÜSTÜ SÜTUN AYARI (2 Ülke) */
    box-sizing: border-box;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333; /* Yan yana kutular arası çizgi */
    transition: background 0.3s;
}

.kupa-col {
    flex: 1;
    padding: 12px;
    display: flex;
    align-items: center;
}

.flag {
    width: 30px;
    height: auto;
    margin-right: 12px;
    border-radius: 3px;
    border: 1px solid #555;
}

/* --- MOBİL AYARLAR (Media Query) --- */
@media (max-width: 600px) {
    /* 1. MOBİL FONT AYARI */
    p, div, td { 
        font-size: 13px !important; /* <--- BURADAN MOBİL YAZI BOYUTUNU DEĞİŞTİREBİLİRSİN */
    }

    /* 2. MOBİLDE TEK SÜTUN AYARI */
    .kupa-row {
        width: 100%; /* <--- MOBİLDE HER SATIRDA 1 ÜLKE */
        border-right: none;
    }
    
    .kupa-konteyner {
        display: block; /* Mobilde dikey akış */
    }
}

.kupa-header {
    background-color: #333;
    display: flex;
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.kupa-row {
    display: flex;
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}

.kupa-row:hover {
    background-color: #252525;
}

.bottom-row {
    border-bottom: none;
}



.center {
    justify-content: center;
    text-align: center;
}



/* Mobil için yazı boyutunu küçült */
@media (max-width: 480px) {
    .kupa-col {
        padding: 8px;
        font-size: 14px;
    }
}

/* Grup Tablosu Genel Yapısı */
.grup-tablo-konteyner {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    font-family: sans-serif;
}

.grup-satir {
    display: flex;
    border-bottom: 1px solid #333;
    align-items: center;
}

.grup-baslik {
    background-color: #333;
    font-weight: bold;
    color: #ADFF2F; /* Neon Fıstık Yeşili */
}

/* Yarı finale yükselen (Lider) rengi */
.lider {
    background-color: #003300; /* Koyu yeşil arka plan */
}

.grup-hucre {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.takim {
    flex: 3;
    text-align: left;
    display: flex;
    align-items: center;
}

.mini-flag {
    width: 20px;
    margin-right: 8px;
    border-radius: 2px;
}

/* Summary üzerindeki varsayılan oku gizle */
summary {
    display: block;
    list-style: none;
    outline: none;
}
summary::-webkit-details-marker {
    display: none;
}

/* Başlık Bandı Ayarları */
summary h4 {
    display: flex;
    justify-content: space-between; /* Yazıyı sola, işareti sağa iter */
    align-items: center;
    background-color: #7BB1DB; /* Uruguay Mavisi */
    color: #0038A8; /* Lacivert yazı */
    padding: 12px 15px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* İşaretin sağda oluşması ve [+] durumu */
summary h4::after {
    content: "[+]"; /* Varsayılan işaret */
    font-family: monospace;
    font-size: 1.2rem;
}

/* Grup açıldığında (details open iken) [-] durumu */
details[open] summary h4::after {
    content: "[-]";
}
details {
    margin-bottom: 15px; /* Gruplar arasına 25 piksellik temiz bir boşluk bırakır */
    display: block; /* Boşluğun her tarayıcıda düzgün görünmesini sağlar */
}

/* --- MOBİL AYARLAR --- */
@media (max-width: 600px) {
    .m-yok {
        display: none; /* Mobilde O, AG, YG, GF ve Eleme gizlenir */
    }
    
    .grup-hucre {
        font-size: 13px;
    }

    .takim {
        flex: 4; /* Mobilde takım ismi daha geniş yer kaplasın */
    }
}


.mac-kart {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: sans-serif;
    color: #fff;
    overflow: hidden;
}

.mac-ust-band-yeni {
    background-color: #333;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.tarih-alan { font-size: 12px; flex: 1; }

.merkez-skor-alan {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.skor-yazi {
    font-size: 22px;
    color: #ADFF2F;
    margin: 0 15px;
}

.stat-seyirci-alan {
    font-size: 11px;
    color: #ccc;
    text-align: right;
    flex: 1;
}

.gol-detay-konteyner {
    background-color: #1a1a1a;
    padding: 15px 0;
}

.gol-satir {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.gol-sol { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; /* İçeriği sağa (dakikaya) yaslar */
    align-items: center; 
    padding-right: 15px; 
}

.gol-sag { 
    flex: 1; 
    display: flex; 
    justify-content: flex-start; /* İçeriği sola (dakikaya) yaslar */
    align-items: center; 
    padding-left: 15px; 
}

.gol-ikon {
    width: 14px;
    height: 14px;
    /* Margin ile isimden uzaklaştırıyoruz */
}
.gol-merkez-dakika { 
    flex: 0 0 60px; 
    text-align: center; 
    color: #7BB1DB; 
    font-weight: bold;
    font-size: 15px;
}


.hakem-bilgi {
    background-color: #252525;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #333;
}
.mini-flag {
    width: 35px; /* Bayrakları bir tık büyüttük */
    height: auto;
    border-radius: 3px;
    border: 1px solid #555;
    vertical-align: middle;
}

.takim-isim {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 0 10px;
}

@media (max-width: 600px) {
    .skor-yazi { font-size: 18px; margin: 0 8px; }
    .gol-merkez-dakika { flex: 0 0 50px; font-size: 13px; }
}
/* Masaüstünde görünür, mobilde gizlenecek alanlar */
@media (max-width: 600px) {
    .tarih-alan, .stat-seyirci-alan {
        display: none !important;
    }

    /* Mobilde skor alanının tüm satırı kaplaması için */
    .merkez-skor-alan {
        flex: 1;
        justify-content: space-around; /* İsimleri ve bayrakları eşit dağıtır */
    }

    .takim-isim {
        font-size: 14px; /* Mobilde isimleri hafif küçültelim ki sığsın */
        margin: 0 5px;
    }
}

/* 1930 Dünya Kupası Arşiv Stilleri */

.final-konteyner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 3px solid #b45309;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.final-baslik {
    text-align: center;
    color: #fbbf24;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    padding-bottom: 15px;
}

.skor-konteyner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
}

.takim-blok {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.takim-blok img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.takim-isim {
    margin-top: 15px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
}

.skor-merkez {
    flex: 1;
    text-align: center;
    font-size: 100px;
    font-weight: 900;
    text-shadow: 4px 4px 10px rgba(0,0,0,0.8);
}

.mobil-skor {
    display: none; /* Masaüstünde gizli */
}

.aciklama-grubu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 10px;
}

.aciklama-metni {
    font-size: 17px;
    line-height: 1.8;
    color: #cbd5e1;
    text-align: justify;
    margin: 0;
}

.alt-bilgi {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* MOBİL UYUMLULUK (Responsive) */
@media (max-width: 768px) {
    .aciklama-grubu {
        grid-template-columns: 1fr;
    }

    .skor-merkez {
        display: none; /* Ortadaki 4-2'yi gizle */
    }

.mobil-skor {
        display: block; 
        font-size: 90px !important; /* Buraya !important ekledik */
        font-weight: 900;
        color: #fbbf24;
        margin-top: 10px;
    }

    .takim-isim {
        font-size: 18px;
    }

    .final-konteyner {
        padding: 20px;
    }
}


/* Kadro Konteyner Yapısı */
.kadro-ana-konteyner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.kadro-sutun {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.kadro-bayrak {
    width: 80px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.kadro-ulke-adi {
    font-size: 24px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 10px;
}

.kadro-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.kadro-liste li {
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
}

.mevki-etiket {
    color: #7BB1DB; /* Uruguay mavisi tonu */
    font-weight: bold;
    width: 40px;
    display: inline-block;
}

.teknik-direktor {
    margin-top: 20px;
    font-style: italic;
    color: #cbd5e1;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

/* Kadro Başlık Alanı (Bayrak ve İsim Yatay) */
.kadro-baslik-grubu {
    display: flex;
    flex-direction: row; /* Yan yana */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Bayrak ve isim arası boşluk */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.kadro-bayrak-kucuk {
    width: 60px; /* Yatayda daha şık durması için hafif küçülttük */
    height: auto;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.kadro-ulke-adi-yeni {
    font-size: 22px;
    font-weight: bold;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Diğer liste ve sütun ayarları aynı kalıyor */
.kadro-sutun {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

/* Mobil için kadroları alt alta getir */
@media (max-width: 768px) {
    .kadro-ana-konteyner {
        grid-template-columns: 1fr;
    }
}

/* Final Maç Detay Kartı */
.final-detay-kart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(180, 83, 9, 0.3);
}

.final-bilgi-satiri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #cbd5e1;
}

.final-gol-alani {
    margin-bottom: 20px;
}

.final-gol-satir {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gol-sol-taraf {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.gol-sag-taraf {
    flex: 1;
    text-align: left;
    padding-left: 15px;
}

/* İkon ve ismi birbirine bağlayan yapı */
.oyuncu-gol-grubu {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* İsim ile ikon arasındaki net mesafe */
    font-size: 16px;
    font-weight: 500;

}

.gol-dakika-merkez {
    width: 60px;
    text-align: center;
    background: #fbbf24;
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 0;
}


.hakem-kutu {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
}

.hakem-kutu strong {
    color: #fbbf24;
}

.final-ara-baslik {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24; /* Altın sarısı vurgu */
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

/* Mobil için gol satırlarını daralt */
@media (max-width: 768px) {
    .gol-sol-taraf, .gol-sag-taraf {
        font-size: 14px;
    }
}



.sticker-konteyner {
    position: relative;
    width: 400px;
    height: 400px;
    background-image: url('./fotolar/raptiyeli-sticker-2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    /* Dikey ortalamayı iptal edip yukarıdan sabit boşluk veriyoruz */
    justify-content: flex-start; 
    align-items: center;
    /* Üstten 100px boşluk vererek yazıyı kağıdın göbeğine indiriyoruz */
    padding: 100px 75px 40px 75px; 
    box-sizing: border-box;
}

.sticker-sag, .sticker-sol {
    float: right;
    position: relative;
    top: -55px; /* Satır hizası için yukarı çektik */
    margin-left: 20px;
    margin-bottom: 5px;
}

.sticker-icerik {
    color: #333;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    word-wrap: break-word;
}

.sticker-ust-baslik {
    color: #d90429;
    font-family: 'Arial Black', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}



.sticker-alt-vurgu {
    margin-top: 20px;
    color: #0038A8;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}


/* Mobilde float'ı iptal et (Yazı içinde sıkışmasın) */
@media (max-width: 768px) {
    .sticker-sag, .sticker-sol {
        float: none;
        margin: 20px auto;
        width: 100%;
        max-width: 400px;
    }
}
.sticker-sirali-hat {
    display: flex; /* Sihirli değnek burada */
    justify-content: center; /* Hepsini ortalar */
    gap: 20px; /* Stickerlar arası boşluk */
    flex-wrap: wrap; /* Ekran daralırsa alt alta geçerler (mobilde bozulmaz) */
    margin: 30px 0;
}

/* Yan yana geldiklerinde biraz daha küçük durmaları için (isteğe bağlı) */
.sticker-sirali-hat .sticker-konteyner {
    width: 310px; 
    height: 320px;
    padding: 70px 50px 30px 50px; /* İçerik taşmasın diye padding ayarı */
}

/* Altın Kadro Konteynırı */
.altin-kadro-kapsayici {
    background: #111; /* Koyu arka plan */
    border: 2px solid #9af60e; /* Senin meşhur neon yeşilin */
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kadro-baslik {
    text-align: center;
    color: #9af60e;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(154, 246, 14, 0.3);
    padding-bottom: 10px;
}

.kadro-izgara {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.mevki-blok {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border-top: 3px solid #d9fd16;
}

.mevki-baslik {
    color: #d9fd16;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oyuncu-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}


.oyuncu-liste li:last-child {
    border-bottom: none;
}

/* Mobilde tek sütun */
@media (max-width: 768px) {
    .mevki-blok {
        width: 100%;
    }
}
.oyuncu-liste li {
    display: flex;             /* İçeriği esnek kutu yapar */
    align-items: center;       /* Dikeyde (yukarı-aşağı) tam merkezler */
    gap: 12px;                 /* Bayrak ile isim arasına 12px boşluk koyar */
    color: #eee;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.oyuncu-liste li img {
    display: block;            /* Yanındaki metinle hizalanmasını kolaylaştırır */
    border-radius: 2px;        /* Keskin köşeleri yumuşatır */
    object-fit: contain;       /* Bayrağın formunu bozmaz */
}

.arsiv-tablo-konteyner {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

.arsiv-tablo {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #eee;
    font-size: 14px;
    text-align: center;
}

.arsiv-tablo th {
    background: #222;
    color: #9af60e; /* Neon yeşil başlıklar */
    padding: 12px 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.arsiv-tablo td {
    padding: 10px 8px;
    border-bottom: 1px solid #222;
}

/* TAKIM HİZALAMASI */
.arsiv-tablo .takim-ad {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* RENK KODLARI (SATIR KAPSAYICI) */
.sirada-sampiyon { background-color: rgba(255, 215, 0, 0.15) !important; } /* Altın */
.sirada-ikinci { background-color: rgba(192, 192, 192, 0.1) !important; }  /* Gümüş */
.sirada-yari-final { background-color: rgba(205, 127, 50, 0.1) !important; } /* Bronz */

/* MOBİL AYARLARI */
@media (max-width: 768px) {
    /* Atılan Gol, Yenilen Gol ve Eleme sütunlarını gizle */
    .arsiv-tablo .mobil-gizle {
        display: none;
    }
    .arsiv-tablo {
        font-size: 12px;
    }
}