/* ===== RESET E LAYOUT GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f0f1a 0%, #07070c 100%);
    position: relative;
}

.main-content {
    flex: 1;
    padding: 20px 16px 90px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== NAVEGAÇÃO INFERIOR ===== */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 68px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.nav-btn.active {
    color: #b07fff;
}
.nav-btn span {
    font-size: 24px;
}
.nav-btn p {
    font-size: 10px;
    font-weight: 500;
}

/* ===== PLAYER INFERIOR ===== */
.player-bottom-bar {
    position: fixed;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #1a1625;
    border-radius: 20px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
}
.player-bottom-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}
.player-bottom-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}
.player-bottom-info h4 {
    font-size: 14px;
    font-weight: 600;
}
.player-bottom-info p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.player-bottom-play-btn {
    background: #924cff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mini-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
.mini-progress-bar {
    height: 100%;
    background: #924cff;
    width: 0%;
    border-radius: 2px;
}

/* ===== TELA DE LETRAS - COMPLETA (SEM FILA, COM TODOS OS BOTÕES) ===== */
.lyrics-full-screen {
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: linear-gradient(145deg, #0c0916 0%, #05030a 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: top 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.lyrics-full-screen.expanded {
    top: 0;
}
.lyrics-header {
    background: rgba(12, 9, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(146, 76, 255, 0.2);
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.close-lyrics-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.close-lyrics-btn:hover {
    background: rgba(146,76,255,0.3);
}
.lyrics-header-meta h3 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
}
.lyrics-header-meta p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.lyrics-container-simple {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.lyrics-scroller {
    height: 100%;
    overflow-y: auto;
    padding: 30px 24px;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.lyrics-container-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}
.lyric-line {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,0.35);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 40px;
    max-width: 90%;
}
.lyric-line.active {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(146, 76, 255, 0.6);
    transform: scale(1.02);
}
.lyrics-footer {
    background: rgba(12, 9, 22, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(146, 76, 255, 0.15);
    padding: 16px 24px 28px;
    flex-shrink: 0;
}
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.progress-bar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    cursor: pointer;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #924cff, #c084fc);
    width: 0%;
    border-radius: 4px;
}
.time-txt {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    min-width: 40px;
    text-align: center;
}
.controls-wrapper-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.control-extra-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 40px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255,255,255,0.6);
}
.control-extra-btn:hover {
    background: rgba(146,76,255,0.3);
    transform: scale(1.05);
}
.control-extra-btn.active {
    background: #924cff;
    color: white;
}
.control-main-btn {
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255,255,255,0.6);
}
.control-main-btn:hover {
    background: rgba(146,76,255,0.3);
    transform: scale(1.05);
}
.control-play-center-btn {
    background: white;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(146, 76, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.control-play-center-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(146, 76, 255, 0.6);
}
.control-play-center-btn span {
    font-size: 36px;
    color: black;
}
/* ===== MODAIS E MENU DE CONTEXTO ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-backdrop.active {
    display: flex;
}
.modal-content-box {
    background: #1c1826;
    border-radius: 24px;
    padding: 20px;
    width: 85%;
    max-width: 340px;
}
.context-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
}
.context-menu-backdrop.active {
    display: block !important;
}
.context-menu-modal {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #1a1625;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    z-index: 9999;
    transition: bottom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.context-menu-modal.active {
    bottom: 0;
}
.menu-option-btn {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.menu-option-btn.danger {
    color: #ff4a75;
}
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    width: 90%;
    max-width: 380px;
}
.premium-toast {
    background: #1c1826;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.queue-wrapper {
    display: none;
}

/* Botões do modal de confirmação */
.modal-btn-cancel, .modal-btn-ok {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 60px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn-cancel {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.modal-btn-cancel:hover {
    background: rgba(255,74,117,0.2);
    color: #ff4a75;
}
.modal-btn-ok {
    background: linear-gradient(135deg, #924cff, #6a2ad4);
    color: white;
}
.modal-btn-ok:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #a05eff, #7a3ae4);
}