/* Persistent Music Player Styles */

.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(20, 20, 20, 0.85));
    backdrop-filter: blur(10px);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(245, 128, 45, 0.3);
}

.player-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 24px 20px;
    flex-wrap: wrap;
}

.player-btn {
    background: none;
    border: none;
    color: #f5802d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.player-btn:hover {
    background: rgba(245, 128, 45, 0.2);
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    background: #f5802d;
    color: white;
    padding: 10px;
}

.play-pause-btn:hover {
    background: #ff8d3d;
}

.playlist-btn {
    background: rgba(245, 128, 45, 0.2);
    border: 2px solid #f5802d !important;
    padding: 12px;
    position: relative;
}

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

.playlist-btn:hover {
    background: rgba(245, 128, 45, 0.4);
    transform: scale(1.15);
}

.playlist-btn::after {
    content: 'Playlist';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #f5802d;
    white-space: nowrap;
    font-weight: 600;
}

.player-footer-info {
    margin-left: auto;
    padding-left: 20px;
    font-size: 0.75rem;
    color: #AAA;
    line-height: 1.4;
    flex-shrink: 0;
}

.player-footer-info p {
    margin: 3px 0;
    white-space: nowrap;
}

.player-footer-info a {
    color: #f5802d;
    text-decoration: none;
}

.player-footer-info a:hover {
    color: #ff8d3d;
}

/* Navigation Buttons */
.nav-btn {
    background: rgba(245, 128, 45, 0.2);
    border: 2px solid #f5802d !important;
    padding: 12px;
    position: relative;
}

.nav-btn:hover {
    background: rgba(245, 128, 45, 0.4);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.videos-btn::after {
    content: 'Videos';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #f5802d;
    white-space: nowrap;
    font-weight: 600;
}

.bio-btn::after {
    content: 'Bio';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #f5802d;
    white-space: nowrap;
    font-weight: 600;
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.75), rgba(0, 0, 0, 0.75));
    border: 1px solid rgba(245, 128, 45, 0.3);
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(245, 128, 45, 0.2);
    border: 2px solid #f5802d;
    color: #f5802d;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(245, 128, 45, 0.4);
    transform: scale(1.1);
}

.modal-body {
    padding: 40px;
    color: white;
}

.modal-body h2 {
    color: #f5802d;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Bio Modal */
.bio-modal-content {
    max-width: 900px;
}

.bio-modal-content .modal-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.bio-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.bio-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.bio-credit {
    color: #AAA;
    font-size: 0.85rem;
    font-style: italic;
}

/* Videos Modal */
.videos-modal-content {
    max-width: 1200px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.video-item {
    text-align: center;
}

.video-item iframe {
    width: 100%;
    border-radius: 8px;
}

.video-item p {
    margin-top: 10px;
    color: #f5802d;
    font-weight: 500;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(245, 128, 45, 0.5);
    border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 128, 45, 0.7);
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 90px;
    flex-shrink: 0;
}

.track-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-time {
    font-size: 0.75rem;
    color: #AAA;
}

.time-separator {
    margin: 0 4px;
}

.progress-container {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0 15px 0 0;
    padding: 0;
    vertical-align: middle;
}

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

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

.progress-bar:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.progress-bar:hover::-moz-range-thumb {
    transform: scale(1.2);
}

.volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5802d;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5802d;
    cursor: pointer;
    border: none;
}

/* Playlist Styles */
.playlist-container {
    border-top: 1px solid rgba(245, 128, 45, 0.3);
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.85);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f5802d;
}

.close-playlist {
    background: none;
    border: none;
    color: #AAA;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-playlist:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.playlist-tracks {
    padding: 8px 0;
}

.playlist-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-track:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-track.active {
    background: rgba(245, 128, 45, 0.2);
    border-left: 3px solid #f5802d;
}

.track-number {
    color: #AAA;
    font-size: 0.85rem;
    min-width: 20px;
}

.playlist-track.active .track-number {
    color: #f5802d;
    font-weight: 600;
}

.track-title {
    flex: 1;
    font-size: 0.9rem;
    color: white;
}

.playlist-track.active .track-title {
    color: #f5802d;
    font-weight: 500;
}

.track-duration {
    color: #AAA;
    font-size: 0.85rem;
}

/* Scrollbar styling for playlist */
.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(245, 128, 45, 0.5);
    border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 128, 45, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-main {
        padding: 14px 15px 28px 15px;
        gap: 10px;
    }

    .track-info {
        min-width: 70px;
    }

    .track-name {
        font-size: 0.85rem;
    }

    .progress-container {
        min-width: 150px;
    }

    .player-footer-info {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        padding: 14px 0 0 0;
        font-size: 0.65rem;
        text-align: center;
        line-height: 1.3;
    }

    .player-footer-info p {
        margin: 0;
        display: inline;
    }

    .player-footer-info p::after {
        content: ' • ';
        margin: 0 6px;
    }

    .player-footer-info p:last-child::after {
        content: '';
    }

    .nav-btn {
        padding: 8px;
    }

    .bio-modal-content .modal-body {
        flex-direction: column;
    }

    .bio-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .player-main {
        flex-wrap: wrap;
        padding: 12px 10px 32px 10px;
        gap: 8px;
    }

    .track-info {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
        min-width: auto;
    }

    .progress-container {
        order: 10;
        width: 100%;
        min-width: auto;
    }

    .player-btn {
        padding: 6px;
    }

    .player-btn svg,
    .play-pause-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .play-pause-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .playlist-btn::after,
    .videos-btn::after,
    .bio-btn::after {
        font-size: 0.6rem;
        bottom: -18px;
    }

    .player-footer-info {
        order: 11;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        padding: 14px 0 0 0;
        text-align: center;
        font-size: 0.6rem;
        line-height: 1.4;
    }

    body {
        padding-bottom: 145px;
    }
}

/* Add padding to body to prevent content from being hidden behind player */
body {
    padding-bottom: 120px;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 110px;
    }
}
