/* ==========================================
   VIDEO WIDGET
   ========================================== */

.video-grid {
    display: grid;
    gap: 16px;
}

.video-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.video-card-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #eee;
    overflow: hidden;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.video-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-card-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 1.05rem;
}

.video-card-team:first-child {
    text-align: left;
}

.video-card-team:last-child {
    text-align: right;
}

.video-card-vs {
    color: #888;
    font-weight: 400;
}

.video-card-title {
    font-weight: 600;
    line-height: 1.3;
}

.video-card-meta {
    margin-top: auto;
    padding-top: 9px;
    font-size: .88rem;
    color: #777;
}

.video-card-tournament {
    color: #777;
}

.video-card-archive {
    opacity: .72;
}


/* ==========================================
   RSS WIDGET
   ========================================== */

.rss-grid {
    display: grid;
    gap: 16px;
}

.rss-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rss-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.rss-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.rss-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rss-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rss-card-title {
    font-weight: 500;
    line-height: 1.3;
}

.rss-card-meta {
    margin-top: auto;
    padding-top: 9px;
    font-size: .88rem;
    color: #777;
}


/* ==========================================
   TWO COLUMNS
   ========================================== */

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================
   THREE COLUMNS
   ========================================== */

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ==========================================
   TOURNAMENT WIDGET
   ========================================== */

.tournament-widget-grid {
    display: grid;
    grid-template-columns: repeat(
        var(--tournament-columns),
        minmax(0, 1fr)
    );
    gap: 16px;
}

.tournament-widget-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border-left: 5px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: .2s;
}

.tournament-widget-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tournament-widget-name {
    font-size: 1.05rem;
}

.tournament-widget-category,
.tournament-widget-location {
    color: #777;
    font-size: .85rem;
}

.tournament-widget-dates {
    font-size: .9rem;
}

.tournament-widget-status {
    margin-top: 5px;
    font-weight: 600;
}

.tournament-status-upcoming {
    border-left-color: #1976d2;
}

.tournament-status-current {
    border-left-color: #28a745;
}

.tournament-status-current .tournament-widget-status {
    color: #d60000;
}

.tournament-status-finished {
    border-left-color: #c28a00;
}


/* ==========================================
   HERO WIDGET
   ========================================== */

.hero-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.hero-box-sidebar {
    gap: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.hero-podium {
    font-size: 1.2rem;
    line-height: 2;
    border-right: 1px solid #ddd;
}

.hero-podium-sidebar {
    font-size: 1.2rem;
    line-height: 2;
    border-bottom: 1px solid #ddd;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 1.05rem;
}

.hero-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 1.05rem;
    padding: 25px 0;
}


/* Nav medaļniekiem */

.hero-no-podium {
    display: block;
    padding: 18px 20px;
}

.hero-no-podium .hero-info {
    gap: 10px;
    font-size: 1rem;
}


/* ============================================================
   Participants
============================================================ */

.participants-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.participant-card {
    box-sizing: border-box;
    min-width: 180px;
    max-width: 280px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

/* Spēlētājs */

.participant-player {
    width: max-content;
}

.participant-player .participant-name {
    font-weight: 700;
    white-space: nowrap;
}

.participant-team-name {
    margin-top: 4px;
    font-size: .9rem;
    color: #777;
    white-space: nowrap;
}

/* Komanda */

.participant-team {
    color: #315f8c;
}

.participant-team .participant-name {
    font-weight: 700;
    white-space: nowrap;
}

/* Hover */

.participant-card:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.participant-team-content {
    display: flex;
    align-items: center;
/*    gap: 10px; */
}

.thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    padding-right: 5px;
}

/* ==========================================
   PJEDESTĀLS
   ========================================== */

.podium-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.podium-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.podium-box {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.podium-title {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.podium-latvia {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #777;
}

.podium-teams {
    font-size: 1.2rem;
    line-height: 2;
}




/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 700px) {

    .video-grid {
        grid-template-columns: 1fr !important;
    }

    .rss-grid {
        grid-template-columns: 1fr !important;
    }

    .tournament-widget-grid {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .three-columns {
        grid-template-columns: 1fr;
    }

    .hero-box {
        grid-template-columns: 1fr;
    }

    .hero-podium {
        border-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
    }
    .participant-card {
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
    }

    .participant-player .participant-name,
    .participant-team .participant-name,
    .participant-team-name {
        white-space: normal;
    }

    .podium-main {
        grid-template-columns: 1fr;
    }
}