/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== VIDEO BACKGROUND ===== */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-background-container.active {
    opacity: 1;
}

.video-background-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 10, 30, 0.7) 0%, rgba(5, 2, 10, 0.9) 100%);
    backdrop-filter: blur(8px);
}

/* ===== APP LAYOUT ===== */
.app-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100vw;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px;
    gap: 16px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: rgba(12, 8, 18, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 24px 16px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.05) inset;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    margin-bottom: 4px;
}

.logo-sub {
    font-size: 0.65rem;
    color: #a78bfa;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 500;
}

.playlist-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b5cf6;
    font-weight: 600;
}

.song-count {
    font-size: 0.7rem;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 8px;
    border-radius: 20px;
}

.song-list {
    list-style: none;
}

.song-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 6px;
    background: rgba(20, 15, 30, 0.4);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
}

.song-list li:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

.song-list li.active {
    background: rgba(139, 92, 246, 0.18);
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
}

.song-cover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.song-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #fff;
}

.song-details p {
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 500;
}

/* Now Playing Mini */
.now-playing-mini {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-top: 16px;
    background: rgba(10, 5, 15, 0.5);
    border-radius: 18px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    backdrop-filter: blur(10px);
}

#miniCover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mini-info {
    flex: 1;
    min-width: 0;
}

#miniTitle {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#miniArtist {
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 500;
}

.mini-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8b5cf6;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mini-play:hover {
    background: #a78bfa;
    transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    background: rgba(12, 8, 18, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.05) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.tab {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 40px;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(5px);
}

.tab i {
    margin-right: 8px;
}

.tab.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.tab:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Tab Panels */
.tab-panel {
    display: none;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

/* ===== PLAYER CARD ===== */
.player-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.player-two-columns {
    display: flex;
    gap: 28px;
    flex: 1;
    min-height: 0;
    margin-bottom: 20px;
}

.player-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-left .player-art-section {
    margin-bottom: 16px;
}

.player-left .player-art-section img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease;
}

.player-left .player-art-section img:hover {
    transform: scale(1.02);
}

.player-left .player-info-section {
    text-align: center;
}

.player-left .player-info-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.player-left .player-info-section p {
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 500;
}

.player-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lyrics-box {
    flex: 1;
    background: rgba(8, 4, 12, 0.4);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.05) inset;
}

.lyrics-content {
    text-align: left;
}

.lyric-line {
    display: block;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    line-height: 1.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2px 0;
}

.lyric-line.highlight {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    padding-left: 8px;
    border-left: 3px solid #8b5cf6;
}

.lyric-placeholder {
    color: #6b5b7a;
    font-style: italic;
    text-align: center;
    margin-top: 40px;
}

/* Progress */
.progress-area {
    margin-bottom: 18px;
    flex-shrink: 0;
}

.progress-bar-wrapper {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
    border-radius: 5px;
    transition: width 0.05s linear;
    box-shadow: 0 0 12px #8b5cf6;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 16px #8b5cf6;
    border: 2px solid #8b5cf6;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-wrapper:hover .progress-fill::after {
    opacity: 1;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #a78bfa;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Player Actions */
.player-actions {
    flex-shrink: 0;
}

.main-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.action-btn {
    background: transparent;
    border: none;
    color: #c4b5fd;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.15);
}

.action-btn.active {
    color: #8b5cf6;
    text-shadow: 0 0 12px #8b5cf6;
}

.play-btn {
    width: 56px;
    height: 56px;
    background: #8b5cf6;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.play-btn:hover {
    background: #a78bfa;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.extra-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
}

.volume-row, .speed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a78bfa;
}

.volume-row i, .speed-row i {
    font-size: 0.9rem;
}

.volume-row input, .speed-row input {
    width: 90px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.volume-row input::-webkit-slider-thumb,
.speed-row input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px #8b5cf6;
    border: 2px solid #fff;
}

.volume-row input::-moz-range-thumb,
.speed-row input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px #8b5cf6;
    border: 2px solid #fff;
}

#speedValue {
    font-size: 0.8rem;
    color: #fff;
    min-width: 42px;
    font-weight: 500;
}

