/* ============================================
   ChaupalBeat - Modern Music Streaming UI
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-main: #000000;
    --bg-sidebar: #000000;
    --bg-card: #000000;
    --bg-card-hover: #111111;
    --bg-player: #000000;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #eb0029;
    --accent-glow: transparent;
    --border: #222222;
    --border-hover: #333333;
    --hover: rgba(255, 255, 255, 0.05);
    --glass-bg: #000000;
    --glass-border: #222222;
    --glass-shadow: none;
    --player-border: #222222;
    --slider-bg: #333333;
    --slider-fill: #eb0029;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s ease;
    --transition-spring: 0.3s ease;
}

/* ---------- SCROLLBAR (Tidal Style) ---------- */
::-webkit-scrollbar {
    width: 14px;
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: transparent;
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
}
*:hover::-webkit-scrollbar-thumb {
    background-color: #333333;
    border: 4px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #555555;
    border: 4px solid #000000;
}

/* ---------- RESET & BASICS ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Theme Utility Overrides */
.text-white { color: var(--text-primary) !important; }
.text-dark { color: var(--bg-main) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-bg-dark { background-color: var(--bg-main) !important; color: var(--text-primary) !important; }
.btn-light { background-color: var(--text-primary) !important; color: var(--bg-main) !important; }
.btn-dark { background-color: var(--glass-bg) !important; color: var(--text-primary) !important; border-color: var(--border) !important; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-main);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader img {
    width: 120px;
    animation: preloaderPulse 1.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    transition: background-color 0.3s, transform 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
}

.logo-container {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: auto;
    width: 100%;
    max-width: 140px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: color var(--transition-fast);
    position: relative;
    background: transparent;
    text-decoration: none;
}

.nav-menu .nav-link:hover {
    color: var(--text-primary) !important;
    background: transparent;
}

.nav-menu .nav-link.active {
    color: var(--accent) !important;
    background: transparent;
    font-weight: 600;
}

.nav-menu .nav-link.active::before {
    display: none;
}

.nav-menu .nav-link svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nav-menu .nav-link:hover svg {
    transform: scale(1.1);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 20px;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    transition: padding-bottom var(--transition-normal);
}

.main-content.has-player {
    padding-bottom: 110px;
}

.hover-scale {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}
.hover-white:hover {
    color: white !important;
}

/* ---------- TOP STICKY BAR ---------- */
.top-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

/* ---------- HEADER ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    gap: 20px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-container svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    fill: var(--text-secondary);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 500px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--hover);
}

.suggestion-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.suggestion-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-btn {
    padding: 10px 20px;
    border-radius: 500px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.login-btn {
    color: var(--text-primary);
    background: transparent;
}

.login-btn:hover {
    background: var(--hover);
}

.signup-btn {
    background: var(--text-primary);
    color: var(--bg-main);
}

.signup-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

/* ---------- MOOD PILLS ---------- */
.mood-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mood-pills::-webkit-scrollbar { display: none; }

.mood-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition-fast);
    position: relative;
}

.mood-pill:hover {
    color: var(--text-primary);
}

.mood-pill.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
}

/* ---------- CONTENT AREA ---------- */
.content-padding {
    padding: 0 32px 120px 32px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 500px;
    letter-spacing: 0.5px;
}

.section-see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.section-see-all:hover {
    color: var(--text-primary);
}

/* ---------- HERO BANNER ---------- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    cursor: pointer;
    transition: none;
}

.hero-banner:hover {
    transform: none;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: filter 0.4s;
}

.hero-banner:hover .hero-bg {
    filter: brightness(0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-tag {
    background: var(--accent);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 500px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-play-btn {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    padding: 14px 32px;
    border-radius: 500px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.hero-play-btn:hover {
    background: #e6e6e6;
    transform: scale(1.02);
}

.hero-play-btn svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* ---------- ARTIST BUBBLES ---------- */
.artist-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding: 8px 0 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.artist-scroll-container::-webkit-scrollbar { display: none; }

.artist-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 140px;
    cursor: pointer;
    scroll-snap-align: start;
}

.artist-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    transition: filter var(--transition-smooth);
}

.artist-bubble:hover .artist-img {
    filter: brightness(0.7);
}

.artist-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 140px;
}

/* ---------- CARD GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* ---------- CARD ---------- */
.card {
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    background: transparent;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}

.card:hover img {
    filter: brightness(0.6);
}

.card-play-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateY(8px);
}

