html {
    scroll-behavior: smooth;
}

/* --- KONYASPOR STİLİ SPLASH SCREEN --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    overflow: hidden;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Splash Screen Slice Animasyonu */
.splash-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.splash-slice-1 {
    background: white;
    clip-path: polygon(0 0, 100% 0, 0 40%);
    transform: translateY(-100%);
}

.splash-slice-2 {
    background: linear-gradient(135deg, #004d29 0%, #003d20 100%);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
    transform: translateX(100%);
}

.splash-slice-3 {
    background: white;
    clip-path: polygon(0 60%, 100% 100%, 0 100%);
    transform: translateY(100%);
}

#loader.visible .splash-slice {
    transform: translate(0, 0);
}

/* Splash Content */
.splash-content {
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: fadeInContent 0.8s ease-in-out 0.5s forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.splash-text {
    font-size: 24px;
    font-weight: 800;
    color: #0056b3;
    letter-spacing: 2px;
    text-align: center;
    animation: slideUp 0.8s ease-out 0.7s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 104, 55, 0.15);
    border-top-color: #006837;
    border-right-color: #004d29;
    border-radius: 50%;
    animation: spin-splash 1s linear infinite;
}

@keyframes spin-splash {
    100% { transform: rotate(360deg); }
}

/* --- MODERN MOBİL MENÜ SİSTEMİ --- */
.menu-open-btn { display: none; }
.menu-overlay { display: none; }

@media (min-width: 993px) {
    header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; }
    .nav-links { display: flex !important; list-style: none; gap: 20px; }
    .nav-links a { text-decoration: none; color: #1a1a1a; font-weight: 700; font-size: 14px; }
    .menu-open-btn { display: none !important; }
}

