
.videos-page {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    overflow-y: fit;
    min-height: 100vh;
}

.videos-main {
    position: relative;
    z-index: 1;
}

.archive-frame {
    max-width: 1200px;
    max-height: 150vh;
    margin: 40px auto;
    padding: 50px 60px;
    background: linear-gradient(145deg, #f6dffe 0%, #f6dffe 40%, #f6dffe 100%);
    border: 1px solid rgba(169,129,183);
    border-radius: 40px;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.5),
        inset 0 0 100px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: visible;
}

.archive-frame::before {
    content: '✦ · ˚ ✧ · ˚ ✦ · ˚ ✧ · ˚ ✦ · ˚ ✧ · ˚ ✦';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #000000;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.archive-frame::after {
    content: '✦ · ˚ ✧ · ˚ ✦ · ˚ ✧ · ˚ ✦ · ˚ ✧ · ˚ ✦';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #000000;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.fairy-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.fairy-star {
    position: absolute;
    color: #000000;
    font-size: 1.2rem;
    animation: twinkle 3s ease-in-out infinite;
}

.fairy-star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.fairy-star:nth-child(2) { top: 20%; right: 8%; animation-delay: 0.5s; }
.fairy-star:nth-child(3) { bottom: 25%; left: 3%; animation-delay: 1s; }
.fairy-star:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 1.5s; }
.fairy-star:nth-child(5) { top: 50%; left: 2%; animation-delay: 2s; }
.fairy-star:nth-child(6) { top: 40%; right: 3%; animation-delay: 2.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}


.archive-title {
    font-family: 'DreamerTM', 'Times New Roman', Georgia, serif;
    font-size: 4rem;
    color: #000000;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(169,129,183);
}

.archive-header::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 20px auto 0;
}

.archive-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.video-preview-area {
    flex: 1;
    max-width: 55%;
}

.video-large-preview {
    background: linear-gradient(135deg, #f6dffe 0%, #f6dffe 100%);
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(150, 130, 110, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(180, 160, 140, 0.2);
    position: relative;
}

.video-large-preview::before {
    content: '✧';
    position: absolute;
    top: 15px;
    right: 20px;
    color: #000000;
    font-size: 1rem;
}

.video-large-preview video,
.video-large-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    font-family: 'OffsetTM', 'Pestetrial', sans-serif;
    font-size: 1.2rem;
    color: #000000;
    font-style: italic;
}

.video-info {
    padding: 15px 5px;
    text-align: center;
}

.video-title {
    font-family: 'DreamerTM', 'Times New Roman', Georgia, serif;
    font-size: 2.2rem;
    color: #000000;
    margin: 0 0 12px 0;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.video-description {
    font-family: 'OffsetTM', 'Times New Roman', Georgia, serif;
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.8;
    margin: 0;
}

.video-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex-shrink: 0;
    width: 40%;
}

.video-thumbnail {
    background: linear-gradient(145deg, #f8f5f0 0%, #efe9e0 100%);
    aspect-ratio: 1;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(180, 160, 140, 0.25);
    box-shadow: 0 4px 15px rgba(150, 130, 110, 0.1);
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.video-thumbnail .thumb-number {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(150, 130, 110, 0.2),
        0 0 20px rgba(200, 180, 160, 0.1);
    border-color: rgba(160, 140, 120, 0.4);
}

.video-thumbnail:hover::before {
    opacity: 1;
}

.video-thumbnail.active {
    border: 2px solid rgba(140, 120, 100, 0.5);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(150, 130, 110, 0.25),
        inset 0 0 20px rgba(200, 180, 160, 0.1);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-number {
    font-family: 'DreamerTM', 'Times New Roman', Georgia, serif;
    font-size: 1.4rem;
    color: #000000;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.archive-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    position: relative;
}

@media (max-width: 1024px) {
    .archive-content {
        flex-direction: column;
    }

    .video-preview-area {
        max-width: 100%;
    }

    .video-thumbnails-grid {
        width: 100%;
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-frame {
        margin: 15px;
        padding: 30px 25px;
        border-radius: 25px;
    }

    .archive-title {
        font-size: 2.5rem;
    }

    .video-thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .video-title {
        font-size: 1.6rem;
    }
    
    .archive-frame::before,
    .archive-frame::after {
        font-size: 0.6rem;
    }
}
