/* --- RESET & VARIABLES --- */
:root {
    --primary: #FF5722; /* Deep Vibrant Orange */
    --primary-hover: #E64A19;
    --accent: #FF8A65;
    --bg-main: #050505; /* Super Dark Background */
    --bg-glass: rgba(20, 20, 20, 0.75); /* Cleaner Glass */
    --bg-card: rgba(30, 30, 30, 0.9);
    --text-light: #ffffff;
    --text-muted: #A0A0A0;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --nav-height-desktop: 80px;
    --nav-height-mobile: 70px;
    --radius-xl: 28px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --font-stack: 'Inter', sans-serif;
    --shadow-smooth: 0 10px 30px -10px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 40px 20px;
}

/* --- Search Bar --- */
.search-container {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#search-input:focus {
    border-color: #1db954;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
    background: #222;
}

/* --- Player Container --- */
.player-container {
    background: #181818;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* --- Album Cover (Square + Rounded) --- */
#album-cover-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 25px;
    position: relative;
    transition: transform 0.1s ease-out;
}

#album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: box-shadow 0.1s ease-out;
}

/* --- Audio Reactive Classes (Controlled by JS) --- */
.thump {
    transform: scale(1.1) translateY(-10px);
}

.aura-active {
    box-shadow: 0 0 40px 10px rgba(29, 185, 84, 0.6) !important;
}

/* --- Controls --- */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

button:hover {
    color: #1db954;
}

#play-pause {
    font-size: 3rem;
}

/* --- List Styling --- */
#search-results, #music-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.track-item {
    background: #1a1a1a;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.track-item:hover {
    background: #282828;
}

.track-info {
    flex-grow: 1;
}

.track-name {
    font-weight: bold;
    display: block;
}

.track-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}


/* --- BACKGROUNDS --- */
#bgEffect { position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: blur(100px) saturate(1.5) brightness(0.3); transition: background-image 0.8s ease-in-out; }
#bgOverlay { position: fixed; inset: 0; z-index: -1; background: rgba(5, 5, 5, 0.85); background-image: radial-gradient(circle at center, transparent, var(--bg-main)); }

/* --- UTILITIES & ANIMATIONS --- */
.glass-panel { background: var(--bg-glass); backdrop-filter: blur(25px) saturate(120%); border: 1px solid var(--border-subtle); }
.glass-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-smooth); }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.full-width { width: 100%; }
.center-card { max-width: 480px; margin: 20px auto; padding: 40px; }

/* --- NAVIGATION (DESKTOP) --- */
.navbar {
    height: var(--nav-height-desktop); display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; position: sticky; top: 0; z-index: 100;
    background: rgba(5,5,5,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle);
}
.nav-brand { font-weight: 800; font-size: 1.6rem; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; }
.nav-brand i { color: var(--primary); font-size: 1.8rem; }

/* ZEN MODE HIDING */
body.zen-mode .navbar,
body.zen-mode .views-wrapper,
body.zen-mode .sticky-player,
body.zen-mode .mobile-nav,
body.zen-mode .section-header,
body.zen-mode .hero-player > .viz-lines ~ *, /* Hide siblings of viz-lines if needed */
body.zen-mode .divider-text {
    display: none !important;
}

/* ZEN MODE FIX & CENTERING */
body.zen-mode .main-container {
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}
body.zen-mode .hero-player {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}
body.zen-mode .player-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    max-width: 800px; /* Constrain width in Zen */
    width: 90vw;
    z-index: 10;
    min-width: 0;
}
body.zen-mode .track-info-hero {
    width: 100%;
    align-items: center;
}
body.zen-mode .track-info-hero h1,
body.zen-mode .track-info-hero h2 {
    text-align: center;
}

/* TRAP NATION HALO EFFECT - UPDATED TO SQUARE */
.album-art-hero {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-lg); /* Rounded Square */
    position: relative;
    z-index: 5;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.1s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    background: #111;
    overflow: visible; /* Allow aura to show outside */
}
.album-art-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}
.album-art-hero::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: calc(var(--radius-lg) + 5px);
    background: var(--primary);
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.1s, transform 0.1s;
}

/* THUMP & AURA EFFECTS */
.album-art-hero.thumping {
    transform: scale(1.1) translateY(-10px);
}

.album-art-hero.aura-active::before {
    opacity: 0.4;
    transform: scale(1.15);
}


