/*
Theme Name: BarutemHits
Theme URI: https://barutem.site
Author: BarutemHits
Description: Plateforme musicale béninoise — Design Dark Premium v5.0
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barutemhits
Tags: music, streaming, dark-mode, purple, premium
*/

/* =========================================================
   DESIGN TOKENS — Apple Music / Spotify Inspired
   ========================================================= */
:root {
    --bg-base:         #070312;
    --bg-elevated:     #0b0719;
    --bg-sidebar:      #080416;
    --bg-sidebar-r:    rgba(8,4,22,0.65);
    --bg-surface:      rgba(255,255,255,0.04);
    --bg-surface-h:    rgba(255,255,255,0.08);
    --bg-surface-2:    rgba(255,255,255,0.06);
    --bg-card:         rgba(255,255,255,0.05);
    --bg-card-h:       rgba(255,255,255,0.09);

    --border:          rgba(255,255,255,0.07);
    --border-h:        rgba(255,255,255,0.12);
    --border-accent:   rgba(139,92,246,0.25);
    --border-strong:   rgba(139,92,246,0.45);

    --purple:          #8b5cf6;
    --purple-dk:       #6d28d9;
    --purple-lt:       #a78bfa;
    --pink:            #ec4899;
    --pink-lt:         #f472b6;
    --yellow:          #eab308;
    --yellow-lt:       #facc15;
    --green:           #22c55e;
    --red:             #ef4444;
    --orange:          #f97316;

    --t1:              #ffffff;
    --t2:              #a1a1aa;
    --t3:              #52525b;
    --t4:              #3f3f46;

    --shadow-sm:       0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:       0 4px 20px rgba(0,0,0,0.45);
    --shadow-lg:       0 8px 40px rgba(0,0,0,0.55);
    --shadow-xl:       0 12px 56px rgba(0,0,0,0.65);
    --shadow-purple:   0 0 28px rgba(139,92,246,0.25);
    --shadow-yellow:   0 0 24px rgba(234,179,8,0.25);
    --shadow-glow:     0 0 60px rgba(139,92,246,0.12);
    --shadow-glow-lg:  0 0 80px rgba(139,92,246,0.20);

    --glass:           rgba(8,4,22,0.82);
    --glass-border:    rgba(139,92,246,0.14);
    --glass-premium:   rgba(10,5,24,0.88);

    --sidebar-w:       244px;
    --sidebar-r-w:     280px;
    --topbar-h:        56px;
    --player-h:        72px;

    --radius-xs:       6px;
    --radius-sm:       8px;
    --radius-md:       12px;
    --radius-lg:       16px;
    --radius-xl:       20px;
    --radius-2xl:      24px;
    --radius-full:     9999px;

    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display:    'Outfit', 'Inter', -apple-system, sans-serif;
    --mono:            'SF Mono', 'Fira Code', monospace;

    --ease-out-expo:   cubic-bezier(0.19, 1, 0.22, 1);
    --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   BASE RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--t1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(139,92,246,0.35);
    color: white;
    text-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}

/* =========================================================
   APP SHELL — Premium Layout Engine
   ========================================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%,  rgba(139,92,246,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 90%, rgba(236,72,153,0.03) 0%, transparent 50%),
        var(--bg-base);
    position: relative;
}

@media (min-width: 1280px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    .app-layout {
        height: 100vh;
        overflow: hidden;
    }
}

/* =========================================================
   LEFT SIDEBAR — Apple Music Inspired
   ========================================================= */
.sidebar-left {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 30;
}

@media (min-width: 1280px) {
    .sidebar-left {
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
    }
    .sidebar-left::-webkit-scrollbar { display: none; }
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 20px 20px 12px;
    flex-shrink: 0;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-smooth);
}

.sidebar-logo a:hover .sidebar-logo-img {
    transform: scale(1.05);
}

.sidebar-logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.sidebar-logo-text span {
    display: inline-block;
}

