/* Архив турниров: завершённые турниры — широкими баннерами, как на главной */
.archive-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.archive-tournament-card {
    min-height: 255px !important;
    padding: 20px 26px 22px !important;
    background-size: cover !important;
    background-position: center center !important;
}

.archive-card-body,
.archive-tournament-card.has-banner .archive-card-body {
    margin-top: 24px !important;
    max-width: 560px;
}

.archive-card-body h2 {
    max-width: 100% !important;
    font-size: 31px !important;
}

.archive-winner-block {
    margin-top: 15px !important;
}

.archive-final-line {
    max-width: 640px;
}

.archive-card-actions-bottom {
    margin-top: auto;
    padding-top: 16px !important;
}

@media (max-width: 700px) {
    .archive-tournament-card {
        min-height: 330px !important;
        padding: 18px 20px 20px !important;
    }

    .archive-card-body,
    .archive-tournament-card.has-banner .archive-card-body {
        margin-top: 34px !important;
        max-width: none;
    }
}


/* YouTube button in the archive header */
.archive-page .header-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 26px;
    padding: 9px 15px;
    min-height: 38px;
    border: 1px solid rgba(236, 82, 91, 0.72);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(214, 55, 66, 0.34), rgba(160, 35, 45, 0.27));
    box-shadow: 0 6px 18px rgba(125, 19, 27, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.archive-page .header-youtube-link:hover {
    background: linear-gradient(180deg, rgba(235, 66, 77, 0.46), rgba(190, 43, 53, 0.36));
    border-color: rgba(255, 104, 112, 0.9);
    box-shadow: 0 8px 22px rgba(171, 29, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    color: #fff;
}

.archive-page .header-youtube-link:active {
    transform: translateY(0);
}

.archive-page .header-youtube-icon {
    display: inline-flex;
    width: 25px;
    height: 18px;
    flex: 0 0 auto;
}

.archive-page .header-youtube-icon svg {
    width: 25px;
    height: 18px;
    display: block;
    fill: #ff3344;
}

.archive-page .header-youtube-icon .header-youtube-play {
    fill: #ffffff;
}

@media (max-width: 980px) {
    .archive-page .header-youtube-link {
        margin-left: auto;
        padding: 8px 11px;
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    .archive-page .header-youtube-link span:last-child {
        display: none;
    }

    .archive-page .header-youtube-link {
        padding: 8px 10px;
    }
}

/* Выделение дат завершённых турниров */
.archive-page .archive-card-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 7px;
    background: rgba(5, 8, 12, 0.82);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.25px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

@media (max-width: 700px) {
    .archive-page .archive-card-date {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Даты турнира: перенос в нижний правый угол карточки */
.archive-page .archive-card-top {
    position: static;
}

.archive-page .archive-card-top .archive-badge {
    position: relative;
    z-index: 2;
}

.archive-page .archive-card-date {
    position: absolute;
    right: 26px;
    bottom: 22px;
    z-index: 3;
}

@media (max-width: 700px) {
    .archive-page .archive-card-date {
        right: 20px;
        bottom: 20px;
    }
}
