/* SHAC Player - Clean UI Styles */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #0a0a0a;
    --bg-overlay: rgba(0,0,0,0.8);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}


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

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

/* Subtle background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.05) 0%, transparent 20%);
    animation: subtle-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtle-drift {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#app {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

/* Loading Screen */
#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    z-index: 1000;
}

#loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 255, 0.05) 50%, transparent 70%);
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.content h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #00d4ff, #0099cc);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse::before,
.pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    animation: pulse-ring 2s infinite;
}

.pulse::after {
    animation-delay: -1s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Canvas */
#visualizer {
    width: 100%;
    height: 100%;
    cursor: grab;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#visualizer:active {
    cursor: grabbing;
}

/* Controls */
.controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Top Controls */
.top-right-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    pointer-events: all;
}

.top-controls {
    display: flex;
    gap: 0.5rem;
}

/* Centered Song Title */
.song-title-center {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: all;
    z-index: 100;
}

.song-title-center h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.song-title-center p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Clean Atmosphere Selector */
.atmosphere-selector {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: all;
}

.atmosphere-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atmosphere-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    width: 100%;
    text-align: left;
}

.atmosphere-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.atmosphere-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.atmosphere-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.movement-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.movement-option:last-child {
    border-bottom: none;
}

.movement-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.movement-option.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

/* Bottom Bar - Clean */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 200;
    pointer-events: all;
}

/* Control Buttons - Clean */
.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.control-btn:hover {
    color: var(--primary-color);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Progress Bar - Clean */
.progress-bar {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.progress-track {
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-track:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Volume Controls - Clean */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    position: relative;
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
}

#volume-range {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    outline: none;
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

#volume-range::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

#volume-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: none;
}

.volume-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    pointer-events: none;
}

.volume-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 80%;
    transition: width 0.1s ease;
}

/* Overlays - Clean */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0,0,0,0.8);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Status Overlay */
.visual-status-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 200;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00d4ff;
    min-width: 200px;
    text-align: right;
}

.visual-status-overlay:hover {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(0, 212, 255, 0.6);
    pointer-events: all;
}

/* Clean mobile layout when mobile device detected */
.mobile-device #app {
    height: calc(var(--vh, 1vh) * 100);
}

.mobile-device body, 
.mobile-device html {
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

.mobile-device .atmosphere-selector {
    position: absolute;
    left: 1rem;
    bottom: 120px;
    top: auto;
    transform: none;
}

.mobile-device .atmosphere-dropdown {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.mobile-device .mobile-only {
    display: block;
}

.mobile-device .volume-control {
    display: flex;
}

.mobile-device .bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    gap: 0.5rem;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: all;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    /* Fix viewport height on mobile */
    #app {
        height: calc(var(--vh, 1vh) * 100);
    }
    
    body, html {
        height: calc(var(--vh, 1vh) * 100);
        overflow: hidden;
    }
    
    
    /* Canvas fills parent */
    #visualizer {
        width: 100%;
        height: 100%;
    }
    
    /* Mobile controls positioned from bottom */
    #mobile-controls {
        position: absolute;
        bottom: 80px;
        left: 0;
        right: 0;
        padding: 0.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
        z-index: 60;
        pointer-events: all;
    }
    
    .touch-hints {
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    /* Keep atmosphere selector accessible on mobile */
    .atmosphere-selector {
        left: 1rem;
        top: auto;
        bottom: 120px;
        transform: none;
    }
    
    /* Make dropdown open upward on mobile */
    .atmosphere-dropdown {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 0.25rem;
    }
    
    /* Bottom bar for mobile */
    .bottom-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.5rem;
        gap: 0.5rem;
        background: rgba(0,0,0,0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 200;
        pointer-events: all;
    }
    
    /* Smaller controls on mobile */
    .control-btn {
        padding: 0.3rem;
        flex-shrink: 0;
    }
    
    .control-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Compact progress bar for mobile */
    .progress-bar {
        flex: 1;
        max-width: none;
        width: auto;
        margin: 0 0.5rem;
    }
    
    .time-display {
        display: none;
    }
    
    /* Keep volume control in bottom bar on mobile */
    .volume-control {
        display: flex;
    }
    
    /* Mobile-optimized title */
    .song-title-center {
        top: 0.5rem;
        max-width: 60%;
    }
    
    .song-title-center h2 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .song-title-center p {
        display: none;
    }
    
    /* Adjust top controls */
    .top-right-controls {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    
    
    .overlay-content {
        margin: 1rem;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    /* Loading screen adjustments */
    .content h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    /* Hide status overlay on mobile */
    .visual-status-overlay {
        display: none;
    }
    
    /* Show mobile-only elements */
    .mobile-only {
        display: block;
    }
}

/* Utilities */
.primary-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: #00b8e6;
    transform: translateY(-1px);
}

.icon-only {
    padding: 0.5rem;
}

.mobile-only {
    display: none;
}

/* Extra small devices (phones in portrait) */
@media (max-width: 600px) {
    /* Ultra compact bottom bar */
    .bottom-bar {
        padding: 0.4rem;
        gap: 0.3rem;
        max-height: 60px;
    }
    
    /* Even smaller buttons */
    .control-btn {
        padding: 0.2rem;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Keep replay button accessible on mobile */
    #replay-btn {
        display: flex;
    }
    
    /* Adjust mobile hints position */
    #mobile-controls {
        bottom: 65px;
        padding: 0.3rem;
    }
    
    .touch-hints {
        font-size: 0.7rem;
    }
    
    /* Allow canvas touch but don't block control touches */
    #visualizer {
        touch-action: pan-x pan-y;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Even smaller title */
    .song-title-center h2 {
        font-size: 0.9rem;
    }
    
    /* Minimal progress bar */
    .progress-bar {
        margin: 0 0.3rem;
    }
    
    .progress-track {
        height: 3px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .song-title-center {
        display: none;
    }
    
    .bottom-bar {
        padding: 0.3rem 0.5rem;
        max-height: 50px;
    }
    
    #mobile-controls {
        display: none;
    }
    
    .control-btn {
        padding: 0.2rem;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Elevation controls for mobile */
.elevation-controls {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    pointer-events: all;
}

.elevation-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elevation-btn:active {
    transform: scale(0.9);
    background: rgba(0, 212, 255, 0.2);
}

.elevation-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.elevation-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Divider */
.divider {
    text-align: center;
    color: #666;
    margin: 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Züs Dialog Styles */
.zus-content {
    padding: 20px 0;
}

.zus-input-section {
    margin-bottom: 30px;
}

.zus-input-section label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.zus-input-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.zus-input-section input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.08);
}

.progress-section {
    margin: 20px 0;
}

.progress-label {
    margin-bottom: 10px;
    color: #ccc;
}

.progress-details {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.cache-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cache-info h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 16px;
}

.cache-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.cache-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cache-item .file-info {
    flex: 1;
}

.cache-item .file-name {
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.cache-item .file-details {
    color: #888;
    font-size: 12px;
}

.cache-item button {
    padding: 5px 10px;
    font-size: 12px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
    border-radius: 3px;
    cursor: pointer;
}

.cache-item button:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Professional File Loader Styles */
.file-loader-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
}

.file-loader-header {
    margin-bottom: 40px;
}

.file-loader-header h2 {
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--text-primary);
}

