/* --- SCOPED CSS FOR VIEW ALBUM PAGE --- */

.va-wrapper {
    font-family: 'Inter', sans-serif;
}

/* Top Page Header */
.va-header-text {
    margin-bottom: 24px;
}

    .va-header-text h1 {
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 8px 0;
    }

    .va-header-text p {
        font-size: 14px;
        color: #475569;
        margin: 0;
    }

/* Hero Image Section */
.va-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    /* Creates the wide, cinematic crop automatically */
    aspect-ratio: 21 / 9;
    background-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    .va-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Gradient Overlay */
.va-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Album Tag/Badge */
.va-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px); /* Slight glassmorphism effect */
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 4px;
}

.va-hero-overlay h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.va-hero-overlay p {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
}

/* Metadata Row (Date, Photos, Videos) */
.va-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.va-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
}

    .va-meta-item svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .va-hero {
        aspect-ratio: 16 / 9; /* Taller on tablets */
    }
}

@media (max-width: 768px) {
    .va-hero {
        aspect-ratio: 4 / 3; /* Even taller on mobile */
    }

    .va-hero-overlay {
        padding: 24px 20px;
    }

        .va-hero-overlay h2 {
            font-size: 22px;
        }

    .va-meta-row {
        gap: 16px;
        flex-wrap: wrap;
    }
}
/* --- Media Controls (Tabs & Search) --- */
.va-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.va-tabs {
    display: inline-flex;
    background-color: #f1f5f9; /* Light gray background for the segmented control */
    padding: 4px;
    border-radius: 8px;
}

.va-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .va-tab-btn.active {
        background-color: #ffffff;
        color: #0f172a;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

.va-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    background: #F3F4F6;
}

    .va-search-container svg {
        width: 16px;
        height: 16px;
    }

.va-search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #334155;
    outline: none;
    width: 180px;
    font-family: inherit;
}

    .va-search-input::placeholder {
        color: #94a3b8;
    }

/* --- Media Grid --- */
.va-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Common Card Styling */
.va-media-card {
    border-radius: 24px; /* Large rounded corners from Figma */
    overflow: hidden;
    height: 240px; /* Fixed height for uniform grid */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

    .va-media-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

/* Photo Specific */
.va-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Specific */
.va-video-thumb {
    flex: 1; /* Takes up remaining top space */
    position: relative;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-play-btn {
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .va-play-btn svg {
        width: 24px;
        height: 24px;
        fill: #000000;
        margin-left: 4px;
    }

.va-media-card:hover .va-play-btn {
    transform: scale(1.1);
}

.va-video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.va-video-info {
    padding: 16px;
    background-color: #ffffff;
    height: 70px; /* Fixed bottom area for text */
}

.va-video-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .va-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .va-media-grid {
        grid-template-columns: 1fr;
    }

    .va-controls-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- SCOPED CSS FOR VIEW VIDEO PAGE --- */
.vv-wrapper {
    font-family: 'Inter', sans-serif;
}

/* Header Styling */
.vv-header {
    margin-bottom: 24px;
}

    .vv-header h1 {
        font-size: 24px;
        font-weight: 700;
        color: #1E293B;
        margin: 0 0 8px 0;
    }

    .vv-header p {
        font-size: 14px;
        color: #475569;
        margin: 0;
    }

/* Video Player Styling */
.vv-video-container img {
    width: 100%;
    display: block;
    aspect-ratio: 21 / 9; /* Cinematic wide ratio matching your Figma */
    object-fit: cover;
    outline: none;
}

.vv-video-container {
    width: 100%;
    background-color: #000000;
    border-radius: 16px; /* Matches the rounded corners in Figma */
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

    .vv-video-container video {
        width: 100%;
        display: block;
        aspect-ratio: 21 / 9; /* Cinematic wide ratio matching your Figma */
        object-fit: cover;
        outline: none;
    }

/* Footer / Details Styling */
.vv-footer h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
}

.vv-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vv-meta-item {
    font-size: 12px;
    font-weight: 700; /* Bold text matching the design */
    color: #1E293B;
}

.vv-dot {
    font-size: 12px;
    color: #1E293B;
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .vv-video-container video {
        aspect-ratio: 16 / 9;
    }

    .vv-video-container img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .vv-header h1 {
        font-size: 22px;
    }

    .vv-footer h2 {
        font-size: 20px;
    }
}

