:root {
    --bg-color: #0b0b13;
    --card-bg: #1a1a24;
    --text-main: #ffffff;
    --text-muted: #888899;
    --primary: #ff3b5c; 
    --danger: #e74c3c;
    --player-bg: #222230;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 140px; 
    overflow-x: hidden;
}

.app-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.menu-btn {
    background: none; border: none; color: white; font-size: 24px; cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0; left: -250px;
    width: 250px; height: 100vh;
    background-color: var(--card-bg);
    z-index: 1000;
    transition: 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.sidebar.open { left: 0; }
.close-btn {
    background: none; border: none; color: white; font-size: 24px; cursor: pointer;
    text-align: right; width: 100%; margin-bottom: 20px;
}
.sidebar-links a {
    display: block; color: var(--text-main); text-decoration: none;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 16px;
}
.sidebar-links a:hover { color: var(--primary); }
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999; display: none;
}
.overlay.show { display: block; }

.form-card {
    background-color: var(--card-bg);
    padding: 20px; border-radius: 12px; margin-top: 20px;
}
.form-card h2 { text-align: center; margin-bottom: 20px; }
.input-control {
    width: 100%; padding: 12px 15px; margin-bottom: 15px;
    background-color: #1e1e2a; border: 1px solid rgba(255,255,255,0.1);
    color: white; border-radius: 8px; outline: none;
}
.input-control:focus { border-color: var(--primary); }
.btn-primary {
    width: 100%; padding: 12px; background-color: var(--primary);
    color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.1); }

.search-input {
    width: 100%; padding: 12px 20px; border-radius: 25px; border: none;
    background-color: #1e1e2a; color: white; font-size: 14px; outline: none;
}
.search-input::placeholder { color: var(--text-muted); }

.top-banners { display: flex; gap: 15px; margin-bottom: 25px; margin-top:20px; }
.banner {
    flex: 1; border-radius: 12px; padding: 20px 15px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; position: relative; overflow: hidden;
}
.banner h3 { font-size: 14px; line-height: 1.3; z-index: 2; }
.banner-red { background: linear-gradient(135deg, #2c1e2b, #4a1c2a); }
.banner-red h3 { color: #ff4d6d; }
.banner-blue { background: linear-gradient(135deg, #1e253c, #1a3c6a); }
.banner-blue h3 { color: #4da6ff; }
.icon-circle {
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2;
}

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-header h3 { font-size: 16px; font-weight: 600; }
.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background-color: var(--card-bg); padding: 15px; border-radius: 12px; }
.cat-card {
    border-radius: 8px; padding: 15px; height: 80px; position: relative; overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center;
}
.cat-card h4 { font-size: 14px; z-index: 2; }
.cat-icon { position: absolute; right: 10px; bottom: 5px; font-size: 35px; opacity: 0.8; z-index: 1; }
.bg-blue-light { background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); }
.bg-dark-gray { background: #2a2a2a; }
.bg-purple { background: linear-gradient(to right, #b224ef 0%, #7579ff 100%); }
.bg-green { background: linear-gradient(to right, #11998e 0%, #38ef7d 100%); }

/* Lista de Músicas - AJUSTADO PARA CELULAR */
.music-list { background-color: var(--card-bg); border-radius: 12px; padding: 15px; }
.music-list-item { display: flex; align-items: center; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.music-list-item:last-child { border-bottom: none; }
.item-cover { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

.item-info { 
    flex: 1; 
    min-width: 0; 
    overflow: hidden; 
    padding-right: 10px; 
}
.item-info h4 { 
    font-size: 15px; 
    margin-bottom: 3px; 
    cursor: pointer;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.item-info p { 
    font-size: 12px; 
    color: var(--text-muted); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.btn-favorite { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 5px; flex-shrink: 0; }
.btn-play-item { background: rgba(255, 255, 255, 0.1); color: white; border: none; border-radius: 50%; width: 35px; height: 35px; cursor: pointer; font-size: 12px; display:flex; justify-content:center; align-items:center; flex-shrink: 0;}

/* Player Global Fixado na Base */
.global-player {
    position: fixed; bottom: 60px; left: 0; width: 100%;
    background-color: var(--player-bg); padding: 10px 20px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5); z-index: 90;
    display: none; 
}
.player-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.player-cover { width: 45px; height: 45px; border-radius: 5px; object-fit: cover; }
.player-info-global { flex: 1; }
.player-info-global h4 { font-size: 14px; margin-bottom: 2px; }
.player-info-global p { font-size: 11px; color: var(--text-muted); }
.player-controls { display: flex; align-items: center; gap: 15px; }
.ctrl-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.play-pause-btn { background: var(--primary); width: 40px; height: 40px; border-radius: 50%; display:flex; justify-content:center; align-items:center; }

.progress-container { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; position:relative; }
.progress-bar { height: 100%; background: var(--primary); width: 0%; border-radius: 2px; }

/* Menu Inferior */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--card-bg); display: flex; justify-content: space-around;
    padding: 10px 0 15px 0; border-top: 1px solid rgba(255,255,255,0.05); z-index: 100;
}
.bottom-nav a { color: var(--text-muted); text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bottom-nav a span { font-size: 20px; }
.bottom-nav a.active { color: var(--text-main); }