/* Sidebar Search */
.sidebar-search {
    padding: 0 16px 16px;
    flex-shrink: 0;
}

.sidebar-search .search-field {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 36px;
    font-size: 0.8125rem;
    color: var(--t1);
    outline: none;
    transition: all 0.2s var(--ease-smooth);
}

.sidebar-search .search-field:focus {
    background: var(--bg-surface-h);
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */
.sidebar-section-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--t3);
    padding: 0 12px;
    margin-bottom: 6px;
    display: block;
}

.sidebar-nav-group {
    padding: 0 12px;
    flex-shrink: 0;
}

.sidebar-nav-item svg,
.sidebar-nav-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-smooth);
}

.sidebar-nav-item:hover svg,
.sidebar-nav-item:hover i {
    transform: scale(1.1);
}

/* Sidebar CTA */
.sidebar-cta {
    padding: 0 16px 8px;
    flex-shrink: 0;
}

.sidebar-cta .cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.75rem;
    transition: all 0.2s var(--ease-smooth);
}

.cta-btn-gold {
    background: linear-gradient(135deg, var(--yellow-lt), var(--yellow));
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(234,179,8,0.2);
}

.cta-btn-gold:hover {
    box-shadow: 0 6px 24px rgba(234,179,8,0.35);
    transform: translateY(-1px);
}

.cta-btn-ghost {
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.2);
    color: var(--purple-lt);
}

.cta-btn-ghost:hover {
    background: rgba(139,92,246,0.2);
}

/* Sidebar User Zone */
.sidebar-user {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-lt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Spacer */
.sidebar-spacer {
    flex: 1;
    min-height: 8px;
}

/* =========================================================
   MAIN AREA
   ========================================================= */
.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1280px) {
    .main-area {
        height: 100vh;
        overflow: hidden;
    }
}

/* =========================================================
   TOP BAR — Premium
   ========================================================= */
.topbar {
    flex-shrink: 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: rgba(8,4,22,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Topbar nav buttons */
.topbar-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--t2);
    transition: all 0.2s var(--ease-smooth);
    border: 1px solid rgba(255,255,255,0.06);
}

.topbar-nav-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--t1);
    border-color: rgba(255,255,255,0.12);
}

.topbar-nav-btn:active {
    transform: scale(0.92);
}

.topbar-nav-btn svg,
.topbar-nav-btn i {
    width: 16px;
    height: 16px;
}

/* Topbar search */
.topbar-search {
    flex: 1;
    max-width: 400px;
}

.topbar-search .search-field {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px 8px 40px;
    font-size: 0.8125rem;
    color: var(--t1);
    outline: none;
    transition: all 0.2s var(--ease-smooth);
}

.topbar-search .search-field:focus {
    background: var(--bg-surface-h);
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.08);
}

/* Topbar user button */
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 3px 12px 3px 3px;
    border-radius: var(--radius-full);
    transition: all 0.2s var(--ease-smooth);
}

.topbar-user-btn:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-h);
}

.topbar-user-btn:active {
    transform: scale(0.97);
}

.topbar-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Topbar auth button */
.topbar-auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #111;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 800;
    transition: all 0.2s var(--ease-smooth);
}

.topbar-auth-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.topbar-auth-btn:active {
    transform: scale(0.97);
}

.topbar-auth-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t2);
    padding: 6px 12px;
    transition: color 0.2s;
}

.topbar-auth-link:hover {
    color: var(--t1);
}

/* =========================================================
   CONTENT ROW
   ========================================================= */
.content-row {
    flex: 1;
    display: flex;
    min-height: 0;
}

@media (min-width: 1280px) {
    .content-row {
        overflow: hidden;
        height: calc(100vh - var(--topbar-h));
    }
}

/* =========================================================
   MAIN SCROLLABLE CONTENT
   ========================================================= */
#myhits-main {
    flex: 1;
    min-width: 0;
    padding: 24px 28px calc(var(--player-h) + 36px);
}