.file-loader-header .subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.file-loading-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.option-icon {
    margin-bottom: 15px;
}

.option-icon svg {
    fill: var(--primary-color);
    opacity: 0.8;
}

.option-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.option-card p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.option-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: #fff;
}

.drop-zone-card .drop-zone {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

.drop-zone-card .drop-zone:hover {
    background: none;
}

.loader-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.help-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Professional Züs Dialog Styles */
.zus-dialog-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.zus-header {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.back-btn svg {
    fill: currentColor;
}

.zus-title {
    flex: 1;
    text-align: left;
}

.zus-title h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: var(--text-primary);
}

.zus-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.zus-main-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.zus-input-card, .cache-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.input-with-button {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-with-button input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.input-with-button input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.input-help {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.progress-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.cache-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cache-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.cache-status {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cache-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cache-help {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Streamlined Upload Interface */
.upload-card {
    margin-bottom: 1.5rem;
}

.upload-card .drop-zone {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-card .drop-zone:hover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    transform: translateY(-2px);
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.upload-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quick-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.quick-link svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Controls Overlay */
.controls-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.controls-section {
    margin-bottom: 2rem;
}

.controls-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.control-item:last-child {
    border-bottom: none;
}

.control-key {
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.control-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.control-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.controls-tip {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Info overlay improvements */
.info-section {
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.patent-pending {
    background: linear-gradient(145deg, rgba(255, 0, 255, 0.1), rgba(255, 0, 255, 0.05));
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.patent-pending h3 {
    color: var(--secondary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .file-loading-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upload-card .drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .quick-links {
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .controls-content {
        max-height: 60vh;
    }
    
    .controls-section {
        margin-bottom: 1.5rem;
    }
    
    .control-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }
    
    .control-key {
        align-self: flex-start;
    }
    
    .zus-main-content {
        padding: 20px;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .zus-header {
        padding: 15px 20px;
    }
    
    .overlay-content {
        margin: 2rem 1rem;
        max-height: 85vh;
    }
    
    .info-content,
    .controls-content {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .top-right-controls {
        gap: 0.5rem;
    }
    
    .control-btn {
        min-width: 36px;
        min-height: 36px;
    }
    
    .upload-card .drop-zone {
        padding: 1.25rem 0.75rem;
    }
    
    .upload-card h3 {
        font-size: 1.1rem;
    }
    
    .controls-tip {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Bouncing ESC hint */
.pause-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Gallery overlay button enhancements */
.gallery-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4) !important;
}

.continue-btn:hover {
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

