* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: "Zalando Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #000;
    color: #C5C5C5;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Panel */
.left-panel {
    width: 50%;
    background: linear-gradient(135deg, #222 0%, #111 100%);
    position: relative;
    container-type: inline-size;
}

/* Gallery Styles */
.gallery-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 100%;
    width: max-content;
    will-change: transform;
    align-content: flex-start;
}

.gallery-item {
    height: 33.33%;
    position: relative;
    width: auto;
    flex-shrink: 0;
}

.gallery-item img {
    height: 100%;
    width: auto;
    min-width: 100%;
    display: block;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: #fff;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-title {
    font-weight: bold;
    font-size: 1.9cqw;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-composer {
    font-size: 1.5cqw;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: -5px;
    opacity: 0.9;
}

.project-role {
    font-size: 1.5cqw;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5cqw;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    margin-top: 15px;
}

.project-link:hover {
    border-bottom-color: #fff;
}

.gallery-separator {
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin: 0 auto;
}


/* Right Panel */
.right-panel {
    width: 50%;
    background-color: #191919;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #333;
}

.top-bar {
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    container-type: inline-size;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    color: #ccc;
    display: flex;
    align-items: center;
}

.ticker-text {
    font-weight: 500;
    font-size: 1.8cqw;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}

.ticker-word {
    display: inline-block;
    transition: color 0.3s ease;
    cursor: default;
}

.ticker-word:hover {
    color: #fff;
}

.content-area {
    padding: 20px 20px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

.main-title {
    font-size: clamp(40px, 5.5vw, 110px);
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 15vh;
    line-height: 1;
    letter-spacing: -3px;
    white-space: nowrap;
    font-variation-settings: "wdth" 100;
}

.tagline {
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-top: -10px;
    margin-bottom: 30px;
}

.content-separator {
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
    width: 100%;
}

.info-grid {
    display: flex;
    gap: 40px;
}

.info-column {
    width: 28%;
    font-size: 16px;
    line-height: 1.4;
    color: #ccc;
}

.info-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-block a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-block a:hover {
    color: #fff;
}

.text-column {
    width: 68%;
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
}

.sub-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.text-column p {
    margin-bottom: 20px;
    text-align: justify;
}

.bold {
    font-weight: bold;
    color: #fff;
}

.work-title {
    font-weight: 600;
    color: #fff;
}

.italic {
    font-style: italic;
}

.icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mobile-break {
    display: none;
}

/* Music Player */
.music-player {
    margin-bottom: 30px;
    border: 1px solid #333;
    padding: 20px;
    background-color: #181818;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.player-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.player-btn {
    background: none;
    border: none;
    color: #C5C5C5;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.track-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.waveform-container {
    width: 100%;
    height: 60px;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
}

#waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vol-label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider {
    -webkit-appearance: none;
    width: 70px;
    height: 2px;
    background: #333;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #C5C5C5;
    cursor: pointer;
    border-radius: 0; /* No rounded edges */
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #C5C5C5;
    cursor: pointer;
    border-radius: 0;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-panel {
        width: 100%;
        height: 40vh;
    }
    .right-panel {
        width: 100%;
        height: 60vh;
    }
    .top-bar {
        white-space: nowrap;
    }
    .mobile-break {
        display: block;
    }
    .ticker-text {
        font-size: 14px;
        text-align: center;
        text-align-last: center;
        white-space: normal;
        width: 100%;
        display: block;
        line-height: 1.5;
    }
    .main-title {
        font-size: 11vw;
        margin-top: 10px;
        margin-bottom: 5px;
        white-space: nowrap;
        font-variation-settings: "wdth" 100;
        letter-spacing: 0;
    }
    .tagline {
        font-size: 5vw;
        letter-spacing: 2px;
        margin-top: 0;
        margin-bottom: 15px;
        white-space: nowrap;
    }
    .content-separator {
        margin-bottom: 15px;
    }
    .music-player {
        margin-bottom: 20px;
        padding: 15px;
    }
    .info-grid {
        flex-direction: column-reverse;
    }
    .info-column, .text-column {
        width: 100%;
    }
    .project-role, .project-link, .gallery-separator {
        display: none;
    }
}
