* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: #000000; color: #FFFFFF; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
#app-container { width: 100%; max-width: 414px; height: 100vh; max-height: 896px; background-color: #121212; position: relative; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
@media (min-width: 450px) { #app-container { height: 90vh; border-radius: 30px; } }
.screen { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 20px; position: absolute; top: 0; left: 0; background-color: #121212; transition: opacity 0.3s ease; }
.hidden { display: none !important; }

.green-text { color: #1DB954; }
.logo-title { font-size: 3rem; font-weight: 800; text-align: center; margin-top: 15vh; margin-bottom: 50px; letter-spacing: -1px; }
.logo-title.small { font-size: 2rem; margin-top: 20px; margin-bottom: 30px; }
.center-text { text-align: center; }

.menu-high-score { text-align: center; color: #1DB954; font-weight: 700; margin-top: -30px; margin-bottom: 40px; font-size: 1.1rem; letter-spacing: 0.5px; }

/* ESTILOS DA GRADE DE PLAYLISTS */
.playlists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.playlist-card { background-color: #181818; padding: 15px; border-radius: 8px; cursor: pointer; transition: background 0.3s; text-align: center; }
.playlist-card:active { transform: scale(0.95); }
.playlist-cover { width: 100%; aspect-ratio: 1/1; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 3rem; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.playlist-card p { font-size: 0.9rem; font-weight: 700; color: #FFFFFF; }

.menu-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; padding: 0 20px; margin-top: auto; margin-bottom: 10vh; }
.btn-primary, .btn-secondary { width: 100%; padding: 18px; border-radius: 30px; font-size: 1.1rem; font-weight: 700; border: none; cursor: pointer; transition: transform 0.1s; }
.btn-primary { background-color: #1DB954; color: #000000; }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background-color: transparent; color: #FFFFFF; border: 2px solid #535353; }
.btn-secondary:active { border-color: #1DB954; }
.footer-text { text-align: center; font-size: 0.8rem; color: #B3B3B3; position: absolute; bottom: 20px; width: calc(100% - 40px); }

.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; height: 40px; }
.icon-btn { background: none; border: none; color: #FFFFFF; font-size: 1.5rem; cursor: pointer; width: 30px; text-align: left; }
.nav-title { font-size: 1.2rem; font-weight: 700; }
.lives-display { font-size: 1.2rem; letter-spacing: 2px; display: flex; gap: 2px; }

.media-container { width: 100%; margin-bottom: 15px; display: flex; flex-direction: column; align-items: center; }
.album-cover { width: 100%; aspect-ratio: 1 / 1; max-height: 250px; background-color: #282828; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 60px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; margin-bottom: 15px; }

.progress-bar-bg { width: 100%; height: 4px; background-color: #535353; border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background-color: #1DB954; width: 100%; transition: width 1s linear, background-color 0.3s; }
.game-stats { display: flex; justify-content: space-between; width: 100%; font-size: 0.85rem; color: #B3B3B3; font-weight: 700; }

.powerups-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px; width: 100%; }
.powerup-btn { flex: 1; background-color: #181818; color: #FFFFFF; border: 1px solid #1DB954; padding: 10px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.powerup-btn:active { transform: scale(0.95); background-color: #1DB954; color: #000; }
.powerup-btn:disabled { border-color: #3E3E3E; color: #535353; cursor: not-allowed; opacity: 0.4; background-color: transparent; }

#question-area { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 20px; }
#question-text { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 20px; line-height: 1.4; }
#options-container { display: flex; flex-direction: column; gap: 12px; }

.option-btn { background-color: #282828; color: #FFFFFF; border: none; padding: 16px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-align: left; }
.option-btn:active { background-color: #3E3E3E; }
.option-btn:disabled { cursor: not-allowed; }
.option-correct { background-color: #1DB954 !important; color: #000 !important; opacity: 1 !important; }
.option-wrong { background-color: #E22134 !important; color: #FFF !important; opacity: 1 !important; }

#end-screen { background: linear-gradient(180deg, #181818 0%, #121212 100%); justify-content: center; align-items: center; text-align: center; }
#end-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 30px; transition: color 0.3s; }
.wrapped-card { background-color: #282828; width: 100%; padding: 40px 20px; border-radius: 15px; margin-bottom: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
#end-rank { font-size: 1.4rem; color: #B3B3B3; margin-bottom: 20px; }
.final-score { font-size: 1.2rem; font-weight: 700; color: #FFFFFF; margin-bottom: 20px; }
#final-score-display { font-size: 4rem; display: block; margin-top: 10px; }
.pun-message { font-style: italic; color: #B3B3B3; }

.content-scroll { overflow-y: auto; flex-grow: 1; padding: 10px 0; color: #B3B3B3; line-height: 1.6; }
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.rules-list li { background-color: #181818; padding: 20px; border-radius: 10px; font-size: 1rem; }
.rules-list strong { color: #FFFFFF; }

@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.shake { animation: shake 0.4s ease-in-out; }

@keyframes breakHeart { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4) rotate(-15deg); opacity: 0.8; } 100% { transform: scale(0); opacity: 0; } }
.heart-breaking { display: inline-block; animation: breakHeart 0.6s forwards; }