/* 3D Gaussian Splatting Feature Styles - Clean Dark Theme */

.gaussian-container {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text-primary);
}

/* Upload Dropzone */
.upload-dropzone {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-medium);
    border-radius: 20px;
    padding: 5rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    background: #363636;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.upload-dropzone i {
    font-size: 4rem;
    color: var(--text-secondary);
    /* Clean grey instead of gradient */
    margin-bottom: 1.5rem;
    display: block;
}

.upload-dropzone h3 {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
}

.upload-dropzone p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.upload-dropzone .btn {
    background: #363636;
    border: none;
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.upload-dropzone .btn:hover {
    background: #444654;
}

/* Upload Preview */
.upload-preview {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.upload-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
}

.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.generate-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.generate-options .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.generate-options .btn i {
    font-size: 1.1rem;
}

#gaussianGenerateGCloudBtn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    border: none;
    color: white;
}

#gaussianGenerateGCloudBtn:hover {
    background: linear-gradient(135deg, #5294f5, #45b564);
    transform: translateY(-1px);
}

.generation-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
    opacity: 0.7;
}

/* Processing Section */
.processing-section {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.processing-spinner {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.processing-section h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.processing-section p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 6px;
    background: #363636;
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 3D Viewer Modal Overlay */
.viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0c;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: viewerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

@keyframes viewerSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.viewer-modal.closing {
    animation: viewerSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewerSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

/* Close X Button */
.viewer-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.viewer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.viewer-close-btn:active {
    transform: scale(0.95);
}

.viewer-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #0a0a0c;
    position: relative;
    overflow: hidden;
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .viewer-modal .viewer-customize-panel {
        position: fixed;
        right: 10px;
        top: 10px;
        bottom: auto;
        width: 220px;
        max-height: calc(100vh - 20px);
        font-size: 0.85rem;
    }

    .viewer-modal .customize-content {
        max-height: calc(100vh - 80px);
    }

    .viewer-modal .viewer-controls {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .viewer-modal .viewer-controls .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .viewer-close-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
        font-size: 1.2rem;
    }
}

/* Viewer Controls (Bottom Toolbar) */
.viewer-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(18, 18, 18, 0.85);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    max-width: calc(100vw - 40px);
}

/* Buttons Enhancement */
.gaussian-container .btn {
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-elevated);
    /* #444654 */
    color: white;
}

.btn-primary:hover {
    background: #565869;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium) !important;
}

.btn-secondary:hover {
    background: #363636;
    color: var(--text-primary);
}

