:root {
    --bg-universe: #060709;
    --bg-cyber-card: rgba(15, 18, 25, 0.75);
    --border-cyber: rgba(255, 255, 255, 0.04);

    --neon-live: #d3d9d8;
    --neon-upcoming: #7000ff;
    --neon-gold: #ffb800;

    --text-pure: #ffffff;
    --text-cyber-muted: #7c8596;

    --font-cyber-headline: 'Space Grotesk', sans-serif;
    --font-cyber-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-cyber-body);
}

body {
    background-color: var(--bg-universe);
    color: var(--text-pure);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 30px 15px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 157, 0.03) 0%, transparent 40%);
}

.cyber-container {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
a {
    text-decoration: none;
}
/* Header */
.cyber-header {
    overflow: visible; /* əgər hidden idisə, bura görünmür */
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-cyber);
    padding: 20px;
    border-radius: 20px;
    flex-wrap: wrap; /* Mobilde sıxışma olarsa aşağı düşsün */
    gap: 16px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-logo{
    width: 25px;
}

.logo-main {
    font-family: var(--font-cyber-headline);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 30%, var(--text-cyber-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    background: linear-gradient(90deg, #ff9900, #ff5500);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.tagline {
    font-size: 13px;
    color: var(--text-cyber-muted);
}

/* Action Button */
.premium-neon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #000000;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.premium-neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Control Panel & Search */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap; /* Mobilde tam en tutsunlar deyə */
}

.cyber-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px; /* Kiçik ekranda çox sıxılmasın */
}

.search-meta-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-cyber-muted);
}

#cyberSearch {
    width: 100%;
    background: var(--bg-cyber-card);
    border: 1px solid var(--border-cyber);
    padding: 14px 14px 14px 50px;
    border-radius: 16px;
    color: white;
    font-size: 15px;
    outline: none;
}

.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.live-counter-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 157, 0.05);
    border: 1px solid rgba(0, 255, 157, 0.1);
    padding: 14px 20px;
    border-radius: 16px;
}

.pulse-ring {
    width: 8px;
    height: 8px;
    background: var(--neon-live);
    border-radius: 50%;
}

.counter-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--neon-live);
}

/* GRID SYSTEM - Mükəmməl Responsivlik üçün Açar Hissə */
.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Ekran daraldıqca avtomatik 1 sütuna keçir */
    gap: 20px;
}

/* Cyber Card Base */
.cyber-card {
    background: var(--bg-cyber-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-cyber);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.match-not-started { border-top: 3px solid #f3f3f5; }
.match-live { border-top: 3px solid #00ff9d; }
.match-upcoming { border-top: 3px solid var(--neon-upcoming); }

/* Card Top Meta */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.league-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-cyber-muted);
}

.status-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    white-space: nowrap;
}

.status-tag.live {
    background: rgba(0, 255, 157, 0.08);
    color: white;
}

.status-tag.upcoming {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-cyber-muted);
}

/* Versus Area - Sınmayan Struktur */
.versus-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* Yazıların daşmasının qarşısını alır */
}

.avatar-shield {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #141822;
    border: 1px solid var(--border-cyber);
    overflow: hidden;
    flex-shrink: 0; /* Loqonun əyilməsini qadağan edir */
}

.avatar-shield img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-pure);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Çox uzun komanda adı olarsa kənara daşmır, zərif nöqtələnir */
}

/* Scoreboard */
.digital-scoreboard {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #090b10;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.digit {
    font-family: var(--font-cyber-headline);
    font-size: 26px;
    font-weight: 700;
}

.digit.green { color: var(--neon-live); }

.digit-spacer {
    color: var(--text-cyber-muted);
    opacity: 0.8;
    font-size: 20px;
}

.time-trigger {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-pure);
}

/* Stream Control */
.stream-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

.section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-cyber-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Həm desktop, həm mobildə əla duran 2-li sıra */
    gap: 8px;
}

.stream-grid.single {
    grid-template-columns: 1fr;
}

.stream-button {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-cyber);
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stream-button:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.stream-button.vip .stream-title { color: var(--neon-live); }

.stream-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.stream-meta {
    font-size: 10px;
    color: var(--text-cyber-muted);
}

.stream-button.locked {
    pointer-events: none;
    padding: 14px;
    color: var(--text-cyber-muted);
    border-style: dashed;
}

/* No Match UI */
.no-match-alert {
    text-align: center;
    padding: 40px;
    color: var(--text-cyber-muted);
}

/* MOBİL EKSTREM OPTİMİZASİYA (Ekran 360px-dən kiçik olarsa belə sınmır) */
@media (max-width: 480px) {
    .cyber-header {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-neon-btn {
        width: 100%;
    }

    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .live-counter-badge {
        justify-content: center;
    }

    .cyber-grid {
        grid-template-columns: 1fr; /* Mobildə mütləq tək sütun */
    }

    .versus-area {
        gap: 6px;
    }

    .avatar-shield {
        /*width: 46px;*/
        height: 46px; /* Mobildə loqonu bir az kiçildirik ki yer qalsın */
    }

    .digit {
        font-size: 22px; /* Skor rəqəmlərini optimizasiya edirik */
    }

    .digital-scoreboard {
        padding: 8px 12px;
    }

}



/* Header və Brend strukturu */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-cyber);
    padding: 20px;
    border-radius: 20px;
    gap: 16px;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 16px; /* Loqo ilə dil arasındakı zərif boşluq */
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dil Seçimi Componenti (Loqo yanında duruşu) */
.lang-switcher {
    position: relative;
    user-select: none;
    z-index: 100;
}

.lang-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-cyber);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-pure);
    transition: all 0.2s ease;
}

.lang-trigger:hover, .lang-switcher.open .lang-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-trigger img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.lang-arrow {
    font-size: 9px;
    color: var(--text-cyber-muted);
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

/* Dropdown (Sola sıfırlanmış variant) */
.lang-dropdown {
    top: 100%;
    left: 0;
    z-index: 9999;
    position: absolute;
    background: #0f1219;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    list-style: none;
    width: 95px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-cyber-muted);
    border-radius: 8px;
    cursor: pointer;
}

.lang-dropdown li:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-pure);
}

.lang-dropdown li.active {
    color: var(--neon-live);
    background: rgba(0, 255, 157, 0.03);
}

/* Telegram Düyməsi (Sabit və Premium) */
.premium-neon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap; /* Mətnin aşağı sətirə düşməsini qadağan edir */
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.premium-neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
}

/* MÜKƏMMƏL MOBİL RESPONSİVLİK */
@media (max-width: 480px) {
    .cyber-header {
        flex-direction: row; /* Elementlər mütləq yan-yana qalır */
        justify-content: space-between;
        align-items: center;
        padding: 16px 12px;
    }

    .logo-row {
        gap: 8px; /* Mobildə loqo ilə dil arası məsafə bir az daralır */
    }

    .logo-main {
        font-size: 24px; /* Sığışmaq üçün loqo zərif kiçilir */
    }

    .premium-neon-btn {
        padding: 10px 14px; /* Düymə yazısı itmir, sadəcə yüngül yığcamlaşır */
        font-size: 12px;
    }
}
