:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --primary-purple: #8b5cf6;
    --neon-accent: #2dd4bf;
    --gold-accent: #facc15;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    padding-bottom: 80px;
}

/* HERO SECTION */
.hero-section {
    background: radial-gradient(circle at 50% -20%, #2e1065, var(--bg-dark));
    padding: 60px 20px 40px;
    text-align: center;
}

.beta-tag {
    font-size: 0.7rem;
    background: var(--primary-purple);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

.headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(to right, var(--primary-purple), var(--neon-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-text { color: var(--gold-accent); }

.sub-headline {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* STATUS BOARD */
.status-board {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
    min-width: 100px;
}

.stat-box span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.timer-box span { font-family: monospace; color: var(--neon-accent); }
.stat-box label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* CALL TO ACTION */
.cta-btn {
    background: linear-gradient(135deg, var(--primary-purple), #7c3aed);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s;
}

.cta-btn:hover { transform: scale(1.05); }

/* FILTER BAR */
.control-bar {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.search-wrapper input {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    width: 250px;
}

.genre-tags { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }

.filter-tag {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-tag.active, .filter-tag:hover {
    background: white;
    color: black;
    border-color: white;
}

/* SECTION HEADERS */
.section-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.section-header h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.subtitle { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; margin-left: auto; }

/* GRID */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARDS */
.song-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.song-card:hover { transform: translateY(-5px); border-color: var(--primary-purple); }

/* HALL OF FAME CARD VARIANT */
.song-card.gold-card {
    border: 1px solid var(--gold-accent);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

.song-card.gold-card::before {
    content: "🏆";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

.song-card h3 { margin: 0 0 5px 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.genre-badge { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; margin-left: 8px; }

.stats { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }

.vote-btn, .like-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-btn:hover { background: var(--neon-accent); color: black; }
.like-btn.liked { color: #ec4899; }

.stream-count { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 8px;}

/* MODAL & HELPERS */
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: #1e1e24; padding: 30px; border-radius: 16px; width: 90%; max-width: 400px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; }

input, select { display: block; width: 100%; margin: 10px 0; padding: 12px; box-sizing: border-box; background: #27272a; border: 1px solid #3f3f46; color: white; border-radius: 8px; }
.neon-btn { width: 100%; background: var(--neon-accent); color: black; padding: 12px; border: none; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 10px; }
/* Legal Checkbox Style */
.legal-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}
.legal-check input { width: auto; margin: 0; }

/* Share Button Style */
.share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover {
    background: white;
    color: black;
}
/* NAV TABS */
.nav-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 10px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none; /* For the link */
    transition: all 0.2s;
}

.nav-tab:hover {
    color: white;
}

.nav-tab.active {
    background: var(--primary-purple); /* Or Gold for HOF page */
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* --- BRANDING & FOOTER --- */

/* The Slogan text under the main logo */
.brand-slogan {
    display: block;
    font-size: 1rem;
    color: var(--gold-accent); /* Gold to stand out */
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
    animation: fadeIn 2s ease-in;
}

/* The Footer Container */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px; /* Push it to the bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    color: #666;
}

/* Company Name Highlight */
.company-name {
    color: white;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Contact Link Style */
.footer-link {
    color: var(--primary-purple);
    text-decoration: none;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #444;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--neon-accent);
    text-decoration: underline;
}
/* LOGO STYLES */
.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.app-logo {
    max-width: 350px; /* Limits width on big screens */
    width: 80%;       /* Takes up 80% width on small phones */
    height: auto;     /* Keeps the aspect ratio correct */
    display: block;
    margin: 0 auto;   /* Centers the image perfectly */
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3)); /* Adds a cool purple glow behind it */
}

/* Adjust slogan to fit under the logo nicely */
.brand-slogan {
    margin-top: 15px; 
    font-size: 1rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
/* =========================================
   MOBILE RESPONSIVENESS (Spotify Style)
   ========================================= */

@media (max-width: 768px) {

    /* --- GLOBAL ADJUSTMENTS --- */
    .container { padding: 15px; }
    h1 { font-size: 1.8rem; }
    
    /* --- THE LIBRARY (Spotify List View) --- */
    
    /* 1. Reset the Table to be a Block */
    .track-list, .track-list tbody, .track-list tr, .track-list td {
        display: block;
        width: 100%;
        border: none !important;
    }

    /* 2. Hide the Table Header (Rank, Title, etc.) */
    .track-list thead { display: none; }

    /* 3. Turn Each Row into a "Song Card" */
    .track-list tr {
        background: rgba(255,255,255,0.03);
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 12px;
        position: relative; /* For absolute positioning */
        border: 1px solid rgba(255,255,255,0.05);
    }

    /* 4. The Rank Number (Top Left, Small) */
    .track-list td.rank-num {
        font-size: 0.9rem;
        color: var(--gold-accent);
        padding: 0 0 5px 0;
        font-weight: bold;
    }

    /* 5. Title & Artist (The Main Content) */
    .track-list td:nth-child(2) {
        padding: 0;
    }
    .track-list td:nth-child(2) strong {
        font-size: 1.1rem;
        display: block;
    }
    .track-list td:nth-child(2) div { /* Artist Name */
        font-size: 0.9rem;
        color: #aaa;
    }

    /* 6. The Audio Player (Full Width at Bottom) */
    .track-list audio {
        width: 100% !important;
        max-width: none !important;
        margin-top: 15px;
        height: 35px;
    }

    /* 7. Genre Badge (Absolute Top Right) */
    .track-list td:nth-child(3) {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 0;
        text-align: right;
    }

    /* 8. Metrics (Fire/Heart) - Horizontal Row */
    .track-list td:nth-child(4) {
        display: flex;
        gap: 10px;
        padding: 10px 0 0 0;
        flex-wrap: wrap;
    }
    .metric-pill { font-size: 0.8rem; padding: 3px 8px; }

    /* 9. The Like Button (Floating Action) */
    .track-list td:nth-child(5) {
        margin-top: 10px;
        padding: 0;
        text-align: right;
    }
    .track-list .like-btn, .track-list .neon-btn {
        width: 100%; /* Full width button on mobile is easier to tap */
        padding: 10px;
        margin-top: 10px;
    }

    /* --- ADMIN PANEL (Card View) --- */
    
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table thead { display: none; }
    
    .data-table tr {
        background: #111;
        margin-bottom: 20px;
        border-radius: 8px;
        border: 1px solid #333;
        padding: 15px;
    }
    
    .data-table td {
        padding: 5px 0;
        border: none;
        position: relative;
        padding-left: 0;
    }
    
    /* Add Labels manually for context if needed, but the layout is usually clear */
    .data-table td:last-child {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #222;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }
}