/* ================================
   BJJ Bloodline - Video embeds
   Additions to teacher-videos.css for the wider provider set.
   Loaded after teacher-videos.css so it can override without !important.
   ================================ */

/* Every player, whatever the provider, keeps a consistent frame. */
.video-responsive {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* WordPress oEmbed markup carries its own wrapper and inline sizing, which
   fights the aspect ratio above. Let those providers size themselves. */
.video-responsive--oembed {
    aspect-ratio: auto;
    background: transparent;
}

.video-responsive--oembed iframe,
.video-responsive--oembed .wp-embedded-content {
    position: static;
    width: 100%;
    height: auto;
    min-height: 320px;
}

.video-responsive--file video {
    position: static;
    height: auto;
}

/* ================================
   FALLBACK LINK CARD
   ================================ */

.video-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: #111;
    border: 1px solid #333;
    border-left: 3px solid #c41e3a;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.video-link-card:hover,
.video-link-card:focus-visible {
    background: #1a1a1a;
    border-color: #c41e3a;
    color: #fff;
}

.video-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(196, 30, 58, .15);
    color: #c41e3a;
}

.video-link-text {
    min-width: 0;
}

.video-link-text strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.3;
}

.video-link-text small {
    display: block;
    margin-top: .15rem;
    font-size: .82rem;
    color: #888;
}

/* ================================
   FORM HINT
   ================================ */

.video-form-hint {
    margin: .45rem 0 0;
    font-size: .8rem;
    line-height: 1.5;
    color: #888;
}

.video-error {
    padding: 1rem 1.25rem;
    background: #111;
    border-left: 3px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
    .video-link-card {
        transition-duration: .01ms;
    }
}
