* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection only in input fields */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    background: #000000;
    color: #cccccc;
    overflow: hidden;
    height: 100vh;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #444444; }

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Toolbar */
.toolbar {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 7px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    height: 52px;
    position: relative;
    justify-content: space-between;
}

.app-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    margin-right: 30px;
    user-select: none;
    cursor: pointer;
    z-index: 2;
}

.toolbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 1;
}

.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn svg {
    opacity: 0.8;
}

.toolbar-nav {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #1a1a1a;
    margin: 0 6px;
}

.btn {
    background: #1a1a1a;
    color: #999999;
    border: 1px solid #1a1a1a;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.12s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar .btn {
    padding: 5px 11px;
    font-size: 10px;
}

.btn:hover:not(:disabled) {
    background: #262626;
    color: #cccccc;
    border-color: #2a2a2a;
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn.primary:hover:not(:disabled) {
    background: #e6e6e6;
    border-color: #e6e6e6;
    color: #000000;
}

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.media-library {
    width: 280px;
    background: #0a0a0a;
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.library-header {
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    background: #000000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    color: #666666;
}

.library-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    position: relative;
}

#mediaLibrary.drag {
    outline: 1px dashed #ffffff44;
    background: #0d0d12;
}

.media-item {
    background: #141414;
    border: 1px solid #1a1a1a;
    padding: 8px;
    margin-bottom: 6px;
    cursor: grab;
    transition: all 0.12s;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.media-item:hover {
    border-color: #2a2a2a;
    background: #1a1a1a;
}

.media-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333333;
    border-radius: 3px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
    font-family: Arial, sans-serif;
}

.media-item:hover .media-delete-btn {
    display: flex;
}

.media-delete-btn:hover {
    background: #333333;
    border-color: #666666;
    transform: scale(1.1);
}

.media-delete-btn:active {
    transform: scale(0.95);
}

.media-item.dragging {
    opacity: 0.5;
}

.media-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    background: #000000;
    border: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.media-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.media-name {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-duration {
    font-size: 10px;
    color: #666666;
}

.media-format {
    font-size: 9px;
    color: #444444;
    margin-top: 2px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000000;
    min-height: 0;
}

.preview-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#videoPreview, #videoPreviewB, #previewVideo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#previewVideo::-webkit-media-controls {
    display: none !important;
}

#previewVideo::-webkit-media-controls-enclosure {
    display: none !important;
}

.properties-panel {
    background: rgba(10, 10, 10, 0.98);
    border-left: 1px solid #1a1a1a;
    overflow-y: auto;
    width: 320px;
    position: fixed;
    right: -320px;
    top: 60px;
    bottom: 0;
    z-index: 500;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.properties-panel.open {
    right: 0;
}

.properties-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid #1a1a1a;
    border-right: none;
    padding: 12px 8px;
    cursor: pointer;
    color: #666666;
    font-size: 10px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-radius: 4px 0 0 4px;
}

.properties-toggle:hover {
    background: #141414;
    color: #cccccc;
}

.property-group {
    padding: 15px;
    border-bottom: 1px solid #1a1a1a;
}

.property-label {
    font-size: 10px;
    color: #666666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.property-input {
    width: 100%;
    padding: 8px;
    background: #141414;
    border: 1px solid #1a1a1a;
    color: #cccccc;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.property-input:focus {
    outline: none;
    border-color: #2a2a2a;
}

.property-slider {
    width: 100%;
    margin: 10px 0;
}

.timeline-header {
    padding: 8px 20px;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.timeline-header h3 {
    justify-self: start;
}

.timeline-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.timeline-btn {
    padding: 5px 11px !important;
    font-size: 10px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-self: center;
}

.zoom-controls {
    justify-self: end;
}

.timeline-control-btn {
    width: 36px;
    height: 36px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    color: #999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
    font-family: 'IBM Plex Mono', monospace;
}

.timeline-control-btn:hover {
    background: #141414;
    color: #cccccc;
    border-color: #2a2a2a;
}

.timeline-control-btn:active {
    background: #000000;
}

.timeline-control-btn.play-pause {
    width: 44px;
    background: #1a1a1a;
}

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

.timeline-control-btn.play-pause svg {
    width: 16px;
    height: 16px;
}

.time-display {
    font-size: 11px;
    color: #666666;
    font-family: 'IBM Plex Mono', monospace;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
    margin-left: 50px;
    margin-right: auto;
}

.timeline-header h3 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666666;
}

