* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0066 0%, #1a1a4d 50%, #2d1b4e 100%);
    min-height: 100vh;
    color: white;
}

/* Menu de Navegação */
nav {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 68, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 32px;
    font-weight: bold;
    color: #ff4400;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.nav-logo .fm {
    color: #00d9ff;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 68, 0, 0.2);
    color: #ff4400;
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: linear-gradient(135deg, #ff4400 0%, #ff6600 100%);
    box-shadow: 0 5px 15px rgba(255, 68, 0, 0.5);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 68, 0, 0.3);
}

.section {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.section-title {
    font-size: 36px;
    color: #ff4400;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-space {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid #ff4400;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-space::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4400, #00d9ff, #ff4400);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.3;
}

.ad-space img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.ad-label {
    color: #00d9ff;
    font-size: 14px;
    font-weight: bold;
}

.center-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-section {
    background: linear-gradient(135deg, rgba(255, 68, 0, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #ff4400;
    box-shadow: 0 10px 40px rgba(255, 68, 0, 0.3);
}

.player-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.now-playing-compact {
    flex: 1;
}

.now-playing-compact h3 {
    font-size: 18px;
    color: #00d9ff;
    margin-bottom: 8px;
}

.song-info-compact {
    font-size: 16px;
    color: white;
}

.player-controls-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4400 0%, #ff6600 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 68, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 68, 0, 0.7);
}

.play-button:active {
    transform: scale(0.95);
}

/* Botão Unmute */
.unmute-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-glow 2s infinite;
}

.unmute-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.7);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 217, 255, 0.5);
    }
    50% {
        box-shadow: 0 5px 25px rgba(0, 217, 255, 0.8);
    }
}

.volume-control-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.volume-control-compact label {
    color: #00d9ff;
    font-size: 12px;
    font-weight: bold;
}

.volume-control-compact input {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.status {
    font-size: 14px;
    color: #00d9ff;
    font-weight: bold;
    text-align: center;
}

.news-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #00d9ff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.news-header h2 {
    font-size: 28px;
    color: #00d9ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.5);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    /* Remove o limite de altura e a rolagem interna */
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

/* Opcional: melhora um pouco o espaçamento */
.news-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 68, 0, 0.2);
}

.news-grid::-webkit-scrollbar {
    width: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: #00d9ff;
    border-radius: 10px;
}

.news-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff4400;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.5);
    border-left-color: #00d9ff;
}

.news-source {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 68, 0, 0.8);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.news-item h3 {
    color: #ff4400;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    padding-right: 80px;
}

.news-item h3 a {
    color: #ff4400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #00d9ff;
}

.news-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 12px;
    color: #00d9ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-loading {
    text-align: center;
    padding: 40px;
    color: #00d9ff;
    font-size: 18px;
}

/* Seção de Programação */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.schedule-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #ff4400;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 68, 0, 0.3);
    border-left-color: #00d9ff;
}

.schedule-time {
    font-size: 24px;
    color: #00d9ff;
    font-weight: bold;
    margin-bottom: 10px;
}

.schedule-program {
    font-size: 20px;
    color: #ff4400;
    font-weight: bold;
    margin-bottom: 8px;
}

.schedule-host {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Seção de Locutores */
.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.host-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.host-card:hover {
    border-color: #ff4400;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 68, 0, 0.4);
}

.host-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4400, #ff6600);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 4px solid #00d9ff;
}

.host-name {
    font-size: 22px;
    color: #ff4400;
    font-weight: bold;
    margin-bottom: 8px;
}

.host-program {
    font-size: 16px;
    color: #00d9ff;
    margin-bottom: 12px;
}

.host-bio {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-top: 40px;
    border-top: 2px solid rgba(255, 68, 0, 0.3);
}

footer p {
    color: #00d9ff;
    font-size: 14px;
    margin-bottom: 10px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .ad-space {
        min-width: 250px;
    }

    .player-compact {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .news-grid,
    .schedule-grid,
    .hosts-grid {
        grid-template-columns: 1fr;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.spinner {
    border: 3px solid rgba(0, 217, 255, 0.3);
    border-top: 3px solid #00d9ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}