* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #121212;
    color: #fff;
    min-height: 100vh;
}

/* Landing Page */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #121212;
    overflow-y: auto;
    padding: 20px 0;
}

.landing-content {
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
    width: 100%;
}

.landing-title {
    font-size: 4em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.landing-tagline {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 300;
}

.landing-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 40px;
}

.landing-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95em;
}

.feature-icon {
    font-size: 2.5em;
}

.landing-cta {
    background: #1db954;
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.landing-cta:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.landing-cta:active {
    background: #1aa34a;
    transform: translateY(0);
}

.coming-soon {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-top: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Authentication Screen */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
    padding: 20px 0;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 0 20px;
}

.auth-title {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.auth-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.2s;
    background: white;
    color: #333;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-submit-btn {
    padding: 14px;
    background: #667eea;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: #5568d3;
}

.auth-submit-btn:active {
    background: #4a5bbd;
}

.auth-error {
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.user-display {
    color: #fff;
    font-size: 0.9em;
    opacity: 0.8;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

/* Playlist Area */
.playlist-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


.playlist-header {
    margin-bottom: 0;
    padding: 15px 15px 12px 15px;
    background: #121212;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.control-toggles {
    display: flex;
    gap: 20px;
    align-items: center;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-text {
    display: none;
}

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

.connection-status.disconnected .status-dot {
    background: #ef4444;
    animation: none;
}

.connection-status.disconnected .status-text {
    color: #ef4444;
}

.cache-status {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cache-status.complete {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.voice-status-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 150px;
    text-align: center;
}

.voice-status-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.voice-status-btn.listening {
    border-color: #1db954;
    color: #1db954;
    background: rgba(29, 185, 84, 0.1);
}

.add-btn {
    background: transparent;
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Playlist Controls */
.playlist-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 15px 15px 15px;
    background: #121212;
    position: sticky;
    top: 72px;
    z-index: 10;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 0.9em;
    background: #181818;
    color: #fff;
}

.search-input:focus {
    outline: none;
    border-color: #1db954;
}

.search-input::placeholder {
    color: #666;
}

.bulk-mode-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #404040;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bulk-mode-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.bulk-mode-btn.active {
    background: #1db954;
    border-color: #1db954;
    color: #fff;
}

.bulk-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #404040;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.bulk-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.bulk-btn.delete-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.bulk-btn.delete-btn:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.bulk-btn.delete-btn:active:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
}

.settings-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.settings-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.settings-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-modal.open {
    display: flex;
}

.settings-content {
    background: #282828;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #404040;
}

.settings-header h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
}

.close-settings-btn {
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 2em;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-settings-btn:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.settings-body {
    padding: 20px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.settings-item-desc {
    font-size: 0.85em;
    color: #b3b3b3;
}

.settings-select {
    background: #282828;
    border: 1px solid #404040;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.settings-select:hover {
    border-color: #1db954;
}

.settings-select:focus {
    border-color: #1db954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #404040;
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #1db954;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Quick Cues */
.quick-cues-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-cue-item {
    background: #181818;
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-cue-command {
    font-weight: 600;
    color: #1db954;
    font-size: 0.95em;
}

.quick-cue-action {
    color: #b3b3b3;
    font-size: 0.9em;
}

/* Clear Data Button */
.clear-data-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-data-btn:active {
    background: #b91c1c;
    transform: scale(0.98);
}

/* Logout Button in Settings */
.logout-settings-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #404040;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.logout-settings-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

/* Playlist Container */
.playlist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px 15px 15px;
    transition: padding-bottom 0.3s ease;
}

.with-player .playlist-container {
    padding-bottom: 130px;
}

.empty-message {
    text-align: center;
    color: #b3b3b3;
    padding: 60px 20px;
    font-size: 1em;
}

/* Song Item */
.song-item {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.song-item:hover {
    background: #282828;
    transform: translateY(-1px);
}

.song-item:has(.song-accordion.open) {
    background: #282828;
}

.song-item.playing {
    background: #1e1e1e;
    outline: 2px solid #1db954;
    outline-offset: -2px;
}

.song-item.playing:hover {
    background: #282828;
}

.song-item.duplicate {
    border: 2px solid #f59e0b;
}

.song-item.hidden {
    display: none;
}

.song-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    -webkit-tap-highlight-color: transparent;
}

.song-checkbox {
    display: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1db954;
    flex-shrink: 0;
}

.bulk-mode .song-checkbox {
    display: block;
}

.duplicate-badge {
    background: #f59e0b;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 8px;
}

.play-song-btn {
    background: #1db954;
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.playing .play-song-btn {
    background: #1db954;
    animation: pulse 2s ease-in-out infinite;
}

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

.play-song-btn:active {
    transform: scale(0.9);
}

.song-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.song-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cue-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cue-tag-small {
    background: rgba(29, 185, 84, 0.15);
    color: #1db954;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.cue-more {
    color: #b3b3b3;
    font-size: 0.8em;
    padding: 4px 10px;
}

.no-cues {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

.accordion-toggle {
    background: transparent;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.accordion-toggle .arrow {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-toggle:active {
    background: rgba(255, 255, 255, 0.1);
}

.song-item:has(.song-accordion.open) .accordion-toggle {
    background: rgba(255, 255, 255, 0.1);
}

/* Accordion Content */
.song-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.song-accordion.open {
    max-height: 3000px;
}

.accordion-content {
    padding: 0 14px 14px 14px;
    border-top: 1px solid #282828;
}

.form-group {
    margin-bottom: 16px;
    margin-top: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 0.9em;
}

.song-title-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 1em;
    background: #121212;
    color: #fff;
}

.song-title-input:focus {
    outline: none;
    border-color: #1db954;
}

.cues-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cue-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cue-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cue-text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 1em;
    background: #121212;
    color: #fff;
}

.cue-text-input:focus {
    outline: none;
    border-color: #1db954;
}

.cue-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delay-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delay-label {
    font-size: 0.75em;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cue-delay-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    background: #121212;
    color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    min-width: 70px;
}

.cue-delay-select:focus {
    outline: none;
    border-color: #1db954;
}

.fade-cue-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fade-cue-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 1em;
    background: #121212;
    color: #fff;
}

.fade-cue-input:focus {
    outline: none;
    border-color: #f59e0b;
}

.fade-mode-select {
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    background: #121212;
    color: #fff;
}

.fade-cue-hint {
    font-size: 0.8em;
    color: #b3b3b3;
    font-style: italic;
    margin-top: 4px;
}

.remove-cue-btn {
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: 400;
    width: auto;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-cue-btn:hover {
    color: #6b7280;
}

.remove-cue-btn:active {
    color: #4b5563;
}

.add-cue-btn {
    background: transparent;
    color: #1db954;
    border: 1px solid #1db954;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    width: 100%;
    font-weight: 600;
}

.add-cue-btn:active {
    background: rgba(29, 185, 84, 0.1);
}

.add-cue-link {
    font-size: 0.85em;
    color: #1db954;
    text-decoration: none;
    margin-top: 4px;
    margin-left: 12px;
    display: inline-block;
    cursor: pointer;
}

.add-cue-link:hover {
    text-decoration: underline;
}

.add-cue-link:active {
    color: #1ed760;
}

.accordion-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-song-btn {
    background: #1db954;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.save-song-btn:active {
    background: #1ed760;
    transform: scale(0.98);
}

.delete-song-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.2s ease;
    filter: grayscale(100%) brightness(50%);
}

.delete-song-btn:hover {
    filter: grayscale(100%) brightness(30%);
}

.delete-song-btn:active {
    transform: scale(0.9);
}

/* Now Playing Bar (Bottom) */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 1px solid #282828;
    padding: 0;
    display: none;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.now-playing-bar.visible {
    display: flex;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #404040;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: #1db954;
    width: 0%;
    transition: width 0.25s linear;
}

.player-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 15px;
}

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

.track-name {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 0.75em;
    color: #999;
    margin-top: 2px;
}

.voice-status {
    font-size: 0.85em;
    color: #1db954;
    margin-top: 4px;
    min-height: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 120px;
}

.volume-icon {
    color: #b3b3b3;
    flex-shrink: 0;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #1db954;
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #1db954;
    transform: scale(1.2);
}

.playback-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.control-btn {
    background: transparent;
    border: 1px solid #b3b3b3;
    color: #b3b3b3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1em;
    font-weight: 600;
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.control-btn svg path,
.control-btn svg rect {
    fill: #b3b3b3;
}

.control-btn svg path[stroke-width] {
    fill: none;
    stroke: #b3b3b3;
}

.control-btn:active:not(:disabled) {
    border-color: #fff;
    color: #fff;
    transform: scale(0.9);
}

.control-btn:active:not(:disabled) svg path,
.control-btn:active:not(:disabled) svg rect {
    fill: #fff;
}

.control-btn:active:not(:disabled) svg path[stroke-width] {
    fill: none;
    stroke: #fff;
}

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

#audioPlayer {
    display: none;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
        margin: 0 auto;
        border-left: 1px solid #282828;
        border-right: 1px solid #282828;
    }
    
    .voice-status-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .voice-status-btn.listening:hover {
        background: rgba(29, 185, 84, 0.15);
    }
    
    .add-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }
    
    .settings-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }
    
    .bulk-mode-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .play-song-btn:hover {
        background: #1ed760;
        transform: scale(1.05);
    }
    
    .accordion-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .control-btn:hover:not(:disabled) {
        border-color: #fff;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
    
    .control-btn:hover:not(:disabled) svg path,
    .control-btn:hover:not(:disabled) svg rect {
        fill: #fff;
    }
    
    .control-btn:hover:not(:disabled) svg path[stroke-width] {
        fill: none;
        stroke: #fff;
    }
    
    #duckingBtn:hover:not(.active) {
        border-color: #fff;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
    
    #duckingBtn.active:hover {
        background: #1ed760;
        border-color: #1ed760;
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(29, 185, 84, 0.4);
    }
    
    .cue-row {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cue-input-row {
        flex: 1;
    }
    
    .cue-text-input {
        flex: 1;
    }
    
    .cue-controls {
        flex-direction: row;
        align-items: center;
        flex-shrink: 0;
        gap: 8px;
    }
    
    .cue-delay-select {
        width: auto;
    }
    
    .fade-cue-container {
        flex-direction: row;
        align-items: center;
    }
    
    .fade-cue-input {
        flex: 1;
    }
    
    .fade-mode-select {
        width: auto;
    }
    
    .remove-cue-btn {
        width: auto;
        height: auto;
        padding: 0;
    }
}

/* Upload Progress Overlay */
.upload-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.upload-progress[style*="display: flex"] {
    display: flex;
}

.upload-progress-content {
    background: #282828;
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.upload-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.upload-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.upload-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    font-weight: 700;
    color: #1db954;
    pointer-events: none;
}

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

.upload-text {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.upload-details {
    font-size: 0.9em;
    color: #b3b3b3;
}

/* Ducking Button Active State */
#duckingBtn.active {
    background: #1db954;
    border-color: #1db954;
    color: #000;
}

#duckingBtn.active:hover {
    background: #1ed760;
    border-color: #1ed760;
}

/* Mobile styles */
@media (max-width: 768px) {
    .volume-control {
        display: none;
    }
}
