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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

header h1 {
    color: #2979ff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.metronome-container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.pendulum-container {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 20px 0;
}

.count-display {
    font-size: 8rem;
    font-weight: 700;
    color: #2979ff;
    text-align: center;
    transition: transform 0.1s ease-out, color 0.2s;
}

.count-display.pulse {
    transform: scale(1.2);
    color: #1565c0;
}

.measure-count {
    font-size: 1.2rem;
    color: #6c757d;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-weight: 500;
}

.pendulum {
    display: none;
}

@keyframes swing {
    0% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(30deg);
    }
}

.controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.tempo-control, .start-stop, .tempo-trainer {
    grid-column: 1 / -1;
}

.controls-group {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.display {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #2979ff, #1565c0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#tempo-display {
    font-size: 4rem;
}

input[type="range"] {
    width: 100%;
    height: 10px;
    margin: 15px 0;
    -webkit-appearance: none;
    appearance: none;
    background: #e9ecef;
    border-radius: 5px;
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2979ff;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #1565c0;
    box-shadow: 0 0 0 8px rgba(41, 121, 255, 0.2);
}

.tempo-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.tempo-buttons button {
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
}

.tempo-buttons button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.3);
}

.tempo-buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.3);
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    color: #495057;
}

select, input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input[type="number"]:focus {
    outline: none;
    border-color: #2979ff;
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.2);
}

.start-stop button {
    width: 100%;
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(41, 121, 255, 0.2);
    letter-spacing: 1px;
}

.start-stop button:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3);
}

.start-stop button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.start-stop button.active {
    background-color: #f44336;
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.2);
}

.start-stop button.active:hover {
    background-color: #d32f2f;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.start-stop-fixed {
    width: 100%;
    margin: 20px auto;
    max-width: 300px;
}

.start-stop-fixed button {
    width: 100%;
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(41, 121, 255, 0.2);
    letter-spacing: 1px;
}

.start-stop-fixed button:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3);
}

.start-stop-fixed button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.start-stop-fixed button.active {
    background-color: #f44336;
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.2);
}

.start-stop-fixed button.active:hover {
    background-color: #d32f2f;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tab-button {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: #2979ff;
    color: white;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tempo-trainer {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.tempo-trainer h2, .beat-detector h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 600;
    font-size: 1.8rem;
}

.tempo-ramp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tempo-ramp label {
    display: flex;
    flex-direction: column;
}

.tempo-ramp input {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tempo-ramp input:focus {
    outline: none;
    border-color: #2979ff;
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.2);
}

.tempo-ramp button {
    grid-column: 1 / -1;
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
}

.tempo-ramp button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.3);
}

.additional-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.additional-features label {
    display: flex;
    align-items: center;
    font-weight: normal;
    padding: 8px;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.additional-features label:hover {
    background-color: #e9ecef;
}

.additional-features input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #2979ff;
}

.presets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.presets button {
    background-color: #673ab7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(103, 58, 183, 0.2);
}

.presets button:hover {
    background-color: #5e35b1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(94, 53, 177, 0.3);
}

.presets select {
    padding: 12px;
    border-radius: 8px;
    background-color: #fff;
    font-weight: 500;
}

#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 121, 255, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 9999;
}

.accent-pattern {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.accent-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accent-button.accent {
    background-color: #2979ff;
    color: white;
}

.accent-button.normal {
    background-color: #4CAF50;
    color: white;
}

.accent-button.mute {
    background-color: #e9ecef;
    color: #6c757d;
}

.accent-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.accent-pattern-label {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.polyrhythm-controls {
    margin-top: 15px;
    display: none;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.count-in-controls {
    margin-top: 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.half-width {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tap-tempo-large {
    height: 70px;
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto 30px;
    display: block;
    width: 80%;
    max-width: 300px;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(41, 121, 255, 0.2);
    letter-spacing: 1px;
}

.tap-tempo-large:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3);
}

.tap-tempo-large:active {
    background-color: #0d47a1;
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.3);
}

.footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.toggle-settings {
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px auto;
    display: block;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
}

.toggle-settings:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.3);
}

.settings-collapsed .controls {
    display: none;
}

.settings-collapsed .start-stop-fixed {
    display: block;
}

.settings-collapsed .collapse-icon::before {
    content: "+";
}

.expand-icon::before {
    content: "-";
}

.beat-detector {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.beat-detector-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#file-upload-container {
    border: 2px dashed #2979ff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    background-color: #f8f9fa;
    position: relative;
}

#file-upload-container:hover {
    background-color: #e9ecef;
    border-color: #1565c0;
}

#file-upload-container.drag-over {
    background-color: #e3f2fd;
    border-color: #0d47a1;
}

#song-file {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    color: #2979ff;
    margin-bottom: 10px;
}

#file-upload-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

#file-name-display {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.beat-detect-button {
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
    margin-top: 15px;
}

.beat-detect-button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.3);
}

.beat-detect-button:disabled {
    background-color: #b0bec5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-container {
    margin-top: 20px;
    text-align: center;
    display: none;
}

