:root {
    --bg-dark: #000814;
    --bg-blue-deep: #001A4D;
    --accent-blue: #00C8FF;
    --accent-red: #FF0000;
    --text-white: #ffffff;
}

body {
    margin: 0; padding: 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-blue-deep), var(--bg-dark));
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-white);
    min-height: 100vh; display: flex; flex-direction: column;
    overflow-x: hidden; overflow-y: auto;
}

.topbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    height: 90px;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.mini-logo { 
    width: auto; 
    height: 60px;
    object-fit: contain; 
}
.logo-area span { font-weight: 900; font-size: 20px; letter-spacing: 2px; }

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 25px;
}
.nav-links a { 
    text-decoration: none; 
    color: white; 
    font-weight: 600; 
    font-size: 14px; 
    letter-spacing: 1px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-links a:not(.btn-download):hover {
    color: var(--accent-blue);
    opacity: 1;
}
.nav-links a.btn-download {
    border: 1px solid var(--accent-blue);
    padding: 10px 20px; 
    border-radius: 20px; 
    color: var(--accent-blue);
    text-transform: uppercase;
}
.nav-links a.btn-download i {
    padding-right: 10px;
    vertical-align: middle;
}
.nav-links a.btn-download:hover { background: var(--accent-blue); color: #000; }

.estacao-menu-container { 
    position: relative; 
    display: flex;
    align-items: center;
}
.btn-topbar-estacao {
    background: transparent;
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-topbar-estacao:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: var(--accent-blue);
}

.dropdown-content {
    align-items: center;
    top: 45px;
}
.dropdown-content {
    display: none; position: absolute; background: var(--bg-blue-deep);
    min-width: 200px; border-radius: 15px; top: 55px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8); border: 1px solid var(--accent-blue);
    overflow: hidden; z-index: 1000;
}
.dropdown-content.show { display: block; animation: slideDown 0.3s ease; }
.dropdown-content a { color: white; padding: 15px; text-decoration: none; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-content a:hover { background: var(--accent-blue); color: #000; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.main-content {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 60px; gap: 80px;
}

.left-side { display: flex; flex-direction: column; align-items: center; }
.live-indicator {
    display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px; border-radius: 20px; margin-bottom: 20px;
}
.dot { width: 12px; height: 12px; background: var(--accent-red); border-radius: 50%; box-shadow: 0 0 15px var(--accent-red); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.album-art {
    width: 320px; height: 320px; border-radius: 30px; overflow: hidden;
    border: 3px solid rgba(0, 200, 255, 0.3); box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.album-art img[src="logo.png"] { object-fit: contain; background: #000; padding: 40px; box-sizing: border-box; }

.right-side { display: flex; flex-direction: column; align-items: flex-start; width: 400px; }
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; }
#titulo { font-size: 45px; margin: 0; color: var(--accent-blue); font-weight: 800; display: inline-block; }
.marquee-active { padding-left: 100%; animation: marquee 15s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

#artista { font-size: 24px; opacity: 0.6; margin: 15px 0 40px 0; }

.media-control-wrapper { position: relative; width: 280px; height: 120px; display: flex; justify-content: center; align-items: center; }
.bars-container { display: flex; align-items: center; gap: 6px; height: 120px; position: absolute; z-index: 1; opacity: 0.2; transition: 0.8s; }
.bars-container.active { opacity: 1; }
.bar {
    width: 6px;
    background: linear-gradient(to bottom, var(--accent-blue), #0013DE);
    border-radius: 10px;
    height: 10%;
    transform-origin: bottom;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.active .bar {
    animation: equalizer var(--d) ease-in-out infinite;
}

.bars-container:not(.active) .bar {
    animation: none; 
    height: 10% !important; 
}

@keyframes equalizer { 
    0%, 100% { height: 15%; } 
    50% { height: 95%; } 
}

.main-button {
    width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #00C8FF, #0013DE);
    border: none; cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); z-index: 2; transition: 0.3s;
}
.main-button.glow { box-shadow: 0 0 40px var(--accent-blue); }
.main-button i { color: white; font-size: 45px; }

footer {
    background: rgba(0, 0, 0, 0.8); padding: 40px 20px; text-align: center;
    border-top: 1px solid rgba(0, 200, 255, 0.1); margin-top: 100px;
}
.social-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.social-links a { color: white; font-size: 28px; transition: 0.3s; }
.social-links a:hover { 
    transform: translateY(-5px); 
}

.social-links a:hover .fa-instagram { color: #E1306C; }
.social-links a:hover .fa-facebook { color: #1877F2; }
.social-links a:hover .fa-whatsapp { color: #25D366; }
.social-links a:hover .fa-x-twitter { color: #FFFFFF; }

.copyright { font-size: 14px; opacity: 0.5; letter-spacing: 1px; }

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--accent-blue);
    padding: 10px 20px;
    border-radius: 25px;
    transition: 0.3s;
}
.btn-back:hover { background: var(--accent-blue); color: #000; }

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.img-fade {
    opacity: 0;
}

.ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    max-width: 970px;
    overflow: hidden;
}

.ad-container small {
    color: var(--accent-blue);
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.5;
}

* {
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .logo-area {
        justify-content: center;
        width: 100%;
    }

    .mini-logo {
        height: 50px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-links a, .btn-topbar-estacao {
        font-size: 13px;
        padding: 8px 15px;
    }

    .main-content {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }

    .right-side {
        width: 100%;
        align-items: center;
    }

    .album-art {
        width: 280px;
        height: 280px;
        border-radius: 20px;
    }

    #titulo {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    width: 100%;
}

    #artista {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .media-control-wrapper {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 15px 10px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a.btn-download, .btn-topbar-estacao {
        padding: 8px 12px;
        font-size: 11px; */
    }

    .album-art {
        width: 220px;
        height: 220px;
    }

    #titulo {
        font-size: 26px;
    }

    .ad-container {
        max-width: 100%;
        padding: 5px;
    }
    
    .main-button {
        width: 80px;
        height: 80px;
    }
    
    .main-button i {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .ad-container {
        max-width: 320px;
    }
}