.ytvl {
    --ytvl-accent: #1f3a5f;       /* xanh navy - màu nhấn */
    --ytvl-accent-soft: #eef2f7;
    --ytvl-text: #1e293b;
    --ytvl-muted: #64748b;
    --ytvl-border: #e5e7eb;
    --ytvl-radius: 12px;
    --ytvl-gap: 24px;
    --ytvl-cols: 3;
	--ytvl-accent-soft: color-mix(in srgb, var(--ytvl-accent) 10%, #fff);
    width: 100%;
}

.ytvl *,
.ytvl *::before,
.ytvl *::after {
    box-sizing: border-box;
}

/* ---------- Header (căn giữa) ---------- */
.ytvl__header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.ytvl__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 14px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ytvl-accent);
    background: var(--ytvl-accent-soft);
    border-radius: 999px;
}

.ytvl__heading {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ytvl-text);
}

.ytvl__divider {
    display: block;
    width: 56px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: var(--ytvl-accent);
}

.ytvl__subtitle {
    margin: 16px 0 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ytvl-muted);
}

@media (max-width: 575.98px) {
    .ytvl__header {
        margin-bottom: 28px;
    }
}


/* ---------- Grid ---------- */
.ytvl__grid {
    display: grid;
    grid-template-columns: repeat(var(--ytvl-cols), minmax(0, 1fr));
    gap: var(--ytvl-gap);
}

/* ---------- Card ---------- */
.ytvl__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ytvl-border);
    border-radius: var(--ytvl-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ytvl__card:hover,
.ytvl__card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    border-color: #d3dae4;
}

/* ---------- Media 16:9 ---------- */
.ytvl__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.ytvl__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
}

.ytvl__player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ytvl__card:hover .ytvl__player img {
    transform: scale(1.05);
}

.ytvl__player::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .35), rgba(15, 23, 42, 0) 55%);
    pointer-events: none;
}

.ytvl__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    color: var(--ytvl-accent);
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.ytvl__card:hover .ytvl__play {
    transform: scale(1.1);
    background: var(--ytvl-accent);
    color: #fff;
}

.ytvl__player:focus-visible {
    outline: 3px solid var(--ytvl-accent);
    outline-offset: -3px;
}

.ytvl__media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Body ---------- */
.ytvl__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.ytvl__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ytvl-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ytvl__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ytvl__tag {
    margin: 0;
    padding: 3px 10px;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--ytvl-accent);
    background: var(--ytvl-accent-soft);
    border-radius: 999px;
}

.ytvl__tag::before {
    content: "#";
    opacity: .6;
    margin-right: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ytvl__grid {
        grid-template-columns: repeat(min(var(--ytvl-cols), 2), minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ytvl {
        --ytvl-gap: 16px;
    }
    .ytvl__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ytvl__card,
    .ytvl__player img,
    .ytvl__play {
        transition: none;
    }
    .ytvl__card:hover {
        transform: none;
    }
}
