/* ============================================
   VIP MUSIC - Premium White & Gold Theme
   Full redesign with glassmorphism + polish
============================================ */

:root {
    --gold: #c9a227;
    --gold-light: #e8c547;
    --gold-dark: #a6851f;
    --white: #ffffff;
    --off-white: #f8f6f1;
    --cream: #f3efe6;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: rgba(201,162,39,0.18);
    --shadow: 0 4px 24px rgba(201,162,39,0.08);
    --shadow-lg: 0 16px 48px rgba(201,162,39,0.14);
    --radius: 16px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass: rgba(255,255,255,0.72);
    --glass-border: rgba(255,255,255,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    /* Subtle mesh gradient background */
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(201,162,39,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(232,197,71,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(243,239,230,0.8) 0%, var(--off-white) 100%);
    background-attachment: fixed;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

/* ===== TOP NAV - Glass ===== */
.top-nav {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 9px 18px;
    gap: 10px;
    width: 340px;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,162,39,0.12);
    background: #fff;
}

.search-box svg { color: var(--gold); flex-shrink: 0; }

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: var(--text);
}

.search-box input::placeholder { color: #aaa; }

.admin-link {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    padding: 8px;
    border-radius: 50%;
}

.admin-link:hover {
    color: var(--gold);
    background: rgba(201,162,39,0.1);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1508 0%, #2a2210 40%, #1a1508 100%);
    padding: 56px 28px 48px;
    text-align: center;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5.5vw, 46px);
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-title .gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: #b8a88a;
    font-size: 15px;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 220px;
    background: radial-gradient(ellipse, rgba(201,162,39,0.22) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== FEATURED SONG BANNER ===== */
.featured-section {
    padding: 0 28px;
    max-width: 1100px;
    margin: -36px auto 0;
    position: relative;
    z-index: 5;
}

.featured-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.4) inset;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,162,39,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 56px rgba(201,162,39,0.2);
    border-color: var(--gold);
}

.featured-art {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 2px rgba(201,162,39,0.3);
}

.featured-art-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0e6d0, #e8d9b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gold);
    flex-shrink: 0;
}

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

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-artist {
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 500;
    margin-bottom: 6px;
}

.featured-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.featured-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(201,162,39,0.4);
    transition: transform 0.25s;
}

.featured-card:hover .featured-play {
    transform: scale(1.1);
}

/* ===== SECTIONS ===== */
.section {
    padding: 40px 28px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}

.section-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(201,162,39,0.3);
}

/* ===== SONGS GRID - Glassmorphism ===== */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 22px;
}

.song-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.song-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold);
    border-color: var(--gold);
}

.song-thumb-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream);
}

.song-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.song-card:hover .song-thumb {
    transform: scale(1.08);
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0e6d0, #e8d9b0);
    color: var(--gold);
    font-size: 48px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
}

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

.play-overlay svg {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    padding: 13px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.25s;
}

.song-card:hover .play-overlay svg {
    transform: scale(1.08);
}

.song-meta {
    padding: 14px 14px 16px;
}

.song-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.song-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-desc {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-stats {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gold-dark);
    font-weight: 500;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0.45;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    margin-bottom: 8px;
}

/* ===== MINI PLAYER - Premium Glass ===== */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201,162,39,0.2);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    z-index: 300;
    padding: 12px 20px;
}

.mini-player-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mini-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--cream);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mini-info {
    min-width: 120px;
    max-width: 200px;
}

.mini-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 11px;
    color: var(--text-muted);
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ctrl-btn:hover {
    background: rgba(201,162,39,0.12);
    color: var(--gold);
}

.play-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: #fff !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(201,162,39,0.45);
}

.mini-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    min-width: 0;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(201,162,39,0.4);
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-nav { padding: 10px 16px; }
    .search-box { display: none; }
    .hero { padding: 40px 20px 36px; }
    .section { padding: 28px 16px; }
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 14px;
    }
    .featured-section { padding: 0 16px; }
    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    .featured-art, .featured-art-placeholder {
        width: 140px;
        height: 140px;
    }
    .featured-play { display: none; }
    .mini-player-inner { flex-wrap: wrap; gap: 8px; }
    .mini-info { max-width: 120px; }
    .mini-progress { order: 10; width: 100%; flex: none; }
}

@media (max-width: 480px) {
    .songs-grid { grid-template-columns: repeat(2, 1fr); }
}