@media (min-width: 1280px) {
    #myhits-main {
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(139,92,246,0.2) transparent;
    }
    #myhits-main::-webkit-scrollbar { width: 4px; }
    #myhits-main::-webkit-scrollbar-track { background: transparent; }
    #myhits-main::-webkit-scrollbar-thumb {
        background: rgba(139,92,246,0.2);
        border-radius: 4px;
        transition: background 0.2s;
    }
    #myhits-main::-webkit-scrollbar-thumb:hover {
        background: rgba(139,92,246,0.4);
    }
}

@media (max-width: 1279px) {
    #myhits-main {
        padding: 16px 16px calc(var(--player-h) + 24px);
    }
}

/* =========================================================
   RIGHT SIDEBAR
   ========================================================= */
.sidebar-right {
    width: var(--sidebar-r-w);
    flex-shrink: 0;
    background: var(--bg-sidebar-r);
    border-left: 1px solid var(--border);
    padding: 24px 16px calc(var(--player-h) + 16px);
    display: none;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.12) transparent;
}

.sidebar-right::-webkit-scrollbar { width: 3px; }
.sidebar-right::-webkit-scrollbar-track { background: transparent; }
.sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,0.12);
    border-radius: 3px;
}

.sidebar-right::-webkit-scrollbar-thumb:hover {
    background: rgba(139,92,246,0.25);
}

@media (min-width: 1280px) {
    .sidebar-right {
        display: flex;
        height: calc(100vh - var(--topbar-h));
    }
}

/* Right sidebar section header */
.sidebar-right-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sidebar-right-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--t1);
}

.sidebar-right-link {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-lt);
    transition: color 0.2s;
}

.sidebar-right-link:hover {
    color: var(--t1);
}

/* =========================================================
   SIDEBAR NAV ITEMS (also used in mobile drawer)
   ========================================================= */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t2);
    transition: all 0.18s var(--ease-smooth);
    position: relative;
    white-space: nowrap;
}

.sidebar-nav-item:hover {
    background: var(--bg-surface);
    color: var(--t1);
}

.sidebar-nav-item:active {
    transform: scale(0.97);
}

.sidebar-nav-item.active {
    color: var(--t1);
    background: rgba(139,92,246,0.1);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--purple);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.sidebar-nav-item.active svg { color: var(--purple-lt); }

/* =========================================================
   GLASS EFFECTS
   ========================================================= */
.glass-panel {
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-smooth);
}

.glass-panel:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-purple);
}

.glass-premium {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =========================================================
   PREMIUM BUTTONS
   ========================================================= */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-premium:hover::after { opacity: 1; }
.btn-premium:active { transform: scale(0.96); }

.btn-premium-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-dk));
    color: white;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

.btn-premium-primary:hover {
    box-shadow: 0 6px 30px rgba(139,92,246,0.45);
    transform: translateY(-1px);
}

.btn-premium-gold {
    background: linear-gradient(135deg, var(--yellow-lt), var(--yellow));
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(234,179,8,0.3);
}

.btn-premium-gold:hover {
    box-shadow: 0 6px 30px rgba(234,179,8,0.45);
    transform: translateY(-1px);
}

/* =========================================================
   TAG PILLS
   ========================================================= */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.15);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #c4b5fd;
    transition: all 0.2s var(--ease-smooth);
    cursor: pointer;
    white-space: nowrap;
}

.tag-pill:hover {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.35);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139,92,246,0.2);
}

/* =========================================================
   HOVER UTILITIES
   ========================================================= */
