:root {
    --azul-topo: #0056b3;
    --azul-nav: #004494;
    --cor-texto: #333333;   
    --fundo-site: #F9F9F9;  
    --fundo-card: #FFFFFF;  
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0; padding-top: 146px; 
    background-color: var(--fundo-site); color: var(--cor-texto);
    display: flex; flex-direction: column; min-height: 100vh;
}

.topo-fixo {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); 
}

.main-header {
    background: linear-gradient(135deg, var(--azul-topo) 0%, #003d82 100%);
    color: white; display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.logo { display: flex; align-items: center; }
.logo-img { height: 80px; width: auto; object-fit: contain; }

.play-center { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.btn-circular {
    width: 60px; height: 60px; background-color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--azul-topo); font-size: 26px; border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.play-center:hover .btn-circular { transform: scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }

.player-cover { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
/* Animação do CD rodando */
@keyframes girarCD {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Classe que o JavaScript vai injetar quando estiver tocando */

.play-text-container { display: flex; flex-direction: column; justify-content: center; max-width: 200px; }
.play-status { font-size: 11px; font-weight: bold; text-transform: uppercase; color: #a0c4ff; margin-bottom: 3px; letter-spacing: 1px; }
.play-track { font-size: 16px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-right { text-align: right; font-size: 14px; }
.social-icons { font-size: 22px; margin-bottom: 8px; display: flex; gap: 15px; justify-content: flex-end; }
.social-icons a { color: white; text-decoration: none; transition: transform 0.2s, color 0.2s; }
.social-icons a:hover { transform: scale(1.2); color: #99ccff; }
.clima-info { font-size: 12px; opacity: 0.9; letter-spacing: 0.5px; }
/* ========================================= */
/* CONTROLE DE VOLUME                        */
/* ========================================= */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    color: white;
    font-size: 18px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

#volume-slider {
    width: 100px;
    cursor: pointer;
    accent-color: white; /* Cor da barrinha de preenchimento */
    height: 4px;
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Esconder o volume em telemóveis (celular usa os botões físicos) */
@media (max-width: 900px) {
    .volume-container {
        display: none;
    }
}
.main-nav {
    background: linear-gradient(135deg, var(--azul-nav) 0%, #00224f 100%);
    display: flex; justify-content: center; align-items: center; padding: 15px 5%;
}
.nav-links { display: flex; gap: 40px; } 
.nav-links button {
    background: none; border: none; color: white; font-weight: 700; font-size: 15px;
    text-transform: uppercase; cursor: pointer; padding: 5px 0; position: relative;
    transition: color 0.3s ease; letter-spacing: 1px;
}
.nav-links button::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -4px; left: 0;
    background-color: #66b2ff; transition: width 0.3s ease; border-radius: 2px;
}
.nav-links button:hover { color: #66b2ff; }
.nav-links button:hover::after { width: 100%; }

.conteudo-principal { flex: 1; }
.page-section { display: none; animation: fadeIn 0.5s; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.container { max-width: 1200px; margin: 40px auto; padding: 0 5%; }
.layout-duplo { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; }
.titulo-secao { font-size: 26px; color: var(--azul-topo); margin-bottom: 20px; border-left: 4px solid var(--azul-topo); padding-left: 10px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background-color: var(--fundo-card); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content h3 { margin: 0 0 10px 0; color: #222222; font-size: 18px; }
.card-content p { color: #555555; font-size: 14px; line-height: 1.5; }
.btn-acao { display: inline-block; margin-top: 15px; padding: 10px 20px; background-color: var(--azul-topo); color: white; text-decoration: none; border-radius: 5px; font-weight: bold; }

.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); background-color: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.top5-list { display: flex; flex-direction: column; gap: 15px; }
.top5-item { display: flex; align-items: center; background-color: var(--fundo-card); border-radius: 8px; padding: 12px; box-shadow: 0 3px 6px rgba(0,0,0,0.05); transition: transform 0.2s; }
.top5-item:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.top5-rank { font-size: 32px; font-weight: 900; color: var(--azul-topo); min-width: 45px; text-align: center; }
.top5-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 15px; }
.top5-info { overflow: hidden; flex: 1; }
.top5-info h4 { margin: 0 0 5px 0; font-size: 16px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top5-info p { margin: 0; font-size: 13px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-slider { position: relative; height: 400px; width: 100%; overflow: hidden; border-bottom: 5px solid var(--azul-topo); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; text-align: center; color: white; z-index: 0; }
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)); z-index: 1; }
.slide-content { position: relative; z-index: 2; padding: 0 5%; }
.slide-content h1 { font-size: 50px; margin: 0 0 10px 0; font-weight: 900; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); text-transform: uppercase; }
.slide-content p { font-size: 18px; margin: 0; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 3; transition: background 0.3s, transform 0.3s; }
.slider-nav:hover { background: var(--azul-topo); transform: translateY(-50%) scale(1.1); }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.dot.active { background: #66b2ff; transform: scale(1.3); }

.hero-banner { background-size: cover; background-position: center; padding: 80px 5%; text-align: center; border-bottom: 5px solid var(--azul-topo); color: white; }
.hero-banner h1 { font-size: 50px; margin: 0; font-weight: 900; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); text-transform: uppercase; }
.hero-banner p { font-size: 18px; margin-top: 10px; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); }

.carousel-container { position: relative; display: flex; align-items: center; }
.carrossel-programas { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 20px; padding-top: 10px; -ms-overflow-style: none; scrollbar-width: none; flex: 1; }
.carrossel-programas::-webkit-scrollbar { display: none; }
.carrossel-programas .card { min-width: 280px; max-width: 280px; scroll-snap-align: start; flex-shrink: 0; }
.carousel-btn { background-color: var(--azul-topo); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 18px; position: absolute; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s, background-color 0.2s; }
.carousel-btn:hover { transform: scale(1.1); background-color: var(--azul-nav); }
.carousel-btn.left { left: -20px; }
.carousel-btn.right { right: -20px; }

.main-footer { background-color: var(--azul-topo); color: white; padding: 50px 5% 20px; margin-top: 40px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: white; text-decoration: none; font-weight: bold; font-size: 15px; text-transform: uppercase; }
.footer-links a:hover { opacity: 0.8; text-decoration: underline; }
.footer-apps { text-align: center; }
.footer-apps h3 { margin: 0 0 20px 0; font-size: 24px; text-transform: uppercase; }
.app-badges { display: flex; gap: 15px; justify-content: center; }
.app-badges img { height: 45px; cursor: pointer; transition: transform 0.2s; }
.app-badges img:hover { transform: scale(1.05); }
.footer-logo img { height: 70px; object-fit: contain; }
.footer-copy { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: 14px; }
audio { display: none; }

@media (max-width: 900px) {
    body { padding-top: 175px; } 
    .logo { display: none; }
    .main-header { flex-direction: column; gap: 15px; text-align: center; }
    .social-icons, .header-right { justify-content: center; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .layout-duplo { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { align-items: center; }
    .player-cover { display: none; }
    .play-text-container { max-width: 100%; text-align: center; }
    .hero-slider { height: 300px; }
    .slide-content h1 { font-size: 32px; }
    .slide-content p { font-size: 14px; }
    .slider-nav { width: 40px; height: 40px; font-size: 16px; }
    .carousel-btn { display: none; }
}
footer {
        margin-top: 15px;
        font-size: 0.7rem;
        color: #ffffff;
        text-align: center;
    }

    footer p {
        margin: 2px 0;
    }

    footer a {
        color: #ffffff;
        text-decoration: none;
        transition: opacity 0.2s;
    }

    footer a:hover {
        opacity: 0.7;
    }
	
	/* ========================================= */
/* CARDS DE NOTÍCIAS MODERNOS                */
/* ========================================= */
.noticia-card {
    background-color: var(--fundo-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height: 100%;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.noticia-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.1); /* Efeito de Zoom na foto */
}

/* Etiqueta flutuante */
.noticia-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #003d82;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.noticia-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticia-data {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.noticia-titulo {
    font-size: 17px;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex: 1;
    /* Limita o texto a 3 linhas para alinhar os cartões */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link com setinha animada */
.noticia-btn {
    font-size: 14px;
    font-weight: 800;
    color: #003d82;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, gap 0.2s;
    text-transform: uppercase;
}

.noticia-btn:hover {
    color: var(--cor-secundaria);
    gap: 14px; /* A setinha empurra para a direita */
}

/* ========================================= */
/* PÁGINA: PEÇA SUA MÚSICA                   */
/* ========================================= */
.pedido-card {
    display: flex;
    background: var(--fundo-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: -40px auto 40px auto; /* Sobe um pouco por cima do banner */
    position: relative;
    z-index: 5;
    border: 1px solid #eee;
}

.pedido-img-box {
    flex: 1;
    min-height: 300px;
}

.pedido-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pedido-info {
    flex: 1.2;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pedido-info h3 {
    font-size: 28px;
    color: var(--cor-primaria);
    margin: 0 0 15px 0;
    font-weight: 900;
}

.pedido-info p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    align-self: flex-start; /* Impede o botão de esticar na largura toda */
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    background-color: #20bd5a;
}

/* Deixa um por cima do outro no telemóvel */
@media (max-width: 768px) {
    .pedido-card { flex-direction: column; margin: -20px 5% 40px 5%; }
    .pedido-img-box { min-height: 200px; }
    .pedido-info { padding: 30px 20px; align-items: center; text-align: center; }
    .btn-whatsapp { align-self: center; width: 100%; }
}