/* ========== ERA THEMES (DYNAMIC) ========== */
body.era-classical {
    --text-accent: #d4af37;
    --era-glow: rgba(212, 175, 55, 0.2);
}

body.era-nostalgia {
    --text-accent: #ff6b6b;
    --era-glow: rgba(255, 107, 107, 0.4);
}

body.era-reflection {
    --text-accent: #ffffff;
    --era-glow: rgba(255, 255, 255, 0.2);
}

/* Hidden YouTube Player Wrapper */
#youtube-player-container {
    position: fixed;
    bottom: -1000px;
    left: -1000px;
    width: 640px;
    height: 360px;
    pointer-events: none;
    opacity: 0.01;
    z-index: -100;
}

/* Soft Card Update */
.playlist-card {
    border-radius: 24px;
}

/* ========== NAVIGATION ========== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-accent);
    text-shadow: 0 0 10px var(--text-accent-glow);
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-accent);
}

/* ========== HERO SECTION ========== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, #fff 0%, #ffd700 50%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-style: italic;
    font-family: var(--font-heading);
    line-height: 1.9;
}

.music-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

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

.stat-item i {
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-accent);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2.5s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--text-accent);
    filter: drop-shadow(0 0 8px var(--text-accent-glow));
}

@keyframes scroll-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
        opacity: 0.7;
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
        opacity: 0.85;
    }
}

/* ========== SECTIONS ========== */
section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-content {
    max-width: 1400px;
    width: 100%;
}

