/* =======================================================
   KMB CANLI MAÇ — CANLI MAÇ SAYFASI STİLLERİ (MATCH.CSS)
   Birebir Referans: Görsel 1 (media_1792392734084.jpg)
   Glassmorphism Dark & Neon Cyan/Green Glow Tasarımı
======================================================= */

/* Ana 2-Kolonlu Grid Yerleşimi (Görsel 1) */
.match-master-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.match-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.match-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

/* =======================================================
   SKOR TAHTASI HERO KARTI (SCOREBOARD HERO)
======================================================= */
.match-header-card {
    background: radial-gradient(circle at 50% 0%, #162232 0%, #0a0f18 100%);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(0, 240, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.match-header-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 50%, transparent 100%);
}

.match-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 6px;
}

.scoreboard-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.team-box .large-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.team-box:hover .large-logo {
    transform: scale(1.08);
}

.team-box .team-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.score-center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.main-score-display {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00f0ff;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.75);
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', -apple-system, sans-serif;
}

.main-score-display .score-num {
    min-width: 48px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.score-num.updated {
    color: #00e676;
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.9);
    transform: scale(1.2);
}

.score-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.live-time-indicator {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid #ef4444;
    color: #ff6b6b;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.time-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Skor Kartı Alt İstatistik Hapları (Image 1 Referansı) */
.scoreboard-pill-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stat-pill strong {
    color: #00f0ff;
}

/* =======================================================
   ANLIK CANLI ANLATIM AKORDEON & TİMELİNE (IMAGE 1)
======================================================= */
.events-panel {
    background: radial-gradient(circle at 50% 0%, #151e2b 0%, #0a0e16 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}

.live-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.live-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: liveBlink 1.4s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.timeline-filter-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.tl-chip {
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tl-chip:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.3);
}

.tl-chip.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.panel-title span {
    color: #00f0ff;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.4) transparent;
}

.timeline-list::-webkit-scrollbar {
    width: 5px;
}
.timeline-list::-webkit-scrollbar-track {
    background: transparent;
}
.timeline-list::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 10px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #38bdf8;
    border-radius: 12px;
    transition: all 0.2s ease;
    animation: eventSlideIn 0.3s ease-out;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(2px);
}

.timeline-item.is-goal {
    border-left: 4px solid #ff5722;
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.12) 0%, rgba(255, 87, 34, 0.02) 100%);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

.timeline-item.is-card-red {
    border-left: 4px solid #dc2626;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.02) 100%);
}

.timeline-item.is-card-yellow {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.timeline-item.is-corner {
    border-left: 4px solid #00f0ff;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, transparent 100%);
}

.timeline-item.is-danger {
    border-left: 4px solid #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, transparent 100%);
}

.timeline-item.is-shot,
.timeline-item.is-save {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

.timeline-item.is-commentary {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.04);
}

@keyframes eventSlideIn {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.event-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.timeline-item.is-goal .event-icon-badge {
    border-color: #ff5722;
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.4);
}

.timeline-item.is-card-yellow .event-icon-badge {
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.timeline-item.is-card-red .event-icon-badge {
    border-color: #dc2626;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.event-minute {
    font-weight: 800;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.event-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.event-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-top: 2px;
}

/* =======================================================
   KADROLAR VE SEKME WİDGETI
======================================================= */
.widget-card {
    background: radial-gradient(circle at 50% 0%, #151e2b 0%, #0a0e16 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    padding-bottom: 4px;
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #00f0ff;
    border-bottom-color: #00f0ff;
    background: rgba(0, 240, 255, 0.05);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
}

.player-num {
    font-weight: 800;
    width: 28px;
    color: #00f0ff;
}

/* =======================================================
   RESPONSİVE UYUMLULUK (@media)
======================================================= */
@media (max-width: 992px) {
    /* Mobilde Canlı Maç Radarı Simülasyonu Logonun Hemen Altında En Başta */
    .container {
        padding-top: 0.25rem !important;
    }
    .match-top-ad-zone {
        display: none !important; /* Mobilde logonun hemen altına radar simülasyonu gelmesi için üst reklam aradan çekilir */
    }
    .match-master-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin-top: 0 !important;
        box-sizing: border-box !important;
    }
    .match-left-column,
    .match-right-column {
        display: contents !important;
    }
    #pitch-simulation-wrapper {
        order: -10 !important; /* Canlı Maç Radarı Simülasyonu En Başta (Logonun Hemen Altı) */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 0.5rem 0 !important;
    }
    .match-header-card {
        order: 1 !important; /* Skor Paneli Hero */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .spiker-radio-deck {
        order: 2 !important; /* Spiker Canlı Radyosu */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .events-panel {
        order: 3 !important; /* Anlık Canlı Anlatım */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .stats-slider-wrapper,
    .stats-slider-card {
        order: 4 !important; /* İstatistik Slider */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .main-score-display {
        font-size: 2.8rem;
    }
    .team-box .large-logo {
        width: 54px;
        height: 54px;
    }
    .team-box .team-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .main-score-display {
        font-size: 2.2rem;
        gap: 6px;
    }
    .main-score-display .score-num {
        min-width: 32px;
    }
    .team-box .large-logo {
        width: 44px;
        height: 44px;
    }
    .team-box .team-title {
        font-size: 0.88rem;
    }
    .match-top-info {
        font-size: 0.72rem;
    }
    .scoreboard-pill-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .stat-pill {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    .timeline-item {
        padding: 0.65rem 0.75rem;
        gap: 8px;
    }
    .event-icon-badge {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .event-title {
        font-size: 0.85rem;
    }
    .event-desc {
        font-size: 0.78rem;
    }
}