.hover-lift {
    transition: all 0.3s var(--ease-smooth);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hover-glow:hover {
    box-shadow: var(--shadow-purple);
    border-color: rgba(139,92,246,0.35) !important;
}

.hover-scale {
    transition: transform 0.25s var(--ease-smooth);
}

.hover-scale:hover { transform: scale(1.04); }

.hover-scale:active { transform: scale(0.96); }

/* =========================================================
   GRADIENT TEXT
   ========================================================= */
.text-gradient-gold {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-v2 {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   CARD HOVER EFFECTS
   ========================================================= */
.card-hover-reveal {
    position: relative;
}

.card-hover-reveal .play-btn {
    opacity: 0;
    transform: scale(0.82) translateY(8px);
    transition: all 0.3s var(--ease-spring);
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
}

.card-hover-reveal:hover .play-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.card-hover-zoom {
    overflow: hidden;
}

.card-hover-zoom img {
    transition: transform 0.6s var(--ease-smooth);
}

.card-hover-zoom:hover img {
    transform: scale(1.08);
}

/* =========================================================
   CARDS — Premium Music Card
   ========================================================= */
.music-card {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 12px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.music-card:hover {
    background: var(--bg-card-h);
    border-color: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.music-card-cover {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 10px;
    background: var(--bg-surface-2);
}

.music-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

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

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

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

.music-card-cover .play-btn-circle {
    width: 44px;
    height: 44px;
    background: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
    transform: translateY(10px) scale(0.85);
    transition: all 0.3s var(--ease-spring);
}

.music-card:hover .play-btn-circle {
    transform: translateY(0) scale(1);
}

.music-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card-artist {
    font-size: 0.6875rem;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* =========================================================
   PLAYLIST ROWS — Track listing rows
   ========================================================= */
.playlist-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s var(--ease-smooth);
}

.playlist-row:hover {
    background: var(--bg-surface);
}

.playlist-row:hover .playlist-row-num  { display: none; }
.playlist-row:hover .playlist-row-play { display: flex; }

.playlist-row-play {
    display: none;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   PLAYED ITEMS — Sidebar recent tracks
   ========================================================= */
.played-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s var(--ease-smooth);
}

.played-item:hover {
    background: rgba(255,255,255,0.04);
}

.played-item-cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.played-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.played-item:hover .played-item-cover img {
    transform: scale(1.1);
}

.played-item-cover .play-indicator {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.played-item:hover .play-indicator {
    opacity: 1;
}

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

.played-item-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.played-item:hover .played-item-title {
    color: var(--purple-lt);
}

.played-item-artist {
    font-size: 0.6875rem;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.played-item-time {
    font-size: 0.625rem;
    color: var(--t3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================================
   TRENDING HERO — Featured content hero
   ========================================================= */
/* =========================================================
   HERO CAROUSEL — Top 10 auto-slider
   ========================================================= */
/* ---- Carousel wrapper ---- */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    background: var(--bg-card);
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .hero-carousel { min-height: 420px; }
}

@media (min-width: 1280px) {
    .hero-carousel { min-height: 520px; }
}

.hero-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* ---- Slide ---- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    min-height: inherit;
    display: flex;
    flex-direction: column;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background — blurred, very dark */
.hero-slide-bg { position: absolute; inset: 0; }

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) blur(3px);
    transform: scale(1.06);
    transition: transform 8s linear;
}

.hero-slide.active .hero-slide-img {
    transform: scale(1.0);
}

.hero-slide-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7,3,18,0.97) 0%, rgba(7,3,18,0.70) 55%, rgba(7,3,18,0.25) 100%),
        linear-gradient(to top,   rgba(7,3,18,0.65) 0%, transparent 45%);
    pointer-events: none;
}

/* ---- Oversized rank watermark ---- */
.hero-slide-number {
    position: absolute;
    top: 50%;
    left: -0.04em;
    transform: translateY(-55%);
    font-size: 14rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.055);
    z-index: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
    font-family: var(--font-display);
    user-select: none;
}

@media (min-width: 768px)  { .hero-slide-number { font-size: 19rem; } }
@media (min-width: 1280px) { .hero-slide-number { font-size: 24rem; } }

/* ---- Two-column inner ---- */
.hero-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 24px 20px 40px;
    gap: 16px;
}

@media (min-width: 768px)  { .hero-slide-inner { padding: 36px 36px 48px; gap: 32px; } }
@media (min-width: 1280px) { .hero-slide-inner { padding: 52px 52px 60px; gap: 52px; } }

/* ---- Left: content ---- */
.hero-slide-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hero-slide-rank {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a78bfa;
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.22);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.hero-slide-sep { display: none; }

.hero-slide-plays {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-slide-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 0.88;
    color: var(--t1);
    margin-bottom: 12px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (min-width: 768px)  { .hero-slide-title { font-size: 3rem;   margin-bottom: 16px; } }
@media (min-width: 1280px) { .hero-slide-title { font-size: 4.25rem; } }

.hero-slide-artist {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t3);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

@media (min-width: 768px)  { .hero-slide-artist { font-size: 1rem; margin-bottom: 32px; } }

.hero-slide-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Play button — gradient purple → pink */
.hero-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(139,92,246,0.38);
    letter-spacing: 0.01em;
}

.hero-btn-play:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(139,92,246,0.52);
}