.card:hover .card-play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-play-overlay svg {
    fill: #000000;
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.card-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- SKELETON LOADER ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    width: 80%;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

/* ---------- LOADER ---------- */
.loader {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ---------- OFFER BANNER ---------- */
.offer-banner {
    display: block;
    text-decoration: none;
    margin: 24px 0;
}

.offer-banner-inner {
    background: linear-gradient(135deg, rgba(235, 0, 41, 0.1) 0%, rgba(235, 0, 41, 0.02) 100%);
    border: 1px solid rgba(235, 0, 41, 0.3);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.offer-banner:hover .offer-banner-inner {
    background: linear-gradient(135deg, rgba(235, 0, 41, 0.15) 0%, rgba(235, 0, 41, 0.05) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.offer-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}

.offer-cta {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- PLAYER BAR (Tidal Style) ---------- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 90px;
    background: var(--bg-player);
    border-top: 1px solid var(--border);
    border-radius: 0;
    display: none;
    z-index: 2147483647;
    grid-template-columns: minmax(200px, 1fr) minmax(400px, 2fr) minmax(200px, 1fr);
    align-items: center;
    padding: 0 24px;
    box-shadow: none;
    transform: none;
}

.player-bar.active {
    display: grid;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-right: 16px;
}

.player-left img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.track-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.track-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.track-artist:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.control-btn.active {
    color: var(--text-primary);
}

.play-btn {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    color: var(--bg-main);
    border-radius: 50%;
}

.play-btn:hover {
    transform: scale(1.06);
    color: var(--bg-main);
}

.play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 1px;
}

.play-btn.playing svg {
    margin-left: 0;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.progress-container span {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    cursor: pointer;
    position: relative;
    border-radius: 1px;
}

.progress-bar:hover {
    height: 4px;
}

.progress-bar:hover .progress-fill {
    background: var(--accent);
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1px;
}

.progress-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.player-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
}

.player-right .control-btn svg {
    width: 16px;
    height: 16px;
}

.volume-bar {
    width: 80px;
    height: 2px;
    background: var(--border);
    cursor: pointer;
    position: relative;
    border-radius: 1px;
}

.volume-bar:hover {
    height: 4px;
}

.volume-bar:hover .progress-fill {
    background: var(--accent);
}

.volume-bar .progress-fill {
    height: 100%;
    background: var(--text-primary);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1px;
}

/* ---------- SITE FOOTER ---------- */
.site-footer {
    padding: 60px 40px 120px 40px;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    margin-top: auto;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* ---------- HAMBURGER & MOBILE NAV ---------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.hamburger svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 10;
}

.sidebar-close svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* ---------- MAXIMIZED PLAYER (Tidal Now Playing) ---------- */
.player-bar.maximized {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-main);
    z-index: 10000;
    border: none;
    padding: 0;
    overflow: hidden;
}

.player-bar.maximized .maximized-top-bar {
    display: flex !important;
    width: 100%;
    flex-shrink: 0;
}

.player-bar.maximized .player-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 24px;
    cursor: default;
    gap: 16px;
}

.player-bar.maximized .player-left img#playerArt {
    width: min(320px, 38vw);
    height: min(320px, 38vw);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: none;
    flex-shrink: 1;
}

.player-bar.maximized .player-left .like-btn,
.player-bar.maximized .player-left #playerMoreBtn {
    display: none;
}

.player-bar.maximized .track-info {
    text-align: center;
    margin-left: 0;
    align-items: center;
}

.player-bar.maximized .track-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.player-bar.maximized .track-artist {
    font-size: 14px;
    text-align: center;
    max-width: 500px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar.maximized .track-artist:hover {
    color: var(--text-primary);
}

.player-bar.maximized .player-center {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    padding: 0 24px;
}

.player-bar.maximized .controls {
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}

.player-bar.maximized .controls .control-btn svg {
    width: 22px;
    height: 22px;
}

.player-bar.maximized .play-btn {
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: var(--bg-main);
}

.player-bar.maximized .play-btn:hover {
    transform: scale(1.06);
    color: var(--bg-main);
}

.player-bar.maximized .play-btn svg {
    width: 24px;
    height: 24px;
}

.player-bar.maximized .progress-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.player-bar.maximized .progress-container span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    min-width: 40px;
}

.player-bar.maximized .player-right {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px 32px 24px;
}

.player-bar.maximized .volume-bar {
    width: 120px;
}

.player-bar.maximized #playerExpandBtn {
    display: none !important;
}

.minimize-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all var(--transition-fast);
}

.minimize-btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
}

