* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0d47a1;
    --primary-dark: #1a237e;
    --primary-light: #1976d2;
    --accent: #e53935;
    --text-light: #ffffff;
    --bg-glass: rgba(255,255,255,0.1);
    --border-glass: rgba(255,255,255,0.2);
}

body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--text-light);
    min-height: 100vh;
    transition: font-size 0.2s, background 0.3s;
}

/* Temas */
body.theme-dark { background: linear-gradient(135deg, #0a0e2a, #1a1a2e, #16213e); }
body.theme-purple { background: linear-gradient(135deg, #4a148c, #7b1fa2, #9c27b0); }
body.theme-green { background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c); }
body.high-contrast { background: #000 !important; color: #ff0 !important; }
body.high-contrast .card, body.high-contrast .modal-content { background: #000 !important; border: 2px solid #ff0 !important; color: #ff0 !important; }

/* Font sizes */
body.font-small { font-size: 14px; }
body.font-normal { font-size: 16px; }
body.font-large { font-size: 18px; }
body.font-xlarge { font-size: 20px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #000;
    padding: 6px;
    cursor: pointer;
}
.station-info h1 { font-size: 1.6rem; }
.frequency {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
}
.weather-area {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 40px;
}
.navbar {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.2); }
.menu-mobile { display: none; font-size: 1.5rem; cursor: pointer; }
.btn-reset-cache {
    background: rgba(220,53,69,0.7);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    margin-left: 10px;
}
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-glass);
}
.player-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.cover {
    width: 95px;
    height: 95px;
    background: #000;
    border: 2px solid rgba(255,255,255,0.3);
}
.cover img { width: 100%; height: 100%; object-fit: contain; }
.play-btn {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}
.volume-slider { flex: 1; min-width: 130px; }
.volume-slider input { width: 100%; }
.visualizer { width: 100%; height: 50px; background: rgba(0,0,0,0.3); border-radius: 12px; margin: 10px 0; overflow: hidden; }
canvas { width: 100%; height: 100%; display: block; }
.btn-action {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.agora-grid, .info-grid, .noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.agora-card, .noticia-card {
    background: rgba(0,0,0,0.35);
    border-radius: 16px;
    padding: 14px;
    border-left: 4px solid #ff9800;
}
.schedule-table, .music-table {
    width: 100%;
    border-collapse: collapse;
}
.schedule-table th, .schedule-table td, .music-table th, .music-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.day-tab {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
}
.day-tab.active, .day-tab:hover { background: var(--accent); }
.modal-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #1e293b;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}
.editor-textarea {
    width: 100%;
    height: 400px;
    background: #0f172a;
    color: white;
    font-family: monospace;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #334155;
}
.footer {
    background: rgba(0,0,0,0.4);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 18px;
}
.footer a { color: #ffd966; cursor: pointer; margin: 0 8px; }
.access-bar {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 5px 10px;
    display: flex;
    gap: 6px;
    z-index: 9999;
}
.access-bar button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 10001;
    display: none;
}
.historico-lista {
    max-height: 200px;
    overflow-y: auto;
}
.historico-lista div {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.search-bar input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 30px;
    color: white;
    flex: 1;
}
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: 0.3s;
}
.social-icons a:hover {
    background: #ff8c42;
    transform: translateY(-5px);
}
 * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        :root { --primary: #0d47a1; --primary-dark: #1a237e; --primary-light: #1976d2; --accent: #e53935; --text-light: #ffffff; --bg-glass: rgba(255,255,255,0.1); --border-glass: rgba(255,255,255,0.2); }
        body { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: var(--text-light); min-height: 100vh; transition: font-size 0.2s, background 0.3s; }
        body.theme-dark { background: linear-gradient(135deg, #0a0e2a, #1a1a2e, #16213e); }
        body.theme-purple { background: linear-gradient(135deg, #4a148c, #7b1fa2, #9c27b0); }
        body.theme-green { background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c); }
        body.high-contrast { background: #000 !important; color: #ff0 !important; }
        body.high-contrast .card, body.high-contrast .modal-content { background: #000 !important; border: 2px solid #ff0 !important; color: #ff0 !important; }
        body.font-small { font-size: 14px; } body.font-normal { font-size: 16px; } body.font-large { font-size: 18px; } body.font-xlarge { font-size: 20px; }
        .container { max-width: 1200px; margin: 0 auto; padding: 15px; }
        .header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: rgba(0,0,0,0.25); backdrop-filter: blur(8px); padding: 12px 20px; border-radius: 20px; margin-bottom: 20px; }
        .logo-img { width: 55px; height: 55px; object-fit: contain; background: #000; padding: 6px; cursor: pointer; }
        .station-info h1 { font-size: 1.6rem; } .frequency { background: rgba(255,255,255,0.2); display: inline-block; padding: 2px 10px; border-radius: 30px; font-size: 0.75rem; }
        .weather-area { display: flex; gap: 8px; background: rgba(0,0,0,0.3); padding: 5px 15px; border-radius: 40px; }
        .navbar { background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 50px; margin-bottom: 15px; display: flex; justify-content: space-between; flex-wrap: wrap; }
        .nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
        .nav-links a { color: white; text-decoration: none; padding: 8px 18px; border-radius: 40px; cursor: pointer; }
        .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.2); }
        .menu-mobile { display: none; font-size: 1.5rem; cursor: pointer; }
        .btn-reset-cache { background: rgba(220,53,69,0.7); border: none; color: white; padding: 6px 14px; border-radius: 40px; cursor: pointer; margin-left: 10px; }
        .card { background: var(--bg-glass); backdrop-filter: blur(10px); border-radius: 20px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border-glass); }
        .player-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
        .cover { width: 95px; height: 95px; background: #000; border: 2px solid rgba(255,255,255,0.3); }
        .cover img { width: 100%; height: 100%; object-fit: contain; }
        .play-btn { width: 48px; height: 48px; background: var(--accent); border: none; border-radius: 50%; color: white; cursor: pointer; }
        .visualizer { width: 100%; height: 50px; background: rgba(0,0,0,0.3); border-radius: 12px; margin: 10px 0; }
        canvas { width: 100%; height: 100%; display: block; }
        .btn-action { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; padding: 6px 14px; border-radius: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 2px; }
        .agora-grid, .info-grid, .noticias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px; margin-top: 15px; }
        .agora-card, .noticia-card { background: rgba(0,0,0,0.35); border-radius: 16px; padding: 14px; border-left: 4px solid #ff9800; }
        .schedule-table, .music-table, .admin-table { width: 100%; border-collapse: collapse; }
        .schedule-table th, .schedule-table td, .music-table th, .music-table td, .admin-table th, .admin-table td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .day-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
        .day-tab { background: rgba(255,255,255,0.15); border: none; color: white; padding: 6px 16px; border-radius: 30px; cursor: pointer; }
        .day-tab.active, .day-tab:hover { background: var(--accent); }
        .modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal-content { background: #1e293b; border-radius: 20px; width: 90%; max-width: 800px; max-height: 85vh; overflow-y: auto; padding: 20px; }
        .modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
        .modal-close { background: none; border: none; color: white; font-size: 1.6rem; cursor: pointer; }
        .form-group { margin-bottom: 12px; }
        .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px; background: rgba(255,255,255,0.1); border-radius: 8px; color: white; border: none; }
        .footer { background: rgba(0,0,0,0.4); text-align: center; padding: 20px; margin-top: 20px; border-radius: 18px; }
        .footer a { color: #ffd966; cursor: pointer; margin: 0 8px; }
        .access-bar { position: fixed; bottom: 15px; left: 15px; background: rgba(0,0,0,0.7); border-radius: 50px; padding: 5px 10px; display: flex; gap: 6px; z-index: 9999; }
        .toast { position: fixed; bottom: 20px; right: 20px; background: #323232; padding: 8px 16px; border-radius: 8px; z-index: 10001; display: none; }
        .admin-table { background: rgba(0,0,0,0.2); border-radius: 12px; margin-top: 10px; }
        .admin-table th { color: #ffd966; }
        .inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.2); }
        .inline-form .form-group { margin-bottom: 0; flex: 1; min-width: 120px; }
        @media (max-width: 768px) { .nav-links { display: none; width: 100%; flex-direction: column; } .nav-links.show { display: flex; } .menu-mobile { display: block; } }

@media (max-width: 768px) {
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: center; }
    .nav-links.show { display: flex; }
    .menu-mobile { display: block; }
    .player-row { flex-direction: column; text-align: center; }
    .header-main { grid-template-columns: 1fr; text-align: center; gap: 10px; }
}