.hero-btn-play:active { transform: scale(0.97); }

/* Profile button — minimal glass */
.hero-btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t2);
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s var(--ease-smooth);
}

.hero-btn-profile:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: var(--t1);
}

/* ---- Right: floating cover art ---- */
.hero-slide-cover {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: none;
    position: relative;
}

@media (min-width: 540px)  { .hero-slide-cover { display: block; width: 160px; height: 160px; } }
@media (min-width: 768px)  { .hero-slide-cover { width: 220px; height: 220px; } }
@media (min-width: 1280px) { .hero-slide-cover { width: 300px; height: 300px; } }

.hero-slide-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow:
        0 24px 64px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.07);
    transition: transform 0.6s var(--ease-smooth);
}

.hero-slide.active .hero-slide-cover-img {
    transform: translateY(-6px) rotate(-1.5deg);
}

/* Badge — hidden (replaced by meta + cover) */
.hero-slide-badge { display: none; }

/* ---- Dots — centered ---- */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
    padding: 0;
    flex-shrink: 0;
}

.hero-dot:hover { background: rgba(255,255,255,0.45); }

.hero-dot.active {
    width: 28px;
    border-radius: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

/* ---- Arrows ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(7,3,18,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--t1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s var(--ease-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-carousel:hover .hero-arrow { opacity: 1; }

.hero-arrow:hover {
    background: rgba(139,92,246,0.28);
    border-color: rgba(139,92,246,0.4);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }

/* ---- Mobile overrides ---- */
@media (max-width: 539px) {
    .hero-arrow  { display: none; }
    .hero-carousel { min-height: 280px; border-radius: var(--radius-md); }
    .hero-slide-inner { padding: 20px 16px 38px; }
    .hero-slide-number { font-size: 9rem; }
    .hero-slide-title  { font-size: 1.75rem; }
    .hero-slide-artist { font-size: 0.8125rem; margin-bottom: 16px; }
    .hero-btn-play     { padding: 10px 20px; font-size: 0.8125rem; }
    .hero-btn-profile  { padding: 10px 16px; font-size: 0.75rem; }
    .hero-slide-meta   { margin-bottom: 10px; }
    .hero-dots         { bottom: 12px; gap: 5px; }
    .hero-dot          { width: 5px; height: 5px; }
    .hero-dot.active   { width: 20px; }
}

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(8,4,22,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

@media (max-width: 1279px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    color: var(--t3);
    transition: color 0.2s;
    font-size: 0.625rem;
    font-weight: 700;
}

.mobile-bottom-nav a:hover {
    color: var(--t1);
}

.mobile-bottom-nav a.active {
    color: var(--purple-lt);
}

.mobile-bottom-nav a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.mobile-bottom-nav a:hover svg {
    transform: scale(1.1);
}

.mobile-bottom-nav a span {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =========================================================
   PLAYER ACTIVE STATE
   ========================================================= */
body.player-active #myhits-main {
    padding-bottom: calc(var(--player-h) + 40px);
}

@media (max-width: 1279px) {
    body.player-active #myhits-main {
        padding-bottom: calc(var(--player-h) + 28px);
    }
}

body.player-active .mobile-bottom-nav {
    bottom: var(--player-h);
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.feature-card {
    background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(236,72,153,0.04) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-strong);
}

/* =========================================================
   STATS TICKER
   ========================================================= */
.stats-ticker-item {
    padding: 8px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
    flex-shrink: 0;
}

.stats-ticker-item:last-child { border-right: none; }

/* =========================================================
   BADGES
   ========================================================= */
.badge-neon {
    box-shadow: 0 0 12px rgba(139,92,246,0.35);
    border: 1px solid rgba(139,92,246,0.4);
}

.badge-neon-gold {
    box-shadow: 0 0 12px rgba(234,179,8,0.35);
    border: 1px solid rgba(234,179,8,0.4);
}

/* =========================================================
   SCROLLBAR UTILITIES
   ========================================================= */
.scrollbar-hide::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar { display: none; }

.scrollbar-hide,
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    color: var(--t3);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--t2);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--purple-lt);
}