/* Gallery Section */
.gallery-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gallery-header h3 i {
    color: var(--text-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Gallery Card - Premium 3D Preview */
.gallery-card {
    background: linear-gradient(145deg, #2a2a30, #1f1f24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(110, 123, 242, 0.1);
}

/* 3D Preview Container */
.gallery-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a20;
    overflow: hidden;
}

.gallery-card-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Hover Overlay */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.gallery-card-overlay i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-card-overlay span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.gallery-card-info {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-card-title {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-date {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}

.gallery-card-author {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.gallery-card-author i {
    margin-right: 0.25rem;
}

.gallery-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
}

.gallery-card-actions .btn {
    padding: 0.6rem;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.gallery-card-actions .btn:hover {
    transform: scale(1.05);
}

/* Empty State */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.gallery-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* Live Customization Panel */
.viewer-customize-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(20, 18, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: calc(100vh - 120px);
}

.viewer-customize-panel.collapsed .customize-content {
    display: none;
}

.viewer-customize-panel.collapsed {
    width: auto;
}

.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tabs Navigation */
.viewer-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(110, 123, 242, 0.05);
}

.tab-content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-panel.active {
    display: block;
}

.customize-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customize-header h4 i {
    color: var(--primary);
}

.customize-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.2s;
}

.customize-toggle:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.viewer-customize-panel.collapsed .customize-toggle i {
    transform: rotate(180deg);
}

.customize-content {
    padding: 1rem;
    max-height: 450px;
    overflow-y: auto;
}

.customize-content::-webkit-scrollbar {
    width: 4px;
}

.customize-content::-webkit-scrollbar-track {
    background: transparent;
}

.customize-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group:last-of-type {
    margin-bottom: 0.5rem;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.control-group label i {
    width: 14px;
    text-align: center;
    color: var(--primary);
}

.control-slider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-slider input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.control-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.control-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

.control-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 36px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.control-color {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-color input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.control-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.control-color input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.color-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Select Dropdown */
.control-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.control-select:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.control-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(110, 123, 242, 0.2);
}

.control-select option {
    background: #1a1a1f;
    color: var(--text-primary);
    padding: 0.5rem;
}

.control-toggle {
    display: flex;
    align-items: center;
}

.control-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.control-toggle input[type="checkbox"]:checked+.toggle-switch {
    background: var(--primary);
}

.control-toggle input[type="checkbox"]:checked+.toggle-switch::after {
    transform: translateX(20px);
}

.control-reset-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.control-reset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.control-reset-btn i {
    font-size: 0.8rem;
}

/* ==========================================
   MOBILE OPTIMIZATIONS - Touch-friendly controls
   ========================================== */

/* Mobile Portrait Mode */
@media (max-width: 768px) {
    /* Control Panel - Bottom Sheet Style */
    .viewer-customize-panel {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        max-height: 50vh;
        transition: max-height 0.3s ease, transform 0.3s ease;
    }

    .viewer-customize-panel.collapsed {
        max-height: 52px;
    }

    /* Drag handle indicator */
    .customize-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .customize-header {
        position: relative;
        padding: 1.2rem 1rem 0.8rem;
        min-height: 52px;
    }

    .customize-content {
        max-height: calc(50vh - 100px);
        padding: 1rem 1.2rem 2rem;
    }

    /* Tabs - Larger touch targets */
    .viewer-tabs {
        padding: 0.3rem;
        gap: 0.3rem;
        background: rgba(0, 0, 0, 0.3);
    }

    .tab-btn {
        padding: 0.9rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 44px;
    }

    /* Sliders - Much larger for touch */
    .control-slider input[type="range"] {
        height: 8px;
        background: rgba(255, 255, 255, 0.2);
    }

    .control-slider input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        margin-top: -10px;
    }

    .control-slider input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .control-group {
        margin-bottom: 1.4rem;
    }

    .control-group label {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    .slider-value {
        min-width: 42px;
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    /* Select Dropdown - Larger */
    .control-select {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
    }

    /* Color Picker - Larger */
    .control-color input[type="color"] {
        width: 48px;
        height: 40px;
        border-radius: 8px;
    }

    .color-value {
        font-size: 0.9rem;
    }

    /* Toggle Switch - Larger */
    .toggle-switch {
        width: 52px;
        height: 28px;
        border-radius: 14px;
    }

    .toggle-switch::after {
        width: 22px;
        height: 22px;
        top: 3px;
        left: 3px;
    }

    .control-toggle input[type="checkbox"]:checked+.toggle-switch::after {
        transform: translateX(24px);
    }

    /* Buttons - Larger touch targets */
    .control-reset-btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
    }

    /* Close Button */
    .viewer-close-btn {
        width: 48px;
        height: 48px;
        top: 15px;
        left: 15px;
        font-size: 1.3rem;
    }

    /* Bottom Toolbar - Hide on mobile when panel is open */
    .viewer-controls {
        display: none;
    }

    /* Section labels */
    .control-section-label {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

/* Mobile Landscape Mode */
@media (max-width: 900px) and (orientation: landscape) {
    .viewer-customize-panel {
        width: 300px;
        left: auto;
        right: 10px;
        top: 10px;
        bottom: auto;
        border-radius: 16px;
        max-height: calc(100vh - 20px);
    }

    .customize-header::before {
        display: none;
    }

    .customize-content {
        max-height: calc(100vh - 140px);
    }

    /* Slightly smaller but still touch-friendly in landscape */
    .control-slider input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .control-slider input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .tab-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.8rem;
    }

    .viewer-close-btn {
        width: 44px;
        height: 44px;
        top: 10px;
        left: 10px;
    }

    .viewer-controls {
        display: flex;
        bottom: 10px;
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
    }

    .viewer-controls .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
}

/* Very small screens (iPhone SE, etc) */
@media (max-width: 375px) {
    .viewer-customize-panel {
        max-height: 55vh;
    }

    .customize-content {
        padding: 0.8rem 1rem 1.5rem;
    }

    .control-group {
        margin-bottom: 1.2rem;
    }

    .tab-btn {
        padding: 0.8rem 0.3rem;
        font-size: 0.75rem;
    }
}

/* Music Progress Bar */
.music-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 0.5rem;
    width: 100%;
}

.music-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    min-width: 35px;
}

.music-seek-bar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.music-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.music-seek-bar::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.music-seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Control Panel Dividers and Section Labels */
.control-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.control-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Native Fullscreen API styles (for Fullscreen button) */
.viewer-modal:fullscreen,
.viewer-modal:-webkit-full-screen,
.viewer-modal:-moz-full-screen {
    /* Already fullscreen by default, just ensure no extra styling */
    border-radius: 0 !important;
}

.viewer-modal:fullscreen .viewer-close-btn,
.viewer-modal:-webkit-full-screen .viewer-close-btn {
    /* Hide close button in native fullscreen - use ESC key instead */
    display: none;
}