.detected-tempo {
    font-size: 3rem;
    font-weight: 700;
    color: #2979ff;
    margin-bottom: 15px;
}

.audio-player {
    width: 100%;
    margin-top: 15px;
}

.set-to-tempo-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.set-to-tempo-button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background-color: #2979ff;
    width: 0%;
    transition: width 0.2s;
}

.status-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.waveform-container {
    width: 100%;
    height: 150px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    display: none;
}

#playback-position-marker {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #ff9800;
    top: 0;
    z-index: 3;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.7);
    pointer-events: none;
}

.waveform {
    width: 100%;
    height: 100%;
    position: relative;
}

.waveform-line {
    position: absolute;
    background-color: #2979ff;
    width: 2px;
    bottom: 0;
}

.beat-marker {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #f44336;
    bottom: 0;
    z-index: 2;
}

.beat-marker::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: -4px;
    width: 10px;
    height: 10px;
    background-color: #f44336;
    border-radius: 50%;
}

.music-library {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.library-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.library-search {
    display: flex;
    gap: 10px;
    flex: 1;
}

.library-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
}

.library-search button {
    background-color: #2979ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.library-search button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

.library-upload button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.library-upload button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 142, 60, 0.3);
}

.library-tabs {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.library-tab-button {
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.library-tab-button:hover {
    background-color: #dee2e6;
}

.library-tab-button.active {
    background-color: #2979ff;
    color: white;
    box-shadow: 0 4px 8px rgba(41, 121, 255, 0.2);
}

.library-tab-content {
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.library-tab-content.active {
    display: block;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.song-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
}

.song-artist {
    font-size: 0.9rem;
    color: #6c757d;
}

.song-genre {
    font-size: 0.8rem;
    color: #868e96;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.song-uploaded-by {
    font-size: 0.8rem;
    color: #2979ff;
}

.song-actions {
    display: flex;
    gap: 10px;
}

.song-action-btn {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.song-action-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

.song-action-btn.favorite.active {
    color: #f44336;
}

.song-action-btn.play {
    background-color: #2979ff;
    color: white;
}

.song-action-btn.play:hover {
    background-color: #1565c0;
    color: white;
}

.song-action-btn.delete {
    color: #f44336;
}

.song-action-btn.delete:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

.songs-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #343a40;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #495057;
}

.upload-submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.upload-submit-btn:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 142, 60, 0.3);
}

.player-bar {
    background-color: #212529;
    color: white;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.now-playing {
    flex: 1;
    max-width: 30%;
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#current-song-title {
    font-weight: 600;
    font-size: 1rem;
}

#current-song-artist {
    font-size: 0.8rem;
    color: #adb5bd;
}

.player-controls {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn {
    background-color: white;
    color: #212529;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
}

.progress-slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #495057;
    border-radius: 5px;
    transition: all 0.3s;
}

#progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

#progress-slider::-webkit-slider-thumb:hover {
    background: #e9ecef;
    box-shadow: 0 0 0 5px rgba(233, 236, 239, 0.2);
}

#current-time, #duration {
    font-size: 0.8rem;
    color: #adb5bd;
    width: 45px;
    text-align: center;
}

.volume-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.volume-control label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

#volume-slider {
    flex-grow: 1;
    height: 15px;
    margin: 0 15px;
    -webkit-appearance: none;
    background: #e9ecef;
    border-radius: 7px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#volume-slider:hover {
    opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2979ff;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #1565c0;
}

#volume-display {
    font-weight: 600;
    color: #2979ff;
    min-width: 50px;
    text-align: right;
}

.no-songs-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .player-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .now-playing, .player-controls, .volume-control {
        width: 100%;
        max-width: 100%;
    }
    
    .library-header {
        flex-direction: column;
    }
    
    .library-search, .library-upload {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tempo-ramp {
        grid-template-columns: 1fr;
    }
    
    .additional-features {
        grid-template-columns: 1fr;
    }
    
    .count-display {
        font-size: 6rem;
    }
}

.song-stats {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.song-views, .song-likes {
    display: flex;
    align-items: center;
    gap: 3px;
}

.song-action-btn {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.song-action-btn.like {
    color: #6c757d;
}

.song-action-btn.like:hover {
    color: #4CAF50;
}

.song-action-btn.like:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.album-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.album-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 5px;
}

.album-artist {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #868e96;
    margin-top: 5px;
}

.song-artwork {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.song-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.lyrics-container {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    z-index: 100;
    display: none;
}

.current-lyric {
    font-weight: bold;
    color: #2979ff;
}

.album-create-button, .song-create-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
    margin-top: 15px;
}

.album-create-button:hover, .song-create-button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 142, 60, 0.3);
}

.file-preview {
    max-width: 150px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 8px;
    display: none;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.delete-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.2);
}

.delete-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.3);
}

.lyrics-preview {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #2979ff;
    font-style: italic;
}

.thank-you-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: rotate(5deg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(5deg) scale(1); }
}