:root {
    --iihf-blue: #002b5c;
    --iihf-red: #da291c;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --main-panel: #1e293b;
}

.leaderboard-light {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 40px 15px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

.lb-header {
    max-width: 1000px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lb-header h1 {
    font-weight: 800;
    color: var(--iihf-blue);
    margin: 0;
}

/* Meklēšanas pogas un lauka dizains */
.search-box {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

#lbSearch {
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    outline: none;
    width: 250px;
}

#lbSearchBtn {
    background: var(--iihf-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#lbSearchBtn:hover { background: var(--iihf-red); }

/* Tabulas dizains */
.lb-content {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.minimal-table {
    width: 100%;
    border-collapse: collapse;
}

.minimal-table thead {
    background: #f1f5f9;
}

.minimal-table th {
    padding: 18px;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

.player-row {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.player-row:hover { background: #f8fafc; }

.player-row td { padding: 15px; text-align: center; }

.p-cell, .t-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.p-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eee; }
.t-logo { width: 24px; height: auto; }

.p-name { font-weight: 700; color: var(--iihf-blue); }

.pts-col {
    font-weight: 800;
    color: var(--iihf-blue);
    font-size: 1.1rem;
}

.stats-col { color: #94a3b8; font-family: 'Roboto Mono', monospace; }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .lb-header { justify-content: center; text-align: center; }
}
.rating-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border-left: 6px solid;
}

.toast-up { border-left-color: #10b981; color: #064e3b; }
.toast-down { border-left-color: #ef4444; color: #7f1d1d; }

.toast-icon {
    font-size: 24px;
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-details { display: flex; flex-direction: column; }
.toast-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.toast-value { font-size: 1.4rem; font-weight: 900; }

.toast-close {
    cursor: pointer;
    margin-left: 10px;
    font-size: 20px;
    opacity: 0.5;
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

/* Automātiska pazušana pēc 5 sekundēm */
#ratingToast {
    animation: toastSlideIn 0.5s forwards, toastFadeOut 0.5s forwards 5s;
}

  :root { --iihf-navy: #002b5c; --iihf-red: #da291c; --iihf-blue: #004a99; --bg-main: #f1f5f9; }
        body { font-family: 'Inter', sans-serif; background: var(--bg-main); margin: 0; }
        .add_score_container { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 20px; }
        
         
        /* Modālā loga fons */
.modal {
    display: none; 
    position: fixed; z-index: 10000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Modālā loga saturs */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute; right: 20px; top: 15px;
    font-size: 28px; cursor: pointer; color: #94a3b8;
}

.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; margin-top: 20px;
}

.stat-item {
    background: #f8fafc; padding: 15px;
    border-radius: 10px; text-align: center;
}

.stat-val { display: block; font-size: 1.5rem; font-weight: 800; color: #002b5c; }
.stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: #64748b; font-weight: 700; }

.player-row { cursor: pointer; } /* Norāde, ka rinda ir klikšķināma */
 .profile-container { max-width: 800px; margin: 40px auto; padding: 20px; }
    .profile-card { background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; }
    .profile-header { background: #002b5c; color: white; padding: 40px; text-align: center; position: relative; }
    .profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 5px solid white; object-fit: cover; margin-bottom: 15px; }
    
    .stats-bar { display: flex; justify-content: space-around; padding: 20px; background: #f8fafc; border-bottom: 1px solid #eee; }
    .stat-box { text-align: center; }
    .stat-box label { display: block; font-size: 0.7rem; text-transform: uppercase; color: #64748b; font-weight: 700; }
    .stat-box span { font-size: 1.5rem; font-weight: 900; color: #002b5c; }

    .history-section { padding: 30px; }
    .match-row { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid #f1f5f9; }
    .result-pill { padding: 5px 12px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; }
    .win { background: #dcfce7; color: #166534; }
    .loss { background: #fee2e2; color: #991b1b; }
	.h2h-section { margin: 20px 30px; padding: 20px; background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 12px; }
    .h2h-title { font-size: 0.75rem; text-transform: uppercase; font-weight: 800; color: #b45309; margin-bottom: 10px; display: block; }
    .h2h-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
    .h2h-score { font-size: 1.8rem; font-weight: 900; color: #002b5c; }
	.trophy-case { margin: 20px 30px; padding: 20px; background: #f1f5f9; border-radius: 12px; }
    .trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 15px; }
    .trophy-card { 
        background: white; padding: 15px; border-radius: 10px; text-align: center; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
        transition: transform 0.2s;
    }
    .trophy-card:hover { transform: translateY(-5px); border-color: #fbbf24; }
    .t-icon { font-size: 2rem; display: block; margin-bottom: 5px; }
    .t-name { font-size: 0.75rem; font-weight: 800; color: #002b5c; display: block; }
    .t-desc { font-size: 0.6rem; color: #64748b; }
    .empty-msg { font-size: 0.8rem; color: #94a3b8; font-style: italic; text-align: center; width: 100%; }
	.m-result {
        background: var(--iihf-navy);
        color: white;
        padding: 5px 12px;
        border-radius: 4px;
        font-weight: 900;
        font-size: 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 60px;
    }
     
    .score-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }/* Stils pabeigtajām spēlēm */
    .match-item.is-completed {
        background: #f8fafc;
        opacity: 0.7;
        border-left: 5px solid #94a3b8;
    }
    .completed-badge {
        background: #94a3b8;
        color: white;
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 4px;
        text-transform: uppercase;
        margin-left: 10px;
    }
	.live-badge {
        background: #da291c;
        color: white;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 900;
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }
    .live-score {
        color: #da291c;
        font-size: 1.5rem;
        font-weight: 900;
    }
	.admin-container { max-width: 800px; margin: 0 auto; }
        
        .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
        .header h1 { color: var(--primary); margin: 0; font-weight: 900; }

        .match-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            border-left: 8px solid #cbd5e1;
        }

        .match-card.status-live { border-left-color: var(--live); }
        .match-card.status-scheduled { border-left-color: var(--primary); }

        .match-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.8rem; font-weight: bold; color: #64748b; }

        .live-controls {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 20px;
        }

        .team-info { text-align: center; }
        .team-logo { width: 60px; height: 40px; object-fit: contain; margin-bottom: 10px; }
        .team-name { display: block; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

        .score-input {
            width: 70px;
            height: 70px;
            text-align: center;
            font-size: 2rem;
            font-weight: 900;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            color: var(--primary);
        }

        .vs-divider { font-weight: 900; color: #cbd5e1; font-size: 1.5rem; }

        .action-bar {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #f1f5f9;
            display: flex;
            gap: 15px;
            align-items: center;
        }

        select {
            padding: 10px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            font-weight: bold;
            flex-grow: 1;
        }

        .update-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.2s;
        }

        .update-btn:hover { background: #001a38; transform: translateY(-2px); }

        .live-tag {
            background: var(--live);
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            animation: pulse 2s infinite;
        }

        @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
		.score-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.step-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-btn:active {
    transform: scale(0.9);
}
 

    .iihf-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    /* Datuma josla */
    .iihf-date-header {
        background-color: var(--iihf-navy);
        color: white;
        padding: 10px 20px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem;
        border-radius: 4px 4px 0 0;
        margin-top: 30px;
    }

    /* Spēles rinda */
    .iihf-match-row {
        background: white;
        display: grid;
        grid-template-columns: 80px 1fr 120px 1fr 100px;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--iihf-border);
        transition: background 0.2s;
    }

    .iihf-match-row:hover {
        background-color: #fcfdfe;
    }

    /* Laiks / Status */
    .iihf-time {
        text-align: center;
        font-weight: 700;
        color: var(--iihf-navy);
        border-right: 1px solid var(--iihf-border);
    }

    /* Komandas */
    .iihf-team {
        display: flex;
        align-items: center;
        padding: 0 20px;
        gap: 15px;
    }

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

    .iihf-logo {
        width: 40px;
        height: 28px;
        object-fit: contain;
        border: 1px solid #eee;
    }

    .iihf-team-name {
        font-weight: 700;
        font-size: 1.05rem;
        text-transform: uppercase;
    }

    /* Rezultāts */
    .iihf-score-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--iihf-gray-bg);
        height: 100%;
        font-weight: 900;
        font-size: 1.4rem;
        min-height: 50px;
    }

    .iihf-score-live {
        color: var(--iihf-red);
    }

    /* Grupas/Vieta info */
    .iihf-venue {
        font-size: 0.75rem;
        color: #666;
        text-align: center;
        padding: 0 10px;
    }

    /* Live indikators */
    .iihf-live-badge {
        background: var(--iihf-red);
        color: white;
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 3px;
        margin-bottom: 4px;
        animation: iihf-blink 1s infinite;
    } 
	.match-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
        gap: 80px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .match-card {
        background: white;
        border-radius: 4px; /* IIHF parasti ir diezgan kantains stils */
        padding: 25px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        border: 1px solid #e1e8ed;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Datums augšā */
    .m-date-top {
        font-weight: 700;
        color: var(--text-gray);
        font-size: 0.85rem;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    /* Karogi un Statuss */
    .m-teams-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .m-flag {
        width: 60px;
        height: 40px;
        object-fit: cover;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .m-status {
        font-weight: 900;
        font-size: 0.9rem;
        color: var(--iihf-navy);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Komandu saīsinājumi/nosaukumi */
    .m-vs-title {
        font-size: 1.4rem;
        font-weight: 500;
        color: #333;
        margin-bottom: 10px;
    }

    /* Arēna un Laiks */
    .m-venue {
        font-size: 0.9rem;
        color: #333;
        font-weight: 400;
        margin-bottom: 5px;
    }

    .m-times-list {
        font-size: 0.85rem;
        color: #333;
        line-height: 1.4;
    }

    .m-time-item {
        display: block;
    }

    .m-time-label {
        color: var(--text-gray);
    }

    /* LIVE stils kartītei */
    .is-live {
        border-top: 4px solid var(--iihf-red);
    }
    
    .live-text {
        color: var(--iihf-red) !important;
        animation: blink 1.5s infinite;
    }
 .admin-wrapper {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 20px;
    }

    /* Galvene */
    .panel-header {
        background: var(--iihf-navy);
        color: white;
        padding: 20px 30px;
        border-radius: 8px 8px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .panel-header h2 { margin: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

    /* Spēles kartīte */
    .match-control-card {
        background: white;
        border: 1px solid var(--border-color);
        border-top: none;
        margin-bottom: 25px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        border-radius: 0 0 8px 8px;
        overflow: hidden;
    }

    /* Rezultātu josla */
    .scoreboard-row {
        display: grid;
        grid-template-columns: 1fr 120px 1fr;
        align-items: center;
        padding: 40px 20px;
        background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    }

    .team-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .team-flag {
        width: 100px;
        height: 65px;
        object-fit: contain;
        border-radius: 4px;
        border: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }

    .team-name-label {
        font-weight: 800;
        text-transform: uppercase;
        color: var(--iihf-navy);
        font-size: 1.1rem;
        text-align: center;
    }

    /* Score kontrole */
    .score-interface {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
    }
 
    .btn-adjust {
        width: 40px;
        height: 40px;
        background: var(--iihf-navy);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 1.4rem;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.1s, background 0.2s;
    }

    .btn-adjust:hover { background: var(--iihf-blue); transform: scale(1.05); }
    .btn-adjust:active { transform: scale(0.95); }

    /* Vidusdaļa */
    .vs-divider { text-align: center; }
    .vs-text { font-weight: 900; color: #cbd5e0; font-size: 1.5rem; margin-top: 5px; }

    .live-status {
        color: var(--iihf-red);
        font-weight: 900;
        font-size: 0.7rem;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-bottom: 5px;
    }

    .dot { height: 8px; width: 8px; background: var(--iihf-red); border-radius: 50%; display: inline-block; animation: blink 1s infinite; }

    /* Apakšējā josla */
    .control-footer {
        background: #f8fafc;
        padding: 20px 30px;
        border-top: 1px solid var(--border-color);
        display: flex;
        gap: 15px;
    }

    .iihf-select {
        flex: 1;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-weight: 700;
        color: var(--iihf-navy);
        outline: none;
    }

    .btn-update {
        background: var(--iihf-red);
        color: white;
        border: none;
        padding: 0 30px;
        font-weight: 900;
        text-transform: uppercase;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .btn-update:hover { background: #b81d13; }

    @keyframes blink { 50% { opacity: 0.3; } }

    @media (max-width: 600px) {
        .scoreboard-row { grid-template-columns: 1fr; gap: 30px; }
        .vs-divider { order: -1; }
    }
	.event-timeline {
        margin-top: 20px;
        background: white;
        border-radius: 8px;
        border: 1px solid #e1e8ed;
        overflow: hidden;
    }

    .event-row {
        display: grid;
        grid-template-columns: 80px 40px 1fr;
        align-items: center;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f3f5;
    }

    .event-time {
        font-weight: 900;
        color: var(--iihf-navy);
        font-size: 0.9rem;
    }

    .event-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon-goal { color: #4caf50; font-weight: 900; }
    .icon-penalty { color: #f44336; font-weight: 900; }

    .event-details {
        font-size: 0.9rem;
    }

    .event-details b { color: var(--iihf-navy); }
    
    .team-tag {
        font-size: 0.7rem;
        font-weight: 800;
        padding: 2px 5px;
        border-radius: 3px;
        background: #eee;
        margin-right: 10px;
    }
	/* Bronzas spēles pamata konteiners */
.matchup-card.bronze-game {
    border: 2px solid #cd7f32; /* Bronzas krāsa */
    position: relative;
    margin-top: 50px;
    background: linear-gradient(to bottom, #ffffff, #fff7f2);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.15);
    transition: transform 0.2s ease;
}

.matchup-card.bronze-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.25);
}

/* Emblēma virs kartītes */
.matchup-card.bronze-game::before {
    content: "🥉 BRONZE MEDAL GAME";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: #cd7f32;
    color: white;
    font-size: 0.5rem;
    padding: 3px 12px;
    font-weight: 900;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
    white-space: nowrap;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Komandu rinda bronzas spēlē */
.matchup-card.bronze-game .matchup-team {
    padding: 15px;
    border-bottom: 1px solid rgba(205, 127, 50, 0.1);
}

/* Uzvarētāja stils bronzas spēlē */
.matchup-card.bronze-game .matchup-team.winner {
    background-color: rgba(205, 127, 50, 0.1);
}

.matchup-card.bronze-game .matchup-team.winner .team-info {
    color: #8c541d; /* Tumšāka bronzas krāsa tekstam */
}

.matchup-card.bronze-game .matchup-team.winner .score-box {
    background: #cd7f32;
    color: white;
}

/* Medaļas ikona, kas parādās tikai uzvarētājam pēc spēles beigām */
.matchup-card.bronze-game .matchup-team.winner .team-info::after { 
    margin-left: 8px;
    font-size: 1.1rem;
}

/* Rezultāta lodziņš bronzas spēlē */
.matchup-card.bronze-game .score-box {
    border: 1px solid #cd7f32;
    color: #cd7f32;
    border-radius: 4px;
}
/* Zelta fināla pamata konteiners */
.matchup-card.gold-game {
    border: 2px solid #fbbf24; /* Zelta krāsa */
    position: relative;
    margin-bottom: 15px;
    background: linear-gradient(to bottom, #ffffff, #fffdf0);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    transition: transform 0.2s ease;
}

.matchup-card.gold-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

/* Emblēma virs Zelta fināla */
.matchup-card.gold-game::before {
    content: "🥇 GOLD MEDAL GAME";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: white;
    font-size: 0.5rem;
    padding: 3px 12px;
    font-weight: 900;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
    white-space: nowrap;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Komandu rinda zelta spēlē */
.matchup-card.gold-game .matchup-team {
    padding: 15px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* Uzvarētāja stils (Čempions) */
.matchup-card.gold-game .matchup-team.winner {
    background-color: rgba(251, 191, 36, 0.15);
}

.matchup-card.gold-game .matchup-team.winner .team-info {
    color: #92400e; 
}

.matchup-card.gold-game .matchup-team.winner .score-box {
    background: #fbbf24;
    color: #451a03;
}

/* Kausa ikona uzvarētājam */
.matchup-card.gold-game .matchup-team.winner .team-info::after { 
    margin-left: 8px;
    font-size: 1.1rem;
}

/* Rezultāta lodziņš zelta spēlē */
.matchup-card.gold-game .score-box {
    border: 1px solid #fbbf24;
    color: #92400e;
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.champion-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 3px solid var(--gold);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.2);
}
<style>
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none; /* Sākumā paslēpts */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

.cookie-text {
    color: var(--text-main, #f8fafc);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--accent-blue, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-accept:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-settings {
    background: transparent;
    color: var(--text-dim, #94a3b8);
    border: 1px solid var(--border, #334155);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
} 
    /* Skeleton Animācija */
    @keyframes skeleton-loading {
        0% { background-color: #e2e8f0; }
        50% { background-color: #f1f5f9; }
        100% { background-color: #e2e8f0; }
    }

    .skeleton {
        animation: skeleton-loading 1.5s infinite linear;
        border-radius: 8px;
    }

    /* Modernais ziņu režģis */
    .news-area {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .main-news { 
        position: relative;
        background: #0f172a; 
        border-radius: 24px; 
        overflow: hidden; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
        height: 480px;
    }

    .main-news img { 
        width: 100%; height: 100%; object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-news:hover img { transform: scale(1.03); }

    .main-news-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, transparent 70%);
        display: flex; flex-direction: column; justify-content: flex-end;
        padding: 40px; color: white;
    }

    /* Mazās ziņas kā Grid */
    .sub-news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .news-card {
        background: white;
        border-radius: 18px;
        border: 1px solid #edf2f7;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        border-color: var(--iihf-blue);
    }

    .news-card img { width: 100%; height: 200px; object-fit: cover; }

    .news-card-body { padding: 20px; }

    .category-tag {
        font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
        color: var(--iihf-red); letter-spacing: 1px; margin-bottom: 8px; display: block;
    }
	/* Galvenais konteiners */
    .home-container {
        max-width: 1400px;
        margin: 40px auto;
        padding: 0 25px;
        display: grid;
        /* Kreisā puse aizņem visu brīvo vietu, labā puse fiksēta uz 380px */
        grid-template-columns: 1fr 380px; 
        gap: 40px;
        align-items: start; /* Nodrošina, ka sidebar nesaplok */
    }

    /* Ziņu sadaļa (Kreisā puse) */
    .news-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* Lietotāja panelis (Labā puse) */
    .user-sidebar-sticky {
        position: sticky;
        top: 100px; /* Attālums no lapas augšas skrollējot */
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* Speciāls stils ziņu kartītēm, lai tās labāk izskatītos šādā izkārtojumā */
    .sub-news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    /* Adaptivitāte mazākiem ekrāniem */
    @media (max-width: 1100px) {
        .home-container {
            grid-template-columns: 1fr; /* Uz planšetēm/telefoniem rādām vienu kolonnā */
        }
        .user-sidebar-sticky {
            position: static;
            order: -1; /* Panelis parādās virs ziņām mobilajā versijā */
        }
    }
	.ticker-wrap {
        width: 100%;
        overflow: hidden;
        background: var(--iihf-navy, #002b5c);
        color: white;
        padding: 10px 0;
        border-bottom: 3px solid var(--iihf-red, #da291c);
        margin-bottom: 20px;
    }

    .ticker-move {
        display: flex;
        width: max-content;
        animation: ticker-scroll 40s linear infinite;
    }

    .ticker-move:hover {
        animation-play-state: paused; /* Apstājas, kad uzbrauc ar peli */
    }

     .league-full-wrap {
        width:1200px;
        background: var(--nhl-bg);
        font-family: 'Roboto Condensed', sans-serif;
        padding: 30px;
        color: #fff;
    }

    .match-score {
        font-weight: 900;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .match-status {
        font-size: 0.65rem;
        background: var(--iihf-red);
        padding: 2px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        font-weight: 800;
    }

    @keyframes ticker-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
	
	/* Jaunumu Dizains */
	
	.article-wrapper { 
        max-width: 850px; 
        margin: 60px auto; 
        padding: 0 20px; 
        font-family: 'Inter', -apple-system, sans-serif;
    }

    /* Atpakaļ saite */
    .back-link { 
        display: inline-flex; 
        align-items: center; 
        gap: 8px;
        margin-bottom: 30px; 
        color: var(--text-light); 
        text-decoration: none; 
        font-size: 0.9rem;
        transition: color 0.2s;
    }
    .back-link:hover { color: var(--iihf-red); }

    /* Galvenes stils */
    .article-header { margin-bottom: 40px; text-align: center; }
    .article-date { 
        display: block;
        color: var(--iihf-red); 
        font-weight: 700; 
        font-size: 0.85rem; 
        text-transform: uppercase; 
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }
    .article-title { 
        color: var(--iihf-navy); 
        font-size: 3.2rem; 
        font-weight: 800;
        line-height: 1.1; 
        margin: 0;
    }

    /* Galvenais attēls */
    .article-hero-img { 
        width: 100%; 
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 24px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        margin-bottom: 50px; 
    }

    /* Raksta teksts */
    .article-body { 
        line-height: 1.8; 
        color: var(--text-main); 
        font-size: 1.2rem; 
        margin-bottom: 80px;
    }

    /* Komentāru sadaļa */
    .discussion-section {
        border-top: 1px solid #e2e8f0;
        padding-top: 50px;
    }

    .comment-card {
        background: #f8fafc;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #f1f5f9;
        transition: transform 0.2s;
    }
    .comment-card:hover { transform: scale(1.01); }

    .comment-avatar {
        width: 48px; height: 48px;
        border-radius: 12px; /* Kvadrātveida ar apaļiem stūriem izskatās modernāk */
        object-fit: cover;
    }

    /* Formas elementi */
    .comment-input {
        width: 100%; 
        padding: 15px; 
        border: 2px solid #f1f5f9; 
        border-radius: 12px; 
        background: #f8fafc;
        font-size: 1rem;
        transition: border-color 0.2s;
    }
    .comment-input:focus {
        outline: none;
        border-color: var(--iihf-blue);
        background: white;
    }

    .btn-submit {
        background: var(--iihf-navy); 
        color: white; 
        border: none; 
        padding: 12px 30px; 
        border-radius: 10px; 
        font-weight: 700; 
        cursor: pointer;
        margin-top: 15px;
    }
	
	
	/* PAGINATION */
	
	/* Paginācijas konteiners */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.pg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #94a3b8;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pg-link:hover {
    background: #222;
    color: #fff;
    border-color: #444;
}

.pg-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pg-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pg-info {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 15px;
}

/* SHOP */

/* Parastā apmale, ja nav rāmīša */
.sp-profile-img {
    border: 4px solid var(--accent);
}

/* Zelta rāmīša efekts */
.gold-frame {
    border: 4px solid #ffd700 !important; /* Piespiežam zelta krāsu */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 
                0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    animation: gold-glow 3s infinite alternate;
}

/* Animācija mirdzumam */
@keyframes gold-glow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        filter: brightness(1);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
        filter: brightness(1.1);
    }
}

/* Ja vēlies vēl krutāk - pievieno mazu kronīti stūrī */
.gold-frame::after {
    content: '👑';
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 24px;
    transform: rotate(15px);
}