@media (max-width: 992px) {
    .nav-links { display: none !important; }
    
    .menu-open-btn {
        display: block !important;
        font-size: 32px;
        color: #006837;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .menu-overlay {
        display: block !important;
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9999; visibility: hidden; overflow: hidden;
    }

    .menu-overlay.active { visibility: visible; }

    .slice { position: absolute; width: 100%; height: 100%; transition: transform 0.6s ease-in-out; }
    .slice:nth-child(1) { background: #006837; clip-path: polygon(0 0, 100% 0, 0 35%); transform: translateY(-100%); }
    .slice:nth-child(2) { background: #0056b3; clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%); transform: translateX(100%); }
    .slice:nth-child(3) { background: #006837; clip-path: polygon(0 65%, 100% 100%, 0 100%); transform: translateY(100%); }

    .menu-overlay.active .slice { transform: translate(0, 0); }

    .menu-content {
        position: relative; z-index: 10000; height: 100%;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; transition: 0.3s;
    }
    .menu-overlay.active .menu-content { opacity: 1; transition-delay: 0.5s; }

    .mobile-nav-list a { color: white; text-decoration: none; font-size: 28px; font-weight: 800; display: block; margin: 15px 0; text-align: center; }
    .close-btn-top { position: absolute; top: 25px; right: 25px; color: white; font-size: 35px; cursor: pointer; }
    .social-sidebar {
    position: absolute;
    bottom: 30px;          /* EN ALTA İNDİRİR */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;   /* YAN YANA */
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;

}
    .social-sidebar a { color: white; font-size: 22px; transition: 0.3s; }
    .menu-content .social-sidebar a:hover { color: #0056b3; }
    .social-sidebar a:hover { color: var(--ana-yesil); }
}





/* MASAÜSTÜ AYARLARI */
.menu-open-btn { display: none; }

@media (min-width: 993px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
    }
    .nav-links {
        display: flex !important;
        list-style: none;
        gap: 25px;
    }
    .nav-links a {
        text-decoration: none;
        color: #1a1a1a;
        font-weight: 700;
        font-size: 14px;
    }
}

/* MOBİL AYARLARI */
@media (max-width: 992px) {
    .nav-links { display: none !important; }
    
    .menu-open-btn {
        display: block !important;
        font-size: 30px;
        color: #006837;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9999; visibility: hidden; overflow: hidden;
    }

    .menu-overlay.active { visibility: visible; }

    .slice { position: absolute; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1); }
    .slice:nth-child(1) { background: #006837; clip-path: polygon(0 0, 100% 0, 0 35%); transform: translateY(-100%); }
    .slice:nth-child(2) { background: #0056b3; clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%); transform: translateX(100%); transition-delay: 0.1s; }
    .slice:nth-child(3) { background: #006837; clip-path: polygon(0 65%, 100% 100%, 0 100%); transform: translateY(100%); transition-delay: 0.2s; }

    .menu-overlay.active .slice { transform: translate(0, 0); }

    .menu-content {
        position: relative; z-index: 10000; height: 100%;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; transition: 0.5s;
    }
    .menu-overlay.active .menu-content { opacity: 1; transition-delay: 0.6s; }

    .menu-content ul { list-style: none; padding: 0; text-align: center; }
    .menu-content a { color: white; text-decoration: none; font-size: 30px; font-weight: 800; display: block; margin: 15px 0; }
    
    .close-btn-top { position: absolute; top: 30px; right: 30px; color: white; font-size: 35px; cursor: pointer; }
    
    .social-sidebar { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; }
    .social-sidebar a { color: white; font-size: 24px; transition: 0.3s; }
    .social-sidebar a:hover { color: var(--ana-yesil); }
}



/* Masaüstünde Mobil Butonu Gizle */
.new-menu-trigger { display: none; }
.custom-overlay { display: none; }

/* MASAÜSTÜ AYARLARI */
@media (min-width: 993px) {
    .nav-links { display: flex !important; list-style: none; gap: 20px; }
    .new-menu-trigger { display: none !important; }
}

/* MOBİL AYARLARI (ZORUNLU MOD) */
@media (max-width: 992px) {
    .nav-links { display: none !important; } /* Eski menüyü tamamen yok et */
    
    .new-menu-trigger {
        display: block !important;
        font-size: 30px;
        color: #006837;
        cursor: pointer;
        z-index: 1001;
    }

    .custom-overlay {
        display: block; /* JS ile kontrol edilecek */
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9999; visibility: hidden; overflow: hidden;
    }

    .custom-overlay.active { visibility: visible; }

    /* Animasyon Dilimleri */
    .slice-bg { position: absolute; width: 100%; height: 100%; transition: transform 0.6s ease-in-out; }
    .s1 { background: #006837; clip-path: polygon(0 0, 100% 0, 0 35%); transform: translateY(-100%); }
    .s2 { background: #0056b3; clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%); transform: translateX(100%); }
    .s3 { background: #006837; clip-path: polygon(0 65%, 100% 100%, 0 100%); transform: translateY(100%); }

    .custom-overlay.active .s1, .custom-overlay.active .s3 { transform: translateY(0); }
    .custom-overlay.active .s2 { transform: translateX(0); }

    /* İçerik */
    .overlay-content {
        position: relative; z-index: 10000; height: 100%;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; transition: 0.4s;
    }
    .custom-overlay.active .overlay-content { opacity: 1; transition-delay: 0.5s; }

    .overlay-content nav a { color: white; text-decoration: none; font-size: 28px; font-weight: 800; display: block; margin: 15px 0; text-align: center; }
    
    .custom-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 35px; cursor: pointer; }
    
    .overlay-social { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; }
    .overlay-social a { color: white; font-size: 22px; transition: 0.3s; }
    .overlay-social a:hover { color: var(--ana-yesil); }
}


/* --- SADECE MOBİL MENÜ TASARIMI --- */

/* Başlangıçta butonu masaüstünde gizle */
.menu-open-btn { display: none; }

@media (max-width: 768px) {
    /* Eski mobil butonunu ve nav-linkleri gizle */
    .menu-toggle, .nav-links { display: none !important; }
    
    /* Yeni butonu göster */
    .menu-open-btn {
        display: block;
        cursor: pointer;
        font-size: 28px;
        color: var(--ana-yesil);
    }

    /* Overlay Tasarımı */
    .menu-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9999; visibility: hidden; overflow: hidden;
    }

    .slice {
        position: absolute; width: 100%; height: 100%;
        transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
    }

    /* Yeşil-Mavi Katmanlar */
    .slice:nth-child(1) { background: var(--ana-yesil); clip-path: polygon(0 0, 100% 0, 0 35%); transform: translateY(-100%); }
    .slice:nth-child(2) { background: var(--canli-mavi); clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%); transform: translateX(100%); transition-delay: 0.1s; }
    .slice:nth-child(3) { background: var(--ana-yesil); clip-path: polygon(0 65%, 100% 100%, 0 100%); transform: translateY(100%); transition-delay: 0.2s; }

    .menu-overlay.active { visibility: visible; }
    .menu-overlay.active .slice { transform: translate(0, 0); }

    .menu-content {
        position: relative; z-index: 10000; height: 100%;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; transition: opacity 0.5s ease;
    }

    .menu-overlay.active .menu-content { opacity: 1; transition-delay: 0.6s; }

    .menu-content ul { list-style: none; padding: 0; text-align: center; }
    .menu-content li { margin: 15px 0; }
    .menu-content a {
        display: block; color: white; text-decoration: none;
        font-size: 32px; font-weight: 800; text-transform: uppercase;
    }

    /* Sağ Üst Kapatma */
    .close-btn-top {
        position: absolute; top: 30px; right: 30px;
        width: 50px; height: 50px; background: rgba(255,255,255,0.2);
        border-radius: 50%; display: flex; justify-content: center; align-items: center;
        color: white; font-size: 24px; cursor: pointer;
    }


    .social-sidebar a { color: white; font-size: 22px; text-decoration: none; transition: 0.3s; }
    .social-sidebar a:hover { color: var(--ana-yesil); }

    /* MOBİL MENÜ LOGO */
    .mobile-menu-logo {
        position: absolute; top: 20px; left: 20px;
        height: 60px; width: auto;
        object-fit: contain;
    }

    /* MOBİL DROPDOWN MENÜ */
    .mobile-dropdown {
        position: relative;
    }

    .mobile-dropbtn {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-dropbtn i {
        transition: transform 0.3s ease;
        font-size: 18px;
    }

    .mobile-dropbtn.active i {
        transform: rotate(180deg);
    }

    .mobile-dropdown-content {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 0;
    }

    .mobile-dropdown-content.active {
        max-height: 500px;
        opacity: 1;
    }

    .mobile-dropdown-content li a {
        display: block;
        color: white;
        text-decoration: none;
        font-size: 20px;
        font-weight: 600;
        padding: 12px 0;
        margin: 0;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .mobile-dropdown-content li a:hover {
        border-left-color: #ffd700;
        padding-left: 10px;
    }
}

/* Ortak stil: ana sayfa'dan dışarı alındı */
:root {
    --ana-yesil: #006837;
    --koyu-yesil: #004d29;
    --canli-mavi: #0056b3;
    --arka-plan: #f8f9fa;
    --beyaz: #ffffff;
    --siyah: #1a1a1a;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--arka-plan); color: var(--siyah); overflow-x: hidden; }







/* 2. NAVİGASYON (Header) */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area img { height: 75px; transition: transform 0.3s; }
.logo-area img:hover { transform: scale(1.05); }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.logo-area > div { display: flex; flex-direction: column; justify-content: center; height: 75px; }
/* Küçük başlık (SPOR KULÜBÜ) biraz sağa kaydırılsın, üst başlığı geçmesin */
.logo-area > div h2 { display: inline-block; }
.logo-area > div p { display: inline-block; margin-left: 32px; max-width: calc(100% - 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--siyah); 
    font-weight: 700; 
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    background: var(--ana-yesil);
    bottom: -5px; left: 0;
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--ana-yesil); }

/* Dropdown menu for Kulüp */
.nav-links .dropdown { position: relative; }
.nav-links .dropbtn { cursor: pointer; text-decoration: none; color: var(--siyah); font-weight: 700; display: inline-block; padding: 0; }
/* Small caret to the right of desktop drop buttons (e.g. KULÜP) */
.nav-links .dropbtn::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid currentColor;
    transform: translateY(-1px);
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-links .dropdown:hover .dropbtn::before { transform: translateY(-3px); }

@media (max-width: 768px) {
    .nav-links .dropbtn::before { display: none; }
}
.nav-links .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1200;
    margin-top: 5px;
}
.nav-links .dropdown-content a { display: block; padding: 10px 16px; color: var(--siyah); text-decoration: none; font-weight: 600; }
.nav-links .dropdown-content a:hover { background: var(--ana-yesil); color: white; }
.nav-links .dropdown:hover .dropdown-content { display: block; }

/* 3. ANA SLIDER (Hero Section) */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('foto1.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 10%;
}
.hero h1 { font-size: 4rem; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); margin-bottom: 20px; }
.hero-btn {
    padding: 15px 40px;
    background: var(--ana-yesil);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    border: 2px solid transparent;
}
.hero-btn:hover { background: transparent; border-color: white; }



/* 4. HABERLER VE KARTLAR */
.container { padding: 60px 8%; }
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
    border-left: 8px solid var(--canli-mavi);
    padding-left: 20px;
}
.section-header h2 { font-size: 2.5rem; text-transform: uppercase; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.news-card-link, .news-card-link * {
    text-decoration: none;
}
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
}
.news-card:hover { transform: translateY(-10px); }
.news-img-box { width: 100%; height: 250px; background: #ddd; display: flex; align-items: center; justify-content: center; }
.news-img-box::after { content: ""; }
.news-body { padding: 25px; }
.news-category { color: var(--canli-mavi); font-weight: bold; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.news-body h3 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }

/* 5. PUAN DURUMU & FİKSTÜR ALANI */
.stats-section {
    background: #f1f1f1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 8%;
}
.upcoming-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
/* Academy-specific upcoming styling (scoped to altyapi.html via .academy-upcoming) */
.academy-upcoming {
    background: var(--canli-mavi);
    color: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.academy-upcoming .match-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: white;
    color: var(--siyah);
    text-align: center;
    align-items: center;
}
.academy-upcoming .match-teams { 
    font-weight: 900; 
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--siyah);
    letter-spacing: 0.5px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.academy-upcoming .match-teams .team-home,
.academy-upcoming .match-teams .team-away {
    display: inline-block;
    white-space: nowrap;
}
.academy-upcoming .match-teams .team-sep {
    margin: 0 6px;
    opacity: 0.9;
}
.academy-upcoming .match-info { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.academy-upcoming .match-info .info-item {
    background: var(--ana-yesil);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .academy-upcoming .match-teams { flex-direction: column; gap: 6px; }
    .academy-upcoming .match-teams .team-home,
    .academy-upcoming .match-teams .team-away { white-space: normal; display: block; text-align: center; }
    .academy-upcoming .match-teams .team-sep {
        display: block;
        width: 48px;
        height: 3px;
        background: var(--ana-yesil);
        border-radius: 2px;
        margin: 6px auto;
        font-size: 0; /* gizle yazıyı */
        line-height: 0;
    }
}

/* Maç kartlarını dikey layout ile düzenle */
.match-card{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
}
/* Hafta etiketi: maç kartının üst kısmında küçük bir badge */
.match-card .match-week {
    display: block;
    text-align: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 13px;
}
/* Homepage match schedule: teams stacked with separator (applies on desktop and mobile)
   Mobile font-size is overridden below for smaller devices */
#match-schedule .match-card .match-teams {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding: 0;
    font-weight: 800;
    align-items: center;
}
#match-schedule .match-card .match-teams .team-home,
#match-schedule .match-card .match-teams .team-away {
    display: block;
    white-space: normal;
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#match-schedule .match-card .match-teams .team-sep {
    display: block;
    width: 64px;
    height: 4px;
    background: var(--ana-yesil);
    border-radius: 2px;
    margin: 8px auto;
    font-size: 0;
    line-height: 0;
}

/* Maintain smaller sizes on narrow screens */
@media (max-width: 768px) {
    #match-schedule .match-card .match-teams .team-home,
    #match-schedule .match-card .match-teams .team-away {
        font-size: 14px;
    }
    #match-schedule .match-card .match-teams .team-sep {
        width: 48px;
        height: 3px;
    }
}
.match-teams{grid-column: auto; text-align:left; padding:0; font-weight:700}
.match-date{grid-column: auto; font-weight:700; color:var(--beyaz); text-align:left; font-size:0.9rem}
.match-time{
    grid-column: auto;
    font-weight: 700;
    background: var(--ana-yesil);
    color: white;
    padding: 10px 16px; /* yeterli iç boşluk, yatayda dar ama okunur */
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.match-time .meta-left,
.match-time .meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.match-time .meta-left .date-time { font-weight:700; font-size:15px; display:inline-block }
.match-time .meta-right .venue { font-weight:700; font-size:15px; display:inline-block; max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:uppercase; letter-spacing:0.02em }
/* Homepage: maç takviminde tarih ve mekânı alt alta göster */
#match-schedule .match-time {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
}
#match-schedule .match-time .meta-left,
#match-schedule .match-time .meta-right {
    display: block;
    white-space: normal;
    width: 100%;
    margin: 6px 0;
    justify-content: center;
}
/* Stadyum isimlerinin tamamı görülsün: satır kaydırma ve genişlik kısıtlamasını kaldır */
#match-schedule .match-time .meta-right .venue {
    white-space: normal;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    display: inline-block;
}
/* Stacked meta rows inside match-time: saat, takvim, konum (alt alta) */
#match-schedule .match-time .meta-stack { width: 100%; }
#match-schedule .match-time .meta-stack .meta-row { display: block; text-align: center; padding: 6px 0; color: #fff; }
#match-schedule .match-time .meta-stack .meta-row i { color: #fff; font-size: 18px; vertical-align: middle; margin-right: 0; }
#match-schedule .match-time .meta-stack .time-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
#match-schedule .match-time .meta-stack .time-row .time-text { font-weight: 900; font-size: 18px; display: inline-block; }
#match-schedule .match-time .meta-stack .date-row .date-text { font-weight: 700; font-size: 14px; display: inline-block; }
#match-schedule .match-time .meta-stack .venue-row .venue-text { font-weight: 700; font-size: 14px; display: inline-block; text-transform: uppercase; }
@media (max-width: 768px) {
    #match-schedule .match-time .meta-stack .time-row .time-text { font-size: 16px; }
    #match-schedule .match-time .meta-stack .meta-row i { font-size: 14px; }
}
/* Stacked meta rows inside match-time: each row shows icon + text side-by-side */
#match-schedule .match-time .meta-stack { width: 100%; display: flex; flex-direction: column; gap: 8px; }
#match-schedule .match-time .meta-stack .meta-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; color: #fff; }
#match-schedule .match-time .meta-stack .meta-row i { font-size: 18px; color: #fff; display: inline-block; }
#match-schedule .match-time .meta-stack .time-row { }
#match-schedule .match-time .meta-stack .time-row .time-text { font-weight: 900; font-size: 18px; display: inline-block; }
#match-schedule .match-time .meta-stack .date-row .date-text { font-weight: 700; font-size: 14px; display: inline-block; }
#match-schedule .match-time .meta-stack .venue-row .venue-text { font-weight: 700; font-size: 14px; display: inline-block; text-transform: uppercase; }
@media (max-width: 768px) {
    #match-schedule .match-time .meta-stack .time-row .time-text { font-size: 18px; }
    #match-schedule .match-time .meta-stack .meta-row i { font-size: 16px; }
}
.match-stadium{grid-column: auto; font-size:0.9rem; color:#e6f7ff; text-align:left}
.match-score{grid-column: auto; padding-top:8px; border-top:1px solid rgba(255,255,255,0.1); text-align:center; font-weight:700; color:var(--canli-mavi); font-size:16px; margin-top:4px}

/* Maç kartları konteyner */
.maçlar-swiper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.standing-table {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px; border-bottom: 2px solid var(--ana-yesil); }
td { padding: 15px; border-bottom: 1px solid #eee; }
/* İlk satırı vurgula: arka plan, uppercase ve kalınlaştırma */
.standing-table tbody tr:first-child {
    background-color: #eaf6ef;
}
.standing-table tbody tr:first-child td {
    font-weight: 800;
    text-transform: uppercase;
    color: #042b1e;
}
.standing-table tbody tr:first-child td:nth-child(2) {
    font-size: 15px;
    line-height: 1.1;
}

/* Sadece ilk satır vurgulansın; diğer tüm satırların arka planını temizle */
.standing-table tbody tr:not(:first-child),
.standing-table tbody tr:not(:first-child) td {
    background: transparent !important;
}

/* Altyapı: mobilde puan tablosu - takım isimlerini daha okunaklı yap */
@media (max-width: 600px) {
    .puan-tablosu td.team-name {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        white-space: normal;
    }
    .puan-tablosu td { padding: 10px; }
}

/* 6. FOOTER */
footer {
    background: var(--siyah);
    color: white;
    padding: 80px 8% 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}
.footer-col h4 { margin-bottom: 25px; font-size: 1.2rem; position: relative; }
.footer-col h4::after { content: ''; position: absolute; width: 40px; height: 3px; background: var(--ana-yesil); left: 0; bottom: -8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #bbb; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: white; padding-left: 10px; }
/* İletişim kısmını sola al */
.footer-col:nth-child(4) { text-align: left; }
.social-bar { border-top: 1px solid #333; padding-top: 30px; text-align: center; }
.social-bar a { color: white; font-size: 24px; margin: 0 15px; transition: 0.3s; }
.social-bar a:hover { color: var(--ana-yesil); }

/* Footer Credit */
.footer-credit { position: absolute; bottom: 20px; right: 8%; }

/* Responsive Ayarlar */
@media (max-width: 992px) {
    .stats-section { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    header { flex-direction: column; gap: 20px; }
    .footer-credit { position: static; text-align: center; padding: 20px 0; }
}

/* SPONSORLAR ALANI TASARIMI */
.sponsors-section {
    background-color: white;
    padding: 50px 8%;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.sponsors-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.sponsors-header h2 {
    color: var(--koyu-yesil);
    font-size: 24px;
    letter-spacing: 1px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--canli-mavi); /* Altına mavi çizgi */
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Logolar arası boşluk */
}

.sponsor-item {
    width: 150px; /* Logo genişliği */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Başlangıçta siyah-beyaz (Konyaspor tarzı) */
    opacity: 0.7;
}

/* Mobilde İletişim kartındaki e‑postanın tamamının görünmesi için */
@media (max-width: 480px) {
    /* Eski zorlayıcı kuralı sadece no-break-link sınıfı olmayanlara uygula */
    .news-card a[href^="mailto:"]:not(.no-break-link) {
        overflow-wrap: anywhere !important;
        word-break: break-all !important;
        display: inline-block;
        font-size: 14px;
        line-height: 1.3;
    }
    .news-card p { font-size: 14px; line-height: 1.4; }
    .news-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
    /* Soldan başlatmayı daha sola çek: mobilde sol padding küçültülsün */
    .news-card { padding: 14px 8px !important; }
}

/* No-break link: zorla tek satırda tut */
.no-break-link {
    white-space: nowrap;
    display: inline-block;
}

/* Eğer link çok uzunsa ve kutu yetersiz geliyorsa kutunun yatayda büyümesine izin ver (taşma yerine) */
.news-card { min-width: 0; }
.news-card .no-break-link { max-width: 100%; }

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-item:hover {
    filter: grayscale(0%); /* Üzerine gelince renkli olsun */
    opacity: 1;
    transform: scale(1.1); /* Hafif büyüme efekti */
}

/* Puan tabloları için yeşil puanlar */
.puan-tablosu tbody td:last-child { color: var(--koyu-yesil); }

/* Puan kutucukları */
.puan-kutu {
    background: white;
    color: var(--koyu-yesil);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* Takım isimlerini puan tablolarında biraz daha küçük göster */
.puan-tablosu .team-name {
    font-size: 14px;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .puan-tablosu .team-name { font-size: 11px; }
}

@media (min-width: 993px) {
    /* Masaüstü: puan tablosunda takım isimlerini biraz büyüt (ikinci sütun) */
    .puan-tablosu tbody td:nth-child(2) {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
    }
}

/* Pasif bölümler: görünmez yapmak için (kod yerinde kalır) */
.pasif-bolum { display: none !important; }

/* --- HABER SLIDER STİLLERİ --- */
.news-slider {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 50px; /* Alttaki haberlere boşluk */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}
/* Homepage: mobilde anasayfadaki takım isimlerini küçült (genel seçiciler) */
@media (max-width: 768px) {
    /* Maç takvimi içindeki takım isimleri (hem ayrıştırılmış span'lar hem tek satır içeriği için) */
    #match-schedule .match-teams,
    #match-schedule .match-teams .team-home,
    #match-schedule .match-teams .team-away {
        font-size: 13px;
        line-height: 1.1;
    }

    /* Puan tablosunda ikinci sütundaki (takım) hücreleri hedefle - admin tarafından class eklenmemişse işe yarar */
    .puan-tablosu tbody td:nth-child(2) {
        font-size: 12px;
        line-height: 1.05;
    }
}

.news-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Resmin Üzerindeki Karartma ve Yazı Alanı */
.news-slider .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    color: white;
    box-sizing: border-box;
}

.news-slider .slide-category {
    background: var(--canli-mavi);
    color: white;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-slider .slide-overlay h2 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* Okların Stili */
.news-slider .swiper-button-next,
.news-slider .swiper-button-prev {
    color: white;
    background: rgba(0, 104, 55, 0.8); /* Madran Yeşili */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: 0.3s;
}

.news-slider .swiper-button-next:hover,
.news-slider .swiper-button-prev:hover {
    background: var(--canli-mavi);
}

.news-slider .swiper-button-next::after,
.news-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Alt Noktaların Stili */
.news-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}
.news-slider .swiper-pagination-bullet-active {
    background: var(--canli-mavi);
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .news-slider {
        height: 300px;
        border-radius: 10px;
    }
    .news-slider .slide-overlay {
        padding: 40px 20px 20px;
    }
    .news-slider .slide-overlay h2 {
        font-size: 1.4rem;
    }
    /* --- MOBİL SLIDER OKLARI DÜZELTMESİ --- */
@media (max-width: 768px) {
    /* Mevcut diğer mobil kodların... */

    .news-slider {
        height: 350px; /* Oklar için yüksekliği biraz artırmak iyi olabilir */
    }

    /* Okları görünür yap ve boyutlarını küçült */
    .news-slider .swiper-button-next,
    .news-slider .swiper-button-prev {
        display: flex !important; /* Gizlemeyi iptal et */
        width: 35px; /* Mobilde biraz daha küçük oklar */
        height: 35px;
        background: rgba(0, 104, 55, 0.6); /* Daha şeffaf yeşil */
        top: 50%; /* Tam dikey orta */
    }

    .news-slider .swiper-button-next::after,
    .news-slider .swiper-button-prev::after {
        font-size: 16px; /* Ok ikonunu küçült */
    }

    /* Okların içeriğe çok binmemesi için kenarlara yanaştır */
    .news-slider .swiper-button-next {
        right: 5px;
    }
    .news-slider .swiper-button-prev {
        left: 5px;
    }

    /* Yazıların okların altında kalmaması için yazı alanını biraz daralt */
    .news-slider .slide-overlay {
        padding: 40px 45px 20px 45px; 
    }
}
}

/* --- MOBİL İÇİN PUAN DURUMU VE MAÇ TAKVİMİ DÜZELTMELERİ --- */
@media (max-width: 768px) {
    
    /* 1. Genel Bölüm Boşluklarını Daraltma */
    .stats-section {
        padding: 40px 5%; /* Yanlardan boşluğu azaltarak yer kazandırır */
        gap: 20px;
    }

    /* 2. Puan Durumu Tablosu Düzeltmeleri */
    .standing-table {
        padding: 15px; /* Kutu iç boşluğunu küçült */
        overflow-x: auto; /* Ekrana sığmadığında yana kaydırılabilir (scroll) yap */
        -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma sağlar */
    }

    .standing-table table {
        min-width: 500px; /* Tablonun ezilmesini önler, taşan kısmı kaydırılır yapar */
        font-size: 13px; /* Mobilde daha iyi okuma için boyutu ayarla */
    }

    .standing-table th, 
    .standing-table td {
        padding: 10px 5px; /* Hücre iç boşluklarını daralt */
    }

    /* 2.4 Başlık ve TÜMÜNÜ GÖR'ü Alt Alta Diz */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem; /* Mobilde yazı boyutunu küçült */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 2.6 Yönetim Kartları ve Benzer Sayfalar - Yeşil Kartlar Grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 2.7 Beyaz Kutu Padding'ini Mobilde Azalt */
    .container > div[style*="background:white"] {
        padding: 20px !important;
    }

    /* 2.5 Haber Kartları Ortalama */
    .news-grid {
        grid-template-columns: 1fr !important; /* Mobilde tek sütun */
        max-width: 100%;
    }

    /* 2.8 Footer E-posta Mobilde Wrap */
    .footer-col a[href^="mailto"] {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        display: inline-block !important;
        max-width: 100% !important;
    }

    .news-card {
        max-width: 100%;
    }

    /* 3. Maç Takvimi Kartları Düzeltmeleri */
    .match-card {
        grid-template-columns: 1fr; /* Yan yana dizilimi iptal et, alt alta diz */
        text-align: center;
        gap: 12px;
        padding: 15px;
    }

    .match-teams {
        grid-column: 1; /* Tüm satırı kaplamasını sağla */
        text-align: center;
        padding: 0;
        font-size: 14px;
    }

    .match-date {
        grid-column: 1;
        text-align: center;
        font-size: 13px;
    }

    .match-time {
        grid-column: 1;
        width: auto;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 0 auto; /* Saati tam ortaya hizala */
        padding: 8px 10px;
        min-width: 0;
    }
    .match-time .date-time { font-size: 13px; font-weight:700 }
    .match-time .venue { font-size: 12px; font-weight:700 }
    .match-time i { color: #fff; font-size: 14px }

    .match-stadium {
        grid-column: 1;
        text-align: center;
        font-size: 12px;
    }
}

/* --- KESİN MOBİL ÇÖZÜM --- */
@media (max-width: 992px) {
    /* Menü Kapalıyken Body Durumu */
    body {
        overflow-x: hidden !important;
        display: block !important;
    }

    /* Overlay Menü Ayarları */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 99999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        visibility: hidden;
        opacity: 0;
    }

    .menu-overlay.active {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Footer'ın mobilde kaymasını veya değişmesini engelle */
    footer {
        width: 100% !important;
        position: relative !important;
        display: block !important;
        clear: both !important;
        margin-top: 30px;
    }
}

/* Puan durumu ve Maç Takvimi Taşma Engelleme */
@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        padding: 20px 15px;
    }
    .standing-table {
        width: 100%;
        overflow-x: auto; /* Tablo sığmazsa içinde kaydırılır */
    }
    .standing-table table {
        min-width: 450px;
    }
    .match-card {
        grid-template-columns: 1fr !important; /* Yan yana yerine alt alta */
        text-align: center;
        height: auto;
    }
}



 Sayacı Özel Stilleri /* Maç*/
.match-countdown-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.match-timer-card {
    background: linear-gradient(135deg, var(--koyu-yesil), var(--ana-yesil));
    border-radius: 15px;
    padding: 30px;
    color: var(--beyaz);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.timer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.timer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.timer-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 700;
}

.timer-team img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px 30px;
    border-radius: 12px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.time-unit small {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
}

.time-separator {
    font-size: 32px;
    font-weight: 800;
    opacity: 0.5;
}

.timer-footer {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .timer-main { flex-direction: column; }
    .timer-display { order: -1; width: 100%; justify-content: center; }
    .timer-team img { width: 70px; height: 70px; }
    .time-unit span { font-size: 32px; }
    .timer-footer { flex-direction: column; align-items: center; gap: 10px; }
}

/* --- GELECEK MAÇ LOGO - PARLAKLIK KALDIRILDI, HAFİF GÖLGE EKLENDİ --- */
.next-match-card .team img, 
.timer-team img, 
.glow-logo {
    background-color: transparent !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    
    /* Parlama efekti (filter: drop-shadow) yerine klasik hafif gölge */
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3)) !important;
    
    /* Boyutlandırma */
    width: 90px !important; 
    height: 90px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

/* Üzerine gelince sadece hafifçe büyüsün, parlama olmasın */
.next-match-card .team img:hover, 
.glow-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.4)) !important;
}