/* SEARCH BAR FIXES */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}
#searchInput {
    font-size: 1.1rem;
    padding: 15px 100px 15px 50px;
}


/* PROFESSIONAL VISUALIZER */
.viz-lines { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 35vh; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    gap: 3px; 
    opacity: 0.8; 
    pointer-events: none; 
    z-index: 1;
    filter: drop-shadow(0 0 8px var(--primary));
}
.viz-line { 
    flex: 1; 
    max-width: 8px; 
    background: linear-gradient(to top, var(--primary), var(--accent), transparent); 
    border-radius: 10px 10px 0 0; 
    transition: height 0.05s ease-out;
}

/* FANCY TEXT IN ZEN */
body.zen-mode #currentTitle {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
    margin-bottom: 10px;
}
body.zen-mode #currentArtist {
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* HIDE UNNECESSARY IN ZEN */
body.zen-mode .progress-container,
body.zen-mode .secondary-controls {
    max-width: 600px;
    width: 100%;
}

.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
#searchInput {
    width: 100%; padding: 12px 80px 12px 45px; border-radius: 50px; border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.05); color: var(--text-light); font-family: var(--font-stack); font-size: 0.95rem; transition: 0.3s;
}
.search-btn-internal {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}
.search-btn-internal:hover {
    background: var(--primary-hover);
}
#searchInput:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2); }

.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-btn { padding: 10px 18px; border-radius: 12px; font-weight: 600; color: var(--text-muted); transition: 0.2s; background: transparent; border: none; cursor: pointer; font-family: var(--font-stack); }
.nav-btn:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.nav-btn.active { color: var(--primary); background: rgba(255, 87, 34, 0.1); }
.btn-accent { background: rgba(255, 87, 34, 0.15); color: var(--primary); }
.btn-accent:hover { background: var(--primary); color: white; }
.auth-buttons { border-left: 1px solid var(--border-subtle); padding-left: 10px; margin-left: 10px; display: flex; gap: 5px; }

/* --- HERO PLAYER --- */
.main-container { max-width: 1300px; margin: 40px auto; padding: 0 20px; }
.hero-player { border-radius: var(--radius-xl); padding: 50px; position: relative; overflow: hidden; box-shadow: var(--shadow-smooth); }
.player-grid { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 40px; 
    align-items: center; 
    position: relative; 
    z-index: 2; 
    min-width: 0; /* CRITICAL: Allows content to shrink */
}

.track-info-hero {
    min-width: 0; /* CRITICAL: Allows children to truncate */
    display: flex;
    flex-direction: column;
}

.track-info-hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 8px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    width: 100%;
}

.track-info-hero h2 { 
    font-size: 1.5rem; 
    color: var(--primary); 
    font-weight: 500; 
    margin-bottom: 40px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    width: 100%;
}

/* MARQUEE ON HOVER (Optional but Cool) */
.track-info-hero h1:hover, .track-info-hero h2:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
    background: var(--bg-glass);
    position: relative;
    z-index: 10;
}

/* CONTROLS */
.controls-row { display: flex; align-items: center; }
.main-controls { gap: 30px; margin-bottom: 30px; justify-content: flex-start; }
.control-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.control-btn:hover { color: var(--text-light); transform: scale(1.1); }
.control-btn.active { color: var(--primary); }
.control-btn.icon-only { font-size: 1.4rem; width: 40px; height: 40px; }
.control-btn.medium { font-size: 2rem; }
.play-btn-large {
    width: 80px; height: 80px; border-radius: 50%; background: var(--primary); border: none;
    color: white; font-size: 2.2rem; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.play-btn-large:hover { transform: scale(1.1); background: var(--primary-hover); box-shadow: 0 15px 40px rgba(255, 87, 34, 0.7); }
.play-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(255, 87, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); } }