.section-label {
    display: block;
    text-align: center;
    color: var(--text-accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

/* ========== MUSIC PLAYER ========== */
#player-section {
    min-height: auto;
    padding: 4rem 2rem;
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.album-art-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 30%, #000 70%);
    animation: spin 10s linear infinite paused;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.vinyl-record.playing {
    animation-play-state: running;
}

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

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.album-art {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.album-art i {
    font-size: 6rem;
    color: var(--text-accent);
    opacity: 0.5;
}

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.now-playing-label {
    font-size: 0.9rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.track-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.track-artist {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.time-current,
.time-total {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 45px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #f7d767);
    border-radius: 10px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-track:hover .progress-handle {
    opacity: 1;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--text-accent);
    transform: scale(1.1);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #000;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.volume-control i {
    color: var(--text-accent);
    font-size: 1.2rem;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.volume-value {
    min-width: 50px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== PLAYLISTS ========== */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.playlist-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
    overflow: visible;
    /* Cực kỳ quan trọng để đĩa trượt ra ngoài thẻ */
}

.playlist-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.playlist-cover {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Cover phải nằm trên đĩa khi chưa trượt */
    border-radius: 20px 20px 0 0;
    overflow: visible;
}

.playlist-icon {
    font-size: 5rem;
    color: var(--text-accent);
    opacity: 0.6;
    transition: all 0.4s ease;
    z-index: 3;
}

.playlist-card:hover .playlist-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Vinyl Disk Slide Animation */
.vinyl-disk {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 20%, #1a1a1a 21%, #000 22%, #1a1a1a 23%, #000 24%, #1a1a1a 25%, #000 100%);
    top: 10px;
    left: 10px;
    z-index: 1;
    /* Phía sau cover khi chưa trượt */
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: repeating-radial-gradient(circle,
            #111,
            #111 2px,
            #1a1a1a 2px,
            #1a1a1a 4px);
}

.vinyl-label {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    padding: 10px;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.playlist-card:hover .vinyl-disk {
    transform: translateX(120px) rotate(180deg);
}

/* Ensure info part covers the bottom of the disk if it slides down? 
   Actually we are sliding RIGHT. 
   So we need the cover to stay on top.
   The .playlist-info is below the cover.
*/


.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.playlist-card:hover .playlist-overlay {
    opacity: 1;
}

.play-playlist-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #d4af37);
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.play-playlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.playlist-info {
    padding: 2rem;
}

.playlist-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.playlist-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.playlist-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.playlist-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== TRACKS LIST ========== */
.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-item {
    display: grid;
    grid-template-columns: 50px 60px 1fr 80px 60px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.track-item:hover {
    background: var(--glass-uprank);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(10px);
}

.track-item.playing-now {
    background: rgba(212, 175, 55, 0.15);
    border-left: 5px solid var(--text-accent);
}

.track-item.playing-now .track-name {
    color: var(--text-accent);
}

.track-item.playing-now .track-number {
    color: var(--text-accent);
    font-weight: 700;
}

.track-number {
    font-size: 1.2rem;
    color: var(--text-accent);
    font-weight: 600;
    text-align: center;
}

.track-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    /* Ensure image doesn't overflow */
}

.track-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-thumbnail i {
    color: var(--text-accent);
    font-size: 1.5rem;
}

.track-details {
    flex: 1;
}

.track-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.track-artist-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.track-duration {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.track-play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-play-btn:hover {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #000;
    transform: scale(1.1);
}

/* ========== MUSIC MEMORIES SECTION ========== */
#music-memories {
    padding: 10rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.music-sheet-paper {
    background: #f4f1ea;
    /* Bone color */
    color: #2c2c2c;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 4rem;
    position: relative;
    box-shadow:
        20px 20px 0px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 0, 0, 0.1);
    transform: rotate(1deg);
    border: 1px solid #d3cfc5;
    background-image: repeating-linear-gradient(#f4f1ea,
            #f4f1ea 31px,
            #e0ddd5 31px,
            #e0ddd5 32px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-sheet-paper:hover {
    transform: rotate(0deg) scale(1.02);
}

.paper-clip {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 25px;
    height: 60px;
    border: 3px solid #666;
    border-radius: 15px;
    background: transparent;
    z-index: 2;
    transform: rotate(-15deg);
}

.paper-clip::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 10px;
    height: 30px;
    border-left: 2px solid #888;
    border-bottom: 2px solid #888;
    border-radius: 0 0 0 5px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #2c2c2c;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.sheet-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sheet-date {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

.sheet-content {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    text-align: justify;
}

.signature {
    margin-top: 3rem;
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.musical-notes-decor {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.5rem;
}

/* ========== QUOTE SECTION ========== */
#quote-section {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
}

.quote-container {
    max-width: 800px;
    text-align: center;
    padding: 4rem 2rem;
}

.quote-icon {
    font-size: 4rem;
    color: var(--text-accent);
    opacity: 0.3;
    margin-bottom: 2rem;
}

.quote-text {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--text-accent);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 85%;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .quote-text {
        font-size: 1.4rem;
        line-height: 1.4;
        max-width: 100%;
    }
}

.quote-author {
    font-size: 1.2rem;
    color: var(--text-accent);
    font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
}

.footer-content i {
    color: var(--text-accent);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #d4af37, #f7d767);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .album-art-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .music-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    #navbar {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    .track-item {
        grid-template-columns: 40px 50px 1fr 60px 50px;
        gap: 1rem;
        padding: 1rem;
    }

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

    .vinyl-record,
    .album-art {
        width: 250px;
        height: 250px;
    }

    /* Mobile specifically: Slide less and hide overflow if necessary */
    .playlist-card:hover .vinyl-disk,
    .playlist-card.active .vinyl-disk {
        transform: translateX(60px) rotate(180deg);
    }
}

.playlist-card.active .vinyl-disk {
    transform: translateX(120px) rotate(180deg);
}

@media (max-width: 768px) {
    .playlist-card.active .vinyl-disk {
        transform: translateX(60px) rotate(180deg);
    }
}

/* ========== FLOATING MINI PLAYER ========== */
.floating-player {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 4rem);
    max-width: 900px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: 5000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.floating-player.visible {
    transform: translateX(-50%) translateY(0);
}

.mini-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.mini-progress-fill {
    height: 100%;
    background: var(--text-accent);
    width: 0%;
    transition: width 0.1s linear;
}

.mini-player-content {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mini-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 0;
}

.mini-vinyl-wrap {
    width: 45px;
    height: 45px;
    position: relative;
    flex-shrink: 0;
}

.mini-vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #333 20%, #000 21%, #333 22%, #000 23%, #000 100%);
    border: 2px solid #222;
    animation: spin 3s linear infinite;
    animation-play-state: paused;
}

.floating-player.playing .mini-vinyl {
    animation-play-state: running;
}

.mini-track-details {
    min-width: 0;
}

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

.mini-track-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mini-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-btn:hover {
    opacity: 1;
    color: var(--text-accent);
    transform: scale(1.15);
}

.mini-btn.play-pause-btn {
    width: 45px;
    height: 45px;
    background: var(--text-accent);
    color: #000;
    border-radius: 50%;
    font-size: 1rem;
    opacity: 1;
}

.mini-volume {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 150px;
}

.mini-volume i {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mini-volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

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

.mini-volume-slider:hover::-webkit-slider-thumb {
    background: var(--text-accent);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .floating-player {
        bottom: 1rem;
        width: calc(100% - 2rem);
    }

    .mini-player-content {
        padding: 0.8rem 1.2rem;
        gap: 1rem;
    }

    .mini-volume {
        display: none;
    }
}

.hidden {
    display: none !important;
}

/* ========== PERSONA SWITCHER ========== */
.persona-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
    margin-right: auto;
}

.switch-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #ff0055;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    border-color: #ff0055;
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: #fff;
}

/* MAD PERSONA STYLES */
body.mode-crazy {
    --text-accent: #ff0055;
    --font-heading: 'Patrick Hand', cursive;
    --font-body: 'Patrick Hand', cursive;
}

body.mode-crazy .hero-title {
    font-size: 4rem;
    transform: rotate(-1deg);
}

/* ========== RESPONSIVE CLEANUP ========== */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .playlist-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }

    .tracks-list {
        padding: 0 0.5rem;
    }

    .track-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

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

    .music-sheet-paper {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }

    .sheet-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}