/* Mobilde boyut ayarı */
@media (max-width: 768px) {
    .next-match-card .team img, .timer-team img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* --- GELECEK MAÇ KARTINI HABERLERLE AYNI HİZAYA GETİRME --- */
.match-countdown-container {
    /* Haberler kısmının genişliğiyle (genellikle 1200px) eşitlemek için */
    max-width: 1200px; 
    margin: 30px auto;
    padding: 0 20px;
}

.match-timer-card {
    /* Kartın içini çok boğmadan dengeli bir padding veriyoruz */
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--koyu-yesil), var(--ana-yesil));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.timer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Takım alanlarını biraz genişleterek boşluğu dolduruyoruz */
.timer-team {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logoların boyutu ideal seviyede (85px) */
.next-match-card .team img, 
.timer-team img, 
.glow-logo,
.timer-main .timer-team img {
    width: 85px !important;
    height: 85px !important;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4)) !important;
}

/* Sayaç rakamları */
.time-unit span {
    font-size: 40px !important;
    font-weight: 800;
}

.timer-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobil için haberler bittiği noktada tam genişlik kalsın */
@media (max-width: 1200px) {
    .match-countdown-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .timer-main {
        flex-direction: column;
        gap: 20px;
    }
    .timer-display {
        width: 100%;
        justify-content: center;
    }
}

