/* Shared bilingual competition guides, following the approved Line Follower layout. */
.competition-guide-section {
    clear: both;
    max-width: 1170px;
    margin: 4em auto 0;
    padding: 3em 20px 0;
    border-top: 1px solid #e5e5e5;
}

.competition-guide-section > .competition-video {
    max-width: 900px;
    margin: 0 auto;
}

.competition-guide-section .competition-video-heading h3 {
    font-size: 2em;
    line-height: 1.4;
}

.competition-guide-section .competition-guide-title-cn {
    display: inline-block;
    margin-left: 12px;
    color: #777;
    font-size: .6em;
    white-space: nowrap;
}

.competition-video {
    scroll-margin-top: 150px;
}

.competition-video .competition-video-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.competition-video .competition-video-heading h3 {
    margin: 0;
}

.competition-video-picker {
    margin: 0 0 20px;
}

.competition-video-picker label {
    display: block;
    margin: 0 0 8px;
    color: #707070;
    font-size: 14px;
    font-weight: 400;
}

.competition-video-picker select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 16px;
    text-overflow: ellipsis;
}

.competition-video-picker select:focus-visible {
    outline: 2px solid #e22e2e;
    outline-offset: 2px;
}

.competition-video-languages {
    display: inline-flex;
    border: 1px solid #e22e2e;
    border-radius: 4px;
    overflow: hidden;
}

.competition-video-languages button {
    min-width: 86px;
    min-height: 42px;
    padding: 8px 17px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #bd2424;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.competition-video-languages button + button {
    border-left: 1px solid #e22e2e;
}

.competition-video-languages button[aria-pressed="true"] {
    background: #e22e2e;
    color: #fff;
}

.competition-video-languages button:hover:not([aria-pressed="true"]) {
    background: #fff2f2;
}

.competition-video-languages button:focus-visible {
    outline: 2px solid #333;
    outline-offset: -4px;
}

.competition-video .competition-video-player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #151515;
}

.competition-video-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
    color: #707070;
    font-size: 14px;
    line-height: 1.6;
}

.competition-video-duration {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.competition-video .competition-video-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #777;
}

.competition-video .competition-video-error {
    margin: 10px 0;
    font-size: 14px;
    color: #a92323;
}

.competition-video .competition-video-error[hidden] {
    display: none;
}

.competition-video .competition-video-error a {
    margin: 0;
    color: inherit;
}

@media (max-width: 991px) {
    .competition-video {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .competition-guide-section {
        margin-top: 2.5em;
        padding: 2em 15px 0;
    }

    .competition-guide-section .competition-video-heading h3 {
        font-size: 1.7em;
    }

    .competition-guide-section .competition-guide-title-cn {
        margin-left: 0;
    }

    .competition-video .competition-video-heading {
        gap: 12px;
        margin-bottom: 18px;
    }

    .competition-video-languages button {
        min-width: 75px;
        padding: 8px 12px;
    }

    .competition-video-caption {
        font-size: 13px;
    }
}
