/* Chiptune Challenge 2025 - Base Styles */

/* CSS Reset for Chiptune app */
.chiptune-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--chiptune-bg, #0a0a1a);
    color: var(--chiptune-text, #fff);
}

.chiptune-app * {
    box-sizing: border-box;
}

/* Header */
.chiptune-header {
    background: var(--chiptune-header-bg, rgba(0, 0, 0, 0.8));
    border-bottom: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.chiptune-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.chiptune-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.chiptune-logo .logo-icon {
    font-size: 1.5rem;
}

.chiptune-logo .logo-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.875rem;
    color: var(--chiptune-primary, #ff6b9d);
}

/* Navigation */
.chiptune-nav {
    display: flex;
    gap: 1.5rem;
}

.chiptune-nav .nav-link {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chiptune-nav .nav-link:hover,
.chiptune-nav .nav-link.active {
    color: var(--chiptune-primary, #ff6b9d);
}

.chiptune-nav .nav-link.has-badge {
    position: relative;
    color: var(--chiptune-primary, #ff6b9d);
}

.chiptune-nav .nav-badge {
    position: absolute;
    top: -0.5rem;
    right: -1.5rem;
    background: var(--chiptune-accent, #00d4ff);
    color: #000;
    font-size: 0.35rem;
    padding: 0.15rem 0.3rem;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.chiptune-nav .nav-badge.pulse {
    animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Auth Section */
.chiptune-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.voter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    transition: border-color 0.2s ease;
}

.voter-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #00d4ff));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: white;
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
}

.auth-link {
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', monospace;
    padding: 0.5rem 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    text-transform: uppercase;
}

.auth-link.discord {
    background: #5865F2;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link.discord:hover {
    background: #4752C4;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.profile-trigger:hover,
.profile-trigger.active {
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.1));
}

.profile-trigger:hover .voter-avatar,
.profile-trigger.active .voter-avatar {
    border-color: var(--chiptune-primary, #ff6b9d);
}

.profile-caret {
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    transition: transform 0.2s ease;
}

.profile-caret.flipped {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    z-index: 1000;
}

/* Alpine.js transitions */
.menu-enter {
    transition: all 0.15s ease-out;
}

.menu-leave {
    transition: all 0.1s ease-in;
}

[x-cloak] { display: none !important; }

.profile-menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
}

.profile-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--chiptune-text, #fff);
    text-transform: uppercase;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.profile-menu-item:hover {
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
}

.profile-menu-item .menu-icon {
    font-size: 1rem;
}

.profile-menu-item.logout:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}

.profile-menu-divider {
    height: 1px;
    background: var(--chiptune-border, rgba(255, 255, 255, 0.1));
    margin: 0.25rem 0;
}

/* Week Navigation */
.week-nav {
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

.week-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.week-nav-btn:hover:not(.disabled) {
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.1));
    color: var(--chiptune-primary, #ff6b9d);
}

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

.week-nav-current {
    text-align: center;
}

.week-nav-current .week-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--chiptune-primary, #ff6b9d);
    display: block;
    /* Neon glow effect */
    text-shadow:
        0 0 5px var(--chiptune-primary, #ff6b9d),
        0 0 10px var(--chiptune-primary, #ff6b9d),
        0 0 20px var(--chiptune-primary, #ff6b9d),
        0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
        0 0 80px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    animation: neonFlicker 4s infinite;
}

/* Neon sign random flicker animation */
@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 5px var(--chiptune-primary, #ff6b9d),
            0 0 10px var(--chiptune-primary, #ff6b9d),
            0 0 20px var(--chiptune-primary, #ff6b9d),
            0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            0 0 80px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    }
    5% {
        opacity: 0.85;
        text-shadow:
            0 0 3px var(--chiptune-primary, #ff6b9d),
            0 0 6px var(--chiptune-primary, #ff6b9d),
            0 0 12px var(--chiptune-primary, #ff6b9d);
    }
    6% {
        opacity: 1;
        text-shadow:
            0 0 5px var(--chiptune-primary, #ff6b9d),
            0 0 10px var(--chiptune-primary, #ff6b9d),
            0 0 20px var(--chiptune-primary, #ff6b9d),
            0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            0 0 80px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    }
    41% {
        opacity: 1;
    }
    42% {
        opacity: 0.7;
        text-shadow:
            0 0 2px var(--chiptune-primary, #ff6b9d),
            0 0 4px var(--chiptune-primary, #ff6b9d);
    }
    43% {
        opacity: 0.9;
        text-shadow:
            0 0 4px var(--chiptune-primary, #ff6b9d),
            0 0 8px var(--chiptune-primary, #ff6b9d),
            0 0 16px var(--chiptune-primary, #ff6b9d);
    }
    44% {
        opacity: 0.75;
        text-shadow:
            0 0 2px var(--chiptune-primary, #ff6b9d);
    }
    45% {
        opacity: 1;
        text-shadow:
            0 0 5px var(--chiptune-primary, #ff6b9d),
            0 0 10px var(--chiptune-primary, #ff6b9d),
            0 0 20px var(--chiptune-primary, #ff6b9d),
            0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            0 0 80px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    }
    77% {
        opacity: 1;
    }
    78% {
        opacity: 0.9;
        text-shadow:
            0 0 3px var(--chiptune-primary, #ff6b9d),
            0 0 6px var(--chiptune-primary, #ff6b9d);
    }
    79% {
        opacity: 1;
        text-shadow:
            0 0 5px var(--chiptune-primary, #ff6b9d),
            0 0 10px var(--chiptune-primary, #ff6b9d),
            0 0 20px var(--chiptune-primary, #ff6b9d),
            0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            0 0 80px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    }
}

.week-nav-current .week-year {
    color: var(--chiptune-secondary, #00d4ff);
    text-shadow:
        0 0 5px var(--chiptune-secondary, #00d4ff),
        0 0 10px var(--chiptune-secondary, #00d4ff),
        0 0 20px var(--chiptune-secondary, #00d4ff),
        0 0 40px var(--chiptune-secondary-glow, rgba(0, 212, 255, 0.6)),
        0 0 80px var(--chiptune-secondary-glow, rgba(0, 212, 255, 0.4));
    /* Inherits flicker timing from parent .week-label */
}

.week-nav-current .week-dates {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
}

/* Main Content */
.chiptune-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 100px; /* Space for fixed audio player */
    width: 100%;
}

/* Page Styles */
.chiptune-page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Monthly Theme Banner */
.theme-banner {
    background: linear-gradient(
        135deg,
        var(--chiptune-surface, rgba(255, 255, 255, 0.05)),
        rgba(0, 0, 0, 0.3)
    );
    border: 2px solid var(--chiptune-primary, #ff6b9d);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theme-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--chiptune-primary, #ff6b9d),
        var(--chiptune-secondary, #00d4ff),
        var(--chiptune-accent, #ffd700),
        var(--chiptune-secondary, #00d4ff),
        var(--chiptune-primary, #ff6b9d)
    );
}

.theme-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.theme-banner .theme-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--chiptune-primary, #ff6b9d));
}

.theme-banner .theme-details {
    text-align: left;
}

.theme-banner .theme-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--chiptune-primary, #ff6b9d);
    margin: 0 0 0.25rem 0;
    text-shadow: 0 0 10px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
}

.theme-banner .theme-tagline {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-secondary, #00d4ff);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-banner .theme-description {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.theme-banner .theme-link {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.theme-banner .theme-link:hover {
    color: var(--chiptune-primary, #ff6b9d);
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 10px var(--chiptune-glow, rgba(255, 107, 157, 0.3));
}

/* Compact Theme Banner (theme info only) */
.theme-banner.compact {
    padding: 0.75rem 1.5rem;
}

.theme-banner.compact .theme-banner-content {
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--chiptune-primary, #ff6b9d);
}

.page-header .year {
    color: var(--chiptune-secondary, #00d4ff);
}

.page-subtitle {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
}

/* Vote CTA Banner */
.vote-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(185, 103, 255, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
    border: 2px solid var(--chiptune-accent, #b967ff);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--chiptune-text, #fff);
    transition: all 0.3s ease;
    animation: votePulse 2s ease-in-out infinite;
}

.vote-cta:hover {
    background: linear-gradient(135deg, rgba(185, 103, 255, 0.3) 0%, rgba(255, 107, 157, 0.3) 100%);
    border-color: var(--chiptune-primary, #ff6b9d);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
}

@keyframes votePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(185, 103, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(185, 103, 255, 0.5);
    }
}

.vote-cta-icon {
    font-size: 1.5rem;
    color: var(--chiptune-accent, #b967ff);
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

.vote-cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.vote-cta-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.625rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-shadow: 0 0 10px var(--chiptune-glow, rgba(255, 107, 157, 0.5));
}

.vote-cta-hint {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin-top: 0.25rem;
}

.vote-cta-arrow {
    font-size: 1rem;
    color: var(--chiptune-secondary, #00d4ff);
    transition: transform 0.2s;
}

.vote-cta:hover .vote-cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .vote-cta {
        padding: 0.625rem 1rem;
        gap: 0.75rem;
    }

    .vote-cta-icon {
        font-size: 1.25rem;
    }

    .vote-cta-label {
        font-size: 0.5rem;
    }

    .vote-cta-hint {
        font-size: 0.625rem;
    }
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Week Grid - Row-based layout for variable week lengths */
.songs-grid.week-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Week Row - Flex container that centers cards */
.week-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Card sizing based on cards per row */
.week-row-4 > * {
    flex: 0 1 calc(25% - 1rem);
    max-width: 280px;
}

.week-row-3 > * {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: 320px;
}

/* Vote Grid - Simple grid for voting pages (songs sorted by votes, not days) */
.songs-grid.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Song Card */
.song-card {
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.6));
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.15));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

/* CRT Scanline overlay */
.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

/* Pixel corner decorations */
.song-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    pointer-events: none;
    z-index: 11;
    background:
        linear-gradient(135deg, var(--chiptune-primary, #ff6b9d) 4px, transparent 4px) top left,
        linear-gradient(-135deg, var(--chiptune-primary, #ff6b9d) 4px, transparent 4px) top right,
        linear-gradient(45deg, var(--chiptune-primary, #ff6b9d) 4px, transparent 4px) bottom left,
        linear-gradient(-45deg, var(--chiptune-primary, #ff6b9d) 4px, transparent 4px) bottom right;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.song-card:hover::after {
    opacity: 1;
}

.song-card:hover {
    transform: translateY(-4px);
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow:
        0 0 20px var(--chiptune-glow, rgba(255, 107, 157, 0.4)),
        inset 0 0 20px rgba(255, 107, 157, 0.1);
    animation: card-glow-pulse 2s ease-in-out infinite;
}

@keyframes card-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px var(--chiptune-glow, rgba(255, 107, 157, 0.4)),
            inset 0 0 20px rgba(255, 107, 157, 0.1);
    }
    50% {
        box-shadow:
            0 0 30px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            inset 0 0 30px rgba(255, 107, 157, 0.15);
    }
}

.song-card.is-playing {
    border-color: var(--chiptune-secondary, #00d4ff);
    box-shadow:
        0 0 25px var(--chiptune-secondary-glow, rgba(0, 212, 255, 0.5)),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    animation: playing-glow 1.5s ease-in-out infinite;
}

@keyframes playing-glow {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(0, 212, 255, 0.5),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 212, 255, 0.7),
            inset 0 0 30px rgba(0, 212, 255, 0.2);
    }
}

.song-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.song-card:hover .song-cover img {
    transform: scale(1.05);
}

/* Day Badge */
.day-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 5;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.song-card.is-today .day-badge {
    background: var(--chiptune-accent, #b967ff);
    animation: badge-pulse 1s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Equalizer Animation */
.equalizer {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.song-card.is-playing .equalizer {
    opacity: 1;
}

.equalizer-bar {
    width: 4px;
    background: var(--chiptune-secondary, #00d4ff);
    border-radius: 1px;
    box-shadow: 0 0 5px var(--chiptune-secondary, #00d4ff);
}

.equalizer-bar:nth-child(1) { animation: eq-bar 0.5s ease-in-out infinite; }
.equalizer-bar:nth-child(2) { animation: eq-bar 0.5s ease-in-out infinite 0.1s; }
.equalizer-bar:nth-child(3) { animation: eq-bar 0.5s ease-in-out infinite 0.2s; }
.equalizer-bar:nth-child(4) { animation: eq-bar 0.5s ease-in-out infinite 0.15s; }
.equalizer-bar:nth-child(5) { animation: eq-bar 0.5s ease-in-out infinite 0.05s; }

@keyframes eq-bar {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

.song-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.1));
    font-size: 3rem;
}

.song-cover .play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: white;
}

.song-card:hover .play-btn {
    opacity: 1;
}

.song-info {
    padding: 1rem;
}

.song-day {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    display: block;
}

.song-date {
    font-size: 0.75rem;
    color: var(--chiptune-accent, #b967ff);
}

.song-title {
    font-size: 0.875rem;
    margin: 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
}

.song-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.like-btn {
    background: transparent;
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    color: var(--chiptune-text, #fff);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.like-btn:hover:not(:disabled) {
    border-color: var(--chiptune-primary, #ff6b9d);
    color: var(--chiptune-primary, #ff6b9d);
}

.like-btn.liked {
    background: var(--chiptune-primary, #ff6b9d);
    border-color: var(--chiptune-primary, #ff6b9d);
    color: white;
}

.like-btn.liked:hover:not(:disabled) {
    background: var(--chiptune-accent, #b967ff);
    border-color: var(--chiptune-accent, #b967ff);
    color: white;
    box-shadow: 0 0 10px rgba(185, 103, 255, 0.5);
}

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

.vote-btn {
    background: var(--chiptune-secondary, #00d4ff);
    border: none;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.vote-btn:hover:not(:disabled) {
    background: #00b8e0;
}

.vote-btn.voted {
    background: var(--chiptune-accent, #b967ff);
    color: white;
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Vote Banner */
.vote-banner {
    background: var(--chiptune-primary, #ff6b9d);
    padding: 1rem 2rem;
}

.vote-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.vote-banner-btn {
    background: white;
    color: var(--chiptune-primary, #ff6b9d);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
}

/* Login Prompt */
.login-prompt,
.login-required {
    text-align: center;
    padding: 3rem;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.login-prompt h3,
.login-required h2 {
    margin-bottom: 0.5rem;
}

.login-prompt p,
.login-required p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 1rem;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.discord-login-btn:hover {
    background: #4752C4;
}

/* Footer */
.chiptune-footer {
    text-align: center;
    padding: 2rem;
    padding-bottom: 100px; /* Space for fixed audio player */
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    font-size: 0.75rem;
    margin-top: auto;
}

.chiptune-footer p {
    margin: 0.25rem 0;
}

.footer-links a {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
}

.footer-links .sep {
    margin: 0 0.5rem;
}

/* Utility Classes */
[x-cloak] {
    display: none !important;
}

.no-songs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
}

/* ===========================================
   PLACEHOLDER CARDS - Enhanced
   =========================================== */

.song-card.placeholder-card {
    cursor: default;
}

.song-card.placeholder-card:hover {
    transform: none;
    animation: none;
}

.song-card.placeholder-card::after {
    opacity: 0.3;
}

/* Past day - greyed out/offline */
.song-card.placeholder-card.is-past {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.05);
}

.song-card.placeholder-card.is-past:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Today - highlighted and urgent */
.song-card.placeholder-card.is-today {
    opacity: 1;
    border-color: var(--chiptune-accent, #b967ff);
    border-width: 2px;
    animation: today-pulse 2s ease-in-out infinite;
}

@keyframes today-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(185, 103, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(185, 103, 255, 0.6);
    }
}

/* Future - mysterious */
.song-card.placeholder-card.is-future {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.1);
}

.song-card.placeholder-card.is-future:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Placeholder Cover Base */
.placeholder-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

/* Day badge for placeholders */
.placeholder-day-badge {
    background: rgba(100, 100, 100, 0.8) !important;
}

.is-today .placeholder-day-badge {
    background: var(--chiptune-accent, #b967ff) !important;
}

.is-future .placeholder-day-badge {
    background: rgba(80, 80, 100, 0.8) !important;
}

/* ===== TODAY: Mystery Box ===== */
.placeholder-mystery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystery-icon {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    color: var(--chiptune-accent, #b967ff);
    text-shadow: 0 0 20px var(--chiptune-accent, #b967ff);
    animation: mystery-float 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes mystery-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mystery-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--chiptune-accent, #b967ff);
    border-radius: 50%;
    animation: ring-expand 2s ease-out infinite;
}

.mystery-ring.delay-1 { animation-delay: 0.5s; }
.mystery-ring.delay-2 { animation-delay: 1s; }

@keyframes ring-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== FUTURE: Pixel Grid Animation ===== */
.placeholder-coming-soon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pixel-grid {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20%;
    width: 100%;
    height: 100%;
}

.pixel-grid span {
    background: var(--chiptune-primary, #ff6b9d);
    opacity: 0.2;
    animation: pixel-blink 2s ease-in-out infinite;
}

.pixel-grid span:nth-child(1) { animation-delay: 0s; }
.pixel-grid span:nth-child(2) { animation-delay: 0.15s; }
.pixel-grid span:nth-child(3) { animation-delay: 0.3s; }
.pixel-grid span:nth-child(4) { animation-delay: 0.45s; }
.pixel-grid span:nth-child(5) { animation-delay: 0.1s; }
.pixel-grid span:nth-child(6) { animation-delay: 0.25s; }
.pixel-grid span:nth-child(7) { animation-delay: 0.4s; }
.pixel-grid span:nth-child(8) { animation-delay: 0.55s; }
.pixel-grid span:nth-child(9) { animation-delay: 0.2s; }
.pixel-grid span:nth-child(10) { animation-delay: 0.35s; }
.pixel-grid span:nth-child(11) { animation-delay: 0.5s; }
.pixel-grid span:nth-child(12) { animation-delay: 0.65s; }
.pixel-grid span:nth-child(13) { animation-delay: 0.05s; }
.pixel-grid span:nth-child(14) { animation-delay: 0.2s; }
.pixel-grid span:nth-child(15) { animation-delay: 0.35s; }
.pixel-grid span:nth-child(16) { animation-delay: 0.5s; }

@keyframes pixel-blink {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

.coming-soon-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
    z-index: 2;
    letter-spacing: 0.1em;
}

/* ===== PAST: Static Noise ===== */
.placeholder-static {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #111;
}

.static-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: static-flicker 0.1s steps(5) infinite;
}

@keyframes static-flicker {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(2px, -2px); }
}

.offline-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    z-index: 2;
    animation: offline-blink 1s steps(2) infinite;
}

@keyframes offline-blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.2; }
}

/* Placeholder Title */
.placeholder-title {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
}

.placeholder-title .blink {
    animation: text-blink 1s steps(2) infinite;
}

@keyframes text-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Status Indicators */
.placeholder-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-today {
    background: rgba(185, 103, 255, 0.2);
    color: var(--chiptune-accent, #b967ff);
    border: 1px solid var(--chiptune-accent, #b967ff);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--chiptune-accent, #b967ff);
    border-radius: 50%;
    animation: dot-pulse 1s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.status-future {
    background: rgba(255, 107, 157, 0.1);
    color: rgba(255, 107, 157, 0.6);
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.status-past {
    background: rgba(100, 100, 100, 0.2);
    color: rgba(150, 150, 150, 0.6);
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.today-badge {
    background: var(--chiptune-accent, #b967ff);
    color: white;
}

/* Today highlight for song cards */
.song-card.is-today {
    border-color: var(--chiptune-accent, #b967ff);
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.3);
}

/* Responsive */
@media (max-width: 1100px) {
    /* Tighter cards on smaller desktop */
    .week-row-4 > * {
        flex: 0 1 calc(25% - 0.75rem);
        max-width: 240px;
    }
    .week-row-3 > * {
        flex: 0 1 calc(33.333% - 0.75rem);
        max-width: 280px;
    }
}

@media (max-width: 900px) {
    /* Allow rows to wrap on tablet */
    .week-row {
        flex-wrap: wrap;
    }
    .week-row-4 > *,
    .week-row-3 > * {
        flex: 0 1 calc(33.333% - 1rem);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .chiptune-header-content {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .chiptune-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }

    .chiptune-nav .nav-link {
        font-size: 0.5rem;
    }

    .chiptune-auth {
        order: 2;
    }

    /* Simplify Discord button on mobile */
    .auth-link.discord {
        padding: 0.5rem 0.75rem;
        font-size: 0.6rem;
    }

    .auth-link.discord .discord-icon {
        width: 16px;
        height: 16px;
    }

    /* Profile dropdown mobile */
    .profile-menu {
        right: -0.5rem;
        min-width: 160px;
    }

    .profile-name {
        font-size: 0.5rem;
    }

    .profile-menu-item {
        font-size: 0.75rem;
        padding: 0.6rem 0.875rem;
    }

    .week-nav-content {
        padding: 1rem;
    }

    .chiptune-main {
        padding: 1rem;
        padding-bottom: 100px; /* Space for fixed audio player */
    }

    .songs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Week grid uses flex rows - 2 cards per row on mobile */
    .week-row {
        gap: 1rem;
    }
    .week-row-4 > *,
    .week-row-3 > * {
        flex: 0 1 calc(50% - 0.5rem);
        max-width: none;
    }

    .page-header h1 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .songs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .week-row {
        gap: 0.75rem;
    }
    .week-row-4 > *,
    .week-row-3 > * {
        flex: 0 1 calc(50% - 0.375rem);
    }

    .chiptune-logo .logo-text {
        font-size: 0.625rem;
    }
}

/* ===========================================
   STATS PAGE STYLES
   =========================================== */

.stats-page .page-header {
    margin-bottom: 2rem;
}

/* Stats Overview Cards */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.4));
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats Sections */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--chiptune-text, #fff);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-count {
    font-family: inherit;
    font-size: 0.6rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
}

/* Compact Liked Songs List */
.likes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.3));
    border-radius: 0.5rem;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.liked-song {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
    cursor: default;
}

.liked-song:hover {
    background: rgba(255, 255, 255, 0.08);
}

.liked-song:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.liked-song:nth-child(odd):hover {
    background: rgba(255, 255, 255, 0.1);
}

.liked-song-cover {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.liked-song-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.1));
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.4));
    font-size: 0.875rem;
}

.liked-song-title {
    flex: 1;
    font-size: 0.8rem;
    color: var(--chiptune-text, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liked-song-date {
    font-size: 0.7rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    flex-shrink: 0;
}

.liked-song-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--chiptune-primary, #ff6b9d);
    color: var(--chiptune-primary, #ff6b9d);
    font-size: 0.6rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.liked-song:hover .liked-song-play {
    opacity: 1;
}

.liked-song-play:hover {
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* Votes List (Week/Month votes) */
.votes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.3));
    border-radius: 0.5rem;
    overflow: hidden;
}

.vote-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.vote-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.vote-week,
.vote-month {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--chiptune-accent, #b967ff);
    min-width: 70px;
}

.vote-song {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.vote-cover {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    object-fit: cover;
}

.vote-title {
    font-size: 0.85rem;
    color: var(--chiptune-text, #fff);
}

.vote-date {
    font-size: 0.7rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
}

/* Predictions List */
.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.3));
    border-radius: 0.5rem;
    overflow: hidden;
}

.prediction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.prediction-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.prediction-item.correct {
    border-left: 3px solid #00ff64;
}

.prediction-item.incorrect {
    border-left: 3px solid #ff4757;
}

.prediction-item.pending {
    border-left: 3px solid var(--chiptune-accent, #b967ff);
}

.pred-week {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--chiptune-accent, #b967ff);
    min-width: 70px;
}

.pred-song {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pred-cover {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    object-fit: cover;
}

.pred-title {
    font-size: 0.85rem;
    color: var(--chiptune-text, #fff);
}

.pred-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.prediction-item.correct .pred-status {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
}

.prediction-item.incorrect .pred-status {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.prediction-item.pending .pred-status {
    background: rgba(185, 103, 255, 0.2);
    color: var(--chiptune-accent, #b967ff);
}

/* Year Vote Display */
.year-vote-display {
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.4));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.vote-song.large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-song.large .vote-cover {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.vote-song.large .vote-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vote-song.large .vote-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.vote-song.large .vote-date {
    font-size: 0.8rem;
}

/* Stats page scrollbar styling */
.likes-list::-webkit-scrollbar {
    width: 6px;
}

.likes-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.likes-list::-webkit-scrollbar-thumb {
    background: var(--chiptune-primary, #ff6b9d);
    border-radius: 3px;
}

.likes-list::-webkit-scrollbar-thumb:hover {
    background: var(--chiptune-accent, #b967ff);
}

/* Stats page responsive */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .vote-week,
    .vote-month,
    .pred-week {
        min-width: 60px;
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .liked-song-date {
        display: none;
    }
}

/* ===========================================
   VOTE PAGE STYLES
   =========================================== */

/* Vote Status Banner - shows when voting is open */
.vote-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #b967ff));
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.vote-status-icon {
    font-size: 1.25rem;
    animation: spin-slow 4s linear infinite;
}

.vote-status-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.vote-status-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.vote-status-hint {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Winner Announcement */
.winner-announcement {
    margin: 2rem 0;
}

.winner-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.winner-trophy {
    margin-bottom: 1rem;
}

.winner-trophy .trophy-icon {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.winner-card h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ffd700;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.05em;
}

.winner-song {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.winner-cover {
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.winner-info {
    text-align: left;
}

.winner-info h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.winner-date {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin: 0 0 0.75rem 0;
}

.winner-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.winner-stats .stat {
    color: #ffd700;
}

.winner-stats .stat strong {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
}

.winner-stats .stat-sep {
    width: 4px;
    height: 4px;
    background: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    border-radius: 50%;
}

/* Section Title */
.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

/* Voting Closed Banner */
.voting-closed-banner {
    text-align: center;
    padding: 2rem;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.voting-closed-banner .closed-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.voting-closed-banner p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--chiptune-secondary, #00d4ff);
}

.back-arrow {
    font-size: 0.75rem;
}

/* Voting Instructions */
.voting-instructions {
    text-align: center;
    padding: 1.5rem;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.voting-instructions p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin: 0;
}

.current-vote-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem !important;
    color: #00ff64;
}

.current-vote-notice .check-icon {
    color: #00ff64;
    font-weight: bold;
}

.current-vote-notice strong {
    color: white;
}

/* Vote Button in Song Card */
.song-card .vote-btn {
    background: transparent;
    border: 2px solid var(--chiptune-primary, #ff6b9d);
    color: var(--chiptune-primary, #ff6b9d);
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    font-family: 'Press Start 2P', monospace;
}

.song-card .vote-btn:hover:not(:disabled) {
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

.song-card .vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.song-card .vote-btn.voted {
    background: rgba(0, 255, 100, 0.2);
    border-color: #00ff64;
    color: #00ff64;
}

.song-card .vote-btn.voted:hover {
    background: rgba(0, 255, 100, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
}

.song-card .vote-btn.voted:disabled {
    opacity: 1;
    cursor: default;
    background: rgba(0, 255, 100, 0.25);
    border-color: #00ff64;
    color: #00ff64;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.2);
}

/* Vote count display (shown when voting is closed) */
.song-card .vote-count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', monospace;
}

.song-card .vote-count .vote-icon {
    font-size: 0.8rem;
}

.song-card .vote-count .vote-number {
    font-weight: 600;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.5), 0 0 30px rgba(185, 103, 255, 0.3);
    }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Vote page responsive */
@media (max-width: 768px) {
    .winner-song {
        flex-direction: column;
        text-align: center;
    }

    .winner-info {
        text-align: center;
    }

    .winner-stats {
        justify-content: center;
    }

    .vote-status-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================================
   WEEK PAGE BANNERS
   =========================================== */

/* Voting Open Banner - shown on week page when voting is active */
.voting-open-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(185, 103, 255, 0.15));
    border: 2px solid var(--chiptune-primary, #ff6b9d);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: border-glow 2s ease-in-out infinite;
}

.voting-open-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes border-glow {
    0%, 100% {
        border-color: var(--chiptune-primary, #ff6b9d);
        box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    }
    50% {
        border-color: var(--chiptune-accent, #b967ff);
        box-shadow: 0 0 20px rgba(185, 103, 255, 0.4);
    }
}

.voting-open-banner .vote-icon {
    font-size: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

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

.voting-open-banner .vote-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--chiptune-text, #fff);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.voting-open-banner .vote-btn {
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #b967ff));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.voting-open-banner .vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.7), 0 0 30px rgba(185, 103, 255, 0.5);
}

/* Winner Banner - shown on week page when winner is crowned */
.winner-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.winner-banner .winner-icon {
    font-size: 1.5rem;
    animation: pulse-trophy 2s ease-in-out infinite;
}

@keyframes pulse-trophy {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===========================================
   BRACKET VOTE BUTTON
   =========================================== */

.bracket-vote-btn {
    background: transparent;
    border: 2px solid var(--chiptune-primary, #ff6b9d);
    color: var(--chiptune-primary, #ff6b9d);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracket-vote-btn:hover:not(:disabled) {
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

.bracket-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bracket-vote-btn.voted {
    background: rgba(0, 255, 100, 0.2);
    border-color: #00ff64;
    color: #00ff64;
}

.bracket-vote-btn.voted:disabled {
    opacity: 1;
    cursor: default;
    background: rgba(0, 255, 100, 0.25);
    border-color: #00ff64;
    color: #00ff64;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.2);
}

/* ===========================================
   VOTE CELEBRATION ANIMATIONS
   =========================================== */

/* Button power-up effect */
.vote-btn.vote-powerup {
    animation: vote-powerup 0.6s ease-out;
}

@keyframes vote-powerup {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 255, 100, 0);
    }
    30% {
        transform: scale(1.3);
        box-shadow: 0 0 30px rgba(0, 255, 100, 0.8), 0 0 60px rgba(0, 255, 100, 0.4);
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
    }
}

/* Screen flash overlay */
.vote-screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 9999;
    animation: screen-flash 0.3s ease-out forwards;
}

@keyframes screen-flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Floating +1 VOTE text */
.vote-float-text {
    position: fixed;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #00ff64;
    text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 10px #00ff64;
    pointer-events: none;
    z-index: 10000;
    transform: translateX(-50%);
    animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(0.5);
    }
    20% {
        transform: translateX(-50%) translateY(-10px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-80px) scale(1);
    }
}

/* Pixel burst particles */
.vote-particle {
    position: fixed;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 10000;
    animation: particle-burst 0.8s ease-out forwards;
    text-shadow: 0 0 5px currentColor;
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--tx, 0px)),
            calc(-50% + var(--ty, 0px))
        ) scale(0.5) rotate(360deg);
    }
}

.winner-banner .winner-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.winner-banner .winner-text strong {
    color: white;
}

.winner-banner .winner-stats {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    padding: 0.4rem 0.75rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 0.25rem;
}

/* Responsive banners */
@media (max-width: 768px) {
    .voting-open-banner,
    .winner-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .voting-open-banner .vote-text,
    .winner-banner .winner-text {
        font-size: 0.55rem;
    }
}


/* =============================================================================
   HALL OF FAME PAGE - CONSOLIDATED
   ============================================================================= */

.hall-of-fame-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hall-of-fame-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hall-of-fame-page .page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hall-of-fame-page .page-subtitle {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
}

/* Hall of Fame Sections */
.hof-section {
    margin-bottom: 3rem;
}

.hof-section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--chiptune-text, #fff);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

.hof-section-title .section-icon {
    font-size: 1.25rem;
}

.year-section .hof-section-title {
    color: #ffd700;
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.month-section .hof-section-title {
    color: var(--chiptune-accent, #b967ff);
    border-bottom-color: rgba(185, 103, 255, 0.3);
}

.week-section .hof-section-title {
    color: var(--chiptune-primary, #ff6b9d);
    border-bottom-color: rgba(255, 107, 157, 0.3);
}

/* Year Champion Showcase */
.hof-year-showcase {
    display: flex;
    justify-content: center;
}

.hof-year-card {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.4));
    border: 2px solid #ffd700;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
}

.hof-year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.hof-year-cover {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hof-year-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hof-trophy-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hof-year-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.hof-label {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    width: fit-content;
}

.hof-label.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.hof-label.purple {
    background: linear-gradient(135deg, var(--chiptune-accent, #b967ff), #9945d4);
    color: white;
}

.hof-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ffd700;
    margin: 0;
    line-height: 1.4;
}

.hof-meta {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.85rem;
    margin: 0;
}

.hof-votes {
    color: rgba(255, 215, 0, 0.8);
    font-size: 0.8rem;
    margin: 0;
}

.hof-votes::before {
    content: '🗳️ ';
}

/* Cards Grid (Monthly & Weekly) */
.hof-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.hof-cards-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

/* Song Card */
.hof-song-card {
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.4));
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hof-song-card:hover {
    transform: translateY(-4px);
}

.hof-song-card.month {
    border-color: var(--chiptune-accent, #b967ff);
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.15);
}

.hof-song-card.month:hover {
    box-shadow: 0 0 25px rgba(185, 103, 255, 0.3), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hof-song-card.week {
    border-color: var(--chiptune-border, rgba(255, 255, 255, 0.15));
}

.hof-song-card.week:hover {
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Card Cover */
.hof-card-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--chiptune-bg, #0a0a1a);
}

.hof-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hof-song-card:hover .hof-card-cover img {
    transform: scale(1.05);
}

.hof-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #00d4ff));
    font-size: 3rem;
}

/* Card Badge */
.hof-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hof-card-badge.week {
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #b967ff));
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    filter: none;
}

/* Play Button */
.hof-play-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.hof-song-card:hover .hof-play-btn,
.hof-year-cover:hover .hof-play-btn {
    opacity: 1;
    transform: scale(1);
}

.hof-play-btn:hover {
    background: var(--chiptune-primary, #ff6b9d);
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

.hof-play-btn.large {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.hof-year-cover .hof-play-btn:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Card Info */
.hof-card-info {
    padding: 0.875rem;
}

.hof-card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-text, #fff);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    /* Truncate long titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.hof-card-title:hover {
    color: var(--chiptune-primary, #ff6b9d);
}

.hof-card-meta {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 0.75rem;
    margin: 0;
}

/* Month Block (Collapsible) */
.hof-month-block {
    margin-bottom: 1rem;
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.3));
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    overflow: hidden;
}

.hof-month-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--chiptune-surface, rgba(255, 255, 255, 0.05));
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.hof-month-header:hover {
    background: var(--chiptune-surface-hover, rgba(255, 255, 255, 0.08));
}

.hof-month-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--chiptune-primary, #ff6b9d);
    flex: 1;
}

.hof-month-count {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 0.8rem;
}

.hof-expand-icon {
    color: var(--chiptune-primary, #ff6b9d);
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.hof-expand-icon.rotated {
    transform: rotate(180deg);
}

.hof-month-content {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

/* Empty State */
.hof-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.3));
    border: 2px dashed var(--chiptune-border, rgba(255, 255, 255, 0.2));
    border-radius: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.hof-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.hof-empty-state h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--chiptune-primary, #ff6b9d);
    margin-bottom: 1rem;
}

.hof-empty-state p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hof-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #b967ff));
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.hof-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Hall of Fame Responsive */
@media (max-width: 768px) {
    .hall-of-fame-page {
        padding: 1rem;
    }

    .hall-of-fame-page .page-header h1 {
        font-size: 1rem;
    }

    .hof-section-title {
        font-size: 0.7rem;
    }

    .hof-year-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .hof-year-cover {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .hof-year-info {
        align-items: center;
    }

    .hof-title {
        font-size: 0.8rem;
    }

    .hof-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hof-cards-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .hof-card-info {
        padding: 0.6rem;
    }

    .hof-card-title {
        font-size: 0.5rem;
    }

    .hof-month-header {
        padding: 0.75rem 1rem;
    }

    .hof-month-name {
        font-size: 0.6rem;
    }

    .hof-play-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================================================
   THEMES PAGE
   ============================================================================= */

.themes-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.themes-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.themes-page .page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-shadow: 0 0 10px var(--chiptune-glow, rgba(255, 107, 157, 0.4));
    margin-bottom: 0.75rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Theme Card Base */
.theme-card {
    background: var(--chiptune-card-bg, rgba(0, 0, 0, 0.4));
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-4px);
}

/* Current Theme Card */
.theme-card.current {
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 20px var(--chiptune-glow, rgba(255, 107, 157, 0.3));
    animation: currentThemePulse 3s ease-in-out infinite;
}

@keyframes currentThemePulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--chiptune-glow, rgba(255, 107, 157, 0.3));
    }
    50% {
        box-shadow: 0 0 30px var(--chiptune-glow, rgba(255, 107, 157, 0.5));
    }
}

/* Unlocked Theme Card */
.theme-card.unlocked {
    opacity: 0.85;
}

.theme-card.unlocked:hover {
    opacity: 1;
}

/* Locked Theme Card */
.theme-card.locked {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.theme-card.locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-card-locked {
    padding: 2rem 1.5rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.theme-card-locked .lock-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.theme-card-locked .theme-month {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 1rem 0;
}

.theme-card-locked .theme-hint {
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
    max-width: 200px;
}

.theme-card-locked .theme-mystery {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5rem;
}

/* Theme Card Header (Unlocked/Current) */
.theme-card-header {
    background: linear-gradient(
        135deg,
        var(--theme-primary, #ff6b9d),
        var(--theme-secondary, #00d4ff)
    );
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.theme-card-header .theme-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-card-header .current-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    animation: badgeBlink 2s ease-in-out infinite;
}

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

/* Theme Card Body */
.theme-card-body {
    padding: 1.25rem;
}

.theme-card-body .theme-month-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-card-body .theme-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--chiptune-text, #fff);
    margin: 0.5rem 0 0.25rem 0;
}

.theme-card-body .theme-tagline {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--chiptune-secondary, #00d4ff);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
}

.theme-card-body .theme-desc {
    font-size: 0.8rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Color Dots */
.theme-colors {
    display: flex;
    gap: 0.5rem;
}

.theme-colors .color-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Themes Page Responsive */
@media (max-width: 768px) {
    .themes-page {
        padding: 1rem;
    }

    .themes-page .page-header h1 {
        font-size: 1rem;
    }

    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .themes-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   FLOATING VOTE BADGE
   =========================================== */

.vote-badge-float {
    position: fixed;
    bottom: 120px; /* Above the audio player */
    right: 6rem; /* Extra space for glow effect */
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #b967ff));
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem 1rem 1.25rem;
    border-radius: 0.75rem;
    /* Pixel-style border effect */
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 6px 0 rgba(0, 0, 0, 0.5),
        0 0 30px var(--chiptune-glow, rgba(255, 107, 157, 0.5)),
        0 0 60px var(--chiptune-glow, rgba(255, 107, 157, 0.3)),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    animation: voteBadgeFloat 3s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vote-badge-float:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 12px 0 rgba(0, 0, 0, 0.5),
        0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.7)),
        0 0 80px var(--chiptune-secondary-glow, rgba(0, 212, 255, 0.4)),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.vote-badge-float:active {
    transform: translateY(3px);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 0 20px var(--chiptune-glow, rgba(255, 107, 157, 0.5)),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

@keyframes voteBadgeFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
            0 0 0 3px rgba(0, 0, 0, 0.8),
            0 6px 0 rgba(0, 0, 0, 0.5),
            0 0 30px var(--chiptune-glow, rgba(255, 107, 157, 0.5)),
            0 0 60px var(--chiptune-glow, rgba(255, 107, 157, 0.3)),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: translateY(-5px);
        box-shadow:
            0 0 0 3px rgba(0, 0, 0, 0.8),
            0 11px 0 rgba(0, 0, 0, 0.5),
            0 0 40px var(--chiptune-glow, rgba(255, 107, 157, 0.6)),
            0 0 80px var(--chiptune-secondary-glow, rgba(0, 212, 255, 0.3)),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

.vote-badge-star {
    font-size: 2rem;
    animation: voteBadgeSpin 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

@keyframes voteBadgeSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-15deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

.vote-badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vote-badge-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.vote-badge-week {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    opacity: 0.95;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for floating badge */
@media (max-width: 768px) {
    .vote-badge-float {
        bottom: 110px;
        right: 4rem;
        padding: 0.75rem 1rem 0.75rem 0.85rem;
        gap: 0.5rem;
    }

    .vote-badge-star {
        font-size: 1.5rem;
    }

    .vote-badge-label {
        font-size: 0.65rem;
    }

    .vote-badge-week {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .vote-badge-float {
        bottom: 100px;
        right: 2.5rem;
        padding: 0.6rem 0.85rem 0.6rem 0.7rem;
        gap: 0.4rem;
    }

    .vote-badge-star {
        font-size: 1.25rem;
    }

    .vote-badge-label {
        font-size: 0.55rem;
    }

    .vote-badge-week {
        font-size: 0.4rem;
    }
}

/* ===========================================
   MONTHLY CHAMPIONSHIP BANNER
   =========================================== */

.monthly-championship-banner {
    display: block;
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 180, 0, 0.1) 50%,
        rgba(255, 215, 0, 0.15) 100%
    );
    border: 3px solid rgba(255, 215, 0, 0.6);
    border-radius: 0.5rem;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: championshipPulse 3s ease-in-out infinite;
}

.monthly-championship-banner:hover {
    border-color: rgba(255, 215, 0, 0.9);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.monthly-championship-banner:active {
    transform: translateY(1px);
}

@keyframes championshipPulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(255, 215, 0, 0.15);
        border-color: rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow:
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 50px rgba(255, 215, 0, 0.25);
        border-color: rgba(255, 215, 0, 0.8);
    }
}

/* Animated glow sweep effect */
.monthly-championship-banner .banner-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.3) 50%,
        transparent 100%
    );
    animation: glowSweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowSweep {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.monthly-championship-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.monthly-championship-banner .banner-crown {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-3px) rotate(0deg);
    }
    50% {
        transform: translateY(0) rotate(5deg);
    }
    75% {
        transform: translateY(-3px) rotate(0deg);
    }
}

.monthly-championship-banner .banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.monthly-championship-banner .banner-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: #ffd700;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    animation: neonFlickerGold 4s infinite;
}

@keyframes neonFlickerGold {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.5);
    }
    8% {
        opacity: 0.85;
        text-shadow:
            0 0 5px rgba(255, 215, 0, 0.5),
            2px 2px 0 rgba(0, 0, 0, 0.5);
    }
    10% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.5);
    }
    55% {
        opacity: 1;
    }
    56% {
        opacity: 0.8;
        text-shadow:
            0 0 5px rgba(255, 215, 0, 0.4),
            2px 2px 0 rgba(0, 0, 0, 0.5);
    }
    58% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.5);
    }
}

.monthly-championship-banner .banner-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.monthly-championship-banner .banner-arrow {
    font-size: 1.25rem;
    color: #ffd700;
    animation: arrowPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}

/* Responsive adjustments for monthly banner */
@media (max-width: 768px) {
    .monthly-championship-banner {
        padding: 0.75rem 1rem;
    }

    .monthly-championship-banner .banner-content {
        gap: 0.75rem;
    }

    .monthly-championship-banner .banner-crown {
        font-size: 1.5rem;
    }

    .monthly-championship-banner .banner-label {
        font-size: 0.6rem;
    }

    .monthly-championship-banner .banner-subtitle {
        font-size: 0.45rem;
    }

    .monthly-championship-banner .banner-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .monthly-championship-banner {
        padding: 0.6rem 0.75rem;
    }

    .monthly-championship-banner .banner-content {
        gap: 0.5rem;
    }

    .monthly-championship-banner .banner-crown {
        font-size: 1.25rem;
    }

    .monthly-championship-banner .banner-label {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }

    .monthly-championship-banner .banner-subtitle {
        font-size: 0.4rem;
    }

    .monthly-championship-banner .banner-arrow {
        font-size: 0.875rem;
    }
}

/* Past Champion Badge - floating in bottom-left corner */
.past-champion-badge {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(20, 15, 40, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(8px);
}

.past-champion-badge:hover {
    background: linear-gradient(135deg, rgba(40, 30, 60, 0.98), rgba(30, 20, 50, 0.98));
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

.past-champion-badge .badge-crown {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.past-champion-badge .badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.past-champion-badge .badge-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.past-champion-badge .badge-song {
    font-size: 0.75rem;
    color: var(--chiptune-text, #fff);
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .past-champion-badge {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .past-champion-badge .badge-crown {
        font-size: 1.25rem;
    }

    .past-champion-badge .badge-label {
        font-size: 0.35rem;
    }

    .past-champion-badge .badge-song {
        font-size: 0.65rem;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .past-champion-badge {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .past-champion-badge .badge-crown {
        font-size: 1rem;
    }

    .past-champion-badge .badge-song {
        max-width: 100px;
    }
}

/* =============================================================================
   BRACKET TOURNAMENT STYLES
   ============================================================================= */

.bracket-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bracket-page .page-header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: var(--chiptune-primary, #ff6b9d);
    margin-bottom: 0.5rem;
}

.bracket-page .page-subtitle {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 1rem;
}

/* Champion Banner */
.champion-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: goldGlow 2s ease-in-out infinite alternate;
}

@keyframes goldGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.champion-banner .champion-crown {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.champion-banner h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.champion-song {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.champion-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.champion-info h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.champion-info p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.875rem;
}

/* Bracket Status Messages */
.bracket-status {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bracket-status .status-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.bracket-status p {
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 1rem;
}

.bracket-status.voting {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 113, 237, 0.1));
    border-color: var(--chiptune-primary, #ff6b9d);
}

.bracket-status.voting p {
    color: #fff;
}

.week-checklist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.week-check {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.week-check.complete {
    color: #4ade80;
}

/* Bracket Container */
.bracket-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    overflow-x: auto;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bracket-column.semifinals {
    gap: 3rem;
}

.column-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

/* Matchup */
.matchup {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
}

.matchup.voting-open {
    border-color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.matchup.decided {
    border-color: rgba(255, 215, 0, 0.5);
}

.matchup-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.matchup-vs {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-accent, #45e3ff);
    text-align: center;
    padding: 0.5rem 0;
}

/* Bracket Slot */
.bracket-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.bracket-slot.can-vote:hover {
    border-color: var(--chiptune-primary, #ff6b9d);
    transform: translateX(4px);
}

.bracket-slot.winner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: #ffd700;
    position: relative;
    overflow: visible;
}

/* Winner Ribbon Badge */
.winner-ribbon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3);
    z-index: 10;
    animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.5);
    }
}

.slot-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-right: 44px; /* Space for play button */
}

.slot-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.slot-cover.placeholder {
    background: var(--chiptune-card-bg, rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.3));
}

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

.slot-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-week {
    display: block;
    font-size: 0.65rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    margin-top: 0.25rem;
}

.winner-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #ffd700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.vote-indicator {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
    border: 1px solid #4ade80;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #4ade80;
    text-align: center;
}

.vote-indicator .vote-check {
    margin-right: 0.25rem;
}

.bracket-vote-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-secondary, #c471ed));
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.bracket-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.vote-count {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.5));
    text-align: center;
}

.pending-indicator {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.4));
    text-align: center;
    font-style: italic;
}

/* Bracket Play Button */
.bracket-play-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-secondary, #c471ed));
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.bracket-play-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.5);
}

.bracket-play-btn span {
    line-height: 1;
}

/* Bracket Login Link */
.bracket-login-link {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 6px;
    color: #7289da;
    font-size: 0.6rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bracket-login-link:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: #7289da;
    color: white;
}

/* Bracket Vote Button - Powerup animation support */
.bracket-vote-btn.vote-powerup {
    animation: vote-powerup 0.6s ease-out;
}

.bracket-vote-btn.voted {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid #ffd700 !important;
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    pointer-events: none;
}

.bracket-vote-btn.voted:disabled {
    opacity: 1;
}

.slot-empty {
    padding: 1.5rem;
    text-align: center;
}

.slot-empty .slot-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.3));
    text-transform: uppercase;
}

/* Bracket Connectors */
.bracket-connectors {
    width: 60px;
    flex-shrink: 0;
}

.connector-svg {
    width: 100%;
    height: 300px;
    color: var(--chiptune-border, rgba(255, 255, 255, 0.2));
}

/* Bracket Trophy */
.bracket-trophy {
    text-align: center;
    padding: 1.5rem;
}

.trophy-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.trophy-winner {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #ffd700;
    max-width: 120px;
}

.trophy-pending {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.4));
    max-width: 120px;
}

/* Champion Card */
.champion-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    overflow: visible;
}

.champion-card.crowned {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.05);
}

.champion-card.placeholder-card {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.2);
}

.champion-trophy-float {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: trophyFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
    z-index: 5;
}

.champion-trophy-float.pending {
    opacity: 0.4;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.2));
    animation: trophyFloatPending 4s ease-in-out infinite;
}

@keyframes trophyFloatPending {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
        opacity: 0.5;
    }
}

.champion-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.champion-card-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.champion-card-cover.placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.champion-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.champion-card-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--chiptune-primary, #ff6b9d);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.champion-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.placeholder-title {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.champion-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.champion-card-stats .stat {
    font-size: 0.7rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
}

.placeholder-stats .stat {
    color: rgba(255, 255, 255, 0.3);
}

.champion-play-btn {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.85;
}

.champion-play-btn:hover {
    transform: translateX(-50%) scale(1.1);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    opacity: 1;
}

.champion-play-btn span {
    line-height: 1;
}

.champion-crown-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
    animation: crownPulse 2.5s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes crownPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.8);
    }
}

/* Login prompt for bracket */
.bracket-login {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Bracket */
@media (max-width: 900px) {
    .bracket-container {
        flex-direction: column;
        padding: 1rem;
    }

    .bracket-connectors {
        display: none;
    }

    .bracket-column {
        width: 100%;
        max-width: 400px;
    }

    .matchup {
        min-width: 0;
    }

    .champion-card {
        max-width: 100%;
        min-width: 0;
    }

    .bracket-column.champion {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .bracket-page .page-header h1 {
        font-size: 1rem;
    }

    .champion-banner {
        padding: 1.5rem 1rem;
    }

    .champion-banner .champion-crown {
        font-size: 2.5rem;
    }

    .champion-song {
        flex-direction: column;
        text-align: center;
    }

    .slot-cover {
        width: 40px;
        height: 40px;
    }

    .slot-title {
        font-size: 0.75rem;
    }

    .bracket-vote-btn {
        font-size: 0.5rem;
    }

    .champion-card-cover {
        width: 64px;
        height: 64px;
    }

    .champion-card-title {
        font-size: 0.85rem;
    }

    .champion-card-stats {
        gap: 0.5rem;
    }

    .champion-card-stats .stat {
        font-size: 0.6rem;
    }

    .champion-trophy-float {
        font-size: 1.5rem;
        bottom: -40px;
    }

    .champion-play-btn {
        top: 24px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Song Detail Page
   ========================================================================== */

.song-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Song Navigation (prev/next) */
.song-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--chiptune-card-bg, rgba(255, 255, 255, 0.05));
    border-radius: 0.5rem;
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

.song-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--chiptune-text, #fff);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    min-width: 180px;
}

.song-nav-btn.prev {
    justify-content: flex-start;
}

.song-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.song-nav-btn:hover:not(.disabled) {
    background: var(--chiptune-primary, #ff6b9d);
    color: white;
}

.song-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.song-nav-btn .nav-arrow {
    font-size: 1.25rem;
    opacity: 0.7;
}

.song-nav-btn .nav-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.song-nav-btn .nav-date {
    font-size: 0.7rem;
    opacity: 0.7;
    font-family: 'Press Start 2P', monospace;
}

.song-nav-btn .nav-title {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.song-nav-week {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-accent, #00d4ff);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--chiptune-accent, #00d4ff);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.song-nav-week:hover {
    background: var(--chiptune-accent, #00d4ff);
    color: #000;
}

/* Song Detail Main Container */
.song-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Cover Image Section */
.song-detail-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

.song-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-detail-cover .song-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--chiptune-primary, #ff6b9d), var(--chiptune-accent, #00d4ff));
    font-size: 4rem;
}

/* Large Play Button on Cover */
.play-btn-large {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--chiptune-primary, #ff6b9d);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 12px rgba(255, 107, 157, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(255, 107, 157, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

/* Song Info Section */
.song-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-day-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--chiptune-accent, #00d4ff);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 0.25rem;
    display: inline-block;
    width: fit-content;
}

.song-detail-info .song-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
    color: var(--chiptune-text, #fff);
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.song-detail-info .song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    margin: 0;
}

.song-detail-info .song-date {
    opacity: 0.8;
}

.song-detail-info .song-duration {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--chiptune-primary, #ff6b9d);
}

/* Song Wins/Trophies */
.song-wins {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Song Stats */
.song-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.1));
}

.song-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.song-stats .stat-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
    color: var(--chiptune-text, #fff);
}

.song-stats .stat-label {
    font-size: 0.75rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Large Like Button */
.like-btn-large {
    background: transparent;
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    color: var(--chiptune-text, #fff);
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.like-btn-large:hover:not(:disabled) {
    border-color: var(--chiptune-primary, #ff6b9d);
    color: var(--chiptune-primary, #ff6b9d);
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.3);
}

.like-btn-large.liked {
    background: var(--chiptune-primary, #ff6b9d);
    border-color: var(--chiptune-primary, #ff6b9d);
    color: white;
}

.like-btn-large.liked:hover:not(:disabled) {
    background: var(--chiptune-accent, #b967ff);
    border-color: var(--chiptune-accent, #b967ff);
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.4);
}

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

.like-btn-large .like-icon {
    font-size: 1rem;
}

/* Song Detail Responsive */
@media (max-width: 768px) {
    .song-detail-page {
        padding: 1rem;
    }

    .song-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .song-nav-btn {
        min-width: 0;
        flex: 1;
        padding: 0.5rem;
    }

    .song-nav-btn .nav-title {
        max-width: 80px;
        font-size: 0.65rem;
    }

    .song-nav-btn .nav-date {
        font-size: 0.55rem;
    }

    .song-nav-week {
        order: -1;
        width: 100%;
        text-align: center;
        font-size: 0.5rem;
    }

    .song-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .song-detail-cover {
        max-width: 280px;
        margin: 0 auto;
    }

    .song-detail-info .song-title {
        font-size: 0.9rem;
    }

    .song-stats {
        gap: 1.5rem;
    }

    .song-stats .stat-value {
        font-size: 1rem;
    }

    .song-actions-large {
        flex-direction: column;
        gap: 0.75rem;
    }

    .like-btn-large,
    .share-btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .song-nav-btn .nav-info {
        display: none;
    }

    .song-nav-btn .nav-arrow {
        font-size: 1.5rem;
    }

    .song-detail-info .song-title {
        font-size: 0.8rem;
    }

    .song-day-number {
        font-size: 0.5rem;
    }
}

/* ==========================================================================
   Share Button & Toast Notification
   ========================================================================== */

/* Share Button (card size) */
.share-btn {
    background: transparent;
    border: 1px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    color: var(--chiptune-text, #fff);
    padding: 0.5rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    border-color: var(--chiptune-accent, #00d4ff);
    color: var(--chiptune-accent, #00d4ff);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

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

.share-btn .share-icon {
    font-size: 0.875rem;
}

/* Share Button (large - detail page) */
.share-btn-large {
    background: transparent;
    border: 2px solid var(--chiptune-border, rgba(255, 255, 255, 0.2));
    color: var(--chiptune-text, #fff);
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.share-btn-large:hover {
    border-color: var(--chiptune-accent, #00d4ff);
    color: var(--chiptune-accent, #00d4ff);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

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

.share-btn-large .share-icon {
    font-size: 1rem;
}

/* Song Actions Large (detail page) */
.song-actions-large {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Toast Container */
.chiptune-toast-container {
    position: fixed;
    bottom: 100px; /* Above the player */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Toast Notification */
.chiptune-toast {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(185, 103, 255, 0.95));
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 20px rgba(0, 212, 255, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: toast-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.chiptune-toast.toast-exit {
    animation: toast-exit 0.3s ease-in forwards;
}

.chiptune-toast-icon {
    font-size: 1rem;
    animation: toast-icon-bounce 0.5s ease-out;
}

.chiptune-toast-message {
    white-space: nowrap;
}

@keyframes toast-appear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-exit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
}

@keyframes toast-icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Toast on mobile - position higher */
@media (max-width: 640px) {
    .chiptune-toast-container {
        bottom: 140px;
        left: 1rem;
        right: 1rem;
        transform: none;
    }

    .chiptune-toast {
        font-size: 0.5rem;
        padding: 0.6rem 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   BACKGROUND SHOWCASE MODAL
   =========================================== */

/* View artwork hint on theme cards */
.view-artwork-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
    color: var(--chiptune-text-secondary, rgba(255, 255, 255, 0.6));
    transition: color 0.2s ease;
}

.theme-card.current:hover .view-artwork-hint {
    color: var(--chiptune-primary, #00d4ff);
}

.view-artwork-hint .hint-icon {
    font-size: 0.9rem;
}

/* Modal overlay and container */
.bg-showcase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #0a0a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}

/* Hide modal by default (Alpine.js cloak) */
[x-cloak] {
    display: none !important;
}

/* Modal close button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 2rem;
    font-family: 'Press Start 2P', monospace;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.modal-close-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    border-color: var(--chiptune-primary, #ff6b9d);
    transform: scale(1.1);
}

.modal-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5);
}

/* Bottom info bar with gradient */
.modal-info-bar {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
    pointer-events: none;
}

.modal-theme-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.25rem;
    color: white;
    margin: 0 0 0.75rem 0;
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.5),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.modal-close-hint {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.1em;
    animation: hint-blink 1.5s steps(1) infinite;
}

@keyframes hint-blink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0; }
}

/* Modal transitions */
.modal-enter {
    transition: opacity 0.3s ease;
}

.modal-enter-start {
    opacity: 0;
}

.modal-enter-end {
    opacity: 1;
}

.modal-leave {
    transition: opacity 0.2s ease;
}

.modal-leave-start {
    opacity: 1;
}

.modal-leave-end {
    opacity: 0;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .modal-theme-name {
        font-size: 1rem;
    }

    .modal-close-hint {
        font-size: 0.5rem;
    }

    .modal-info-bar {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-theme-name {
        font-size: 0.8rem;
    }

    .modal-close-hint {
        font-size: 0.45rem;
    }
}

/* ===========================================
   DISCORD FLOATING BADGE
   =========================================== */

.discord-floating-badge {
    position: fixed;
    bottom: 100px; /* Above the audio player */
    right: 1rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #5865F2;
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(88, 101, 242, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.discord-floating-badge:hover {
    background: #4752C4;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 25px rgba(88, 101, 242, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.3);
}

.discord-floating-badge:active {
    transform: translateY(-1px) scale(1.02);
}

.discord-floating-badge .discord-icon {
    flex-shrink: 0;
}

.discord-badge-text {
    white-space: nowrap;
}

/* Mobile: smaller and icon-only */
@media (max-width: 768px) {
    .discord-floating-badge {
        bottom: 90px;
        right: 0.75rem;
        padding: 0.5rem;
        border-radius: 50%;
    }

    .discord-badge-text {
        display: none;
    }

    .discord-floating-badge .discord-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===========================================
   DISCORD INVITE MODAL
   =========================================== */

.discord-invite-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.discord-invite-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.discord-invite-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #5865F2;
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 30px rgba(88, 101, 242, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.discord-invite-header {
    margin-bottom: 1rem;
}

.discord-invite-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: iconBounce 1s ease infinite;
}

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

.discord-invite-header h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

.discord-invite-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.25rem 0;
}

.discord-invite-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.discord-invite-benefits li {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.discord-invite-benefits li:last-child {
    border-bottom: none;
}

.benefit-check {
    color: #57F287;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.discord-invite-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-invite-later {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.75rem 1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discord-invite-later:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.discord-invite-join {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: #5865F2;
    color: white;
    border: 2px solid #5865F2;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discord-invite-join:hover {
    background: #4752C4;
    border-color: #4752C4;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.discord-invite-join:active {
    transform: translateY(0);
}

.discord-invite-join .discord-icon {
    flex-shrink: 0;
}

/* Modal responsive */
@media (max-width: 480px) {
    .discord-invite-content {
        padding: 1.5rem;
    }

    .discord-invite-header h2 {
        font-size: 0.85rem;
    }

    .discord-invite-subtitle {
        font-size: 0.5rem;
    }

    .discord-invite-benefits li {
        font-size: 0.5rem;
    }

    .discord-invite-actions {
        flex-direction: column;
    }

    .discord-invite-later,
    .discord-invite-join {
        width: 100%;
        justify-content: center;
    }
}
