:root {
    --bg-main: #000000; --bg-container: #000000; --text-primary: #ffffff; 
    --text-secondary: #d1d1d6; --text-muted: #888888; --border-color: #1a1a1a; 
    --dial-bg: #0b0b0b; --tick-major: #ffffff; --tick-medium: #777777; --tick-minor: #444444; 
    --badge-bg: #1a1a1a; --modal-bg: rgba(0, 0, 0, 0.96); --hover-bg: #111111; 
    --input-bg: #1a1a1a; --ios-switch-off: #39393d;
}
body.light-theme {
    --bg-main: #f2f2f7; --bg-container: #ffffff; --text-primary: #1c1c1e; 
    --text-secondary: #8e8e93; --text-muted: #8e8e93; --border-color: #e5e5ea; 
    --dial-bg: #f2f2f7; --tick-major: #1c1c1e; --tick-medium: #8e8e93; --tick-minor: #c7c7cc; 
    --badge-bg: #e5e5ea; --modal-bg: rgba(255, 255, 255, 0.96); --hover-bg: #f2f2f7; 
    --input-bg: #ffffff; --ios-switch-off: #e5e5ea;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
input { -webkit-user-select: auto; user-select: auto; } 
body { background-color: var(--bg-main); color: var(--text-primary); display: flex; justify-content: center; align-items: center; height: 100vh; overflow: hidden; overscroll-behavior-y: none; touch-action: manipulation; transition: background-color 0.3s ease; }

.splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-main); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease; }
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.05); }
.splash-logo { width: 220px; max-width: 80%; margin-bottom: 30px; animation: pulse-logo 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite; object-fit: contain; }
@keyframes pulse-logo { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(31, 55, 186, 0)); } 50% { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(31, 55, 186, 0.5)); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(31, 55, 186, 0)); } }
.splash-title { font-family: 'Publica Sans', 'Montserrat', sans-serif; font-weight: 500; font-size: 32px; color: var(--text-primary); margin-bottom: 5px; }
.splash-slogan { font-family: 'Publica Sans', 'Montserrat', sans-serif; font-weight: 300; font-size: 15px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 50px; }
.btn-entrar { background: transparent; border: 1px solid var(--text-muted); color: var(--text-primary); border-radius: 30px; padding: 12px 40px; font-size: 16px; font-weight: 300; letter-spacing: 1px; cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.btn-entrar:active { background: rgba(255, 255, 255, 0.1); transform: scale(0.92); }

.radio-container { width: 100%; max-width: 420px; height: 100%; max-height: 850px; background: var(--bg-container); display: flex; flex-direction: column; justify-content: space-between; padding: 25px 0; position: relative; transition: background-color 0.3s ease; }
.radio-header { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 25px 0 25px; min-height: 75px; }
.badge-pais { background-color: var(--badge-bg); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-top: 5px; cursor: pointer; transition: 0.2s; }
.badge-pais:active { transform: scale(0.95); }
.icon-btn { background: none; border: none; color: var(--text-primary); font-size: 26px; cursor: pointer; padding: 10px; transition: all 0.3s ease; }
.icon-btn:active { transform: scale(0.85); }
.fav-btn { margin-top: -5px; }
.fav-btn .fa-solid.fa-heart { color: #1f37ba; animation: popHeart 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popHeart { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.header-center { position: absolute; left: 50%; transform: translateX(-50%); top: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.timer-display { font-size: 11px; font-weight: 600; color: var(--text-secondary); letter-spacing: 1px; border: 1px solid var(--text-muted); border-radius: 12px; padding: 4px 14px; background: transparent; transition: opacity 0.3s ease; margin-top: 5px;}
.timer-display.hidden { opacity: 0; pointer-events: none; }

.display-container { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; padding: 0 20px; }
.frequencia-principal { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 125px; cursor: pointer; transition: transform 0.2s ease; }
.frequencia-principal:active { transform: scale(0.97); }
#freq-valor { font-size: 110px; font-weight: 200; letter-spacing: -4px; line-height: 0.85; color: var(--text-secondary); display: inline-block; transform: scaleY(1.15); transform-origin: bottom; transition: transform 0.1s; margin-bottom: 5px; }
.fm-airplay-group { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; margin-bottom: 2px; gap: 6px; }
.airplay-icon { color: var(--text-secondary); cursor: pointer; transition: color 0.3s ease; }
.airplay-icon.active { color: #1f37ba; } 
.frequencia-principal small { font-size: 22px; font-weight: 300; color: var(--text-secondary); letter-spacing: 1px; }

.textos-fixos { min-height: 100px; height: auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; margin-top: 15px; width: 100%; }
.nome-estacao-wrapper { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
#estacao-nome { font-size: 27px; color: var(--text-primary); font-weight: 700; text-align: center; }

.btn-plus-circle { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 12px; }
.btn-plus-circle.hidden { display: none; }
.btn-plus-circle:active { transform: scale(0.9); border-color: var(--text-primary); color: var(--text-primary); }

.status-container { display: flex; align-items: center; justify-content: center; width: 100%; gap: 12px; }
.status-conexao { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }

.rds-container { width: calc(100% + 40px); margin: 15px -20px 0 -20px; height: 40px; background-color: rgba(255, 255, 255, 0.08); position: relative; opacity: 1; transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease; display: flex; justify-content: center; align-items: center; }
body.light-theme .rds-container { background-color: rgba(0, 0, 0, 0.05); }
.rds-container.hidden { opacity: 0; pointer-events: none; height: 0; margin-top: 0; }

.rds-flex-box { display: flex; align-items: center; width: 100%; height: 100%; padding: 0 20px; gap: 15px; }
.led-fixed { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.broadcast-icon { color: var(--text-secondary); }
body.light-theme .broadcast-icon { color: #444444; }
.wave-inner { animation: pulse-wave 1.5s infinite ease-in-out; transform-origin: center; }
.wave-outer { animation: pulse-wave 1.5s infinite ease-in-out; animation-delay: 0.3s; transform-origin: center; }
@keyframes pulse-wave { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.rds-text-mask { flex: 1; display: block; overflow: hidden; white-space: nowrap; text-align: center; -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent); mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent); }
.rds-scroller { display: inline-block; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 0 10px; }
.rds-text { color: var(--text-primary); font-weight: 500; letter-spacing: 0.5px; }

.marquee { padding-left: 100%; text-align: left; animation: scrollText 12s linear infinite; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.secondary-actions { display: flex; justify-content: center; gap: 36px; padding: 5px 0; }
.dial-container { position: relative; height: 120px; background-color: var(--dial-bg); overflow: hidden; margin: 5px 0 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); touch-action: none; cursor: grab; transition: background-color 0.3s ease, border-color 0.3s ease; }
.dial-container:active { cursor: grabbing; }
.dial-needle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: linear-gradient(to bottom, #4a65f0, #1f37ba); transform: translateX(-50%); z-index: 5; box-shadow: 0 0 5px rgba(31, 55, 186, 0.6); }
.dial-strip { display: flex; align-items: flex-end; height: 100%; position: absolute; left: 50%; will-change: transform; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.dial-tick { position: relative; display: flex; flex-direction: column; align-items: center; width: 14px; flex-shrink: 0; }
.dial-tick .line { width: 1px; background-color: var(--tick-minor); margin-bottom: 4px; }
.dial-tick.minor .line { height: 16px; }
.dial-tick.medium .line { height: 26px; background-color: var(--tick-medium); }
.dial-tick.major .line { height: 36px; background-color: var(--tick-major); } 
.dial-tick span { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.station-dot { position: absolute; top: -10px; width: 5px; height: 5px; background-color: #1f37ba; border-radius: 50%; box-shadow: 0 0 4px rgba(31, 55, 186, 0.8); }

.player-controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin-bottom: 30px; }
.ctrl-btn { background: none; border: none; color: var(--text-primary); font-size: 44px; cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); } 
.ctrl-btn:active { transform: scale(0.85); color: #1f37ba; }
.main-play { font-size: 80px; } 
.aux-btn { font-size: 30px; color: var(--text-muted); } 

.modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--modal-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; display: flex; flex-direction: column; padding: 20px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(30px) scale(0.98); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.modal.active { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.modal-content { display: flex; flex-direction: column; flex: 1; height: 100%; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-shrink: 0; }
.modal-header h3 { color: var(--text-primary); font-weight: 500; }
.close-btn { background: none; border: none; color: var(--text-primary); font-size: 32px; cursor: pointer; padding: 5px; transition: transform 0.2s; }
.close-btn:active { transform: scale(0.8); }
.search-box input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--input-bg); color: var(--text-primary); font-size: 15px; margin-bottom: 12px; outline: none; transition: border-color 0.3s; }
.search-box input:focus { border-color: #1f37ba; }
.tabs { display: flex; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.tab-btn { flex: 1; background: none; border: none; color: var(--text-muted); padding: 10px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; }
.tab-btn.active { color: #1f37ba; border-bottom: 2px solid #1f37ba; font-weight: 500; }
.tab-content { display: none; flex: 1; overflow-y: auto; padding-bottom: 20px; }
.tab-content.active { display: block; animation: fadeTab 0.4s ease forwards; }
@keyframes fadeTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal, .modal-content, .station-list, .unified-scroll-area, .auth-form-content { overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }

.station-list { list-style: none; flex: 1; overflow-y: auto; padding-bottom: 20px; cursor: default; }
.unified-scroll-area { flex: 1; overflow-y: auto; padding-right: 5px; padding-bottom: 20px;}
.config-list { list-style: none; margin-bottom: 20px; }
.config-list li { padding: 15px 5px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); transition: background-color 0.2s;}
.section-divider { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin: 25px 5px 10px 5px; letter-spacing: 1px; }
.station-item { padding: 14px 10px; border-bottom: 1px solid var(--border-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; margin-bottom: 5px; transition: all 0.2s ease; }
.station-item:active { transform: scale(0.97); background-color: var(--hover-bg); }
.station-item strong { color: var(--text-primary); font-size: 16px; }
.clickable-row { cursor: pointer; border-radius: 8px; transition: all 0.2s ease; }
.clickable-row:active { transform: scale(0.97); background-color: var(--hover-bg); }
.row-icon-text { display: flex; align-items: center; gap: 12px; font-size: 16px; }

.ios-switch { position: relative; display: inline-block; width: 50px; height: 30px; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.ios-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--ios-switch-off); transition: 0.3s; border-radius: 34px; }
.ios-slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 2px; bottom: 2px; background-color: white; transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ios-switch input:checked + .ios-slider { background-color: #34C759; }
.ios-switch input:checked + .ios-slider:before { transform: translateX(20px); }

.perfil-header-info { text-align: center; margin-bottom: 20px; padding: 0 10px; }
.perfil-header-info p { font-size: 15px; font-weight: 500; color: var(--text-secondary); line-height: 1.5; font-style: italic;}
.perfil-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 5px 20px 5px; }
.perfil-card { background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; transition: transform 0.3s ease; }
.perfil-card.full-width { grid-column: span 2; flex-direction: row; justify-content: flex-start; align-items: center; gap: 15px; }
.perfil-card i { color: #1f37ba; font-size: 20px; margin-bottom: 8px; }
.perfil-card.full-width i { margin-bottom: 0; font-size: 24px; }
.perfil-value { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;}
.perfil-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.perfil-text-group { display: flex; flex-direction: column; overflow: hidden;}

@media (min-width: 768px) {
    body { background-image: radial-gradient(circle at top, #151515 0%, var(--bg-main) 100%); }
    body.light-theme { background-image: radial-gradient(circle at top, #fcfcfc 0%, #e5e5ea 100%); }
    .radio-container { height: 90vh; max-height: 850px; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 1px solid var(--border-color); overflow: hidden; transform: scale(1); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    .modal { border-radius: 40px; }
    .icon-btn:hover { color: #1f37ba; transform: scale(1.1); }
    .ctrl-btn:hover { color: #1f37ba; transform: scale(1.1); }
    .main-play:hover { transform: scale(1.05); }
    .station-item:hover, .clickable-row:hover { transform: translateX(8px); background-color: var(--hover-bg); }
    .btn-entrar:hover { background: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
    .perfil-card:hover { transform: translateY(-3px); border-color: #1f37ba; }
}
@media (min-width: 1200px) { .radio-container { transform: scale(1.05); } }

@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 55, 186, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(31, 55, 186, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 55, 186, 0); }
}
.btn-plus-circle.pulse-active { animation: pulse-btn 1.5s infinite; border-color: #1f37ba; color: #1f37ba; }

.ios-action-sheet-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; display: flex; align-items: flex-end; justify-content: center; padding: 15px 15px 25px 15px; }
.ios-action-sheet-overlay.active { opacity: 1; visibility: visible; }
.ios-action-sheet { width: 100%; max-width: 400px; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; gap: 8px; }
.ios-action-sheet-overlay.active .ios-action-sheet { transform: translateY(0); }
.ios-action-group { background: var(--input-bg); border-radius: 14px; overflow: hidden; }
.ios-action-btn { width: 100%; padding: 16px; background: transparent; border: none; color: #1f37ba; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.2s; }
.ios-action-btn:last-child { border-bottom: none; }
.ios-action-btn:active { background: var(--hover-bg); }
.ios-action-cancel { background: var(--input-bg); color: var(--text-primary); font-weight: 600; border-radius: 14px; padding: 16px; width: 100%; border: none; font-size: 17px; cursor: pointer; transition: background 0.2s; }
.ios-action-cancel:active { background: var(--hover-bg); }
.ios-action-header { padding: 14px 12px; text-align: center; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-weight: 500; line-height: 1.4; }
.feedback-obs-box { padding: 10px 14px; border-bottom: 1px solid var(--border-color); background: var(--input-bg); }
.feedback-obs-input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-primary); font-size: 14px; }
.feedback-obs-input:focus { border-color: #1f37ba; }

.form-group { margin-bottom: 15px; }
.auth-input { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--input-bg); color: var(--text-primary); font-size: 15px; outline: none; transition: border-color 0.3s; }
.auth-input:focus { border-color: #1f37ba; }
.btn-solid { width: 100%; padding: 14px; background: #1f37ba; color: #ffffff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.btn-solid:active { transform: scale(0.98); filter: brightness(1.2); }
.auth-error { color: #ff3b30; font-size: 13px; margin-bottom: 10px; min-height: 15px; text-align: center; }

.social-login-group { display: flex; gap: 10px; width: 100%; }
.btn-social { flex: 1; padding: 12px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; }
.btn-social:active { transform: scale(0.96); }

.btn-google { background: #ffffff; color: #444444; border-color: #dddddd; }
body.light-theme .btn-google { border-color: #cccccc; }
.btn-google:active { background: #f5f5f5; }
.btn-google i { color: #EA4335; font-size: 16px; }

.btn-apple { background: #000000; color: #ffffff; border-color: #000000; }
body.light-theme .btn-apple { background: #000000; color: #ffffff; }
.btn-apple:active { background: #333333; }
.btn-apple i { font-size: 18px; margin-bottom: 2px; }

.auth-divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.auth-divider span { padding: 0 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.select-month-container { margin: 20px 0; background: var(--input-bg); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); }
.custom-select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--bg-main); color: var(--text-primary); font-size: 15px; outline: none; cursor: pointer; }
.custom-select:focus { border-color: #1f37ba; }

.signature-container { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 25px 10px 10px 10px; }
.signature-line { flex: 1; height: 1px; }
.line-left { background: linear-gradient(to right, transparent, rgba(255,255,255,0.2)); }
.line-right { background: linear-gradient(to left, transparent, rgba(255,255,255,0.2)); }
body.light-theme .line-left { background: linear-gradient(to right, transparent, rgba(0,0,0,0.2)); }
body.light-theme .line-right { background: linear-gradient(to left, transparent, rgba(0,0,0,0.2)); }
.signature-text { font-size: 12px; color: var(--text-muted); text-decoration: none; font-weight: 500; letter-spacing: 1px; transition: color 0.3s; }
.signature-text:hover { color: #1f37ba; }

.tour-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 20000; pointer-events: auto; opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0.35s ease; }
.tour-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tour-spotlight { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.84), 0 0 25px rgba(31, 55, 186, 0.7); border: 1.5px solid #4a65f0; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events: none; z-index: 20001; }
.tour-tooltip { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 340px; background: #141416; border: 1px solid #2c2c30; border-radius: 18px; padding: 18px 20px; color: #ffffff; z-index: 20002; box-shadow: 0 20px 40px rgba(0,0,0,0.7); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.tour-step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-step-counter { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #4a65f0; }
.tour-skip-btn { background: none; border: none; color: #888888; font-size: 13px; cursor: pointer; font-weight: 500; }
.tour-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #ffffff; }
.tour-desc { font-size: 14px; color: #d1d1d6; line-height: 1.45; margin-bottom: 16px; }
.tour-actions { display: flex; justify-content: flex-end; }
.tour-next-btn { background: #1f37ba; color: #ffffff; border: none; border-radius: 20px; padding: 9px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; }
.tour-next-btn:active { transform: scale(0.95); filter: brightness(1.2); }

.pwa-install-box { padding: 16px 18px; text-align: left; color: var(--text-primary); font-size: 14px; line-height: 1.5; }
.pwa-install-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pwa-install-step:last-child { margin-bottom: 4px; }
.pwa-step-num { width: 24px; height: 24px; border-radius: 50%; background: #1f37ba; color: #ffffff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pwa-step-text { flex: 1; color: var(--text-primary); font-size: 14px; }
.pwa-step-text small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.display-container { position: relative; }
.ios27-feedback-pill {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    z-index: 45;
    width: auto;
    max-width: calc(100% - 24px);
    min-width: 255px;
    padding: 9px 14px 9px 16px;
    border-radius: 999px;
    background: rgba(28, 28, 32, 0.62);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
}
body.light-theme .ios27-feedback-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ios27-feedback-pill.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-14px) scale(0.92);
}
.ios27-pill-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    white-space: nowrap;
}
.ios27-pill-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 7px;
}
.ios27-pill-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ios27-thumb-btn {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body.light-theme .ios27-thumb-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}
.ios27-thumb-btn.thumb-up:active, .ios27-thumb-btn.thumb-up:hover {
    background: rgba(52, 199, 89, 0.25);
    border-color: #34C759;
    color: #34C759;
    transform: scale(1.1);
}
.ios27-thumb-btn.thumb-down:active, .ios27-thumb-btn.thumb-down:hover {
    background: rgba(255, 59, 48, 0.25);
    border-color: #ff3b30;
    color: #ff3b30;
    transform: scale(1.1);
}

.quick-filters-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px 2px;
    margin-bottom: 8px;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.quick-filters-bar::-webkit-scrollbar { display: none; }
.filter-pill {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.filter-pill:active { transform: scale(0.95); }
.filter-pill.active {
    background: #1f37ba;
    border-color: #1f37ba;
    color: #ffffff;
}

.current-song-copy-bar {
    background: rgba(31, 55, 186, 0.14);
    border: 1px solid rgba(31, 55, 186, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.current-song-copy-bar.hidden { display: none; }
.current-song-info { display: flex; flex-direction: column; overflow: hidden; flex: 1; }
.current-song-info small { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #4a65f0; margin-bottom: 3px; }
.current-song-info strong { font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-copy-inline {
    background: #1f37ba;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.btn-copy-inline:active { transform: scale(0.95); }

.recent-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.recent-song-item:active { transform: scale(0.98); background-color: var(--hover-bg); }
.recent-song-cover {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.recent-song-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.recent-song-meta strong {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.recent-song-meta small {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-song-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.alarm-card-box {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
}
.alarm-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.alarm-time-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    outline: none;
}
.alarm-time-input:focus { border-color: #1f37ba; }
.alarm-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.car-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    color: #ffffff;
    z-index: 15000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 24px 36px 24px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.car-mode-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.car-mode-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.car-mode-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #4a65f0;
    background: rgba(31, 55, 186, 0.18);
    border: 1px solid rgba(74, 101, 240, 0.4);
    padding: 7px 14px;
    border-radius: 20px;
}
.car-mode-close {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.car-mode-close:active { transform: scale(0.95); }
.car-mode-Body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 10px 0;
}
.car-freq-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}
#car-freq-val {
    font-size: 118px;
    font-weight: 200;
    letter-spacing: -4px;
    line-height: 0.9;
    color: #ffffff;
}
#car-freq-unit {
    font-size: 26px;
    font-weight: 400;
    color: #888888;
}
.car-station-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 14px;
}
.car-rds-line {
    font-size: 17px;
    font-weight: 500;
    color: #d1d1d6;
    margin-top: 10px;
    max-width: 92%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.car-mode-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.car-ctrl-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #141416;
    border: 1px solid #2c2c30;
    color: #ffffff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}
.car-ctrl-btn:active { transform: scale(0.9); background: #1f37ba; }
.car-play-btn {
    width: 96px;
    height: 96px;
    font-size: 42px;
    background: #1f37ba;
    border-color: #4a65f0;
}
.car-ctrl-btn .fa-solid.fa-heart { color: #4a65f0; }

@media (orientation: landscape) and (max-height: 540px) {
    .car-mode-overlay { padding: 16px 28px; }
    .car-mode-Body { flex-direction: column; }
    #car-freq-val { font-size: 86px; }
    .car-station-name { font-size: 24px; margin-top: 6px; }
    .car-rds-line { font-size: 14px; margin-top: 4px; }
    .car-ctrl-btn { width: 64px; height: 64px; font-size: 24px; }
    .car-play-btn { width: 80px; height: 80px; font-size: 34px; }
}

html, body {
    height: 100%;
    height: 100dvh;
}

.modal {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden !important;
    padding-bottom: 0;
}

.unified-scroll-area,
.station-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    pointer-events: auto !important;
}

.car-mode-hud-btn {
    background: #141416;
    color: #ffffff;
    border: 1px solid #2c2c30;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.car-mode-hud-btn:active { transform: scale(0.95); }
.car-mode-hud-btn.active {
    background: rgba(31, 55, 186, 0.28);
    border-color: #4a65f0;
    color: #4a65f0;
}
.car-mode-overlay.hud-mirrored .car-mode-Body,
.car-mode-overlay.hud-mirrored .car-mode-controls {
    transform: scaleY(-1);
}
.car-mode-Body, .car-mode-controls {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-btn,
.ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#play-icon,
#fav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#play-icon::before,
#fav-icon::before {
    content: none !important;
    display: none !important;
}

#play-icon.fa-play .svg-pause {
    display: none;
}

#play-icon.fa-pause .svg-play {
    display: none;
}

#fav-icon.fa-regular svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

#fav-icon.fa-solid svg {
    fill: #1f37ba;
    stroke: #1f37ba;
    stroke-width: 2;
    animation: popHeart 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.perfil-hero-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.perfil-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.perfil-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f37ba, #4a65f0);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(74, 101, 240, 0.45);
}

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

.perfil-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

.perfil-hero-meta h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.perfil-rank-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4a65f0;
    background: rgba(31, 55, 186, 0.16);
    border: 1px solid rgba(74, 101, 240, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
}

.perfil-hero-phrase {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 12px;
}

.perfil-rank-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.perfil-rank-bar-bg {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--border-color);
    overflow: hidden;
}

.perfil-rank-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f37ba, #4a65f0);
    transition: width 0.5s ease;
}

.perfil-rank-next {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.perfil-checkin-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 14px;
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkin-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.checkin-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.checkin-streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.14);
    border: 1px solid rgba(255, 149, 0, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.checkin-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.checkin-day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.checkin-day-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.checkin-day-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.checkin-day-dot.is-today {
    border-color: #4a65f0;
}

.checkin-day-dot.checked {
    background: #1f37ba;
    border-color: #4a65f0;
    color: #ffffff;
}

.checkin-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: #1f37ba;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.2s ease;
}

.checkin-btn:active {
    transform: scale(0.97);
}

.checkin-btn.done {
    background: rgba(52, 199, 89, 0.16);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #34C759;
    cursor: default;
}

.perfil-badges-section {
    margin-bottom: 14px;
}

.perfil-section-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 0 4px 8px 4px;
}

.perfil-badges-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.perfil-badges-row::-webkit-scrollbar {
    display: none;
}

.perfil-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.48;
}

.perfil-badge-chip.unlocked {
    opacity: 1;
    color: var(--text-primary);
    border-color: rgba(74, 101, 240, 0.45);
    background: rgba(31, 55, 186, 0.14);
}

.perfil-badge-chip.unlocked i {
    color: #4a65f0;
}

.perfil-station-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    flex-shrink: 0;
}

.btn-share-perfil {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(74, 101, 240, 0.5);
    background: rgba(31, 55, 186, 0.16);
    color: #4a65f0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-share-perfil:active {
    transform: scale(0.98);
    background: #1f37ba;
    color: #ffffff;
}