/* --- GELECEK MAÇ KARTINI HABERLERLE AYNI HİZAYA GETİRME (MASAÜSTÜ) --- */
.match-countdown-container {
    max-width: 1200px; 
    margin: 30px auto;
    padding: 0 20px;
}

.match-timer-card {
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--koyu-yesil), var(--ana-yesil));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.timer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timer-team {
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
}

.next-match-card .team img, 
.timer-team img, 
.glow-logo,
.timer-main .timer-team img {
    width: 85px !important;
    height: 85px !important;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4)) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.time-unit span {
    font-size: 40px !important;
    font-weight: 800;
    color: #fff;
}

.timer-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* =========================================================
   MOBİL KESİN ÇÖZÜM: LOGOLAR SAYAÇ ÜSTÜNDE VE YAN YANA
========================================================= */
@media (max-width: 768px) {
    /* Kartın genel daralmasını sağla */
    .match-timer-card {
        padding: 10px 5px !important;
    }

    /* Takımları ve sayacı kapsayan ana kutu */
    .timer-main {
        flex-direction: row !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important; /* Her şeyi alt çizgide hizalar */
        gap: 2px !important;
    }

    /* Takım Kutusu: Logo en üstte, isim onun altında */
    .timer-team {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex: 1 !important;
    }

    /* Logolar: Sayacın hizasında yukarıda durması için */
    .timer-team img, 
    .next-match-card .team img,
    .timer-main .timer-team img {
        width: 42px !important; /* Sığması için boyut küçültüldü */
        height: 42px !important;
        margin-bottom: 5px !important;
        object-fit: contain !important;
        filter: drop-shadow(2px 4px 5px rgba(0,0,0,0.4)) !important;
    }

    /* Takım İsimleri: Logonun hemen altında */
    .timer-team span {
        font-size: 8px !important;
        font-weight: 700 !important;
        text-align: center !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        max-width: 65px;
    }

    /* SAYAÇ: Orta kısım */
    .timer-display {
        flex: 1.2 !important;
        padding: 5px !important;
        gap: 3px !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 6px !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 12px !important; /* İsimlerin hizasına çekmek için */
    }

    /* Sayaç Rakamları */
    .time-unit span {
        font-size: 16px !important; /* Rakamları küçülterek yer açtık */
        font-weight: 800 !important;
    }

    .time-unit small {
        font-size: 7px !important;
        margin-top: -2px !important;
    }

    .time-separator {
        font-size: 14px !important;
        margin-top: -8px !important;
    }

    /* Alt bilgiler: Tarih ve Yer */
    .timer-footer {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .timer-info {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }
}

/* =========================================================
   MOBİL KESİN ÇÖZÜM: LOGOLAR YAN YANA VE SAYAÇ ORTADA
========================================================= */
@media (max-width: 768px) {
    .match-timer-card {
        padding: 18px 14px !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, #0f5f2d, #107644) !important;
    }

    .timer-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
    }

    .timer-status {
        font-size: 12px !important;
        letter-spacing: 0.18em !important;
        text-transform: uppercase !important;
        opacity: 0.95 !important;
    }

    .timer-league {
        font-size: 11px !important;
        background: rgba(255,255,255,0.12) !important;
        padding: 7px 12px !important;
        border-radius: 999px !important;
        color: #fff !important;
    }

    .timer-main {
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .timer-team {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-width: 70px !important;
    }

    /* Orta siyah kutucuğun (timer-display) mobilde yatayda biraz büyümesi */
    .timer-display {
        /* Dikey padding'i koruyup yatayda artırıyoruz */
        padding: 6px 18px !important;
        /* Orta kutunun yanlara göre biraz daha geniş olmasını sağla */
        flex: 1.4 !important;
        max-width: calc(100% - 40px) !important;
        box-sizing: border-box !important;
    }

    .timer-team img,
    .next-match-card .team img,
    .timer-main .timer-team img {
        width: 58px !important;
        height: 58px !important;
        margin-bottom: 8px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.18) !important;
        padding: 6px !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.22) !important;
    }

    .timer-team span {
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        max-width: 80px !important;
        color: #fff !important;
    }

    .timer-display {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.3) !important;
        border-radius: 20px !important;
        padding: 14px 16px !important;
        gap: 10px !important;
        min-width: 0 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
    }

    .time-unit {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 46px !important;
    }

    .time-unit span {
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .time-unit small {
        font-size: 10px !important;
        letter-spacing: 0.16em !important;
        margin-top: 4px !important;
        color: rgba(255,255,255,0.75) !important;
    }

    .time-separator {
        font-size: 28px !important;
        color: rgba(255,255,255,0.8) !important;
        margin-top: 4px !important;
    }

    .timer-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .timer-info {
        font-size: 11px !important;
        opacity: 0.9 !important;
        background: rgba(255,255,255,0.1) !important;
        padding: 8px 12px !important;
        border-radius: 999px !important;
        width: fit-content !important;
    }
}