/* PROGRESS BAR */
.progress-container { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.progress-bar-wrapper { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; position: relative; cursor: pointer; overflow: visible; }
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; border-radius: 10px; position: relative; z-index: 1; transition: width 0.1s linear; }
.progress-handle {
    position: absolute; top: 50%; left: 0%; width: 16px; height: 16px; background: white;
    border-radius: 50%; transform: translate(-50%, -50%) scale(0); z-index: 2; transition: transform 0.2s, left 0.1s linear; pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.progress-bar-wrapper:hover .progress-handle { transform: translate(-50%, -50%) scale(1); }

/* SECONDARY CONTROLS (Bass, Vol) */
.secondary-controls { justify-content: space-between; gap: 20px; }
.icon-with-text {
    background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; gap: 8px; border: 1px solid transparent;
}
.icon-with-text:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: white; transform: none; }
.icon-with-text.active { background: rgba(255, 87, 34, 0.2); color: var(--primary); border-color: var(--primary); }
.volume-container { display: flex; align-items: center; gap: 12px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 30px; }
.styled-slider { -webkit-appearance: none; width: 100px; height: 5px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: 0.2s; }
.styled-slider::-webkit-slider-thumb:hover { transform: scale(1.2); background: var(--primary); }

/* LIBRARY TABS */
.library-nav { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; }
.lib-tab { background: none; border: none; color: var(--text-muted); font-weight: 700; font-size: 1.1rem; cursor: pointer; padding: 5px 10px; transition: 0.2s; position: relative; }
.lib-tab:hover { color: var(--text-light); }
.lib-tab.active { color: var(--primary); }
.lib-tab.active::after { content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px; }

/* PLAYLIST GRID */
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.playlist-card { 
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); 
    padding: 20px; text-align: center; cursor: pointer; transition: 0.3s;
}
.playlist-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(255, 87, 34, 0.05); }
.playlist-card i { font-size: 3rem; color: var(--primary); margin-bottom: 15px; display: block; }
.playlist-card span { font-weight: 700; font-size: 1.2rem; display: block; }

/* PROFESSIONAL CANVAS VISUALIZER */
#vizCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-xl);
    transition: opacity 0.3s ease;
}

#vizCanvas.hidden {
    opacity: 0;
}

/* Ensure player grid is above canvas */
.player-grid {
    position: relative;
    z-index: 2;
}

/* TRACK CARD MENU */
.track-card { position: relative; }
.track-card .t-btn.btn-more { display: flex; }
.track-menu-trigger { position: relative; }

/* MODAL / OVERLAY FOR PLAYLIST CREATE */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center; z-index: 3000;
}
.modal-content { background: var(--bg-card); padding: 30px; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); width: 100%; max-width: 400px; }
.small { padding: 8px 16px; font-size: 0.9rem; }

/* --- VIEWS & TRACK LIST --- */
.views-wrapper { margin-top: 40px; min-height: 300px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 15px; }
.section-header h3 { font-size: 1.8rem; font-weight: 700; }
.track-count-badge { background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.track-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden;
}
.track-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3); }
.track-card.active { background: rgba(255, 87, 34, 0.1); border-color: var(--primary); }
.track-card.active::before { content:''; position: absolute; left:0; top:0; height:100%; width:4px; background: var(--primary); }
.track-img-box { width: 60px; height: 60px; border-radius: 10px; background: #222; overflow: hidden; flex-shrink: 0; }
.track-img-box img { width: 100%; height: 100%; object-fit: cover; }
.track-txt { flex: 1; min-width: 0; }
.track-title { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-bottom: 4px; }
.track-card.active .track-title { color: var(--primary); }
.track-artist { font-size: 0.9rem; color: var(--text-muted); }
.track-actions { display: flex; gap: 5px; opacity: 0; transition: 0.3s; transform: translateX(10px); }
.track-card:hover .track-actions { opacity: 1; transform: translateX(0); }
.t-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: var(--text-light); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.t-btn:hover { background: white; color: black; transform: scale(1.1); }
.t-btn.fav-active { color: var(--primary); background: rgba(255, 87, 34, 0.2); }
.t-btn.btn-del:hover { background: #D32F2F; color: white; }

/* --- FORMS & INPUTS (Modern Floating Labels) --- */
.input-floating { position: relative; margin-bottom: 20px; }
.input-floating input {
    width: 100%; padding: 18px 20px 18px 20px; background: rgba(255,255,255,0.03); border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md); color: var(--text-light); font-size: 1.1rem; font-family: var(--font-stack); transition: 0.3s; outline: none;
}
.input-floating label {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted);
    pointer-events: none; transition: 0.3s ease; font-weight: 500;
}
.input-floating input:focus, .input-floating input:not(:placeholder-shown) { border-color: var(--primary); background: rgba(0,0,0,0.2); }
.input-floating input:focus + label, .input-floating input:not(:placeholder-shown) + label {
    top: 0; transform: translateY(-50%) scale(0.85); background: var(--bg-card); padding: 0 8px; color: var(--primary); left: 12px;
}

