#editor-panel {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
}

#audacity-container {
    width: 100%;
    box-sizing: border-box;
    background-color: #242424;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.header-info {
    font-size: 16px;
    font-weight: bold;
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.tit { color: #d4af37; }
.toolbar {
    display: flex;
    font-size: 17px;
    font-weight: bold;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
#audacity-container button {
    background-color: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}
#audacity-container button:hover { background-color: #555; }
#audacity-container button:disabled { color: #888; background-color: #2a2a2a; border-color: #3a3a3a; cursor: not-allowed; }

#btn-play { background-color: #2e7d32 !important; border-color: #388e3c !important; min-width: 80px; justify-content: center;}
#btn-play:hover { background-color: #3c9a42 !important; }
#btn-stop { background-color: #c62828 !important; border-color: #d32f2f !important; }
#btn-stop:hover { background-color: #e53935 !important; }

.export-group {
    margin-left: auto;
    display: flex;
    gap: 5px;
}
.export-group button { background-color: #1565c0 !important; border-color: #1976d2 !important; }
.export-group button:hover { background-color: #1e88e5 !important; }
.timeline-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    user-select: none;
    border: 1px solid #444;
    background: #000;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.timeline-wrapper::-webkit-scrollbar { display: none; }
.time-axis {
    width: 1250px;
    height: 24px;
    background: #222;
    border-bottom: 1px solid #444;
    position: relative;
    box-sizing: border-box;
}
.time-tick {
    position: absolute;
    bottom: 0;
    border-left: 1px solid #666;
    height: 24px;
    padding-left: 3px;
    font-size: 11px;
    line-height: 28px;
    color: #bbb;
    font-family: monospace;
}
.waveform-container {
    position: relative;
    width: 1250px;
    height: 180px;
    background: #000;
}
.waveform-img {
    width: 1250px;
    height: 180px;
    display: block;
    pointer-events: none;
}
.selection-overlay {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(103, 58, 183, 0.25);
    backdrop-filter: hue-rotate(120deg) saturate(5.5);
    border-left: 1px dashed #4fc3f7;
    border-right: 1px dashed #4fc3f7;
    pointer-events: none;
    display: none;
}
.drag-handle {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #4fc3f7;
    cursor: ew-resize;
    display: none;
    z-index: 10;
}
.drag-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 18px;
    height: 100%;
    background: transparent;
}
.drag-handle:hover, .drag-handle.active {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}
.drag-handle.last-focused {
    background: #ffeb3b;
    box-shadow: 0 0 6px #ffeb3b;
    z-index: 12;
}

.play-cursor {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #ffff00;
    box-shadow: 0 0 6px #ff3d00;
    pointer-events: none;
    z-index: 5;
}

.status-bar {
    margin-top: 15px;
    background: #1e1e1e;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

#download-link {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
}
#download-link:hover { text-decoration: underline; }

.winamp-spec-container {
    background-color: #000;
    border: 1px solid #2a2a2a;
    padding: 1px;
    height: 32px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#winamp-analyzer {
    display: block;
    background: #000;
}
#editor-close-btn {
    background: transparent !important;
    border: none !important;
    color: #f00 !important;
    font-weight:bold;
    font-size: 22px !important;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px !important;
    flex-shrink: 0;
}
#editor-close-btn:hover { 
color: #ff0 !important;
}
