.ytv2 {
    padding: 5rem 0;
}

.ytv2__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.ytv2__header--center { text-align: center; }
.ytv2__header--start  { text-align: left; margin: 0 0 3rem; }
.ytv2__header--end    { text-align: right; margin: 0 0 3rem auto; }

.ytv2__header h2 {
    margin-bottom: 0.75rem;
}

.ytv2__header-desc {
    opacity: 0.7;
    font-size: 1.05rem;
    line-height: 1.65;
}

.ytv2__header-actions {
    margin-top: 1.25rem;
}

.ytv2__header-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ytv2__header-actions .btn:hover {
    transform: translateY(-2px);
}

/* ── Grid ── */

.ytv2__grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
}

.ytv2__grid--cols-1 { grid-template-columns: 1fr; }
.ytv2__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ytv2__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ytv2__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ── */

.ytv2__card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    color: inherit;
}

.ytv2__card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px -10px rgba(90, 93, 255, 0.08);
}

/* ── Image link ── */

.ytv2__image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

/* ── Image ── */

.ytv2__image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.ytv2__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.85) saturate(0.95);
    transition: filter 0.3s ease;
}

.ytv2__card:hover .ytv2__image {
    filter: brightness(0.7) saturate(1);
}

.ytv2__image-shadow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -40px 40px -20px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* ── Play button ── */

.ytv2__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ytv2__play-icon {
    width: 56px;
    height: 56px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 13px;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.ytv2__card:hover .ytv2__play-icon {
    transform: scale(1.12);
    background: rgba(255, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Content ── */

.ytv2__body {
    padding: 1.25rem 1.375rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ytv2__title {
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ytv2__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.6;
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Social buttons ── */

.ytv2__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ytv2__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ytv2__social-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.ytv2__social-btn--yt:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
}

.ytv2__social-btn--li:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.4);
}

.ytv2__social-btn--fb:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
}

.ytv2__social-btn--tw:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
}

/* ── Light theme ── */

[data-bs-theme="light"] .ytv2__card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

[data-bs-theme="light"] .ytv2__card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

[data-bs-theme="light"] .ytv2__image {
    filter: brightness(0.92) saturate(0.97);
}

[data-bs-theme="light"] .ytv2__card:hover .ytv2__image {
    filter: brightness(0.8) saturate(1);
}

[data-bs-theme="light"] .ytv2__image-shadow {
    box-shadow: inset 0 -30px 30px -15px rgba(0, 0, 0, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .ytv2__play-icon {
    background: rgba(0, 0, 0, 0.35);
}

[data-bs-theme="light"] .ytv2__card:hover .ytv2__play-icon {
    background: rgba(255, 0, 0, 0.65);
}

[data-bs-theme="light"] .ytv2__desc {
    opacity: 0.65;
}

[data-bs-theme="light"] .ytv2__social {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .ytv2__social-btn {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .ytv2__social-btn:hover {
    color: #000;
}

/* ── Responsive ── */

@media (max-width: 1023px) {
    .ytv2__grid--cols-3,
    .ytv2__grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .ytv2 {
        padding: 3rem 0;
    }

    .ytv2__grid,
    .ytv2__grid--cols-2,
    .ytv2__grid--cols-3,
    .ytv2__grid--cols-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .ytv2__image-wrap {
        height: 200px;
    }

    .ytv2__play-icon {
        width: 48px;
        height: 48px;
        padding: 10px;
    }
}