@media (max-width: 768px) {
    .timer-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .timer-league {
        font-size: 11px !important;
        white-space: nowrap !important;
        text-align: right !important;
        margin-left: auto !important;
    }

    .timer-main {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .timer-display {
        order: 0 !important;
        width: auto !important;
        min-width: 150px !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        align-self: center !important;
    }

    .timer-team {
        flex: 0 0 auto !important;
        min-width: 68px !important;
    }

    .timer-team img {
        width: 60px !important;
        height: 60px !important;
    }

    .time-unit span {
        font-size: 28px !important;
    }

    .time-separator {
        font-size: 26px !important;
    }
}

/* Sayaç logolarını dairesel arka plan olmadan göster */
.match-countdown-container .timer-team img {
    border-radius: 0 !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    border: none !important;
    width: 86px !important;
    height: 86px !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .match-countdown-container .timer-team img {
        width: 66px !important;
        height: 66px !important;
        padding: 0 !important;
    }
}

/* Mobil: sayaç kutucuğunun üst/alt padding'ini hafifçe artır (üst-alt) */
@media (max-width: 768px) {
    .match-countdown-container .timer-display {
        padding: 18px 16px !important;
    }
}

/* Mobil: sayaç kutucuğunu masaüstü rengiyle eşitle */
@media (max-width: 768px) {
    .match-countdown-container .timer-display {
        background: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
    }
}
/* ------------------------------------------------------------------
   Moved from futbolcular.html (players page) — inline styles
   These were copied from the <style> block in futbolcular.html head.
------------------------------------------------------------------ */
.players-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.position-header{display:flex;align-items:center;gap:12px;margin-top:32px}
.position-header h2{margin:0}
.player-poster{position:relative;overflow:hidden;border-radius:18px;color:#fff;display:block;min-height:560px;padding:0;background:linear-gradient(180deg,#1b6b4f,#0c5a3f);box-shadow:0 12px 30px rgba(0,0,0,0.25);cursor:pointer}
.player-poster .num{position:absolute;left:0;top:0;background:#fff;color:#0b5b3f;font-weight:900;padding:12px 18px;border-radius:0 0 14px 0;font-size:36px;line-height:1;z-index:5}
.player-poster .club-logo{position:absolute;right:12px;top:12px;width:58px;height:58px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:4px}
.player-poster .club-logo img{width:100%;height:100%;object-fit:contain}
.player-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:18px}
.top-name{position:absolute;top:12px;left:84px;color:#fff;font-weight:800;font-size:16px;text-transform:uppercase;letter-spacing:1.5px;z-index:4;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-gradient{position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));pointer-events:none;border-radius:0 0 18px 18px;z-index:2}
.player-name{position:absolute;left:20px;bottom:62px;font-weight:900;font-size:26px;text-transform:uppercase;letter-spacing:1px;text-shadow:0 6px 14px rgba(0,0,0,0.6);z-index:3;max-width:250px;}
.player-no{position:absolute;left:20px;bottom:26px;font-size:15px;opacity:0.95;font-weight:700;color:rgba(255,255,255,0.95);z-index:3}
.player-info-overlay{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,0.80);color:#fff;padding:18px;box-sizing:border-box;transform:translateY(100%);transition:transform .32s;backdrop-filter:blur(4px);z-index:6;overflow-y:auto;max-height:100%}
.player-info-overlay .row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid rgba(255,255,255,0.04);font-size:14px}
.player-info-overlay .label{opacity:0.75;font-weight:700;font-size:11px;text-transform:uppercase}
.player-info-overlay .value{font-weight:900;text-align:right;font-size:14px}
.player-poster.open .player-info-overlay{transform:translateY(0)}
@media (min-width: 769px) {
  .player-poster:hover .player-info-overlay {
    transform: translateY(0);
  }
}

/* Masaüstü: kart görünümü ve fotoğraf yerleşimi (daha dar, dik kartlar) */
@media (min-width: 769px) {
  /* Sabit kolon genişliğiyle dar, dik kartlar (masaüstü) */
  .players-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 340px)); justify-content: center; gap: 28px; }

  .player-poster {
    width: 340px; /* hafifçe genişletildi */
    min-height: 560px; /* kart yüksekliği */
    padding-left: 20px; /* sol alana isim/numara için boşluk */
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    overflow: hidden;
  }

  .player-poster .num {
    /* Sol üst köşeye yapışık numara rozetleri */
    position: absolute;
    left: 0;
    top: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin: 0;
    padding: 0;
    border-radius: 0 0 14px 0;
    background: #fff;
    color: var(--koyu-yesil);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 8;
  }

  .player-poster .club-logo {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 56px;
    height: 56px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: 8;
  }
  .player-poster .club-logo img { width: 100%; height: 100%; object-fit: contain; }

  .top-name {
    font-size: 18px;
    left: 88px;
    max-width: 170px;
  }

  .player-photo {
    /* Fotoğraf kartı tüm alanı kaplasın (masaüstü) */
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    z-index: 1;
  }

  .photo-gradient { z-index: 2; }

  .player-name { font-size: 26px; bottom: 72px; left: 20px; max-width: 60%; }
  .player-no { font-size: 15px; bottom: 32px; left: 20px; }

  .player-info-overlay { padding: 18px; z-index: 6; }
}
/* Mobil: kartları üst üste yığ ve kart boyutlarını masaüstüyle tutarlı tut */
@media (max-width: 768px) {
  .players-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .players-grid[style] { margin-top: 18px; }

  .player-poster {
    width: 340px !important;
    min-height: 560px !important;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  }

  .player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 1;
  }

  .player-poster .num { left: 0; top: 0; width: 72px; height: 72px; font-size: 28px; }
  .top-name { left: 88px; font-size: 16px; max-width: 60%; }

