/*-- Favourite Videos Page --*/

.videos-hero {
    padding-bottom: 0;
}

.videos-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
}

.videos-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.videos-head .display {
    margin: 0;
}

.videos-head .lead {
    max-width: 50ch;
}

/* Three quick facts, each anchored by an icon */
.videos-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 8px;
    list-style: none;
}

.videos-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fact-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 21px;
    color: var(--primary-2);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid var(--border);
}

.videos-facts strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.videos-facts small {
    font-size: 13px;
    color: var(--muted);
}

/* Featured pick */
.featured-video {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), 0 0 80px rgba(37, 99, 235, 0.18);
}

.featured-video .video-frame {
    border-radius: 0;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.featured-meta p {
    font-size: 14px;
    color: var(--muted);
}

/* Controls sit on their own row, separated from the intro by a hairline */
.videos-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.videos-count {
    font-size: 14px;
    color: var(--muted);
}

.videos-count span {
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
    .videos-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.videos-section {
    padding-top: 24px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.video-card {
    overflow: hidden;
    transition: transform 300ms var(--ease-out), border-color 250ms ease-out, box-shadow 300ms var(--ease-out);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.video-card.is-hidden {
    display: none;
}

.video-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

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

.yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out), filter 300ms ease-out;
    filter: brightness(0.8);
}

.yt-facade:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    font-size: 38px;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2), 0 16px 40px rgba(2, 6, 23, 0.6);
    transition: transform 350ms var(--spring), box-shadow 300ms ease-out;
}

.play-badge i {
    margin-left: 4px;
}

.yt-facade:hover .play-badge {
    transform: scale(1.12);
    box-shadow: 0 0 0 14px rgba(59, 130, 246, 0.15), 0 16px 40px rgba(2, 6, 23, 0.6);
}

.yt-facade:active .play-badge {
    transform: scale(0.95);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.video-num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--dim);
}

.video-ext {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 10px;
    font-size: 18px;
    color: var(--muted);
    transition: color 200ms ease-out, background-color 200ms ease-out;
}

.video-ext:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.18);
}

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