.credit {
    text-align: center;
    font-size: 0.65rem;
    color: #6b5b7a;
    margin-top: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    font-weight: 500;
}

/* ===== COMPRESSOR ===== */
.compressor-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

.compressor-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
}

.compressor-header {
    margin-bottom: 24px;
}

.compressor-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.compressor-desc {
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 500;
}

/* Upload Area Pro */
.upload-area-pro {
    background: rgba(20, 15, 30, 0.5);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.upload-area-pro:hover,
.upload-area-pro.dragover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon-wrapper i {
    font-size: 2.5rem;
    color: #8b5cf6;
}

.upload-area-pro h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-area-pro h3 span {
    color: #8b5cf6;
    text-decoration: underline;
}

.upload-area-pro p {
    font-size: 0.8rem;
    color: #6b5b7a;
}

/* Preview Panel */
.preview-panel {
    margin-bottom: 24px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.file-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 40px;
    color: #c4b5fd;
    font-size: 0.9rem;
}

.file-badge i {
    color: #8b5cf6;
}

.remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.original-preview, .compressed-preview {
    background: rgba(20, 15, 30, 0.5);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.preview-label {
    display: block;
    font-size: 0.8rem;
    color: #a78bfa;
    margin-bottom: 12px;
    font-weight: 500;
}

.image-container {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #c4b5fd;
}

.separator {
    color: #6b5b7a;
}

/* Settings Panel */
.settings-panel {
    background: rgba(20, 15, 30, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.settings-row {
    margin-bottom: 24px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 500;
}

.settings-row label i {
    color: #8b5cf6;
}

.settings-row label span {
    margin-left: auto;
    color: #fff;
    font-weight: 600;
}

.settings-row input[type="range"] {
    width: 100%;
    height: 5px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.settings-row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 16px #8b5cf6;
    border: 2px solid #fff;
}

.settings-row input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 16px #8b5cf6;
    border: 2px solid #fff;
}

.settings-row.two-cols {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.input-group {
    flex: 1;
}

.input-group label {
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(20, 15, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.input-group input::placeholder {
    color: #6b5b7a;
}

.lock-icon {
    flex: 0 0 auto;
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(20, 15, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover,
.icon-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.format-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.format-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(20, 15, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.format-btn:hover {
    background: rgba(139, 92, 246, 0.15);
}

.format-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Result Panel */
.result-panel {
    margin-bottom: 24px;
}

.result-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon i {
    font-size: 2rem;
    color: #10b981;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #10b981;
}

.result-stats {
    display: flex;
    gap: 24px;
}

.result-stats .stat {
    text-align: center;
}

.result-stats .stat span {
    display: block;
    font-size: 0.7rem;
    color: #a78bfa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-stats .stat strong {
    font-size: 1rem;
    color: #fff;
}

.result-stats .stat.highlight strong {
    color: #10b981;
}

.result-stats .stat.saved strong {
    color: #f59e0b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(20, 15, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .app-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        padding: 20px 16px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .playlist-section {
        max-height: 200px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .player-two-columns {
        flex-direction: column;
        gap: 20px;
    }

    .player-left {
        flex: auto;
    }

    .player-left .player-art-section img {
        width: 160px;
        height: 160px;
    }

    .player-right {
        min-height: 200px;
    }

    .lyrics-box {
        max-height: 240px;
    }

    .main-buttons {
        gap: 12px;
    }

    .extra-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .volume-row, .speed-row {
        width: 100%;
        justify-content: center;
    }

    .volume-row input, .speed-row input {
        width: 120px;
    }

    .tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .settings-row.two-cols {
        flex-wrap: wrap;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .result-stats {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .app-wrapper {
        padding: 8px;
    }

    .sidebar {
        border-radius: 20px;
        padding: 16px 12px;
    }

    .main-content {
        border-radius: 20px;
        padding: 16px 12px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .player-left .player-art-section img {
        width: 140px;
        height: 140px;
    }

    .player-left .player-info-section h2 {
        font-size: 1.1rem;
    }

    .lyric-line {
        font-size: 0.9rem;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .compressor-title {
        font-size: 1.4rem;
    }
}