.videos-page {
    padding: 2rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.videos-page h1 {

    margin-bottom: 2rem;
    font-size: 35px;
    text-decoration: underline;
    text-transform: uppercase;
}

h2 {
    font-size: 15px;
}

.video-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.video-link {
    text-align: center;
}

.video-search {
    width: min(100%, 420px);
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--bg-input-box);
    color: var(--bg-h1-colour);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--bg-shadow) 10%, transparent);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;

}

.video-card {
    background: var(--bg-player-colour);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--bg-shadow) 2%, transparent);
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

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


@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 15px;
    }

    .video-info h2,
    .video-info p {
        text-align: center;

    }
}