.zoom-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #3a3a3a;
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.zoom-btn:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

.zoom-out {
    font-size: 22px;
    line-height: 0.8;
}

.zoom-label {
    font-size: 11px;
    color: #666666;
    min-width: 35px;
    text-align: center;
    font-weight: 500;
}

.timeline-ruler {
    height: 24px;
    background: #0a0a0a;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    flex-shrink: 0;
    cursor: pointer;
}

.timeline-ruler:hover {
    background: #0f0f0f;
}

.ruler-left-space {
    width: 100px;
    background: #000000;
    border-right: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.ruler-content {
    flex: 1;
    position: relative;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ruler-content::-webkit-scrollbar {
    display: none;
}

.ruler-marks-container {
    position: relative;
    height: 100%;
}

.ruler-mark {
    position: absolute;
    height: 100%;
    border-left: 1px solid #1a1a1a;
}

.ruler-time {
    position: absolute;
    font-size: 9px;
    padding: 4px;
    color: #444444;
    left: 2px;
}

.clip-end-marker {
    position: absolute;
    height: 100%;
    width: 3px;
    background: #ff3333;
    top: 0;
    z-index: 30;
    pointer-events: none;
}

.clip-end-marker::before {
    content: 'STOP';
    position: absolute;
    top: 3px;
    left: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #ff3333;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-content {
    flex: 1;
    position: relative;
    overflow-x: scroll; /* Always show horizontal scrollbar */
    overflow-y: auto;
    min-height: 0;
    background: #0a0a0a;
}

.timeline-content::-webkit-scrollbar {
    width: 14px; /* Slightly wider for better grip */
    height: 14px; /* Slightly taller for horizontal scrollbar */
}

.timeline-content::-webkit-scrollbar-track {
    background: #111111;
    border-top: 1px solid #222222;
}

.timeline-content::-webkit-scrollbar-thumb {
    background: #444444; /* Lighter for better visibility */
    border-radius: 3px;
    border: 2px solid #111111; /* Padding effect */
}

.timeline-content::-webkit-scrollbar-thumb:hover {
    background: #666666; /* Brighter on hover */
}

.timeline-content::-webkit-scrollbar-corner {
    background: #000000;
}

.timeline-content::before {
    content: '';
    position: sticky;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: #000000;
    border-right: 1px solid #1a1a1a;
    z-index: 150;
    pointer-events: none;
    display: block;
}

.timeline-content-inner {
    position: relative;
    min-width: 100%;
}

.timeline-track {
    height: 50px;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    display: flex;
}

.track-content {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.track-controls-left {
    width: 100px;
    background: #000000;
    border-right: 1px solid #1a1a1a;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 200;
    box-shadow: 1px 0 0 #1a1a1a;
    contain: layout paint;
}

.track-name {
    font-size: 7px;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.track-buttons {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.track-btn {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #999999;
    padding: 3px 2px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.12s;
    letter-spacing: 0.3px;
    min-width: 0;
}

.track-btn:hover {
    background: #262626;
    color: #cccccc;
    border-color: #3a3a3a;
}

.track-btn.active {
    background: #ff3333;
    color: #ffffff;
    border-color: #ff3333;
}

.track-btn.solo-active {
    background: #ffaa00;
    color: #000000;
    border-color: #ffaa00;
}

.track-btn.delete {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #888;
}

.track-btn.delete:hover {
    background: #2a2a2a;
    color: #ccc;
}

.track-volume {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #1a1a1a;
    outline: none;
    border-radius: 2px;
}

.track-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 10px;
    background: #666666;
    cursor: pointer;
    border-radius: 1px;
}

.track-volume::-webkit-slider-thumb:hover {
    background: #999999;
}

.track-volume::-moz-range-thumb {
    width: 8px;
    height: 10px;
    background: #666666;
    cursor: pointer;
    border: none;
    border-radius: 1px;
}

.track-volume::-moz-range-thumb:hover {
    background: #999999;
}

.timeline-clip {
    position: absolute;
    height: 35px;
    top: 7px;
    background: #4d4d4d;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    overflow: hidden;
    z-index: 5;
    pointer-events: auto;
    will-change: left, width;
    border: 1px solid #2a2a2a;
    cursor: move;
}

/* Video clips - blue tint */
.timeline-clip.clip-video {
    background: linear-gradient(135deg, #3d5a80 0%, #4d6a8d 100%);
    border-color: #5a7ba8;
}

.timeline-clip.clip-video:hover {
    background: linear-gradient(135deg, #4d6a8d 0%, #5a7ba8 100%);
}

/* Audio clips - green tint */
.timeline-clip.clip-audio {
    background: linear-gradient(135deg, #2d5a3d 0%, #3d6a4d 100%);
    border-color: #4a7a5a;
}

.timeline-clip.clip-audio:hover {
    background: linear-gradient(135deg, #3d6a4d 0%, #4a7a5a 100%);
}

.timeline-clip.clip-audio::before {
    content: '♪';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.4;
}

/* Image clips - purple tint */
.timeline-clip.clip-image {
    background: linear-gradient(135deg, #5a3d80 0%, #6a4d8d 100%);
    border-color: #7a5aa8;
}

.timeline-clip.clip-image:hover {
    background: linear-gradient(135deg, #6a4d8d 0%, #7a5aa8 100%);
}

.timeline-clip.clip-image::before {
    content: '🖼';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.4;
}

.clip-label {
    position: absolute;
    top: 2px;
    left: 6px;
    right: 6px;
    font-size: 9px;
    line-height: 1;
    opacity: 0.75;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-clip:hover {
    background: #5a5a5a;
    border-color: #666666;
    z-index: 6;
}

.timeline-clip.selected {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #000000, 0 0 0 2px #ffffff;
    z-index: 15;
}

.clip-handle {
    position: absolute;
    width: 8px;
    height: 100%;
    top: 0;
    background: rgba(255,255,255,0.15);
    cursor: ew-resize;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}

.timeline-clip:hover .clip-handle {
    opacity: 1;
}

.clip-handle.left { 
    left: 0;
    border-right: 2px solid rgba(255,255,255,0.4);
}

.clip-handle.right { 
    right: 0;
    border-left: 2px solid rgba(255,255,255,0.4);
}

.clip-handle:hover { 
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.clip-handle.left:hover { border-right-color: #ffffff; }
.clip-handle.right:hover { border-left-color: #ffffff; }

.playhead {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #00ff00;
    top: 0;
    z-index: 40;
    cursor: ew-resize;
    pointer-events: auto;
}

.playhead::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -9px;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border: 2px solid #000000;
    cursor: ew-resize;
    z-index: 40;
    pointer-events: auto;
    transition: transform 0.1s;
}

.playhead:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.video-controller {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 1px;
    transform: translateX(calc(-50% - 32px - 0.5px));
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    display: flex;
    gap: 1px;
    z-index: 100;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    border-radius: 2px;
}

.video-controller-btn {
    width: 32px;
    height: 32px;
    background: #141414;
    border: none;
    color: #999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.1s;
    position: relative;
}

.video-controller-btn:hover {
    background: #1a1a1a;
    color: #cccccc;
}

.video-controller-btn:active {
    background: #0a0a0a;
}

.video-controller-btn.play-pause {
    width: 40px;
}

.video-controller-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.video-controller-btn.play-pause svg {
    width: 16px;
    height: 16px;
}

.preview-wrapper {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 28px;
    max-width: 860px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.modal-close {
    cursor: pointer;
    font-size: 28px;
    color: #666666;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #cccccc;
}

.export-section {
    margin-bottom: 18px;
}

.export-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.export-option {
    background: #141414;
    border: 1px solid #1a1a1a;
    padding: 12px;
    cursor: pointer;
    transition: all 0.12s;
    text-align: center;
}

.export-option:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.export-option.selected {
    border-color: #ffffff;
    background: #1a1a1a;
}

.export-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #cccccc;
    line-height: 1.25;
}

.export-option-desc {
    font-size: 8px;
    color: #666666;
    margin-top: 3px;
}

/* GPU Acceleration Button */
.export-gpu-btn {
    width: 100%;
    background: #141414;
    border: 1px solid #1a1a1a;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.export-gpu-btn:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.export-gpu-btn.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.gpu-icon {
    font-size: 24px;
    line-height: 1;
}

.gpu-status {
    flex: 1;
    text-align: left;
}

.gpu-label {
    font-size: 11px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpu-desc {
    font-size: 9px;
    color: #666666;
    margin-top: 2px;
}

.export-gpu-btn.active .gpu-label {
    color: #00ff88;
}

.export-gpu-btn.active .gpu-desc {
    color: #00ff88;
    opacity: 0.7;
}

.gpu-toggle {
    width: 44px;
    height: 24px;
    background: #262626;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s;
}

.export-gpu-btn.active .gpu-toggle {
    background: #00ff88;
}

.toggle-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #666666;
    border-radius: 50%;
    transition: all 0.2s;
}

.export-gpu-btn.active .toggle-indicator {
    background: #000000;
    left: 22px;
}

/* Hardware Recommendations Banner */
.hardware-banner {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.hardware-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hardware-chip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-apple { background: #ffffff; }
.chip-nvidia { background: #76b900; }
.chip-amd { background: #ed1c24; }
.chip-intel { background: #0071c5; }
.chip-generic { background: #666666; }

.hardware-info {
    flex: 1;
}

.hardware-platform {
    font-size: 9px;
    color: #666666;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hardware-device {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hardware-recommendation {
    font-size: 10px;
    color: #999999;
}

.hardware-apply-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
}

.hardware-apply-btn:hover {
    background: #e6e6e6;
    transform: translateY(-1px);
}

/* Export Mode Selector */
.export-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #0a0a0a;
    border-radius: 6px;
}

.mode-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.mode-btn:hover {
    background: #141414;
}

.mode-btn.active {
    background: #1a1a1a;
    border-color: #ffffff;
}

.mode-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon svg {
    color: #666666;
    transition: color 0.2s;
}

.mode-btn:hover .mode-icon svg {
    color: #999999;
}

.mode-btn.active .mode-icon svg {
    color: #ffffff;
}

.mode-label {
    font-size: 12px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.mode-btn.active .mode-label {
    color: #ffffff;
}

.mode-desc {
    font-size: 9px;
    color: #666666;
}

/* Encoder Choice */
.encoder-choice-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.encoder-choice-title {
    font-size: 11px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.encoder-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.encoder-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.encoder-option {
    background: #141414;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
    text-align: left;
}

.encoder-option:hover {
    background: #1a1a1a;
    border-color: #333333;
}

.encoder-option.active {
    background: #1a1a1a;
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff;
}

.encoder-option-icon {
    flex-shrink: 0;
}

.encoder-option-icon svg {
    color: #666666;
    transition: color 0.2s;
}

.encoder-option:hover .encoder-option-icon svg {
    color: #999999;
}

.encoder-option.active .encoder-option-icon svg {
    color: #ffffff;
}

.encoder-option-content {
    flex: 1;
}

.encoder-option-name {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 4px;
}

.encoder-option.active .encoder-option-name {
    color: #ffffff;
}

.encoder-option-desc {
    font-size: 10px;
    color: #666666;
    margin-bottom: 6px;
}

.encoder-option-badge {
    font-size: 9px;
    color: #0f0;
    padding: 2px 6px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 3px;
    display: inline-block;
}

.encoder-option[data-encoder="mediarecorder"] .encoder-option-badge {
    color: #0af;
    background: rgba(0, 170, 255, 0.1);
    border-color: rgba(0, 170, 255, 0.3);
}

.encoder-option[data-encoder="transmux"] .encoder-option-badge {
    color: #f0f;
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

/* Simple Mode */
.export-mode-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Automatic Mode */
.automatic-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.automatic-preview-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.automatic-preview-icon svg {
    color: #ffffff;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.automatic-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.automatic-preview-info {
    font-size: 11px;
    color: #999999;
    margin-bottom: 16px;
}

.automatic-preview-info strong {
    color: #ffffff;
}

.automatic-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.automatic-feature {
    font-size: 10px;
    color: #666666;
    padding: 4px 8px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
}

.automatic-settings-card {
    background: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.automatic-settings-title {
    font-size: 11px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.automatic-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.automatic-setting-item {
    padding: 8px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
}

.automatic-setting-label {
    font-size: 9px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.automatic-setting-value {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.automatic-notice {
    font-size: 9px;
    color: #666666;
    padding: 8px;
    background: #0a0a0a;
    border-radius: 4px;
    text-align: center;
}

/* Simple Mode */
.simple-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.simple-preview-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-preview-icon svg {
    color: #ffffff;
    opacity: 0.8;
}

.simple-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.simple-preview-info {
    font-size: 11px;
    color: #999999;
}

.simple-settings-card {
    background: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px;
}

.simple-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
}

.simple-settings-row:last-child {
    border-bottom: none;
}

.simple-settings-label {
    font-size: 11px;
    color: #999999;
}

.simple-settings-value {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

/* Advanced Mode - Steps */
.export-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.export-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.export-step-content {
    flex: 1;
}

.export-step-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.export-step-hint {
    font-size: 9px;
    color: #666666;
    margin-bottom: 12px;
}

.export-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    cursor: pointer;
    transition: all 0.12s;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-btn:hover {
    background: #262626;
    color: #cccccc;
}

.export-btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.export-btn.primary:hover {
    background: #e6e6e6;
    color: #000000;
}

.export-progress {
    margin-top: 15px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 28px;
    background: #141414;
    border: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cccccc, #ffffff);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    color: #000000;
    z-index: 1;
}

input[type="file"] {
    display: none;
}

.library-content.drag-over {
    background: rgba(102, 126, 234, 0.15);
    border: 2px dashed #667eea;
}

.drop-zone-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
    pointer-events: none;
    font-size: 12px;
    line-height: 1.3;
    width: 90%;
    z-index: 1;
    padding: 30px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.drop-zone-hint .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.keyboard-shortcuts {
    position: fixed;
    top: 60px;
    right: 10px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #1a1a1a;
    padding: 10px 15px;
    font-size: 10px;
    color: #666666;
    z-index: 1000;
    max-width: 250px;
    display: none;
}

.keyboard-shortcuts.show {
    display: block;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
}

.shortcut-key {
    color: #cccccc;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.exporting {
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Save Reminder Modal */
.save-reminder-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 25px 30px;
    z-index: 10000;
    box-shadow: none;
    min-width: 350px;
    display: none;
}

.save-reminder-modal.show {
    display: block;
}

.save-reminder-header {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-reminder-message {
    font-size: 12px;
    color: #999999;
    margin-bottom: 20px;
    line-height: 1.6;
}

.save-reminder-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 11px;
    color: #666666;
    cursor: pointer;
}

.save-reminder-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.save-reminder-buttons {
    display: flex;
    gap: 10px;
}

.save-reminder-btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-reminder-btn:hover {
    background: #262626;
    border-color: #2a2a2a;
    color: #cccccc;
}

.save-reminder-btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.save-reminder-btn.primary:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.save-reminder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
}

.save-reminder-overlay.show {
    display: block;
}

/* Relink Modal */
.relink-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 25px 30px;
    z-index: 10001;
    min-width: 500px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.relink-modal.show {
    display: block;
}

.relink-header {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relink-description {
    font-size: 11px;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.relink-list {
    margin-bottom: 20px;
}

.relink-item {
    background: #141414;
    border: 1px solid #1a1a1a;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.relink-item-info {
    flex: 1;
    min-width: 0;
}

.relink-item-name {
    font-size: 11px;
    color: #cccccc;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.relink-item-type {
    font-size: 9px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relink-item-status {
    font-size: 10px;
    color: #ff6666;
    margin-left: 15px;
}

.relink-item-status.linked {
    color: #66ff66;
}

.relink-btn-small {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.relink-btn-small:hover {
    background: #262626;
    border-color: #2a2a2a;
    color: #cccccc;
}

.relink-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.relink-modal-btn {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.relink-modal-btn:hover {
    background: #262626;
    border-color: #2a2a2a;
    color: #cccccc;
}

.relink-modal-btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.relink-modal-btn.primary:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.relink-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
}

.relink-overlay.show {
    display: block;
}

/* ============================================
   MODAL STYLES (Export, Performance, etc.)
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
}

.modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #666666;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #cccccc;
}

/* Export Options */
.export-section {
    padding: 25px;
    border-bottom: 1px solid #0f0f0f;
}

.export-section:last-child {
    border-bottom: none;
}

.export-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 15px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.export-option {
    background: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.export-option:hover {
    background: #222222;
    border-color: #2a2a2a;
}

.export-option.selected {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.export-option-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.export-option-desc {
    font-size: 9px;
    color: #666666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.export-option.selected .export-option-desc {
    color: #666666;
}

.export-progress {
    padding: 25px;
    display: none;
}

.export-progress.show {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8555 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.export-actions {
    padding: 20px 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #1a1a1a;
}

.export-btn {
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.export-btn:hover {
    background: #262626;
    border-color: #2a2a2a;
    color: #cccccc;
}

.export-btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.export-btn.primary:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Save Reminder Modal */
.save-reminder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
}

.save-reminder-overlay.show {
    display: block;
}

.save-reminder-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    z-index: 10000;
    display: none;
}

.save-reminder-modal.show {
    display: block;
}

.save-reminder-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.save-reminder-message {
    font-size: 12px;
    color: #999999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.save-reminder-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666666;
    margin-bottom: 20px;
    cursor: pointer;
}

.save-reminder-checkbox input {
    cursor: pointer;
}

.save-reminder-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-reminder-btn {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #999999;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-reminder-btn:hover {
    background: #262626;
    border-color: #2a2a2a;
    color: #cccccc;
}

.save-reminder-btn.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.save-reminder-btn.primary:hover {
    background: #cccccc;
    border-color: #cccccc;
}

/* Preview Overlays */
#previewOverlays {
    z-index: 10;
}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    pointer-events: auto; /* Allow selecting text if needed later */
    cursor: move;
}
.overlay-block {
    position: absolute;
    cursor: move;
    pointer-events: auto;
    border: 2px solid rgba(255,255,255,0.3);
}

.overlay-block:hover {
    border-color: rgba(255,255,255,0.6);
}

/* Block Resize Handles */
.block-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 50%;
    pointer-events: auto;
    z-index: 10;
}

.block-handle-nw { top: -5px; left: -5px; cursor: nw-resize; }
.block-handle-n { top: -5px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.block-handle-ne { top: -5px; right: -5px; cursor: ne-resize; }
.block-handle-e { top: 50%; right: -5px; transform: translateY(-50%); cursor: e-resize; }
.block-handle-se { bottom: -5px; right: -5px; cursor: se-resize; }
.block-handle-s { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.block-handle-sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.block-handle-w { top: 50%; left: -5px; transform: translateY(-50%); cursor: w-resize; }

.block-handle:hover {
    background: #00aaff;
    transform: scale(1.3);
}

.block-handle-n:hover, .block-handle-s:hover {
    transform: translateX(-50%) scale(1.3);
}

.block-handle-e:hover, .block-handle-w:hover {
    transform: translateY(-50%) scale(1.3);
}

/* Color Grading Panel */
.color-panel {
    position: fixed;
    bottom: 0;
    left: 280px;
    width: calc(100% - 280px);
    height: 300px;
    background: #1e1e1e;
    border-top: 1px solid #333;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

.color-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.color-panel-header span {
    font-weight: bold;
    color: #ccc;
}

.btn-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
}

.color-wheels-container {
    display: grid;
    grid-template-columns: 200px repeat(3, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.color-wheel-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.wheel-label {
    font-size: 12px;
    color: #888;
}

/* Video Filters Column */
.video-filters-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #333;
    max-height: 220px;
    overflow-y: auto;
    z-index: 0;
}

.video-filters-column h3 {
    font-size: 11px;
    color: #888;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-preset {
    padding: 8px 10px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.filter-preset:hover {
    background: #333;
    border-color: #555;
    color: #fff;
}

.filter-preset.active {
    background: #0066cc;
    border-color: #0077ee;
    color: #fff;
}

/* Custom scrollbar for filters */
.video-filters-column::-webkit-scrollbar {
    width: 6px;
}

.video-filters-column::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.video-filters-column::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.video-filters-column::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.color-wheel {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    position: relative;
    border: 2px solid #444;
    cursor: crosshair;
    z-index: 1;
}

.wheel-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.color-wheel::after {
    display: none;
}

.wheel-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 2px;
    outline: none;
}

.wheel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.color-sliders {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.slider-group label {
    font-size: 11px;
    color: #888;
}
