        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --azul-escuro: #0a2b5e;
            --azul-principal: #0d47a1;
            --azul-vivo: #1976d2;
            --azul-claro: #42a5f5;
            --laranja: #f57c00;
            --laranja-escuro: #e65100;
            --branco: #ffffff;
            --cinza-claro: #f5f7fa;
            --cinza-texto: #1e293b;
        }

        body {
            background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-principal) 50%, var(--azul-vivo) 100%);
            color: var(--branco);
            min-height: 100vh;
            transition: font-size 0.2s, background 0.3s;
        }

        /* ========== TEMA ESCURO (AZUL MARCA) ========== */
        body.theme-dark {
            background: linear-gradient(135deg, #071530, #0a2b5e, #0d47a1);
        }
        body.theme-dark .card,
        body.theme-dark .modal-content {
            background: rgba(13, 71, 161, 0.25);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        body.theme-dark .btn-action {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--laranja);
            color: var(--branco);
        }
        body.theme-dark .btn-action:hover {
            background: var(--laranja);
            color: var(--branco);
        }
        body.theme-dark .day-tab.active,
        body.theme-dark .day-tab:hover {
            background: var(--laranja);
        }
        body.theme-dark .agora-card {
            border-left-color: var(--laranja);
        }
        body.theme-dark .schedule-table th {
            color: var(--laranja);
        }

        /* ========== TEMA CLARO - COM BORDA AZUL E FUNDO MAIS ESCURO ========== */
        body.theme-light {
            background: #eef2f6 !important;  /* fundo geral claro */
            color: #1e293b !important;
        }
        /* Cards com fundo ligeiramente mais escuro que o fundo da página */
        body.theme-light .card,
        body.theme-light .modal-content,
        body.theme-light .agora-card,
        body.theme-light .noticia-card,
        body.theme-light .info-card {
            background: #e2e8f0 !important;  /* cinza suave mais escuro que o fundo */
            border: 1px solid #42a5f5 !important;  /* borda azul (marca) */
            border-radius: 24px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        }
        /* Modais também */
        body.theme-light .modal-content {
            background: #e2e8f0 !important;
        }
        /* Cards "Agora" e notícias já herdam, mas mantemos a borda lateral laranja */
        body.theme-light .agora-card {
            border-left: 4px solid var(--laranja) !important;
        }
        body.theme-light .noticia-card {
            border-left: 4px solid var(--laranja) !important;
        }
        body.theme-light .noticia-card.destaque {
            border-left-color: #e53935 !important;
        }
        /* Navbar claro */
        body.theme-light .navbar {
            background: #ffffffcc !important;
            backdrop-filter: blur(8px) !important;
            border: 1px solid #cbdde9 !important;
        }
        body.theme-light .nav-links a {
            color: #0d47a1 !important;
        }
        body.theme-light .nav-links a:hover,
        body.theme-light .nav-links a.active {
            background: #0d47a1 !important;
            color: white !important;
        }
        /* Header */
        body.theme-light .header-main {
            background: rgba(13, 71, 161, 0.08) !important;
            border: 1px solid #cbdde9 !important;
        }
        body.theme-light .weather-area {
            background: rgba(13, 71, 161, 0.1) !important;
        }
        body.theme-light .weather-settings {
            color: #0d47a1 !important;
        }
        /* Botões */
        body.theme-light .btn-action {
            background: #0d47a1 !important;
            border-color: #42a5f5 !important;
            color: white !important;
        }
        body.theme-light .btn-action:hover {
            background: #1976d2 !important;
        }
        /* Tabelas e abas */
        body.theme-light .schedule-table th {
            color: #e65100 !important;
        }
        body.theme-light .schedule-table td,
        body.theme-light .music-table td {
            color: #1e293b !important;
            border-bottom-color: #cbd5e1 !important;
        }
        body.theme-light .day-tab {
            background: #e2e8f0 !important;
            color: #0d47a1 !important;
            border: 1px solid #42a5f5 !important;
        }
        body.theme-light .day-tab.active,
        body.theme-light .day-tab:hover {
            background: #f57c00 !important;
            color: white !important;
        }
        /* Player */
        body.theme-light .play-btn {
            background: #f57c00 !important;
        }
        body.theme-light .visualizer {
            background: rgba(0, 0, 0, 0.05) !important;
        }
        /* Mini player e barra de acessibilidade */
        body.theme-light .mini-player {
            background: #e2e8f0 !important;
            border: 1px solid #42a5f5 !important;
        }
        body.theme-light .mini-player .song,
        body.theme-light .mini-player .artist {
            color: #1e293b !important;
        }
        body.theme-light .mini-player button {
            color: #0d47a1 !important;
        }
        body.theme-light .access-bar {
            background: rgba(13, 71, 161, 0.15) !important;
        }
        body.theme-light .access-bar button {
            background: rgba(13, 71, 161, 0.2) !important;
            color: #0d47a1 !important;
        }
        /* Footer */
        body.theme-light .footer {
            background: rgba(13, 71, 161, 0.05) !important;
        }
        body.theme-light .footer a {
            color: #e65100 !important;
        }
        /* Formulários */
        body.theme-light input,
        body.theme-light textarea,
        body.theme-light select {
            background: white !important;
            color: #1e293b !important;
            border: 1px solid #cbd5e1 !important;
        }
        /* Ticker e banner */
        body.theme-light .warning-banner {
            background: #ffedd5 !important;
            color: #9a3412 !important;
        }
        body.theme-light .ticker-container {
            background: rgba(13, 71, 161, 0.05) !important;
        }
        body.theme-light .ticker-content span {
            color: #1e293b !important;
        }
        /* Social icons */
        body.theme-light .social-icons a {
            background: #e2e8f0 !important;
            color: #0d47a1 !important;
            border: 1px solid #42a5f5 !important;
        }
        body.theme-light .social-icons a:hover {
            background: #f57c00 !important;
            color: white !important;
        }
        /* Toast */
        body.theme-light .toast {
            background: #0d47a1 !important;
            color: white !important;
        }
        
        /* ========== ALTO CONTRASTE (inalterado) ========== */
        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;
        }

        /* ========== TAMANHOS DE FONTE ========== */
        body.font-small { font-size: 14px; }
        body.font-normal { font-size: 16px; }
        body.font-large { font-size: 18px; }
        body.font-xlarge { font-size: 20px; }

        /* ========== LAYOUT GERAL ========== */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }

        /* HEADER */
        .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 {
            text-align: center;
        }
        .station-info h1 {
            font-size: 1.6rem;
            letter-spacing: -0.5px;
        }
        .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;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.3);
            padding: 5px 15px;
            border-radius: 40px;
        }
        .weather-settings {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 1rem;
        }

        /* NAVBAR (base) */
        .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;
            align-items: center;
            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;
            font-weight: 500;
            transition: background 0.2s;
        }
        .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: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 6px 14px;
            border-radius: 40px;
            cursor: pointer;
            margin-left: 10px;
            transition: 0.2s;
        }
        .btn-reset-cache:hover {
            background: #dc3545;
        }

        /* BANNER E TICKER */
        .warning-banner {
            background-color: #ff9800;
            color: #1a1a2e;
            padding: 8px 15px;
            border-radius: 60px;
            text-align: center;
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .ticker-container {
            background: rgba(0,0,0,0.4);
            padding: 6px 0;
            overflow: hidden;
            white-space: nowrap;
            border-radius: 40px;
            margin-bottom: 15px;
        }
        .ticker-content {
            display: inline-block;
            animation: tickerScroll 25s linear infinite;
            padding-left: 100%;
        }
        .ticker-content span {
            margin: 0 25px;
            font-weight: bold;
        }
        @keyframes tickerScroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-100%); }
        }
        .ticker-container:hover .ticker-content {
            animation-play-state: paused;
        }

        /* CARDS (base) */
        .card {
            background: var(--bg-glass);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-glass);
            transition: transform 0.2s;
        }
        .card:hover {
            transform: translateY(-2px);
        }
        .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);
            overflow: hidden;
        }
        .cover img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .player-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            margin: 12px 0;
        }
        .play-btn {
            width: 48px;
            height: 48px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }
        .volume-slider {
            flex: 1;
            min-width: 130px;
        }
        .volume-slider input {
            width: 100%;
            cursor: pointer;
        }
        .status-badge {
            background: rgba(0,0,0,0.3);
            padding: 4px 10px;
            border-radius: 30px;
            font-size: 0.75rem;
        }
        .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;
        }
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        .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;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .btn-action:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-1px);
        }

        /* GRID AGORA */
        .agora-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        .agora-card {
            background: rgba(0,0,0,0.35);
            border-radius: 16px;
            padding: 14px;
            border-left: 4px solid var(--laranja);
        }
        .agora-title {
            font-size: 0.7rem;
            text-transform: uppercase;
            font-weight: bold;
            color: #ffd966;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }
        .agora-value {
            font-weight: 700;
            font-size: 0.95rem;
            line-height: 1.3;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-top: 10px;
        }
        .info-card {
            background: rgba(0,0,0,0.25);
            border-radius: 18px;
            padding: 16px;
            text-align: center;
        }
        .info-card i {
            font-size: 2rem;
            margin-bottom: 8px;
            color: #FFD966;
        }

        /* NOTÍCIAS */
        .noticias-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }
        .noticia-card {
            background: rgba(0,0,0,0.35);
            border-radius: 16px;
            padding: 14px;
            border-left: 4px solid var(--laranja);
        }
        .noticia-card.destaque {
            border-left-color: #e53935;
            background: rgba(0,0,0,0.5);
        }

        /* TABELAS */
        .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);
        }
        .schedule-table th {
            color: var(--laranja);
        }
        .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;
            transition: background 0.2s;
        }
        .day-tab.active, .day-tab:hover {
            background: var(--laranja);
        }
        .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;
        }

        /* MODAIS */
        .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;
        }
        .editor-textarea {
            font-family: monospace;
            height: 400px;
            width: 100%;
            background: #0f172a;
            color: white;
            border-radius: 12px;
            padding: 12px;
        }

        /* FOOTER E ACESSIBILIDADE */
        .footer {
            background: rgba(0,0,0,0.4);
            text-align: center;
            padding: 20px;
            margin-top: 20px;
            border-radius: 18px;
            font-size: 0.85rem;
        }
        .footer a {
            color: #ffd966;
            cursor: pointer;
            margin: 0 8px;
            text-decoration: none;
        }
        .access-bar {
            position: fixed;
            bottom: 80px;
            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;
            transition: background 0.2s;
        }
        .access-bar button:hover {
            background: rgba(255,255,255,0.4);
        }
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #323232;
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            z-index: 10001;
            display: none;
        }

        /* MINI PLAYER */
        .mini-player {
            position: fixed;
            bottom: 80px;
            right: 20px;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(12px);
            border-radius: 60px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 9998;
            border: 1px solid rgba(255,255,255,0.3);
        }
        .mini-player img {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #000;
            object-fit: contain;
        }
        .mini-player .info {
            display: flex;
            flex-direction: column;
            max-width: 150px;
        }
        .mini-player .song {
            font-weight: bold;
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mini-player .artist {
            font-size: 0.7rem;
            opacity: 0.8;
        }
        .mini-player button {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: background 0.2s;
        }
        .mini-player button:hover {
            background: rgba(255,255,255,0.2);
        }
        .mini-player input {
            width: 70px;
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 20px;
            padding: 2px 5px;
        }

        /* SOCIAL ICONS E SOBRE */
        .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: all 0.3s ease;
            text-decoration: none;
        }
        .social-icons a:hover {
            background: var(--laranja);
            transform: translateY(-5px);
        }
        .contact-modern-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 24px;
            margin: 25px 0 20px;
        }
        .contact-modern-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(4px);
            border-radius: 20px;
            padding: 18px;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .contact-icon-circle {
            width: 48px;
            height: 48px;
            background: var(--laranja);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: white;
            flex-shrink: 0;
        }
        .contact-modern-item h4 {
            margin: 0 0 6px 0;
            font-size: 1.1rem;
            color: #ffd966;
        }
        .contact-modern-item a {
            color: white;
            text-decoration: none;
        }
        .cookie-banner {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: #0f172a;
            border-radius: 16px;
            padding: 16px 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            z-index: 10002;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .cookie-banner .cookie-buttons {
            display: flex;
            gap: 12px;
        }
        .cookie-banner button {
            background: rgba(255,255,255,0.2);
            border: none;
            padding: 6px 16px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
            transition: background 0.2s;
        }
        .cookie-banner button:hover {
            background: rgba(255,255,255,0.4);
        }
        .cookie-banner .accept-cookies {
            background: #28a745;
        }

        /* RESPONSIVIDADE */
        @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;
            }
            .weather-area {
                justify-self: center;
            }
            .access-bar, .mini-player {
                bottom: 15px;
            }
            .agora-grid {
                gap: 12px;
            }
        }