/* ═══════════════════════════════════════════════════════════
   🎵 Cyle Music — Design System
   Futuristic dark mode, cyan/violet neon, glassmorphism
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(15, 15, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-primary: #e8eaf0;
    --text-secondary: #8b8da8;
    --text-muted: #555570;

    --accent: #00E5FF;
    --accent-hover: #33EBFF;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --accent-soft: rgba(0, 229, 255, 0.1);

    --accent2: #7B2FFF;
    --accent2-glow: rgba(123, 47, 255, 0.25);

    --gradient: linear-gradient(135deg, var(--accent), var(--accent2));

    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 229, 255, 0.2);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.15);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    min-height: calc(100% + env(safe-area-inset-top));
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* ─── Screen System ─────────────────────────────────────── */
.screen {
    display: none;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════ */
#loading-screen {
    background: var(--bg-primary);
    align-items: center;
    justify-content: center;
}

.loading-container {
    text-align: center;
}

.loading-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-glass);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--gradient);
    border-radius: 2px;
    animation: loadingSlide 1.2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════ */
#login-screen {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 47, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 40%);
}

.login-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem 2rem;
    background: rgba(15, 15, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--shadow-glow);
    animation: fadeInUp 0.6s ease-out;
}

.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    color: var(--accent);
    background: var(--bg-glass);
}

.btn-full {
    width: 100%;
}

.error-message {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--error);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   INSTALL PROMPT SCREEN
   ═══════════════════════════════════════════════════════════ */
#install-screen {
    background: var(--bg-primary);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.install-container {
    max-width: 420px;
    text-align: center;
}

.install-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.install-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.install-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.install-instructions {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.install-instructions h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.install-instructions ol {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.install-instructions p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   APP — HEADER (compact)
   ═══════════════════════════════════════════════════════════ */
.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.8rem;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.player-header.hidden {
    transform: translateY(-100%);
}

.header-title {
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.3rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.header-icon-btn svg {
    width: 26px;
    height: 26px;
}

.header-icon-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   SIDE MENU (hamburger)
   ═══════════════════════════════════════════════════════════ */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.side-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 80px;
    left: 16px;
    width: 200px;
    background: rgba(30, 30, 60, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 301;
    transform: scale(0.8) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.side-menu.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.side-menu-header {
    display: none;
}

.side-menu-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.side-menu-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    text-align: left;
}

.side-menu-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   APP — CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
.player-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2rem + var(--safe-bottom));
}

/* ─── Back Button ─────────────────────────────────────── */
.back-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.9rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

/* ─── Section Titles ───────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-more {
    font-size: 0.8rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

/* ─── Horizontal Scroll Cards ──────────────────────────── */
.h-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
    display: none;
}

/* ─── Album / Playlist Card ───────────────────────────── */
.card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition);
}

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

.card-cover {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    box-shadow: var(--shadow);
}

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

.card-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.card-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Song Row ─────────────────────────────────────────── */
.song-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.song-row:hover {
    background: var(--bg-glass-hover);
}

.song-row.active {
    background: var(--accent-soft);
}

.song-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
}

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

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

.song-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.song-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MINI PLAYER
   ═══════════════════════════════════════════════════════════ */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
}

.mini-cover {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
}

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

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

.mini-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.mini-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.mini-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.mini-play {
    color: var(--accent);
    font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — Collapsible
   ═══════════════════════════════════════════════════════════ */
.bottom-nav {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 50, 0.25);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 200;
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Collapsed: auto width fits single icon */
    width: 52px;
    height: 52px;
    justify-content: center;
}

.bottom-nav.expanded {
    width: calc(100% - 32px);
    left: 16px;
    height: auto;
    padding: 0.3rem 0.5rem;
    justify-content: space-around;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.6rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font);
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

/* Collapsed: hide all non-active buttons */
.bottom-nav:not(.expanded) .nav-btn {
    display: none;
}
.bottom-nav:not(.expanded) .nav-btn.active {
    display: flex;
    padding: 0;
}

/* Expanded: show all */
.bottom-nav.expanded .nav-btn {
    display: flex;
    flex: 1;
}

.nav-btn.active { color: var(--accent); }

.nav-icon { line-height: 1; }

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-btn.active .nav-icon svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

/* Labels only visible when expanded */
.nav-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.bottom-nav.expanded .nav-label {
    opacity: 1;
    max-height: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   NOW PLAYING — FULL SCREEN
   ═══════════════════════════════════════════════════════════ */
.now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    height: 100%;
}

.np-cover {
    width: min(80vw, 320px);
    height: min(80vw, 320px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    margin-bottom: 2rem;
    background: var(--bg-card);
}

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

.np-info {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.np-title {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.np-album {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Progress Bar */
.np-progress {
    width: 100%;
    margin-bottom: 0.3rem;
}

.np-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-glass);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.np-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s linear;
    position: relative;
}

.np-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.np-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Controls */
.np-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.np-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 50%;
}

.np-btn:hover {
    color: var(--text-primary);
}

.np-btn.active {
    color: var(--accent);
}

.np-play-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition);
}

.np-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.np-quality {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════ */
.search-container {
    padding: 0 0.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0 1rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-results-section {
    margin-bottom: 1.5rem;
}

.search-results-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════════════════ */
.settings-section {
    margin-bottom: 1.5rem;
}

.settings-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.settings-option:hover {
    border-color: var(--border-hover);
}

.settings-option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.settings-option-label {
    font-size: 0.9rem;
}

.settings-option-value {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-option .check {
    color: var(--accent);
    font-size: 1.1rem;
    display: none;
}

.settings-option.active .check {
    display: inline;
}

.settings-logout {
    margin-top: 2rem;
    width: 100%;
    padding: 0.85rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.settings-logout:hover {
    background: rgba(248, 113, 113, 0.2);
}

/* ─── Queue ─────────────────────────────────────────────── */
.queue-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.queue-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.queue-empty-text {
    font-size: 0.95rem;
}

/* ─── Album Detail ──────────────────────────────────────── */
.album-detail-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.album-detail-cover {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    background: var(--bg-card);
}

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

.album-detail-info {
    min-width: 0;
}

.album-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.album-detail-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.album-detail-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.album-play-all {
    margin-bottom: 1rem;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (min-width: 768px) {
    .card {
        width: 160px;
    }

    .card-cover {
        width: 160px;
        height: 160px;
    }

    .np-cover {
        width: 340px;
        height: 340px;
    }
}