* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

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

.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Navigation Styles */
.navigation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-title {
    text-align: center;
    margin-bottom: 15px;
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 20px;
}

.player-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    box-sizing: border-box;
}

.track-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    order: 2; /* Default mobile order */
}

.track-list-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.track-list-header h2 {
    font-size: 1.5rem;
    color: #FFD700;
}

.tracks {
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
}

.tracks::-webkit-scrollbar {
    width: 6px;
}

.tracks::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.tracks li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.tracks li:hover {
    background: rgba(255, 215, 0, 0.1);
}

.tracks li.active {
    background: rgba(255, 215, 0, 0.2);
}

/* Mobile-optimized track list styles */
.track-content {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.track-main-info {
    font-size: 0.9rem;
    color: #FFD700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.track-meta-info {
    font-size: 0.75rem;
    color: #b8b8b8;
}

.track-badges {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.resume-badge, .note-badge {
    position: static;
    display: none;
    font-size: 0.5rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.resume-badge {
    background: linear-gradient(135deg, #FFD700, #FFC400);
    color: #1a2a6c;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.note-badge {
    background: linear-gradient(135deg, #d32f2f, #45a049);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.player-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    order: 1; /* Default mobile order */
}

.album-art {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gold-text {
    color: #FFD700; 
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}
.track-info {
    margin-bottom: 20px;
    min-width: 0;
}

.track-name {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgb(255, 215, 0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}    

.track-artist {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 5px;
}

.track-release {
    font-size: 0.9rem;
    color: #888;
}

.audio-controls {
    width: 100%;
    margin: 20px 0;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.progress {
    background: #FFD700;
    height: 100%;
    border-radius: 5px;
    width: 0%;
}

.resume-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: none;
}

.resume-indicator {
    position: absolute;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}

.note-indicator {
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.7);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #b8b8b8;
    margin-bottom: 20px;
}

.time-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.time-btn {
    background: rgba(255, 215, 0, 0.2);
    border: none;
    color: #FFD700;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.8rem;
}

.time-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-buttons button {
    background: rgba(255, 215, 0, 0.2);
    border: none;
    color: #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.control-buttons button:hover {
    background: rgba(255, 215, 0, 0.3);
}

.play-btn {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 215, 0, 0.3) !important;
}

/* Speed Control Dropdown Styles */
.speed-control-dropdown {
    position: relative;
    display: inline-block;
}

.speed-select {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 80px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.speed-select:hover {
    background: rgba(255, 215, 0, 0.3);
}

.speed-select option {
    background: #1a2a6c;
    color: #FFD700;
    padding: 8px;
}

/* Volume control styles */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.volume-icon-btn {
    background: none;
    border: none;
    color: floralwhite;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.volume-icon-btn:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

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

.volume-icon-btn i {
    pointer-events: none; /* Prevents the icon from blocking clicks */
}

.volume-percent {
    color: floralwhite;
    font-size: 12px;
    min-width: 35px;
    text-align: center;
    font-weight: bold;
}

#volume {
    flex: 1;
    min-width: 80px;
    cursor: pointer;
    -webkit-appearance: none;
    height: 5px;
    background: #555;
    border-radius: 5px;
    outline: none;
}

/* Volume slider styling */
#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#volume::-moz-range-track {
    background: #555;
    height: 5px;
    border-radius: 5px;
    border: none;
}

/* Ensure the volume control container doesn't have overlapping issues */
.volume-download-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5;
}

/* Mobile-optimized note button */
.mobile-notes-toggle {
    display: none;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
}

.resume-prompt {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
    display: none;
}

.resume-prompt button {
    background: rgba(255, 215, 0, 0.3);
    border: none;
    color: #FFD700;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.search-box {
    margin: 15px 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b8b8b8;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-clear:hover {
    color: #FFD700;
}

/* Download Button Styles */
.download-btn, .note-btn {
    background: rgba(255, 215, 0, 0.2);
    border: none;
    color: #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    margin-left: 10px;
}

.download-btn:hover, .note-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.download-btn svg, .note-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.volume-download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

#audio-player {
    display: none; /* Hide the native audio controls since we have custom ones */
}

/* Tablet and desktop styles */
@media (min-width: 768px) {
    .player-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .track-list {
        flex: 1.2;
        min-width: 0;
        margin-right: 1rem;
        order: unset; /* Reset order for desktop */
    }
    
    .player-panel {
        flex: 0.8;
        min-width: 0;
        margin-left: 1rem;
        order: unset; /* Reset order for desktop */
    }
    
    .hero {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .album-art {
        margin: 0 auto;
    }
}

/* Enhanced Resume Overlay Styles */
.resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.resume-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.resume-dialog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #333;
}

.resume-overlay.active .resume-dialog {
    transform: translateY(0);
}

.resume-dialog h3 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.resume-dialog p {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
}

.resume-time-info {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.resume-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.resume-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.resume-yes {
    background: #FFD700;
    color: #1a2a6c;
}

.resume-yes:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

.resume-no {
    background: #f0f0f0;
    color: #666;
}

.resume-no:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.resume-remember {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

/* Note Overlay Styles */
.note-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.note-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.note-dialog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #333;
}

.note-overlay.active .note-dialog {
    transform: translateY(0);
}

.note-dialog h3 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-align: center;
}

.note-time-info {
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

.note-textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

.note-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.note-btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.note-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.note-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.note-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.notes-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notes-list-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.notes-list-dialog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #333;
}

.notes-list-overlay.active .notes-list-dialog {
    transform: translateY(0);
}

.notes-list-dialog h3 {
    color: #1a2a6c;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.note-item {
    background: rgba(76, 175, 80, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
}

.note-time {
    font-weight: bold;
    color: #1a2a6c;
    margin-bottom: 5px;
}

.note-content {
    margin-bottom: 10px;
    line-height: 1.4;
}

.note-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.note-action-btn {
    background: rgba(76, 175, 80, 0.2);
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.note-action-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.no-notes {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Calendar Styles - Dark Theme */
.calendar-container {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 40px 20px 20px 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFD700;
}

.nav-prev, .nav-next, .toggle-calendar, .clear-filter {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover, .toggle-calendar:hover, .clear-filter:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.current-month {
    font-weight: bold;
    color: #FFD700;
    min-width: 120px;
    text-align: center;
}

.calendar-body {
    padding: 15px;
    display: none;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #b8b8b8;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day.has-recordings::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #FFD700;
    border-radius: 50%;
}

.calendar-day.in-range {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.calendar-day:hover:not(.empty) {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.calendar-day.selected {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    font-weight: bold;
}

/* ADD MISSING PULSE ANIMATION */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.image-container {
    flex: 1;
    min-width: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.content {
    flex: 1;
    min-width: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #3182ce;
}

/* Add this to your CSS file */
.toggle-calendar i.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.calendar-arrow i.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
}