* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #001f3f;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #001f3f;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2rem;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.8rem;
    color: #ff6600;
}

.header-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 2rem;
}

.info-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.info-text strong {
    color: #001f3f;
    font-size: 0.9rem;
}

.info-text span {
    color: #666;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    padding: 0;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.admin-link {
    background: rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

/* Player Section */
.player-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.radio-player {
    margin: 2rem auto;
    max-width: 600px;
}

#radioStream {
    width: 100%;
    margin-bottom: 1rem;
}

.now-playing {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Sections */
section {
    padding: 3rem 0;
}

h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Programação */
.programacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.programa-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.programa-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.horario {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-weight: bold;
}

/* Notícias */
.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.noticia-item {
    background: #fff;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.noticia-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.noticia-item h3 a:hover {
    color: #667eea;
}

.data {
    color: #999;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: #667eea;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #5568d3;
}

.sucesso {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.erro {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: 3rem 0;
}

h2 {
    margin-bottom: 2rem;
    color: #001f3f;
    font-size: 2rem;
}

/* Banner Section */
.banner-section {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.banner-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Programação */
.programacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.programa-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6600;
    transition: transform 0.3s;
}

.programa-card:hover {
    transform: translateY(-5px);
}

.programa-card h3 {
    color: #ff6600;
    margin-bottom: 0.5rem;
}

.horario {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-weight: bold;
}

/* Notícias */
.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.noticia-item {
    background: white;
    padding: 1.5rem;
    border-left: 4px solid #ff6600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticia-item:hover {
    transform: translateX(5px);
}

.noticia-item h3 a {
    color: #001f3f;
    text-decoration: none;
}

.noticia-item h3 a:hover {
    color: #ff6600;
}

.data {
    color: #999;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #001f3f;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6600;
}

button, .btn {
    background: #ff6600;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background: #ff8800;
}

.sucesso {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.erro {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
}

/* Footer - Sempre no fundo da página */
footer {
    background: #001f3f;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ff6600;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #003366;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
    }
    
    .player-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .volume-slider {
        width: 200px;
    }
    
    /* Grid de notícias responsivo */
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    
    .noticia-completa h1 {
        font-size: 1.8rem;
    }
    
    .compartilhar-botoes {
        flex-direction: column;
    }
    
    .btn-compartilhar {
        width: 100%;
        justify-content: center;
    }
}

/* Locutores Grid */
.locutores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.locutor-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.locutor-card:hover {
    transform: translateY(-5px);
}

.locutor-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.locutor-card h3 {
    color: #001f3f;
    margin-bottom: 0.5rem;
}

/* Fotos Grid */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.foto-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.foto-item:hover {
    transform: scale(1.05);
}

.foto-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.foto-info {
    padding: 1rem;
}

.foto-info h3 {
    color: #001f3f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Content Box */
.content-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.content-box h3 {
    color: #ff6600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Noticia Meta */
.noticia-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.noticia-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.autor {
    color: #666;
}

/* Admin Card */
.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.admin-card h2 {
    color: #001f3f;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admin-card small {
    display: block;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Layout com Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 2rem;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Banners Laterais */
.banner-lateral {
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.banner-lateral img {
    width: 100%;
    display: block;
}

/* Ouvintes Online */
.ouvintes-online {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Notícias em Destaque */
.noticias-destaque {
    margin-bottom: 3rem;
}

.destaque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.noticia-destaque-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticia-destaque-item:hover {
    transform: translateY(-5px);
}

.noticia-destaque-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.noticia-destaque-content {
    padding: 1.5rem;
}

.noticia-destaque-content h3 {
    margin-bottom: 0.5rem;
}

.noticia-destaque-content h3 a {
    color: #001f3f;
    text-decoration: none;
}

.noticia-destaque-content h3 a:hover {
    color: #ff6600;
}

/* Notícias Lista */
.noticia-img-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
    float: left;
}

.noticia-content {
    overflow: hidden;
}

/* TOP Músicas */
.top-musicas-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    color: white;
}

.top-musicas-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.top-musicas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-musica-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.top-musica-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.top-musica-item .posicao {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    min-width: 50px;
    text-align: center;
}

.top-musica-item .musica-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-musica-item .musica-info strong {
    font-size: 1.1rem;
}

.top-musica-item .musica-info span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Botões */
.btn {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.btn-play {
    background: #ff6600;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-play:hover {
    background: #ff8800;
    transform: scale(1.05);
}

/* Seções da Home */
.noticias-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.noticias-section h2 {
    color: #001f3f;
    margin-bottom: 2rem;
}

/* Grid de Notícias na Home */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.noticia-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.noticia-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.noticia-imagem {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.noticia-card:hover .noticia-imagem img {
    transform: scale(1.1);
}

.noticia-sem-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
}

.placeholder-imagem {
    font-size: 4rem;
    opacity: 0.3;
}

.noticia-imagem .categoria-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6600;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.noticia-conteudo {
    padding: 1.5rem;
}

.noticia-conteudo h3 {
    color: #001f3f;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-conteudo p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.noticia-conteudo .noticia-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.programacao-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.programacao-section h2 {
    color: #001f3f;
    margin-bottom: 1rem;
}

.programacao-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Modal YouTube */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

#youtubePlayer {
    width: 100%;
    height: 450px;
    margin-top: 1rem;
}

/* Parceiros */
.parceiros-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.parceiros-carousel {
    overflow: hidden;
    position: relative;
}

.parceiros-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.parceiro-item {
    flex: 0 0 200px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parceiro-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.parceiros-track:hover {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        position: static;
    }
}

@media (max-width: 768px) {
    .destaque-grid {
        grid-template-columns: 1fr;
    }
    
    #youtubePlayer {
        height: 300px;
    }
    
    .parceiro-item {
        flex: 0 0 150px;
    }
}

/* Categoria Badge */
.categoria-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ff6600;
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Notícia Completa */
.noticia-completa {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.noticia-completa h1 {
    color: #001f3f;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.3;
}

.noticia-img-full {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.noticia-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 2rem 0;
}

/* Compartilhamento */
.compartilhar-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #ff6600;
}

.compartilhar-section h3 {
    color: #001f3f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.compartilhar-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-compartilhar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-compartilhar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-compartilhar svg {
    width: 20px;
    height: 20px;
}

.btn-facebook {
    background: #1877f2;
}

.btn-facebook:hover {
    background: #145dbf;
}

.btn-twitter {
    background: #1da1f2;
}

.btn-twitter:hover {
    background: #0d8bd9;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #1fb855;
}

.btn-telegram {
    background: #0088cc;
}

.btn-telegram:hover {
    background: #006699;
}

.btn-copiar {
    background: #6c757d;
}

.btn-copiar:hover {
    background: #5a6268;
}