.file-drop-zone {
    border: 2px dashed var(--border-subtle); background: rgba(255,255,255,0.02); border-radius: var(--radius-lg);
    padding: 30px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; margin-bottom: 20px;
}
.file-drop-zone.highlight {
    border-color: var(--primary);
    background: rgba(255, 87, 34, 0.1);
    transform: scale(1.02);
}
.file-drop-zone i { font-size: 3rem; color: var(--text-muted); margin-bottom: 15px; display: block; transition: 0.3s; }
.file-drop-zone:hover i { color: var(--primary); transform: translateY(-5px); }
.file-drop-zone input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-zone.slim { padding: 20px; }

.btn-primary {
    background: var(--primary); color: white; font-weight: 700; padding: 16px; border: none; border-radius: var(--radius-md);
    font-size: 1.1rem; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3); font-family: var(--font-stack);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-danger { background: #D32F2F; }

.divider-text { display: flex; align-items: center; color: var(--border-subtle); margin: 25px 0; font-weight: 600; font-size: 0.9rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.divider-text span { padding: 0 15px; color: var(--text-muted); }

/* --- STICKY PLAYER & MOBILE NAV --- */
.sticky-player {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 900; padding: 0 15px;
    transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: none;
}
.sticky-player.visible { transform: translateY(0); }
.sticky-progress-bg { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.1); }
.sticky-progress-fill { height: 100%; background: var(--primary); width: 0%; }
.sticky-content { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.sticky-info { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 0; }
.sticky-info img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.sticky-text { display: flex; flex-direction: column; overflow: hidden; }
#currentTitleFloat { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#currentArtistFloat { font-size: 0.85rem; color: var(--text-muted); }
.sticky-controls { display: flex; align-items: center; gap: 10px; }
.play-btn-round { width: 45px; height: 45px; border-radius: 50%; background: var(--primary); border: none; color: white; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4); }

.mobile-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: var(--nav-height-mobile); background: rgba(10,10,10,0.9);
    display: none; justify-content: space-around; align-items: center; z-index: 1000;
    border-top: 1px solid var(--border-subtle); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav-item { background: none; border: none; color: #777; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; cursor: pointer; flex: 1; position: relative; font-family: var(--font-stack); }
.mobile-nav-item i { font-size: 1.4rem; transition: 0.2s; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active i { transform: translateY(-2px); }
.upload-circle { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4); margin-bottom: -25px; border: 4px solid var(--bg-main); transform: translateY(-10px); }
.upload-circle i { font-size: 1.2rem; }
.mobile-nav-item.upload-highlight span { margin-top: 25px; }

/* --- TOAST NOTIFICATIONS (PROFESSIONAL) --- */
.toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: 100%; max-width: 400px; }
.toast-message {
    background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--border-subtle);
    color: var(--text-light); padding: 14px 24px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; opacity: 0; transform: translateY(20px) scale(0.9);
}
.toast-message.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(0.9); } }
.toast-icon { font-size: 1.2rem; }
.toast-success .toast-icon { color: #4CAF50; }
.toast-error .toast-icon { color: #F44336; }
.toast-info .toast-icon { color: var(--primary); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar { display: none; }
    .mobile-nav { display: flex; }
    .main-container { margin: 10px auto 120px auto; } /* More bottom space for players */
    .hero-player { padding: 25px; grid-template-columns: 1fr; text-align: center; gap: 25px; }
    .album-art-hero { width: 240px; height: 240px; margin: 0 auto; box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
    .track-info-hero h1 { font-size: 2.2rem; }
    .main-controls { justify-content: center; gap: 20px; }
    .control-btn.medium { font-size: 1.8rem; }
    .play-btn-large { width: 70px; height: 70px; font-size: 2rem; }
    .secondary-controls { justify-content: center; flex-wrap: wrap; }
    .volume-container { display: none; } /* Hide volume on mobile usually */
    .sticky-player { bottom: var(--nav-height-mobile); border-radius: 0; border-top: 1px solid var(--border-subtle); background: rgba(15,15,15,0.95); }
    .toast-container { bottom: 150px; }
    .track-card:hover .track-actions { opacity: 1; transform: none; } /* Always show actions on mobile touch */
}