.player-bar.maximized .minimize-btn {
    display: flex;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .hero-banner {
        height: 360px;
        padding: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-right: 8px;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .search-container {
        max-width: none;
    }
    
    .search-input {
        padding: 12px 16px 12px 44px;
        font-size: 13px;
    }
    
    .header-actions .auth-btn {
        display: none;
    }
    
    .mood-pills {
        padding: 12px 16px;
    }
    
    .content-padding {
        padding: 0 16px 120px 16px;
    }
    
    .hero-banner {
        height: 280px;
        padding: 28px;
        margin-bottom: 32px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-play-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .card-subtitle {
        font-size: 12px;
    }
    
    .artist-bubble {
        min-width: 110px;
    }
    
    .artist-img {
        width: 110px;
        height: 110px;
    }
    
    .artist-name {
        font-size: 13px;
    }
    
    .player-bar {
        bottom: 60px;
        width: 100%;
        height: 64px;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: 1fr;
        padding: 0 16px;
        border-radius: 0;
        border-top: 1px solid var(--border);
    }
    
    .player-bar.maximized {
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        z-index: 10000;
    }
    
    .player-left {
        width: 100%;
        justify-content: flex-start;
        padding-right: 8px;
    }
    
    .player-left img {
        width: 44px;
        height: 44px;
        border-radius: 4px !important;
        animation: none;
    }

    .player-bar.playing .player-left img {
        animation: none;
    }
    
    .player-bar.maximized .player-left img#playerArt {
        width: min(280px, 70vw) !important;
        height: min(280px, 70vw) !important;
        border-radius: 8px !important;
        margin-top: 24px;
    }
    
    .player-center {
        width: auto;
        max-width: none;
    }
    
    .progress-container {
        display: none;
    }
    
    .player-bar.maximized .progress-container {
        display: flex;
    }
    
    .controls {
        gap: 0;
    }
    
    .controls .control-btn#shuffleBtn, .controls .control-btn#repeatBtn, .controls .control-btn#prevBtn {
        display: none;
    }
    
    .player-bar.maximized .controls .control-btn#shuffleBtn, 
    .player-bar.maximized .controls .control-btn#repeatBtn, 
    .player-bar.maximized .controls .control-btn#prevBtn {
        display: flex;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        background: transparent;
        color: var(--text-primary);
    }
    
    .play-btn:hover {
        background: var(--hover);
        color: var(--text-primary);
    }

    .player-right {
        display: flex;
    }
    .player-right .volume-bar, .player-right #muteBtn, .player-right #qualityBtn, .player-right #lyricsBtn {
        display: none;
    }
    
    .site-footer {
        padding: 40px 16px 140px 16px;
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-banner {
        height: 240px;
        padding: 20px;
        border-radius: 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .artist-bubble {
        min-width: 90px;
    }
    
    .artist-img {
        width: 90px;
        height: 90px;
    }
    
    .artist-name {
        font-size: 12px;
    }
    
    .mood-pill {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ---------- COLLECTION VIEW ---------- */
.collection-header {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    margin-bottom: 40px;
    padding: 32px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #1a1a1a;
}

.collection-header .collection-art {
    width: 220px;
    height: 220px;
    border-radius: 4px;
    box-shadow: none;
    object-fit: cover;
    flex-shrink: 0;
}

.collection-info {
    flex: 1;
    min-width: 0;
}

.collection-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.collection-title {
    font-size: 48px;
    margin: 0 0 12px 0;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.collection-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.collection-play-btn {
    margin-top: 24px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 500px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(235, 0, 41, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.collection-play-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(235, 0, 41, 0.4);
}

/* Track List */
.track-list {
    margin-top: 8px;
}

.track-list-header {
    display: grid;
    grid-template-columns: 48px 1fr 80px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.track-row {
    display: grid;
    grid-template-columns: 48px 1fr 80px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    align-items: center;
}

.track-row:hover {
    background: var(--hover);
}

.track-num {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.track-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-meta {
    min-width: 0;
    overflow: hidden;
}

.track-meta .track-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta .track-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text-secondary);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* --- Collection Responsive: Tablet --- */
@media (max-width: 1024px) {
    .collection-header {
        gap: 24px;
        padding: 24px;
    }

    .collection-header .collection-art {
        width: 180px;
        height: 180px;
    }

    .collection-title {
        font-size: 36px;
    }
}

/* --- Collection Responsive: Mobile --- */
@media (max-width: 768px) {
    .collection-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px 20px;
    }

    .collection-header .collection-art {
        width: 200px;
        height: 200px;
        border-radius: var(--radius-md);
    }

    .collection-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .collection-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .collection-subtitle {
        font-size: 13px;
    }

    .collection-play-btn {
        margin-top: 20px;
        padding: 12px 32px;
    }

    .track-list-header {
        grid-template-columns: 36px 1fr 60px;
        padding: 10px 12px;
        font-size: 10px;
    }

    .track-row {
        grid-template-columns: 36px 1fr 60px;
        padding: 8px 12px;
    }

    .track-thumb {
        width: 40px;
        height: 40px;
    }

    .track-meta .track-name {
        font-size: 13px;
    }

    .track-meta .track-artist {
        font-size: 11px;
    }
}

/* --- Collection Responsive: Small Mobile --- */
@media (max-width: 480px) {
    .collection-header {
        padding: 20px 16px;
        gap: 16px;
        border-radius: var(--radius-md);
    }

    .collection-header .collection-art {
        width: 160px;
        height: 160px;
    }

    .collection-title {
        font-size: 24px;
    }

    .track-list-header {
        grid-template-columns: 30px 1fr;
        font-size: 10px;
    }

    .track-list-header div:last-child {
        display: none;
    }

    .track-row {
        grid-template-columns: 30px 1fr;
        padding: 8px 8px;
        gap: 4px;
    }

    .track-duration {
        display: none;
    }

    .track-num {
        font-size: 12px;
    }

    .track-thumb {
        width: 36px;
        height: 36px;
    }

    .track-main {
        gap: 10px;
    }

    .track-meta .track-name {
        font-size: 13px;
    }
}

/* ---------- RADIO VIEW ---------- */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* ---------- SEARCH RESULTS ---------- */
.search-results-header {
    margin-top: 12px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- UTILITY ---------- */
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.section-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(235, 0, 41, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
