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

body {
    font-family: 'Akzidenz-Grotesk', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.4;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 35% 65%;
    min-height: 100vh;
}

.left-pane {
    padding: 30px 40px;
    background: #fdfdfd;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    overflow-y: auto;
}

.right-pane {
    padding: 30px 40px;
    background: #fff;
    height: 100vh;
    overflow-y: auto;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    font-weight: 300;
    line-height: 0.9;
    text-transform: uppercase;
}

.composer {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 15px;
}

.instrumentation {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
}

.internet-credit {
    font-size: 0.75rem;
    color: #666;
    margin-top: 20px;
    margin-bottom: 40px;
}

.internet-credit a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.btn {
    padding: 14px 28px;
    font-size: 0.75rem;
    font-family: 'Akzidenz-Grotesk', 'Helvetica Neue', sans-serif;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.btn:hover:not(:disabled) {
    background: #000;
    color: #fff;
}

.btn.primary {
    background: #000;
    color: #fff;
}

.btn.primary:hover {
    background: #fff;
    color: #000;
}

.btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: #999;
    color: #999;
}

.download-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.history-content h3 {
    font-size: 0.875rem;
    margin: 30px 0 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.history-content p {
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.study-figure {
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
}

.study-figure img {
    width: 100%;
    display: block;
}

.study-figure figcaption {
    font-size: 0.65rem;
    color: #666;
    margin-top: 10px;
    text-align: left;
    line-height: 1.4;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.performance-metrics {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

#timeDisplay {
    font-size: 2.2rem;
    color: #000;
    font-weight: 300;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.master-volume-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.master-volume-control label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.master-volume-control input[type=range] {
    width: 140px;
    cursor: pointer;
}

.status-panel {
    margin-bottom: 20px; 
}

.progress-container {
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: #ff0000;
    width: 0%;
    transition: width 0.1s linear;
}

.commentary-feed {
    width: 100%;
}

#statusText {
    font-size: 0.875rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ff0000; 
}

.live-narrative-block {
    margin-top: 10px;
    margin-bottom: 20px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.quote-display {
    width: 100%;
    padding: 0;
    margin: 0;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.3;
}

.quote-attribution {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; 
    aspect-ratio: 16/9; 
    height: auto;
    background: #0a0a0a;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin: 0 auto; 
}

#landscapeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.standby-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; 
    mix-blend-mode: normal;
    pointer-events: none;
    z-index: 10;
    transition: opacity 1.5s ease, mix-blend-mode 1.5s ease;
}

.standby-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; 
    transition: opacity 1.5s ease;
}

.standby-overlay.active-search {
    opacity: 1;
    mix-blend-mode: screen;
}
.standby-overlay.active-search img {
    opacity: 0.35;
}

.standby-overlay.hidden {
    opacity: 0;
}

.standby-overlay.active-end {
    opacity: 1;
    mix-blend-mode: normal;
}
.standby-overlay.active-end img {
    opacity: 1;
}

.legend-box {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 2px solid #000;
    font-size: 0.75rem;
    color: #333;
}

.legend-box ul {
    margin-bottom: 0;
    padding-left: 20px;
    line-height: 1.6;
    margin-top: 5px;
}

footer {
    margin-top: 60px;
    font-size: 0.75rem;
    color: #666;
}

footer a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

@media (max-width: 1100px) {
    .dashboard-layout {
        display: flex;
        flex-direction: column;
    }
    
    .right-pane {
        order: 1; 
        height: auto;
        overflow: visible;
        padding: 20px;
        border-bottom: 2px solid #000;
    }
    
    .left-pane {
        order: 2; 
        height: auto;
        overflow: visible;
        padding: 20px;
        border-right: none;
    }

    .controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .performance-metrics {
        width: 100%;
        justify-content: space-between;
    }
}