.breadcrumb-sep {
    color: var(--t4);
    font-size: 0.625rem;
}

/* =========================================================
   EQUALIZER ANIMATION — For player
   ========================================================= */
@keyframes equalizer {
    0%, 100% { height: 4px; }
    20% { height: 16px; }
    40% { height: 8px; }
    60% { height: 20px; }
    80% { height: 10px; }
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.equalizer-bar {
    width: 3px;
    background: var(--purple);
    border-radius: 2px;
    animation: equalizer 1.2s ease-in-out infinite;
    transform-origin: bottom;
}

.equalizer-bar:nth-child(1) { animation-delay: 0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.4s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(5) { animation-delay: 0.3s; }

/* =========================================================
   USER DROPDOWN
   ========================================================= */
#user-dropdown {
    transform-origin: top right;
    transition: opacity 0.15s ease, transform 0.15s var(--ease-smooth);
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
#mobile-nav-drawer {
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease-smooth);
}

#mobile-nav-drawer.open {
    transform: translateX(0);
}

#mobile-nav-overlay {
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

#mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   PWA INSTALL CONTAINER
   ========================================================= */
#pwa-install-container {
    position: relative;
    overflow: hidden;
}

#pwa-install-container::before {
    content: '';
    position: absolute;
    right: -24px;
    top: -24px;
    width: 120px;
    height: 120px;
    background: rgba(139,92,246,0.08);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================================
   GUEST SUBSCRIPTION POPUP
   ========================================================= */
#guest-sub-popup {
    transition: all 0.5s var(--ease-smooth);
    z-index: 9999;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse-slow {
    0%, 100% { opacity: 0.09; transform: scale(1); }
    50%       { opacity: 0.25; transform: scale(1.05); }
}

.animate-pulse-slow { animation: pulse-slow 8s ease-in-out infinite; }

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

.animate-bounce-subtle { animation: bounce-subtle 3s ease-in-out infinite; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-ticker {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

.animate-ticker:hover { animation-play-state: paused; }

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s var(--ease-smooth) forwards;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.2); }
    50%       { box-shadow: 0 0 40px rgba(139,92,246,0.4); }
}

