/* Página "Videos" (/videos) — port de mock-up-FD/videos.html. Prefijo vd-, scope .vd-root */

.vd-root {
    --vd-ink: #0f172a;
    --vd-muted: #64748b;
    --vd-stroke: #e5e7eb;
    --vd-accent: #3956E8;
    --vd-radius: 16px;
    --vd-shadow: 0 10px 28px rgba(2,6,23,.10);
    font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--vd-ink);
}

.vd-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 2px 28px;
}

.vd-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.vd-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .vd-root .vd-brand h1 {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: .1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: "Space Grotesk", sans-serif;
    }

    .vd-root .vd-brand p {
        margin: 0;
        font-size: 13px;
        color: var(--vd-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.vd-player {
    position: relative;
    width: 100%;
    border: 1px solid var(--vd-stroke);
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--vd-shadow);
}

    .vd-player::before {
        content: "";
        display: block;
        padding-top: 52.5%;
    }

    .vd-player iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.vd-row {
    margin-top: 18px;
}

.vd-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin: 12px 2px 10px;
}

    .vd-root .vd-row-header h3 {
        margin: 0;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .25px;
    }

    .vd-root .vd-hint {
        margin: 0;
        font-size: 12px;
        color: var(--vd-muted);
    }

.vd-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

    .vd-scroller::-webkit-scrollbar {
        height: 10px;
    }

    .vd-scroller::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

.vd-card {
    flex: 0 0 auto;
    width: 270px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform .12s ease;
    border-radius: calc(var(--vd-radius) + 2px);
}

    .vd-card:hover {
        transform: translateY(-3px);
    }

.vd-thumb {
    position: relative;
    border-radius: var(--vd-radius);
    overflow: hidden;
    border: 1px solid var(--vd-stroke);
    background: #f3f4f6;
}

    .vd-thumb::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }

    .vd-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.01);
    }

.vd-playdot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
}

    .vd-playdot svg {
        width: 18px;
        height: 18px;
        fill: #fff;
    }

.vd-info {
    padding: 10px 4px 0;
}

.vd-root .vd-t {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-root .vd-d {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--vd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-card.vd-active .vd-thumb {
    border-color: rgba(57,86,232,.95);
    box-shadow: 0 0 0 4px rgba(57,86,232,.16);
}

.vd-card.vd-short {
    width: 190px;
}

    .vd-card.vd-short .vd-thumb::before {
        padding-top: 177%;
    }

@media (min-width: 1400px) {
    .vd-page {
        max-width: 1340px;
    }

    .vd-card {
        width: 290px;
    }

        .vd-card.vd-short {
            width: 200px;
        }
}

@media (max-width: 900px) {
    .vd-card {
        width: 220px;
    }

        .vd-card.vd-short {
            width: 160px;
        }

    .vd-player::before {
        padding-top: 56.25%;
    }

    .vd-root .vd-brand h1 {
        font-size: 18px;
    }
}
