/* ==========================================================================
   KAYSERİSPOR.TR - GENEL MİMARİ VE BİLEŞEN CSS
   ========================================================================== */

/* --- RENK VE DEĞİŞKEN TANIMLARI --- */
:root {
    --ks-red: #A60F0F;
    --ks-red-glow: rgba(166, 15, 15, 0.4);
    --ks-yellow: #FFC72C;
    --ks-dark: #0f1115;
    --ks-dark-surface: #181b20;
    --ks-border: #262a32;
    --ks-text: #1F2937;
    --ks-bg: #F4F5F7;
}

/* --- SIFIRLAMA VE TEMEL BİLEŞENLER --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--ks-bg);
    color: var(--ks-text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ANA KONTEYNER */
.main-container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.section-title {
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 800;
    border-left: 5px solid var(--ks-red);
    padding-left: 12px;
    margin-bottom: 18px;
    color: var(--ks-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   HEADER & TOP BAR STİLLERİ
   ========================================================================== */
.top-bar {
    background: #090a0c;
    color: #94a3b8;
    padding: 7px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-badge {
    background: var(--ks-red);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
}

header {
    background: var(--ks-dark-surface);
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--ks-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.site-logo-image {
    display: block;
    width: min(260px, 42vw);
    height: auto;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-area:hover .site-logo-image {
    transform: translateY(-1px) scale(1.015);
    filter: drop-shadow(0 4px 8px rgba(215, 25, 32, .28));
}

.logo-badge {
    background: linear-gradient(135deg, var(--ks-red) 0%, #6e0808 100%);
    color: #fff;
    font-weight: 900;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ks-yellow);
    font-size: 19px;
    box-shadow: 0 0 15px var(--ks-red-glow);
    transition: transform 0.3s ease;
}

.logo-area:hover .logo-badge {
    transform: rotate(-5deg) scale(1.05);
}

.site-title h1 {
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    line-height: 1;
}

.site-title span {
    font-size: 11px;
    color: var(--ks-yellow);
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

nav a.active {
    color: var(--ks-yellow);
    background: rgba(255, 199, 44, 0.1);
    border: 1px solid rgba(255, 199, 44, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-score-btn {
    background: var(--ks-red);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px var(--ks-red-glow);
    transition: 0.2s ease;
}

.live-score-btn:hover {
    background: #c41212;
    transform: translateY(-1px);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--ks-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ks-yellow);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   MANŞET HABERLER (740x440 ÖLÇÜ BİLİŞENİ)
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 3px solid var(--ks-yellow);
    border-left: 1px solid var(--ks-border);
    border-right: 1px solid var(--ks-border);
    border-bottom: 1px solid var(--ks-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.news-img-wrapper {
    width: 100%;
    aspect-ratio: 740 / 440;
    overflow: hidden;
    background: var(--ks-dark);
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.04);
}

.news-content { padding: 15px; }

.news-tag {
    background: var(--ks-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.news-title {
    font-size: 15px;
    margin: 10px 0 6px 0;
    font-weight: 700;
    color: var(--ks-dark);
    line-height: 1.3;
}

.news-desc { 
    font-size: 12px; 
    color: #666; 
    line-height: 1.4; 
}

/* ==========================================================================
   MAÇLAR VE PUAN DURUMU
   ========================================================================== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.matches-wrapper { display: flex; flex-direction: column; gap: 20px; }

.match-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 3px solid var(--ks-red);
    border-left: 1px solid var(--ks-border);
    border-right: 1px solid var(--ks-border);
    border-bottom: 1px solid var(--ks-border);
}

.match-header {
    font-size: 11px;
    font-weight: 800;
    color: #777;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-body { display: flex; justify-content: space-around; align-items: center; }
.team { text-align: center; width: 35%; }

.team-badge {
    width: 48px;
    height: 48px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    border: 2px solid #ddd;
}

.team-name { font-weight: 700; font-size: 14px; }

.score-box {
    text-align: center;
    background: var(--ks-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 20px;
    border: 1px solid var(--ks-yellow);
}

.vs-box { font-weight: 800; color: var(--ks-red); font-size: 16px; }

.table-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-top: 3px solid var(--ks-dark);
    border-left: 1px solid var(--ks-border);
    border-right: 1px solid var(--ks-border);
    border-bottom: 1px solid var(--ks-border);
}

.league-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.league-table th { background: #f8f8f8; text-align: left; padding: 8px; font-weight: 800; color: #555; border-bottom: 2px solid #eee; }
.league-table td { padding: 8px; border-bottom: 1px solid #eee; }
.league-table tr.kayseri-row { background: rgba(166, 15, 15, 0.08); font-weight: 800; }
.league-table tr.kayseri-row td:first-child { border-left: 3px solid var(--ks-red); }
.text-center { text-align: center; }

/* ==========================================================================
   KADRO KARTLARI
   ========================================================================== */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.player-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid var(--ks-border);
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--ks-yellow);
}

.player-image-container {
    width: 100%;
    height: 230px;
    background: linear-gradient(180deg, var(--ks-dark) 0%, var(--ks-red) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.player-img {
    width: 85%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.4));
}

.player-number {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 26px;
    font-weight: 900;
    color: var(--ks-yellow);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
    line-height: 1;
}

.player-position-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-info { padding: 12px; text-align: center; background: #fff; }
.player-name { font-size: 14px; font-weight: 800; color: var(--ks-dark); margin-bottom: 2px; text-transform: uppercase; }
.player-detail { font-size: 11px; color: #777; font-weight: 600; }

/* ==========================================================================
   MULTİMEDYA VE DİĞER BİLEŞENLER
   ========================================================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.media-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--ks-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.media-thumb {
    width: 100%;
    height: 170px;
    position: relative;
    background: var(--ks-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-type-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ks-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.play-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 199, 44, 0.9);
    color: var(--ks-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.media-card:hover .play-icon {
    transform: scale(1.1);
    background: var(--ks-yellow);
}

.media-info { padding: 12px 15px; }
.media-title { font-size: 14px; font-weight: 700; color: var(--ks-dark); line-height: 1.3; }
.media-date { font-size: 11px; color: #888; margin-top: 5px; display: block; }

/* REKLAM ALANLARI */
.ad-container {
    width: 100%;
    margin: 20px 0 25px 0;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 700;
}

.ad-slot-responsive { display: block; width: 100%; min-height: 90px; }

/* BÜLTEN VE SPONSORLAR */
.newsletter-box {
    background: linear-gradient(135deg, var(--ks-dark) 0%, var(--ks-red) 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 35px 0;
    border: 1px solid var(--ks-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-box h3 { font-size: 20px; margin-bottom: 8px; color: var(--ks-yellow); text-transform: uppercase; }
.newsletter-box p { font-size: 13px; color: #eee; margin-bottom: 20px; }

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    flex: 1;
    font-size: 13px;
    outline: none;
}

.newsletter-btn {
    background: var(--ks-yellow);
    color: var(--ks-dark);
    font-weight: 800;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-btn:hover { background: #fff; }

.sponsor-section { margin: 35px 0; text-align: center; }

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--ks-border);
}

.sponsor-item { font-weight: 800; color: #94a3b8; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* FOOTER */
footer {
    background: var(--ks-dark);
    color: #fff;
    border-top: 4px solid var(--ks-red);
    padding: 30px 5% 15px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col h3 { color: var(--ks-yellow); margin-bottom: 15px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #ccc; text-decoration: none; font-size: 13px; transition: 0.2s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 15px; font-size: 12px; color: #888; }

/* ==========================================================================
   MOBİL İÇİN RESPONSIVE DÜZENLEMELER
   ========================================================================== */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* --- YENİ MODERN SAYFALAMA (PAGINATION) --- */
.ks-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
    width: 100%;
}

.ks-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.ks-pg-btn:hover {
    background: var(--ks-red);
    color: #ffffff !important;
    border-color: var(--ks-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(166, 15, 15, 0.25);
}

.ks-pg-btn.active {
    background: var(--ks-red);
    color: #ffffff !important;
    border-color: var(--ks-red);
    box-shadow: 0 4px 10px rgba(166, 15, 15, 0.3);
}

.ks-pg-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ks-pg-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 40px;
    color: #94a3b8;
    font-weight: 900;
    letter-spacing: 1px;
}

/* --- MODERN FİKSTÜR BÖLÜMÜ STİLLERİ --- */
.month-group-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ks-dark);
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ks-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-group-title:first-child {
    margin-top: 0;
}

.fixture-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.fixture-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--ks-border);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.fixture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--ks-red);
}

.fixture-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.fixture-meta .week-tag {
    background: var(--ks-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 4px;
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 42%;
    font-weight: 700;
    font-size: 14px;
}

.fixture-team.home { justify-content: flex-end; text-align: right; }
.fixture-team.away { justify-content: flex-start; text-align: left; }

.fixture-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.fixture-score-box {
    background: #1e293b;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    min-width: 65px;
    text-align: center;
    border: 1px solid var(--ks-yellow);
}

.fixture-action {
    text-align: right;
}

.fixture-btn {
    display: inline-block;
    background: #f1f5f9;
    color: var(--ks-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.2s;
    text-transform: uppercase;
}

.fixture-card:hover .fixture-btn {
    background: var(--ks-red);
    color: #fff;
}

@media (max-width: 768px) {
    .fixture-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fixture-team.home { justify-content: center; text-align: center; }
    .fixture-team.away { justify-content: center; text-align: center; }
    .fixture-action { text-align: center; }
}

/* --- 2 SÜTUNLU İÇERİK/SIDEBAR RESPONSIVE DÜZENİ --- */
.content-grid-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

@media (max-width: 900px) {
    .content-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .fixture-sidebar,
    .news-detail-sidebar {
        order: 2;
    }

    .fixture-main-content,
    .news-detail-main {
        order: 1;
    }
}

/* ==========================================================================
   MAÇ DETAY, TAB VE KADRO BİLEŞENLERİ (ÇAKIŞMALAR TEMİZLENDİ)
   ========================================================================== */

/* --- MAÇ BAŞLIĞI VE LOGO BOYUTLANDIRMA --- */
.mac-header-box {
    background: linear-gradient(135deg, var(--ks-dark-surface) 0%, #1e2229 100%);
    color: #fff;
    padding: 20px 15px;
    border-radius: 10px;
    border-bottom: 3px solid var(--ks-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.mac-header-league {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ks-yellow);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mac-header-scorebar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
}

.mac-header-team {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mac-header-logo {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.mac-header-team h3 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.mac-header-score {
    background: var(--ks-red);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 8px;
    border: 1px solid var(--ks-yellow);
    box-shadow: 0 0 10px var(--ks-red-glow);
    white-space: nowrap;
}

.mac-header-meta {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #cbd5e1;
    text-align: center;
    font-weight: 600;
}

/* --- TAB SEKMELERİ (TEK VE TEMİZ TANIM) --- */
.mac-tabs {
    display: flex !important;
    gap: 6px !important;
    background: #111827 !important;
    padding: 8px !important;
    border-radius: 8px 8px 0 0 !important;
    overflow-x: auto !important;
    border-bottom: 3px solid var(--ks-red) !important;
}

.mac-tab-btn {
    background: transparent !important;
    color: #9ca3af !important;
    border: none !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.mac-tab-btn:hover,
.mac-tab-btn.active {
    background: var(--ks-red) !important;
    color: #ffffff !important;
}

.mac-tab-content {
    display: none;
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--ks-border);
    border-top: none;
}

.mac-tab-content.active {
    display: block !important;
}

/* --- LOGO BOYUTLARI VE ZAMAN ÇİZELGESİ LOGO KISITLARI --- */
.ksw-sb img { 
    height: 60px !important; 
    width: 60px !important; 
    object-fit: contain !important; 
    background: #fff; 
    padding: 5px; 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.ksw-fr img.k-lg, 
.ksw-tli img.k-lg, 
.k-lg { 
    height: 20px !important; 
    width: 20px !important; 
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important; 
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

.ksw-fr img, .ksw-tli img {
    max-height: 20px;
    object-fit: contain;
}
.ksw-st-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
}

.ksw-st-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ksw-st-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.ksw-st-bar-bg {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
}

.ksw-st-bar-home {
    background: #c4161c; /* Ev Sahibi Rengi */
    height: 100%;
    transition: width 0.3s ease;
}

.ksw-st-bar-away {
    background: #334155; /* Deplasman Rengi */
    height: 100%;
    transition: width 0.3s ease;
}
/* --- KADRO VE TEKNİK DİREKTÖR BÖLÜMÜ --- */
.kadro-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .kadro-grid-container {
        grid-template-columns: 1fr;
    }
}

.ksw-sq {
    background: #f8fafc;
    border-top: 4px solid var(--ks-red);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.ksw-sq.away {
    border-top-color: #334155;
}

.ksw-sq h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ksw-sq h6 {
    font-size: 11px;
    font-weight: 800;
    color: var(--ks-red);
    margin: 12px 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ksw-sq.away h6 {
    color: #334155;
}

.ksw-sr {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid #edf2f7;
    gap: 8px;
    font-size: 13px;
}

.ksw-sr:last-child {
    border-bottom: none;
}

.ksw-td {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ksw-td span {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.ksw-td b {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

/* --- YENİ MODERN MAÇ OLAYLARI AKIŞI --- */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-divider {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--ks-dark);
    padding: 6px 16px;
    border-radius: 20px;
    margin: 15px auto;
    width: fit-content;
    letter-spacing: 0.5px;
}

.timeline-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--ks-red);
    border-radius: 6px;
    padding: 10px 14px;
    gap: 12px;
    font-size: 13px;
}

.timeline-item.away {
    border-left-color: #334155;
}

.timeline-time {
    font-weight: 900;
    font-size: 14px;
    color: var(--ks-red);
    min-width: 35px;
}

.timeline-item.away .timeline-time {
    color: #334155;
}

.timeline-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.timeline-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.timeline-text {
    flex: 1;
    color: #1e293b;
    line-height: 1.4;
}

.timeline-score-badge {
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* --- MAÇ GALERİSİ & VİDEO --- */
.mac-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.mac-galeri-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--ks-border);
    background: #000;
    aspect-ratio: 4 / 3;
}

.mac-galeri-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mac-galeri-card:hover .mac-galeri-img {
    transform: scale(1.05);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ksw-contract-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
/* Devam Eden Sözleşmeler (Yeşil) */
.ksw-contract-badge.active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
/* Sona Eren Sözleşmeler (Sarı / Kırmızı) */
.ksw-contract-badge.ended {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
/* PAYLAŞIM BUTONLARI CSS */
.ksw-share-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.ksw-share-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-right: 5px;
}
.ksw-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ksw-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.ksw-share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* MARKA RENKLERİ */
.ksw-fb { background-color: #1877f2; }
.ksw-x { background-color: #000000; }
.ksw-insta { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
/* MODERN MAÇ KARTLARI CSS */
.matches-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .matches-wrapper { grid-template-columns: 1fr; }
}

.match-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-header {
    background: #1e293b;
    color: #f8fafc;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 10px;
}

.team {
    text-align: center;
    flex: 1;
}

.team-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 6px;
}

.team-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.score-box {
    font-size: 22px;
    font-weight: 900;
    background: #A60F0F;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.vs-box {
    font-size: 14px;
    font-weight: 900;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
}

.match-footer {
    background: #f8fafc;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.match-info-sub {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-btn {
    background: #A60F0F;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.match-btn:hover { background: #7A0A0A; }
.match-btn-outline { background: #1e293b; }
.match-btn-outline:hover { background: #0f172a; }