/* Mobil override: küçük ekranlarda sadece yatay padding'i ~8px artır (genişliği geri alındı) */
@media (max-width: 420px) {
    .match-timer-card .timer-main { gap: 8px !important; }

    .match-timer-card .timer-team img,
    .timer-main .timer-team img {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
    }

    .match-timer-card .timer-display,
    .timer-display {
        /* Yalnızca sağ/sol padding'i hafifçe artırıyoruz; genişlik zorlama kaldırıldı */
        padding: 6px 16px !important; /* vertical 6px, horizontal 16px (yaklaşık +8px) */
        gap: 8px !important;
        box-sizing: border-box !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .match-timer-card .timer-display .time-unit span,
    .timer-display .time-unit span {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .match-timer-card .timer-display .time-unit small,
    .timer-display .time-unit small {
        font-size: 9px !important;
    }

    .match-timer-card .timer-display .time-separator,
    .timer-display .time-separator {
        font-size: 18px !important;
    }
}
  .player-name { bottom: 72px; font-size: 22px; }
  .player-no { bottom: 32px; font-size: 13px; }
  .player-info-overlay { transform: translateY(100%); }
}

/* ------------------------------------------------------------------
   Moved from haber-1.html (news detail page) — inline styles
   These were copied from the <style> block in haber-1.html head.
------------------------------------------------------------------ */
.news-detail-container { max-width: 900px; margin: 0 auto; padding: 60px 8%; }
/* Mobil: sayaç ortasındaki siyah kutucuğu sayıların sığması için büyütme */
@media (max-width: 768px) {
    .match-countdown-container .timer-display,
    .timer-display {
        padding: 18px 24px !important;
        min-width: 200px !important;
        max-width: calc(100% - 40px) !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .match-countdown-container .time-unit,
    .time-unit {
        min-width: 64px !important;
    }

    .match-countdown-container .time-unit span,
    .time-unit span {
        font-size: 32px !important;
        line-height: 1 !important;
    }
}
.news-detail-header { margin-bottom: 40px; }
.news-detail-category { color: var(--canli-mavi); font-weight: bold; font-size: 13px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.news-detail-title { font-size: 2.2rem; font-weight: 800; margin: 20px 0; line-height: 1.2; }
.news-detail-meta { color: #666; font-size: 14px; margin-bottom: 30px; }
.news-detail-image { width: 100%; height: 400px; background-color: #ddd; border-radius: 15px; margin: 40px 0; display: flex; align-items: center; justify-content: center; color: #999; }
.news-detail-content { font-size: 16px; line-height: 1.8; color: #333; }
.news-detail-content p { margin-bottom: 20px; text-align: justify; }
.news-detail-content h3 { font-size: 1.5rem; margin: 30px 0 15px 0; color: var(--koyu-yesil); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--canli-mavi); text-decoration: none; font-weight: bold; margin-bottom: 20px; transition: 0.3s; }
.back-link:hover { color: var(--ana-yesil); gap: 12px; }

/* ------------------------------------------------------------------
   Moved from haber-2.html (news detail page) — inline styles
   These were copied from the <style> block in haber-2.html head.
------------------------------------------------------------------ */
.news-detail-container { max-width: 900px; margin: 0 auto; padding: 60px 8%; }
.news-detail-header { margin-bottom: 40px; }
.news-detail-category { color: var(--canli-mavi); font-weight: bold; font-size: 13px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.news-detail-title { font-size: 2.2rem; font-weight: 800; margin: 20px 0; line-height: 1.2; }
.news-detail-meta { color: #666; font-size: 14px; margin-bottom: 30px; }
.news-detail-image { width: 100%; height: 400px; background-color: #ddd; border-radius: 15px; margin: 40px 0; display: flex; align-items: center; justify-content: center; color: #999; }
.news-detail-content { font-size: 16px; line-height: 1.8; color: #333; }
.news-detail-content p { margin-bottom: 20px; text-align: justify; }
.news-detail-content h3 { font-size: 1.5rem; margin: 30px 0 15px 0; color: var(--koyu-yesil); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--canli-mavi); text-decoration: none; font-weight: bold; margin-bottom: 20px; transition: 0.3s; }
.back-link:hover { color: var(--ana-yesil); gap: 12px; }
.score-box { background: var(--ana-yesil); color: white; padding: 20px; border-radius: 10px; margin: 20px 0; text-align: center; font-size: 1.3rem; font-weight: bold; }

/* ------------------------------------------------------------------
   Moved from haber-3.html (news detail page) — inline styles
   These were copied from the <style> block in haber-3.html head.
------------------------------------------------------------------ */
.news-detail-container { max-width: 900px; margin: 0 auto; padding: 60px 8%; }
.news-detail-header { margin-bottom: 40px; }
.news-detail-category { color: var(--canli-mavi); font-weight: bold; font-size: 13px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.news-detail-title { font-size: 2.2rem; font-weight: 800; margin: 20px 0; line-height: 1.2; }
.news-detail-meta { color: #666; font-size: 14px; margin-bottom: 30px; }
.news-detail-image { width: 100%; height: 400px; background-color: #ddd; border-radius: 15px; margin: 40px 0; display: flex; align-items: center; justify-content: center; color: #999; }
.news-detail-content { font-size: 16px; line-height: 1.8; color: #333; }
.news-detail-content p { margin-bottom: 20px; text-align: justify; }
.news-detail-content h3 { font-size: 1.5rem; margin: 30px 0 15px 0; color: var(--koyu-yesil); }
.news-detail-content ul { margin: 15px 0 15px 20px; }
.news-detail-content li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--canli-mavi); text-decoration: none; font-weight: bold; margin-bottom: 20px; transition: 0.3s; }
.back-link:hover { color: var(--ana-yesil); gap: 12px; }

/* ------------------------------------------------------------------
   Moved from haber-4.html (news detail page) — inline styles
   These were copied from the <style> block in haber-4.html head.
------------------------------------------------------------------ */
.news-detail-container { max-width: 900px; margin: 0 auto; padding: 60px 8%; }
.news-detail-header { margin-bottom: 40px; }
.news-detail-category { color: var(--canli-mavi); font-weight: bold; font-size: 13px; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.news-detail-title { font-size: 2.2rem; font-weight: 800; margin: 20px 0; line-height: 1.2; }
.news-detail-meta { color: #666; font-size: 14px; margin-bottom: 30px; }
.news-detail-image { width: 100%; height: 400px; background-color: #ddd; border-radius: 15px; margin: 40px 0; display: flex; align-items: center; justify-content: center; color: #999; }
.news-detail-content { font-size: 16px; line-height: 1.8; color: #333; }
.news-detail-content p { margin-bottom: 20px; text-align: justify; }
.news-detail-content h3 { font-size: 1.5rem; margin: 30px 0 15px 0; color: var(--koyu-yesil); }
.news-detail-content ul { margin: 15px 0 15px 20px; }
.news-detail-content li { margin-bottom: 8px; }
.goal-box { background: var(--koyu-yesil); color: white; padding: 20px; border-radius: 10px; margin: 20px 0; }
.goal-box h4 { margin-bottom: 10px; font-size: 1.1rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--canli-mavi); text-decoration: none; font-weight: bold; margin-bottom: 20px; transition: 0.3s; }
.back-link:hover { color: var(--ana-yesil); gap: 12px; }

@media (max-width: 768px) {
    .menu-content .social-sidebar {
        position: absolute !important;
        bottom: 4px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;

        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 43px;
        width: auto;
    }
}









/* =========================================================
   MOBİL CANLI MAÇ MERKEZİ - TAM BOYUT BÜYÜTME
========================================================= */
@media (max-width: 768px) {
    /* 1. Siyah Kutucuğun Genel Boyutu */
    .timer-display {
        /* Yukarı-aşağı 20px, sağ-sol 25px yaparak kutuyu genişlettik */
        padding: 20px 25px !important; 
        /* Birimler arası mesafe */
        gap: 8px !important; 
        border-radius: 12px !important;
        flex: 0 1 auto !important; 
        margin: 0 10px !important; 
    }

    /* 2. Rakamların (00) Boyutu - 19px'den 24px'e çıkarıldı */
    .time-unit span {
        font-size: 24px !important; 
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    /* 3. Alt Yazıların (GÜN, SAAT, DK) Boyutu - 7px'den 10px'e çıkarıldı */
    .time-unit small {
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
        margin-top: 4px !important;
        opacity: 0.9;
    }

    /* 4. Aradaki İki Noktaların (:) Boyutu */
    .time-separator {
        font-size: 20px !important;
        margin-top: -12px !important; 
        color: rgba(255,255,255,0.7) !important;
    }

    /* 5. Birimlerin kapladığı alan (Kutunun daralmaması için) */
    .time-unit {
        min-width: 35px !important;
    }

    /* Ana taşıyıcı boşluğu */
    .timer-main {
        gap: 10px !important; 
        justify-content: center !important;
    }
}


/* --- MAÇ ŞERİDİ TASARIMI --- */
.top-match-bar {
    width: 100%;
    height: 45px;
    background: #111; /* Siyah arka plan */
    border-bottom: 2px solid #006837; /* Yeşil şerit */
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 1000;
}

.ticker {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: tickerMove 30s linear infinite;
}

.ticker-track span {
    display: inline-flex;
    padding: 0 60px; /* Maçlar arası boşluk */
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.ticker-track b {
    color: #006837; /* Skorların yeşil rengi */
    margin: 0 10px;
}

/* Kayma Animasyonu */
@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Fare üzerine gelince durması için */
.top-match-bar:hover .ticker-track {
    animation-play-state: paused;
}

/* Admin'den gelen Sıradaki Maç etiketi */
.ticker-track .next-match-label {
    color: #006837 !important; /* Kulüp Yeşili */
    font-weight: 800 !important;
}

.ticker-track .next-match-label b {
    color: #ffffff !important; /* Takım isimleri beyaz kalsın */
    margin-left: 10px;
}

/* =========================================================
   DİNAMİK SCROLLBAR: YEŞİL BAŞLAR, HOVERDA MAVİ OLUR
========================================================= */

/* 1. Genel Genişlik */
::-webkit-scrollbar {
    width: 18px;
}

/* 2. Kaydırma Yolu (Arka Plan) */
::-webkit-scrollbar-track {
    background: var(--arka-plan);
}

/* 3. YEŞİL OKLAR (Butonlar) */
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment {
    background-color: var(--ana-yesil); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    border-radius: 2px;
    transition: background-color 0.3s; /* Yumuşak geçiş için */
}

/* ALIGN: Dikey hizalama için kesin override (mobil) */
@media (max-width: 768px) {
    .match-countdown-container .timer-display,
    .match-countdown-container .timer-display .time-unit,
    .match-countdown-container .timer-display .time-separator {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .match-countdown-container .time-unit span {
        display: block !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }

    .match-countdown-container .time-separator {
        margin: 0 !important;
        padding: 0 6px !important;
        line-height: 1 !important;
        transform: translateY(0) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 420px) {
    .match-countdown-container .time-separator {
        padding: 0 4px !important;
        font-size: 20px !important;
    }
    .match-countdown-container .time-unit span { font-size: 22px !important; }
}

/* FIX: İki nokta hizalaması ve 'DAKİKA' etiketi görünürlüğü (mobil) */
@media (max-width: 768px) {
    .match-countdown-container .timer-display,
    .match-countdown-container .timer-display * {
        align-items: center !important;
    }

    .match-countdown-container .time-separator {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 6px !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }

    .match-countdown-container .time-unit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .match-countdown-container .time-unit small {
        white-space: normal !important;
        display: block !important;
        margin-top: 2px !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }

    .match-countdown-container .time-separator { margin-top: 0 !important; }
}

@media (max-width: 420px) {
    .match-countdown-container .timer-display {
        overflow: visible !important;
        white-space: normal !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .match-countdown-container .time-unit small {
        font-size: 10px !important;
        letter-spacing: 0.04em !important;
    }

    .match-countdown-container .time-separator {
        font-size: 20px !important;
    }

    .match-countdown-container .time-unit span {
        font-size: 22px !important;
    }
}


/* Üst ve Alt Ok İkonları */
::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='50,25 20,75 80,75'/></svg>");
}
::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='50,75 20,25 80,25'/></svg>");
}

/* 4. YEŞİL KAPSÜL ÇUBUK (Normal Hal) */
::-webkit-scrollbar-thumb {
    background-color: var(--ana-yesil); 
    border-radius: 20px;
    border: 4px solid var(--arka-plan); /* Şişkin/Kapsül görünümü sağlayan boşluk */
}

/* =========================================================
   BURASI ÖNEMLİ: ÜZERİNE GELİNCE (HOVER) OLACAKLAR
========================================================= */

/* Çubuğun üzerine gelince MAVİ olsun */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--canli-mavi); /* Üzerine gelince maviye döner */
}

/* Okların üzerine gelince MAVİ olsun (Opsiyonel, bütünlük sağlar) */
::-webkit-scrollbar-button:hover {
    background-color: var(--canli-mavi);
}

html {
  scroll-behavior: smooth;
}


/* Slider dış çerçevesi */
.news-slider {
    width: 90% !important;   /* Sağdan ve soldan %5'er boşluk bırakır */
    max-width: 1200px;      /* Çok geniş ekranlarda devasa olmasını önler */
    height: 450px !important; /* Slider'ın yüksekliğini sabitledik (ÖNEMLİ) */
    margin: 40px auto !important; /* Üstten/alttan boşluk ve yatayda ortalama */
    border-radius: 20px;    /* Köşeleri yuvarlatır */
    overflow: hidden;
}

/* Fotoğrafların slider alanına tam oturması */
.news-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.news-slider .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;      /* Fotoğrafı alanı kaplayacak şekilde doldurur, boşluk bırakmaz */
    display: block;
}

/* Mobil cihazlar için yükseklik ayarı */
@media (max-width: 768px) {
    .news-slider {
        width: 95% !important; /* Mobilde boşluğu biraz azalttık */
        height: 300px !important; /* Telefon ekranına uygun yükseklik */
    }
}

@media (max-width: 768px) {
    .match-countdown-container {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 768px) {
    .match-countdown-container {
        /* Ekranın her iki yanından 7px boşluk bırakır */
        width: calc(100% - 14px) !important;
        margin-left: 7px !important;
        margin-right: 7px !important;
        
        /* Kartı yukarıdan ve aşağıdan büyütür */
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        
        /* İçeriklerin düzgün durması için */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 15px !important;
    }

    /* Logoların ve kutunun olduğu satırı genişletir */
    .timer-main {
        width: 100% !important;
        justify-content: center !important;
        gap: 15px !important;
    }
}

/* =========================================================
   MOBİL CANLI MAÇ MERKEZİ - SAĞ/SOL AZ BOŞLUKLU TAM GENİŞLİK
========================================================= */
@media (max-width: 768px) {
    /* Dış kapsayıcıyı ekranın tamamına yay ve sadece 8px iç boşluk bırak */
    .match-countdown-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important; /* Üst ve alt boşluk */
        padding: 0 14px !important; /* SAĞ VE SOLDAN BIRAKILACAK AZ BOŞLUK */
        box-sizing: border-box !important;
    }

    /* Yeşil kutunun genişliğini %100 yap */
    .match-timer-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 24px 14px !important; /* İçeriğin kenarlara yapışmaması için iç boşluk */
        border-radius: 15px !important; /* Köşe ovalliği */
    }
}

/* SADECE MOBİLDE SAYAÇ KUTULARINI SAĞA VE SOLA GENİŞLETİR */
@media (max-width: 768px) {
    .time-box {
        /* İçeriği (rakamları) değiştirmeden kutuyu sağa-sola açar */
        padding-left: 35px !important;
        padding-right: 35px !important;
        
        /* Kutunun daralmasını engellemek için genişlik veriyoruz */
        min-width: 100px !important;
        
        /* Yan yana sığmaları için aralarındaki mesafeyi ayarlıyoruz */
        margin: 0 5px !important;
        
        /* Köşelerin oval yapısını korur */
        border-radius: 12px !important;
        
        /* İçeriklerin kutu içinde tam ortalanmasını sağlar */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Rakamların ve yazıların kutuyu ortalaması için */
    .time-box span {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* =========================================================
   MOBİL: RAKAMLARIN ARKASINDAKİ TEK PARÇA SİYAH DİKDÖRTGEN
========================================================= */
@media (max-width: 768px) {
    /* Tüm rakamları kapsayan ana konteyneri geniş oval bir dikdörtgen yapıyoruz */
    .timer-display {
        background: rgba(0, 0, 0, 0.75) !important; /* Siyah şeffaf arka plan */
        padding: 12px 40px !important;            /* SAĞ VE SOLA DOĞRU GENİŞLETEN KISIM */
        border-radius: 15px !important;           /* Köşeleri oval yapar */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;                     /* Rakamlar (Gün:Saat) arası mesafe */
        width: fit-content !important;            /* İçeriğe göre genişle ama padding ile yayıl */
        margin: 0 auto !important;                /* Yeşil kartın içinde ortalar */
    }

    /* Tekil kutucuklardaki eski arka planları ve boşlukları kaldırıyoruz */
    /* Böylece hepsi tek bir siyah dikdörtgenin içindeymiş gibi durur */
    .time-unit {
        background: transparent !important;
        padding: 0 !important;
        min-width: auto !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Rakamları ve alt yazıları kesinlikle büyütmüyoruz, sabit tutuyoruz */
    .time-unit span { 
        font-size: 22px !important; 
        line-height: 1 !important;
    }
    
    .time-unit small { 
        font-size: 9px !important; 
        margin-top: 2px !important;
    }

    /* Aradaki iki nokta üst üste (:) simgesinin rengini ve duruşunu ayarlar */
    .time-separator {
        color: white !important;
        font-size: 20px !important;
        padding-bottom: 12px !important; /* Rakamlarla hizalamak için */
    }
}

/* Canlı maç sayacındaki siyah oval kutunun opaklığını ayarlar */
.match-timer {
    background: rgba(0, 0, 0, 0.5) !important; /* 0.5 değeri %50 şeffaflık yapar */
}

/* Mobil ve Genel Görünüm İçin Sayaç Kutusu Düzenlemesi */
.match-timer {
    background: rgba(0, 0, 0, 0.5) !important; /* Siyah rengi %50 şeffaf yapar */
    padding: 15px 25px !important;            /* İlk değer (15px) yukarı-aşağı genişliği artırır */
    border-radius: 20px !important;           /* Köşelerin ovalliğini korur */
}

/* CANLI MAÇ SAYACI - ÖZEL DÜZENLEME */
.match-timer {
    background: rgba(0, 0, 0, 0.4) !important; /* %40 şeffaf siyah */
    padding: 15px 30px !important;            /* Yukarı-Aşağı: 15px, Sağ-Sol: 30px yaparak kutuyu büyüttük */
    border-radius: 25px !important;           /* Kenarları daha oval yaptık */
    backdrop-filter: blur(5px);               /* Arkadaki yeşilliği hafif bulanıklaştırarak şık bir efekt verir */
}

/* --- CANLI MAÇ SAYAÇ KUTUSU KESİN ÇÖZÜM --- */
.match-timer {
    /* Siyah kutuyu şeffaf yapar (%40 opaklık) */
    background: rgba(0, 0, 0, 0.4) !important; 
    
    /* Kutuyu yukarıdan ve aşağıdan büyütür (20px dikey, 30px yatay boşluk) */
    padding: 20px 30px !important; 
    
    /* Diğer önemli ayarlar */
    border-radius: 30px !important;    /* Oval yapıyı korur */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: fit-content !important;
    margin: 0 auto !important;
    backdrop-filter: blur(4px);        /* Arkadaki yeşilliği hafif bulanıklaştırarak modern durmasını sağlar */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Çok ince şeffaf bir çerçeve ekler */
}

/* Eğer mobilde kutu çok büyük gelirse diye ekstra ayar */
@media (max-width: 768px) {
    .match-timer {
        padding: 18px 25px !important; /* Mobilde biraz daha dengeli durur */
    }
}

/* MOBİL İÇİN ÖZEL RENK VE BOYUT GÜNCELLEMESİ */
@media (max-width: 768px) {
    .match-timer {
        /* Fotoğraftaki gibi daha açık ve şeffaf gri tonu */
        background: rgba(40, 40, 40, 0.5) !important; 
        
        /* Kutuyu yukarıdan ve aşağıdan büyütmek için */
        padding: 22px 25px !important; 
        
        /* Cam efekti (arka planı hafif bulanıklaştırır, fotoğraftaki havayı verir) */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;

        /* Kenar çizgisi (isteğe bağlı, daha belirgin yapar) */
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        
        border-radius: 20px !important;
    }
}

/* --- MOBİL VE MASAÜSTÜ SAYAÇ GÖRÜNÜMÜNÜ EŞİTLEME --- */
@media (max-width: 992px) { 
    /* 992px altındaki tüm cihazlarda (tablet ve mobil) geçerli olur */
    
    .match-timer {
        /* Masaüstündeki o açık gri şeffaf ton */
        background: rgba(255, 255, 255, 0.15) !important; 
        
        /* Arka planı bulanıklaştırarak o profesyonel cam efektini verir */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;

        /* Kutuyu yukarıdan ve aşağıdan büyütür */
        padding: 25px 35px !important; 
        
        /* Kenar çizgisi ve ovallik */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 20px !important;
        
        /* Ortalama ayarları */
        display: flex !important;
        margin: 20px auto !important;
        width: fit-content !important;
    }

    /* Rakamların ve yazıların renklerini netleştirelim */
    .time-unit span {
        color: #ffffff !important;
        text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
    }
    
    .time-unit small {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

/* ------------------ RESTORE MOBILE SIZES (ONLY HORIZONTAL INCREASE) ------------------ */
@media (max-width: 768px) {
    /* Timer display: keep vertical padding small, increase only left/right by +8px */
    .match-countdown-container .timer-display,
    .timer-display {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 48px !important;   /* horizontal increased */
        padding-right: 48px !important;  /* horizontal increased */
        box-sizing: border-box !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Match card/container: restore vertical padding to smaller values */
    .match-timer-card,
    .match-timer {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ------------------ END RESTORE ------------------ */

/* ======================= MOBILE: GELECEK MAÇ TASARIMI (SCREEN MATCH) ======================= */
@media (max-width: 768px) {
    /* Kartın genel görünümü (yeşil arka plan) */
    .match-timer-card {
        padding: 18px 18px !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg,#0f5f2d,#107644) !important;
        box-shadow: 0 14px 30px rgba(0,0,0,0.18) !important;
    }

    /* Başlık alanı daha sıkışık */
    .timer-header { padding-bottom: 10px !important; margin-bottom: 10px !important; }

    /* Ana satır: logolar yanlarda, sayaç ortada */
    .timer-main {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    /* Takım kutuları: logo üstte, isim altta; isim daha okunaklı */
    .timer-team {
        flex: 0 0 auto !important;
        min-width: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    /* Logolar: yuvarlak arka plan yok, sadece temiz logo */
    .match-countdown-container .timer-team img,
    .timer-team img {
        width: 72px !important;
        height: 72px !important;
        object-fit: contain !important;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 10px 22px rgba(0,0,0,0.14) !important;
    }

    .timer-team span {
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #fff !important;
        line-height: 1.1 !important;
        max-width: 90px !important;
    }

    /* Ortadaki siyah kutucuk: sadece yatayda genişletilmiş, dikey küçük */
    .match-countdown-container .timer-display,
    .timer-display {
        background: rgba(0,0,0,0.36) !important;
        border-radius: 14px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 48px !important;   /* yatay büyüme */
        padding-right: 48px !important;  /* yatay büyüme */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
        min-width: 0 !important;
    }

    /* Sayaç birimleri (rakamlar) */
    .time-unit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 56px !important;
    }

    .time-unit span {
        font-size: 34px !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .time-unit small {
        font-size: 10px !important;
        color: rgba(255,255,255,0.85) !important;
        margin-top: 6px !important;
        letter-spacing: 0.12em !important;
    }

    .time-separator {
        font-size: 28px !important;
        color: rgba(255,255,255,0.9) !important;
        font-weight: 800 !important;
        padding-bottom: 6px !important;
    }

    /* Alt bilgi kutucukları (tarih/yer) */
    .timer-footer {
        margin-top: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .timer-info {
        background: rgba(255,255,255,0.06) !important;
        color: rgba(255,255,255,0.95) !important;
        padding: 10px 14px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        gap: 8px !important;
        align-items: center !important;
    }
}

/* ======================= END MOBILE GELECEK MAÇ OVERRIDE ======================= */

/* ======================= TIGHTEN: RAKAM - ETİKET ARALIĞI ======================= */
@media (max-width: 768px) {
    /* Rakamların hemen altındaki küçük etiketlerin (GÜN/SAAT/DAKİKA) üstten boşluğunu azalt */
    .match-countdown-container .time-unit small,
    .timer-display .time-unit small {
        margin-top: 2px !important;
        line-height: 1 !important;
        display: block !important;
    }
}

@media (max-width: 420px) {
    .match-countdown-container .time-unit small,
    .timer-display .time-unit small {
        margin-top: 1px !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }
}

/* ======================= END TIGHTEN ======================= */

/* ======================= REDUCE TIMER UNIT GAPS ======================= */
/* Dar ekranlarda gün/ saat/ dakika rakamları arasındaki boşluğu azaltmak için */
.match-countdown-container .timer-display {
    gap: 6px !important; /* ana boşluk, sayı birimleri arasındaki mesafe */
}

.match-countdown-container .timer-display .time-unit {
    min-width: auto !important;
    padding: 0 4px !important; /* yatay iç boşluk */
    margin: 0 !important;
}

.match-countdown-container .timer-display .time-unit span {
    display: block !important;
}

.match-countdown-container .timer-display .time-separator {
    padding: 0 6px !important;
    margin: 0 !important;
}

@media (max-width: 420px) {
    .match-countdown-container .timer-display { gap: 4px !important; }
    .match-countdown-container .timer-display .time-unit { padding: 0 2px !important; min-width: 36px !important; }
    .match-countdown-container .timer-display .time-separator { padding: 0 4px !important; }
}

/* ======================= END REDUCE TIMER UNIT GAPS ======================= */

/* ======================= FIX: DAR EKRAN ÇAKIŞMA DÜZELTMESİ ======================= */
@media (max-width: 420px) {
    .match-countdown-container .timer-main {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .match-countdown-container .timer-team {
        flex: 0 0 64px !important;
        min-width: 64px !important;
        margin: 0 6px !important;
        padding: 0 !important;
    }

    .match-countdown-container .timer-team img {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 4px !important;
        display: block !important;
        z-index: 1 !important;
    }

    .match-countdown-container .timer-display {
        flex: 1 1 auto !important;
        max-width: calc(100% - 152px) !important; /* iki logo + gap alanı rezerve edilir */
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        z-index: 2 !important;
    }

    .match-countdown-container .time-unit {
        min-width: 40px !important;
        margin: 0 2px !important;
    }

    .match-countdown-container .time-unit span {
        font-size: 22px !important;
        font-weight: 800 !important;
    }

    .match-countdown-container .time-separator {
        font-size: 20px !important;
    }
}

/* ======================= END FIX ======================= */