.animate-glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Alpine.js slideshow transitions */
.slide-enter-active {
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.slide-enter-from { opacity: 0; transform: scale(1.07); }
.slide-enter-to   { opacity: 1; transform: scale(1); }

.slide-exit-active {
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.slide-exit-from { opacity: 1; transform: scale(1); }
.slide-exit-to   { opacity: 0; transform: scale(0.95); }

.stagger-delay-1 { transition-delay: 200ms; }
.stagger-delay-2 { transition-delay: 400ms; }
.stagger-delay-3 { transition-delay: 600ms; }

.slide-enter-from .stagger-item { opacity: 0; transform: translateY(28px); }
.slide-enter-to   .stagger-item { opacity: 1; transform: translateY(0); }

@keyframes progress-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

.now-playing-spin {
    animation: now-playing-spin 4s linear infinite;
}

/* =========================================================
   NATIVE AD
   ========================================================= */
.native-ad-container {
    background: linear-gradient(135deg, rgba(20,10,45,0.7), rgba(40,20,80,0.7));
    border: 1px dashed rgba(139,92,246,0.12);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.native-ad-label {
    position: absolute;
    top: 0; right: 0;
    background: rgba(139,92,246,0.15);
    font-size: 0.5625rem;
    padding: 2px 7px;
    border-bottom-left-radius: 6px;
    color: rgba(167,139,250,0.6);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* =========================================================
   CURRENCY SWITCHER
   ========================================================= */
.currency-switcher-wrapper select,
.currency-switcher-wrapper .wmc-currency-wrapper {
    background: rgba(255,255,255,0.04) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    outline: none !important;
    cursor: pointer;
    transition: border-color 0.2s;
}

.currency-switcher-wrapper select:hover {
    border-color: rgba(255,255,255,0.15) !important;
}

.currency-switcher-wrapper select option {
    background: #080416;
    color: white;
}

/* =========================================================
   WOOCOMMERCE OVERRIDES
   ========================================================= */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#place_order { display: none !important; }

.woocommerce-checkout-payment { display: block !important; }

.woocommerce-ordering select {
    background: rgba(28,14,56,0.8);
    color: white;
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 0.5rem;
    outline: none;
}

/* =========================================================
   FORM ELEMENTS — Premium Styling
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--t1);
    outline: none;
    transition: all 0.2s var(--ease-smooth);
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(139,92,246,0.35);
    background: var(--bg-surface-h);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.08);
}

/* =========================================================
   COVER / ALBUM ART — Rounded variant
   ========================================================= */
.cover-art {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.cover-art:hover {
    box-shadow: var(--shadow-lg), var(--shadow-purple);
}

/* =========================================================
   SKELETON LOADING
   ========================================================= */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    border-radius: var(--radius-xs);
}

/* =========================================================
   NOTIFICATION DOT
   ========================================================= */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px rgba(236,72,153,0.5);
}

/* =========================================================
   PROGRESS BAR — Premium
   ========================================================= */
.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: height 0.15s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-lt));
    border-radius: 4px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.15s;
}

.progress-bar:hover .progress-bar-fill::after {
    opacity: 1;
}

/* =========================================================
   VOLUME SLIDER
   ========================================================= */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* =========================================================
   PLAYER BAR — Sticky Bottom Player (from template)
   ========================================================= */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-h);
    background: rgba(10,5,24,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

.player-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    max-width: 300px;
}

.player-bar-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.player-bar-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-bar-info {
    min-width: 0;
}

.player-bar-title {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar-artist {
    font-size: 0.6875rem;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 600px;
}

.player-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-bar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t2);
    transition: all 0.15s var(--ease-smooth);
    border-radius: 50%;
}

.player-bar-btn:hover {
    color: var(--t1);
    transform: scale(1.1);
}

.player-bar-btn:active {
    transform: scale(0.92);
}

.player-bar-btn-play {
    width: 40px;
    height: 40px;
    background: white;
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.player-bar-btn-play:hover {
    transform: scale(1.06);
    background: #f0f0f0;
}

.player-bar-btn-play:active {
    transform: scale(0.94);
}

.player-bar-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-bar-time {
    font-size: 0.625rem;
    color: var(--t3);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 36px;
}

.player-bar-progress .progress-bar {
    flex: 1;
}

.player-bar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: 300px;
}

