@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* ══ CARD ══════════════════════════════════════════════════════════ */
.vw-card {
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.23,1,0.32,1);
    font-family: 'DM Sans', sans-serif;
}
.vw-card:hover {
    border-color: rgba(255,200,50,0.35);
    transform: translateY(-4px);
}

/* ── Thumbnail ── */
.vw-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}
.vw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
    filter: brightness(0.85) saturate(0.9);
}
.vw-card:hover .vw-thumb img {
    transform: scale(1.06);
    filter: brightness(0.6) saturate(0.7);
}

/* Cinematic letterbox bars */
.vw-thumb::before,
.vw-thumb::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 0;
    background: #0a0a0a;
    z-index: 2;
    transition: height 0.4s cubic-bezier(0.23,1,0.32,1);
}
.vw-thumb::before { top: 0; }
.vw-thumb::after  { bottom: 0; }
.vw-card:hover .vw-thumb::before,
.vw-card:hover .vw-thumb::after {
    height: 28px;
}

/* ── Play Button ── */
.vw-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.vw-card:hover .vw-play {
    opacity: 1;
}
.vw-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,200,50,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 0 40px rgba(255,200,50,0.4);
}
.vw-card:hover .vw-play-btn {
    transform: scale(1);
}
.vw-play-btn svg {
    width: 20px;
    height: 20px;
    fill: #0a0a0a;
    margin-left: 3px;
}

/* ── Format Badge ── */
.vw-format-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(10,10,10,0.85);
    border: 1px solid rgba(255,200,50,0.4);
    color: #ffc832;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
    backdrop-filter: blur(6px);
}

/* ── Content ── */
.vw-content {
    padding: 20px 22px 22px;
    position: relative;
}
.vw-content::before {
    content: '';
    position: absolute;
    top: 0; left: 22px; right: 22px;
    height: 1px;
    background: linear-gradient(90deg, #ffc832 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.vw-card:hover .vw-content::before {
    opacity: 1;
}

.vw-client {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffc832;
    margin-bottom: 8px;
}
.vw-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: 0.04em;
    color: #f0ece4;
    margin: 0 0 10px;
    line-height: 1.1;
    text-transform: uppercase;
}
.vw-desc {
    font-size: 12.5px;
    font-weight: 300;
    color: rgba(240,236,228,0.45);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vw-tag {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.vw-tag:hover {
    color: #ffc832;
    border-color: rgba(255,200,50,0.3);
}

/* ══ MODAL ═════════════════════════════════════════════════════════ */
.vw-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5,5,5,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
}
.vw-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.vw-modal-inner {
    width: 100%;
    max-width: 900px;
    position: relative;
}
.vw-modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255,200,50,0.2);
}
.vw-modal-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.vw-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    padding: 0;
}
.vw-modal-close:hover {
    border-color: #ffc832;
    background: rgba(255,200,50,0.1);
}
.vw-modal-meta {
    padding: 18px 0 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}
.vw-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.05em;
    color: #f0ece4;
    margin: 0 0 4px;
}
.vw-modal-client {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffc832;
    font-weight: 500;
    margin: 0;
}
.vw-modal-desc {
    font-size: 13px;
    color: rgba(240,236,228,0.45);
    font-weight: 300;
    line-height: 1.65;
    max-width: 380px;
    margin: 0;
}

/* ══ RESPONSIVE ════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .vw-modal-meta {
        flex-direction: column;
        gap: 12px;
    }
    .vw-modal-desc {
        max-width: 100%;
    }
}

/* ══ TAXONOMY ARCHIVE SECTIONS ════════════════════════════════════ */
.vw-archive-section {
    margin-bottom: 80px;
}
.vw-archive-section:last-child {
    margin-bottom: 0;
}

/* Term Header */
.vw-archive-term-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}
.vw-archive-term-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: #ffc832;
}
.vw-archive-term-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: 0.05em;
    color: #b88113;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}
.vw-archive-term-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.vw-archive-term-title a:hover {
    color: #ffc832;
}
.vw-archive-term-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(240,236,228,0.4);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Grid */
.vw-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
    .vw-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vw-archive-grid { grid-template-columns: 1fr; }
}

/* See More Button */
.vw-archive-see-more {
    display: flex;
    justify-content: flex-end;
}
.vw-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.55);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.vw-see-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}
.vw-see-more-btn:hover {
    color: #ffc832;
    border-color: rgba(255,200,50,0.4);
    gap: 16px;
}
.vw-see-more-btn:hover svg {
    transform: translateX(4px);
}

/* ══ VERTICAL / HORIZONTAL CARD VARIANTS ══════════════════════════ */

/* Horizontal — 4:3 ratio so thumb is ~75% of card height */
.vw-card--horizontal .vw-thumb {
    aspect-ratio: 4 / 3;
    min-height: 260px;
}

/* Horizontal content — compact so thumb dominates */
.vw-card--horizontal .vw-content {
    padding: 12px 16px 14px;
}
.vw-card--horizontal .vw-title {
    font-size: clamp(16px, 1.6vw, 20px);
    margin-bottom: 6px;
}
.vw-card--horizontal .vw-client {
    font-size: 9.5px;
    margin-bottom: 5px;
}
.vw-card--horizontal .vw-tag {
    font-size: 9px;
    padding: 3px 8px;
}

/* Vertical — 9:16 (Reels, Shorts) */
.vw-card--vertical .vw-thumb {
    aspect-ratio: 9 / 16;
    max-height: 460px;
}

/* Card content area — tighter for vertical */
.vw-card--vertical .vw-content {
    padding: 10px 14px 12px;
}
.vw-card--vertical .vw-title {
    font-size: clamp(15px, 1.6vw, 19px);
    margin-bottom: 5px;
}
.vw-card--vertical .vw-client {
    font-size: 9px;
    margin-bottom: 4px;
}

/* Vertical card — mobile: constrain height so it fits on screen */
@media (max-width: 768px) {
    .vw-card--vertical {
        max-width: 85%;
        margin: 0 auto;
    }
    .vw-card--vertical .vw-thumb {
        aspect-ratio: 9 / 14;
    }
}

/* Vertical modal — narrower, portrait ratio */
.vw-modal-inner--vertical {
    max-width: 420px;
}
.vw-modal-inner--vertical .vw-modal-video {
    aspect-ratio: 9 / 16;
}
.vw-modal-inner--vertical .vw-modal-meta {
    flex-direction: column;
    gap: 8px;
}

/* Archive grid — mixed cards sit nicely with align-start */
.vw-archive-grid {
    align-items: start;
}
