.youtube-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d0d;
    overflow: hidden;
}

.youtube-video-player__embed,
.youtube-video-player__legacy,
.youtube-video-player__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.youtube-video-player__embed iframe,
.youtube-video-player__embed-noscript iframe,
.youtube-video-player--legacy .youtube-video-player__legacy iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-video-player__embed-noscript {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-video-player__embed.is-hidden,
.youtube-video-player__fallback.is-hidden {
    display: none;
}

.youtube-video-player__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-video-player__fallback-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.65);
    transform: scale(1.03);
}

.youtube-video-player__fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%),
        rgba(0, 0, 0, 0.45);
}

.youtube-video-player__fallback-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0 20px;
    padding: 32px 28px;
    text-align: center;
    border-radius: 16px;
    background: rgba(13, 13, 13, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.youtube-video-player__fallback-text {
    margin: 0 0 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

.youtube-video-player__fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 28px !important;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 8px;
    color: #fff !important;
    background-color: #294657 !important;
    border: 1px solid #487b99 !important;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.youtube-video-player__fallback-link:hover,
.youtube-video-player__fallback-link:focus {
    color: #fff !important;
    background-color: #3a6278 !important;
    border-color: #3a6278 !important;
    box-shadow: none;
}

.youtube-video-player--legacy .youtube-video-player__legacy,
.youtube-video-player--legacy .youtube-video-player__legacy iframe {
    width: 100%;
    height: 100%;
}