@media (max-width: 767px) {
    .player-bar-left {
        max-width: none;
        flex: 0 1 auto;
    }

    .player-bar-center {
        flex: 0 1 auto;
    }

    .player-bar-right {
        display: none;
    }

    .player-bar {
        padding: 0 12px;
        gap: 10px;
    }

    .player-bar-progress {
        display: none;
    }
}

/* =========================================================
   PAGE COMPONENTS — Shared across all templates
   ========================================================= */

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--t3);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-header-breadcrumb a {
    color: var(--t2);
    transition: color 0.2s;
}

.page-header-breadcrumb a:hover {
    color: var(--t1);
}

.page-header-breadcrumb .sep {
    color: var(--t4);
    font-size: 0.75rem;
}

.page-header-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .page-header-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--t1);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--t2);
    margin-top: 4px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--t1);
}

.section-link {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-lt);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--t1);
}

/* Stat Card */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.2s var(--ease-smooth);
}

.stat-card:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.625rem;
    color: var(--t2);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--t2);
    white-space: nowrap;
    transition: all 0.2s var(--ease-smooth);
    cursor: pointer;
}

.filter-tab:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-h);
    color: var(--t1);
}

.filter-tab.active {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.3);
    color: var(--purple-lt);
}

.filter-tab svg,
.filter-tab i {
    width: 14px;
    height: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    color: var(--t4);
    margin: 0 auto 20px;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--t1);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--t2);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.2s var(--ease-smooth);
}

.pagination a {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--t2);
}

.pagination a:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-h);
    color: var(--t1);
}

.pagination .current {
    background: var(--purple);
    color: white;
    border: 1px solid var(--purple);
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.pagination .dots {
    color: var(--t3);
    background: none;
    border: none;
    min-width: auto;
}

/* Search Result Card */
.search-result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-card:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-result-card .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-result-card .result-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.search-result-card .result-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-card .result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.search-result-card:hover .result-thumb img {
    transform: scale(1.08);
}

.search-result-card .result-title {
    font-size: 1.0625rem;
    font-weight: 900;
    color: var(--t1);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.search-result-card:hover .result-title {
    color: var(--yellow);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.badge-purple {
    background: rgba(139,92,246,0.12);
    color: var(--purple-lt);
}

.badge-yellow {
    background: rgba(234,179,8,0.12);
    color: var(--yellow-lt);
}

.badge-pink {
    background: rgba(236,72,153,0.12);
    color: var(--pink-lt);
}

.badge-green {
    background: rgba(34,197,94,0.12);
    color: var(--green);
}

.badge-gold {
    background: var(--yellow);
    color: #1a1a1a;
}

/* Alert Banner */
.alert-banner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}

.alert-banner::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to left, rgba(139,92,246,0.08), transparent);
    pointer-events: none;
}

.alert-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .alert-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.alert-banner-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--t1);
    margin-bottom: 4px;
}

.alert-banner-text {
    font-size: 0.875rem;
    color: var(--t2);
}

/* Metric (large number + label) */
.metric {
    text-align: center;
    padding: 12px 24px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    transition: transform 0.3s var(--ease-smooth);
}

.metric:hover .metric-value {
    transform: scale(1.1);
}

.metric-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--t3);
    margin-top: 4px;
    display: block;
    transition: color 0.2s;
}

.metric:hover .metric-label {
    color: var(--t2);
}

/* Content Card (generic) */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s var(--ease-smooth);
}

.content-card:hover {
    background: var(--bg-surface-h);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Avatar Stack */
.avatar-stack {
    display: flex;
}

.avatar-stack-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-stack-item:not(:first-child) {
    margin-left: -12px;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive padding for main area */
@media (max-width: 639px) {
    #myhits-main {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Mobile bottom nav adjustment when player is active */
@media (max-width: 1279px) {
    body.player-active .mobile-bottom-nav {
        bottom: var(--player-h);
    }

    body.player-active #myhits-main {
        padding-bottom: calc(var(--player-h) + 72px + 16px);
    }
}
