/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a 0%, rgba(10, 10, 10, 0.8) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

h1 {
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

h1:hover {
    opacity: 1;
}

/* Marquee Container */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

/* Gallery Track */
.gallery-track {
    display: flex;
    width: max-content;
    animation: scroll 240s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    flex-shrink: 0;
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), z-index 0s;
    width: 300px;
    height: 450px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

/* Hover Effects */
.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
    filter: none;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

/* Scrolling Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Overlay Styles */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    cursor: pointer;
}

.overlay-content {
    text-align: center;
    color: #fff;
}

.overlay-content h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.overlay-content p {
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Script Container */
#script-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.script-content h3 {
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0.9;
}

.script-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: #ccc;
    white-space: pre-wrap;
}

/* Script Speaker Styles */
.speaker {
    color: #fff;
    font-weight: 600;
    margin-right: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Player Controls */
#player-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#play-pause-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

#seek-bar {
    width: 200px;
    accent-color: #fff;
    cursor: pointer;
}

#current-time,
#duration {
    font-size: 0.8rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}

/* Visualizer */
#visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 100;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 800px) {
    header {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .gallery-item {
        width: 200px;
        height: 300px;
    }

    .overlay-content h2 {
        font-size: 2rem;
    }

    #player-controls {
        width: 90%;
        padding: 1rem;
        gap: 1rem;
    }

    #seek-bar {
        width: 100px;
    }
}