/* Shared site components used across public pages.
   Page heroes intentionally use the common .page-hero styles from app.css. */

.video-library,
.home-video-library {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: #f6f1eb;
}

.home-video-library {
    background: #eee5f0;
}

.video-library__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.video-library__heading h2 {
    margin: .45rem 0 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.video-library__heading > p {
    margin: 0;
    line-height: 1.7;
    color: #6f625d;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 3vw, 2rem);
}

.video-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
    overflow: hidden;
    border: 1px solid rgba(33, 23, 19, .1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(43, 30, 25, .07);
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #211713;
}

.video-player__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 1.25rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    background:
        radial-gradient(circle at 74% 22%, rgba(206, 177, 219, .55), transparent 28%),
        linear-gradient(145deg, #2b1d18, #5a3d31);
    font: inherit;
}

.video-player__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .26;
    background-image:
        linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .12) 36%, transparent 37%),
        linear-gradient(30deg, transparent 62%, rgba(255, 255, 255, .09) 63%, transparent 64%);
    background-size: 70px 70px, 95px 95px;
}

.video-player__provider,
.video-player__action,
.video-player__play {
    position: absolute;
    z-index: 1;
}

.video-player__provider {
    top: 1rem;
    left: 1rem;
    padding: .42rem .72rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(22, 14, 12, .3);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-player__play {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    padding-left: 4px;
    border-radius: 50%;
    background: #fff;
    color: #211713;
    font-size: 1.35rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
    transition: transform .2s ease;
}

.video-player__cover:hover .video-player__play,
.video-player__cover:focus-visible .video-player__play {
    transform: scale(1.07);
}

.video-player__action {
    left: 1rem;
    bottom: 1rem;
    font-weight: 700;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-card__body {
    padding: clamp(1.15rem, 3vw, 1.7rem);
}

.video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-bottom: .75rem;
    color: #8a7770;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.video-card h2,
.video-card h3 {
    margin: 0 0 .75rem;
    color: #211713;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    line-height: 1.18;
}

.video-card__body > p {
    margin: 0 0 1rem;
    color: #665954;
    line-height: 1.65;
}

.video-empty {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(33, 23, 19, .11);
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.video-empty h2 {
    margin: 0 0 .7rem;
}

.video-empty p {
    margin: 0;
    color: #6f625d;
}

.home-video-library__more {
    margin: 2rem 0 0;
    text-align: right;
}

@media (max-width: 980px) {
    .video-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .video-library__heading,
    .video-grid,
    .video-grid--home {
        grid-template-columns: 1fr;
    }

    .video-library__heading {
        gap: 1rem;
    }

    .video-card {
        border-radius: 20px;
    }

    .home-video-library__more {
        text-align: left;
    }
}
