﻿.audio-cutter-tool {
    max-width: 980px;
    margin: 0 auto;
}
.audio-upload {
    position: relative;
    min-height: 270px;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(129,120,255,.38);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(99,91,255,.16), transparent 58%),
        rgba(255,255,255,.018);
    cursor: pointer;
    transition: .2s ease;
}
.audio-upload:hover,
.audio-upload.dragging {
    border-color: rgba(129,120,255,.85);
    transform: translateY(-2px);
    background:
        radial-gradient(circle at 50% 0%, rgba(99,91,255,.23), transparent 62%),
        rgba(255,255,255,.025);
}
.audio-upload input {
    display: none;
}
.upload-symbol {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(99,91,255,.13);
    border: 1px solid rgba(129,120,255,.28);
    color: #aaa3ff;
    font-size: 31px;
    box-shadow: 0 0 35px rgba(99,91,255,.12);
}
.audio-upload h2 {
    margin: 0 0 7px;
    font-size: 25px;
}
.audio-upload p {
    margin: 0 0 18px;
    color: #9097aa;
}
.audio-upload span {
    margin-top: 12px;
    color: #70778a;
    font-size: 12px;
}
.choose-audio,
.primary-action,
.export-btn {
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg,#635bff,#8178ff);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}
.choose-audio {
    min-height: 44px;
    padding: 0 22px;
}
.choose-audio:hover,
.primary-action:hover,
.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(99,91,255,.2);
}
.audio-editor {
    display: none;
    margin-top: 18px;
}
.audio-editor.visible {
    display: block;
}
.audio-file-bar,
.wave-card,
.transport-card,
.control-card,
.export-card {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    box-shadow: 0 18px 50px rgba(0,0,0,.15);
}
.audio-file-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 17px;
}
.audio-file-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
.audio-file-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(99,91,255,.13);
    border: 1px solid rgba(129,120,255,.24);
    color: #aaa3ff;
    font-size: 21px;
}
.audio-file-info {
    min-width: 0;
}
.audio-file-info strong,
.audio-file-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.audio-file-info strong {
    margin-bottom: 4px;
}
.audio-file-info span {
    color: #858c9f;
    font-size: 12px;
}
.replace-btn,
.ghost-btn,
.secondary-action {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #c7ccd7;
    cursor: pointer;
    transition: .2s ease;
}
.replace-btn {
    padding: 9px 13px;
}
.replace-btn:hover,
.ghost-btn:hover,
.secondary-action:hover {
    border-color: rgba(129,120,255,.4);
    background: rgba(99,91,255,.08);
}
.wave-card {
    margin-top: 15px;
    padding: 17px;
    overflow: hidden;
}
.wave-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: #858c9f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.zoom-controls button {
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #c7ccd7;
    cursor: pointer;
    font-size: 17px;
}
.zoom-controls span {
    min-width: 45px;
    text-align: center;
    color: #8f96aa;
    font-size: 11px;
    letter-spacing: 0;
}
.wave-wrap {
    position: relative;
    height: 205px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 13px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        rgba(0,0,0,.18);
    background-size: 50px 50px;
    scrollbar-width: thin;
}
.wave-wrap::-webkit-scrollbar {
    height: 7px;
}
.wave-wrap::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(129,120,255,.35);
}
#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 100%;
}
.selection-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.selection-window {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px solid #aaa3ff;
    border-right: 2px solid #aaa3ff;
    background: rgba(99,91,255,.10);
    box-shadow:
        inset 0 0 30px rgba(99,91,255,.08),
        0 0 25px rgba(99,91,255,.08);
}
.handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 13px;
    cursor: ew-resize;
    pointer-events: auto;
}
.handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 48px;
    transform: translate(-50%,-50%);
    border-radius: 5px;
    background: #aaa3ff;
    box-shadow: 0 0 15px rgba(129,120,255,.55);
}
.handle-left {
    left: -7px;
}
.handle-right {
    right: -7px;
}
.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.7);
    pointer-events: none;
    z-index: 5;
}
.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #70778a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}
#timelineCurrent {
    color: #aaa3ff;
}
.transport-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 14px;
}
.transport-main {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,#635bff,#8178ff);
    color: white;
    cursor: pointer;
    font-weight: 900;
}
.transport-small {
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    color: #aeb4c1;
    cursor: pointer;
}
.transport-progress {
    flex: 1;
    min-width: 60px;
}
.transport-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}
.transport-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#635bff,#9a93ff);
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 7px;
}
.volume-control button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
.volume-control input {
    width: 80px;
}
.editor-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
    margin-top: 15px;
}
.control-card {
    padding: 19px;
}
.control-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.control-label {
    display: block;
    margin-bottom: 5px;
    color: #777e91;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
.control-heading h3,
.export-card h3 {
    margin: 0;
}
.ghost-btn {
    padding: 8px 11px;
    white-space: nowrap;
}
.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.time-grid label,
.duration-display {
    display: block;
}
.time-grid label span,
.duration-display span {
    display: block;
    margin-bottom: 6px;
    color: #858c9f;
    font-size: 11px;
}
.time-grid input,
.duration-display strong {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(0,0,0,.15);
    color: #d8dbe4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}
.duration-display strong {
    color: #aaa3ff;
}
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.primary-action,
.secondary-action {
    min-height: 40px;
    padding: 0 13px;
}
.secondary-action {
    border: 1px solid rgba(255,255,255,.09);
}
.speed-options {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 18px;
}
.speed-options button {
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: #aeb4c1;
    cursor: pointer;
}
.speed-options button:hover,
.speed-options button.active {
    border-color: rgba(129,120,255,.48);
    background: rgba(99,91,255,.09);
    color: #aaa3ff;
}
.info-line {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #858c9f;
    font-size: 12px;
}
.info-line strong {
    color: #aaa3ff;
}
.export-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
    padding: 20px;
}
.export-card p {
    margin: 6px 0 0;
    color: #858c9f;
    font-size: 12px;
}
.export-options {
    display: flex;
    gap: 9px;
}
.format-box {
    min-width: 135px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
}
.format-box span,
.format-box strong,
.format-box small {
    display: block;
}
.format-box span {
    color: #777e91;
    font-size: 10px;
    text-transform: uppercase;
}
.format-box strong {
    margin-top: 3px;
}
.format-box small {
    margin-top: 3px;
    color: #777e91;
    font-size: 10px;
}
.export-btn {
    grid-column: 1 / -1;
    min-height: 48px;
    width: 100%;
    margin-top: 2px;
}
.download-result {
    display: none;
    grid-column: 1 / -1;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(99,91,255,.12);
    border: 1px solid rgba(129,120,255,.28);
    color: #aaa3ff;
    text-decoration: none;
    font-weight: 800;
}
.download-result.visible {
    display: flex;
}
.status-panel {
    min-height: 20px;
    margin: 12px 2px 0;
    color: #858c9f;
    font-size: 12px;
    line-height: 1.6;
}
.status-panel.success {
    color: #9ed9bd;
}
.status-panel.error {
    color: #ff9a9a;
}
@media (max-width: 800px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .export-card {
        grid-template-columns: 1fr;
    }
    .export-options {
        width: 100%;
    }
    .format-box {
        flex: 1;
    }
}
@media (max-width: 600px) {
    .audio-upload {
        min-height: 230px;
        padding: 28px 18px;
    }
    .audio-file-bar {
        align-items: flex-start;
    }
    .transport-card {
        flex-wrap: wrap;
    }
    .transport-progress {
        order: 5;
        flex-basis: 100%;
    }
    .time-grid {
        grid-template-columns: 1fr;
    }
    .action-row {
        flex-direction: column;
    }
    .action-row button {
        width: 100%;
    }
    .export-options {
        flex-direction: column;
    }
    .format-box {
        width: 100%;
        box-sizing: border-box;
    }
    .control-heading {
        flex-direction: column;
    }
    .ghost-btn {
        width: 100%;
    }
}
