/* ============================================================
   TEMA 04 — Portal / Rádio (3 colunas)
   Cores dinâmicas (definidas no painel, injetadas em :root):
   --p1 = fundo da página        (modelo: #f5f5f5)
   --p2 = cor principal escura   (modelo: #1a1a2e)
   --p3 = cor secundária         (modelo: #0f3460)
   --p4 = cor de destaque        (modelo: #00d4ff)
   ============================================================ */

:root {
    --p1: #f5f5f5;
    --p2: #1a1a2e;
    --p3: #0f3460;
    --p4: #00d4ff;
    --card-bg: var(--p5, #ffffff);
    --card-radius: 12px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --line: rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--p1);
    color: var(--p2);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

a {
    color: var(--p3);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--p4);
    text-decoration: none;
}

main {
    display: block;
}

blockquote {
    border-left: 4px solid var(--p4);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 8px 8px 0;
}

.container {
    max-width: 1680px;
}

/* Barra de rolagem */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
}

::-webkit-scrollbar-thumb {
    background: var(--p3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--p4);
}

/* ---------- Layout: grade de 3 colunas ---------- */

.main-content {
    padding: 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(330px, 1.1fr) 2.1fr minmax(350px, 1.2fr);
    gap: 30px;
    align-items: start;
}

.sidebar {
    min-width: 0;
}

.main-area {
    min-width: 0;
}

/* ---------- Módulos como widgets ---------- */

/* Nas colunas laterais cada módulo é um cartão branco */
.sidebar .modules {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

/* Exceções: módulos que não devem ter caixa própria */
.sidebar .module-21,
.sidebar .module-2,
.sidebar .module-15,
.modules.module-21,
.pos-1.modules,
.pos-5.module-14 {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Banner "peça sua música" tem fundo gradiente próprio */
.sidebar .module-18 {
    background: linear-gradient(135deg, var(--p4), var(--p3));
    color: #fff;
    text-align: center;
}

.sidebar .module-18 .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Títulos ---------- */

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--p2);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--p4);
    margin: 0 0 20px 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.section-header {
    margin: 0 0 25px;
}

.modules + .modules .section-header,
.main-area .modules:not(:first-child) .section-header {
    margin-top: 15px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--p2);
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
    text-transform: uppercase;
}

.section-line {
    height: 3px;
    background: linear-gradient(90deg, var(--p4), transparent);
    margin-top: 10px;
}

.empty-state {
    padding: 15px 5px;
    color: var(--text-soft);
    text-align: center;
}

.all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--p3);
    margin-top: 15px;
}

.all-link:hover {
    color: var(--p4);
}

.free-content {
    margin-top: 5px;
}

.module-1 img {
    max-width: 100%;
    border-radius: 8px;
}

/* ---------- Widget "No ar" (módulo 5) ---------- */

.on-air-content {
    text-align: center;
}

/* Markup gerado por getOnairData() em /assets/js/utils.js */
.module-5 .onAir > .d-flex {
    flex-direction: column !important;
    text-align: center;
}

.module-5 .onAir .flex-shrink-0 {
    margin: 0 auto 15px;
}

.module-5 .onAir img.current-img {
    width: 100px;
    height: 100px;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: cover;
    border-radius: 50% !important;
    border: 3px solid var(--p4);
    padding: 2px;
}

.module-5 .onAir .flex-grow-1 {
    margin-left: 0 !important;
    overflow: visible !important;
    width: 100%;
}

.module-5 .onAir h6 {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: var(--p2) !important;
    white-space: normal !important;
    margin-bottom: 4px !important;
}

.module-5 .onAir small {
    color: var(--p4);
    font-weight: 600;
    font-size: 14px;
}

.module-5 .onAir p {
    color: var(--text-soft) !important;
    font-size: 14px;
}

.program-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--p4), var(--p3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
    color: white;
}

/* ---------- Listas de músicas (últimas / promoções) ---------- */

.song-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.song-list li {
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.song-list li:last-child {
    border-bottom: none;
}

.song-list li:hover {
    background: rgba(0, 0, 0, 0.04);
}

.song-list .item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.song-cover {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--p3), var(--p4));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    overflow: hidden;
}

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

.song-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.song-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--p2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 12px;
    color: var(--text-soft);
}

/* Markup do endpoint /history (módulo 23) */
.played-list a,
.played-list > div {
    border-bottom: 1px solid var(--line);
    padding: 10px 5px;
}

.played-list a:last-child,
.played-list > div:last-child {
    border-bottom: none;
}

.played-list img {
    border-radius: 8px;
}

/* ---------- Top músicas (módulo 16) ---------- */

.top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.top-list li {
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.top-list li:last-child {
    border-bottom: none;
}

.top-list li:hover {
    background: rgba(0, 0, 0, 0.04);
}

.top-list .item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 10px;
}

.rank-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: linear-gradient(135deg, var(--p4), var(--p3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.song-cover-top {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--p3), var(--p4));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    overflow: hidden;
}

.song-cover-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--p2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist {
    font-size: 12px;
    color: var(--text-soft);
}

/* ---------- Banner de pedidos (módulo 18) ---------- */

.request-banner-link {
    display: block;
    color: #fff;
}

.request-banner-link:hover {
    color: #fff;
}

.banner-content {
    display: block;
}

.banner-content i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.banner-content .banner-title {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.banner-content .banner-text {
    margin-bottom: 15px;
    font-size: 14px;
    display: block;
}

.btn-request {
    background: white;
    color: var(--p3);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.request-banner-link:hover .btn-request {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ---------- Redes sociais (módulo 13) ---------- */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.social-btn:hover {
    transform: translateX(5px);
    color: white !important;
}

.social-btn.facebook { background: #3b5998; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.twitter { background: #1da1f2; }
.social-btn.youtube { background: #ff0000; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.linkedin { background: #0a66c2; }
.social-btn.pinterest { background: #bd081c; }
.social-btn.soundcloud { background: #ff5500; }
.social-btn.telegram { background: #229ed9; }
.social-btn.tiktok { background: #000000; }
.social-btn.snapchat { background: #fffc00; color: #000 !important; }
.social-btn.snapchat:hover { color: #000 !important; }
.social-btn.lastfm { background: #d51007; }
.social-btn.twitch { background: #9146ff; }
.social-btn.mixcloud { background: #17191c; }

/* ---------- Estatísticas (módulo 17) ---------- */

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.stat-item i {
    font-size: 32px;
    color: var(--p4);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--p2);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-soft);
}

/* ---------- Notícia em destaque + grade (módulo 8, coluna central) ---------- */

.featured-news {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.featured-news a {
    display: block;
    color: inherit;
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.featured-news:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--p4);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    z-index: 2;
}

.featured-content {
    padding: 30px;
}

.featured-content h2 {
    font-size: 32px;
    color: var(--p2);
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.featured-meta {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 20px;
}

.featured-meta i {
    margin: 0 5px 0 15px;
    color: var(--p4);
}

.featured-meta i:first-child {
    margin-left: 0;
}

.featured-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-read-more {
    display: inline-block;
    background: var(--p3);
    color: white !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-news:hover .btn-read-more,
.btn-read-more:hover {
    background: var(--p4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.news-card a {
    display: block;
    color: inherit;
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-category,
.dataNoticia {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--p4);
    color: white;
}

.news-content h3 {
    font-size: 18px;
    color: var(--p2);
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.news-content p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-softer);
}

.news-meta i {
    color: var(--p4);
    margin-right: 5px;
}

/* Lista compacta de notícias nas colunas laterais */
.news-mini {
    display: flex;
    flex-direction: column;
}

.news-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.news-mini-item:last-child {
    border-bottom: none;
}

.news-mini-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mini-thumb {
    width: 70px;
    height: 55px;
    min-width: 70px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--p2);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-date {
    font-size: 11px;
    color: var(--text-softer);
    margin-top: 4px;
}

.mini-date i {
    color: var(--p4);
    margin-right: 4px;
}

/* Notícias externas (módulo 25) */
.news-updated {
    display: flex;
    flex-direction: column;
}

.news-updated-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.news-updated-item:last-child {
    border-bottom: none;
}

.news-updated-item .nu-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--p2);
    line-height: 1.4;
}

.news-updated-item:hover .nu-title {
    color: var(--p4);
}

.news-updated-item .nu-date {
    display: block;
    font-size: 11px;
    color: var(--text-softer);
    margin-top: 4px;
}

.news-updated-item .nu-date i {
    color: var(--p4);
    margin-right: 4px;
}

/* ---------- Recados (módulo 9) ---------- */

.messages-section {
    margin-bottom: 10px;
}

.message-card {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar .message-card {
    padding: 12px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.05);
}

.message-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--p4), var(--p3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.sidebar .message-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-content h4 {
    font-size: 16px;
    color: var(--p2);
    margin-bottom: 8px;
}

.message-time {
    font-size: 12px;
    color: var(--text-softer);
    font-weight: normal;
    margin-left: 10px;
    font-family: 'Roboto', sans-serif;
}

.message-content p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.message-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-send-message {
    background: var(--p3);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.btn-send-message:hover {
    background: var(--p4);
    transform: translateY(-2px);
    color: white !important;
}

.message-buttons .all-link {
    margin-top: 5px;
    margin-left: auto;
    gap: 8px;
}

/* ---------- Vídeos / Álbuns / Eventos (módulos 10, 6, 3) ---------- */

.videos-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.videos-grid.grid-main {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.videos-grid.grid-side {
    grid-template-columns: 1fr;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: block;
    color: inherit;
}

.sidebar .video-card {
    box-shadow: none;
    background: rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.video-thumbnail {
    position: relative;
    height: 150px;
    overflow: hidden;
    display: block;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-thumbnail i {
    transform: translate(-50%, -50%) scale(1.2);
    color: var(--p4);
}

.video-card h4 {
    padding: 15px 15px 12px;
    font-size: 15px;
    color: var(--p2);
    margin: 0;
    line-height: 1.4;
}

.video-card p {
    padding: 0 15px 15px;
    font-size: 13px;
    color: var(--text-soft);
    margin: 0;
}

.event-card .event-info {
    display: block;
    padding: 12px 15px 15px;
}

.event-card .event-info h4 {
    padding: 6px 0 0;
}

.event-card .event-date {
    display: inline-block;
    background: var(--p4);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
}

/* ---------- Destaques em carrossel (módulo 7 — owl) ---------- */

.featured-slider .item {
    position: relative;
    display: block;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.featured-slider .item img {
    width: 100%;
    border-radius: var(--card-radius);
}

.featured-slider .item .featured-post {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    border-radius: var(--card-radius);
    display: flex;
    align-items: flex-end;
}

.featured-slider .item .post-content {
    padding: 25px;
    width: 100%;
}

.featured-slider .item .post-content .featured-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-slider .item .post-title {
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.featured-slider .owl-nav button.owl-prev,
.featured-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--p3) !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.featured-slider .owl-nav button.owl-prev { left: 15px; }
.featured-slider .owl-nav button.owl-next { right: 15px; }

.featured-slider .owl-nav button.owl-prev:hover,
.featured-slider .owl-nav button.owl-next:hover {
    background: var(--p4) !important;
    color: #fff !important;
}

/* ---------- Slider de banners (módulo 21 — royalSlider) ---------- */

.slider-banner,
.slider-banner .rsOverflow,
.slider-banner img.rsImg {
    border-radius: 0;
}

/* ---------- Links úteis / menu lateral ---------- */

.side-menu,
.navLinks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li a,
.navLinks li a {
    display: block;
    padding: 10px 5px;
    border-bottom: 1px solid var(--line);
    color: var(--p2);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.side-menu li:last-child a,
.navLinks li:last-child a {
    border-bottom: none;
}

.side-menu li a i,
.navLinks li a i {
    color: var(--p4);
    margin-right: 6px;
}

.side-menu li a:hover,
.navLinks li a:hover {
    color: var(--p4);
    padding-left: 10px;
}

/* ---------- Locutor online (módulo 24 — markup do utils.js) ---------- */

.outer-circle {
    height: 66px;
    width: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--p4);
}

.border-broadcaster {
    border-color: var(--p4);
}

.inner-circle {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
}

.inner-circle img,
.loc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.locOnline p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--p4) !important;
    font-weight: 600;
}

.locOnline h5 {
    color: var(--p2) !important;
}

/* ---------- Aplicativos (módulo 20) ---------- */

.block-apps p {
    font-size: 14px;
    color: var(--text-soft);
}

.btn-app-download {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--p3);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 10px;
    color: var(--p2);
    transition: all 0.3s ease;
}

.btn-app-download:hover {
    background: var(--p3);
    color: #fff;
}

.btn-app-download .app-ic i {
    font-size: 26px;
}

.btn-app-download .app-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-app-download .app-txt small {
    font-size: 11px;
    opacity: 0.8;
}

/* ---------- Enquete (módulo 12 — hooks do poll.js) ---------- */

.poll-question {
    font-weight: 600;
    margin-bottom: 12px;
}

.poll-area input[type="radio"],
.poll-area input[type="checkbox"] {
    display: none;
}

.poll-area label {
    display: block;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.poll-area label:hover {
    border-color: var(--p4);
}

label .row {
    display: flex;
    pointer-events: none;
    justify-content: space-between;
    margin: 0;
}

label .row .column {
    display: flex;
    align-items: center;
}

label .row .circle {
    height: 19px;
    min-width: 19px;
    display: block;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

label.selected .row .circle {
    border-color: var(--p4);
}

label .row .circle::after {
    content: "";
    height: 11px;
    width: 11px;
    background: var(--p4);
    border-radius: inherit;
    position: absolute;
    left: 2px;
    top: 2px;
    display: none;
}

.poll-area label:hover .row .circle::after {
    display: block;
    background: #e6e6e6;
}

label .row span {
    font-size: 15px;
    font-weight: 500;
}

label .row .percent {
    display: none;
}

label .progress {
    height: 7px;
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0 3px 0;
    border-radius: 30px;
    display: none;
    pointer-events: none;
    overflow: visible;
}

label .progress:after {
    position: absolute;
    content: "";
    height: 100%;
    background: #ccc;
    width: calc(1% * var(--w));
    border-radius: inherit;
    transition: all 0.2s ease;
}

label.selected .progress::after {
    background: var(--p4);
}

label.selectall .progress,
label.selectall .row .percent {
    display: block;
}

.voteBtn {
    background: var(--p3);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.voteBtn:hover:not(:disabled) {
    background: var(--p4);
}

.voteBtn:disabled {
    opacity: 0.5;
}

.parcialBtn {
    border: none;
    background: transparent;
    color: var(--p3);
    font-weight: 500;
}

.parcialBtn:hover {
    opacity: 0.7;
}

/* ---------- Classes utilitárias / compatibilidade com as páginas internas ---------- */

.bg-block {
    background-color: var(--p5, #ffffff) !important;
    box-shadow: var(--card-shadow);
}

.bg-block.active {
    background-color: var(--p4) !important;
    color: #fff !important;
}

.bg-transparent-contrast {
    background: rgba(0, 0, 0, 0.05);
}

.border-block {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.border-transparent {
    border-color: transparent !important;
}

.card-1,
.card-2 {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: none;
}

.card {
    border: none;
    border-radius: var(--card-radius);
    background: transparent;
}

.card-header,
.modules .card-header {
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--p4);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--p2);
    padding: 8px 2px 12px;
    font-size: 16px;
}

.text-overflow,
.text-overflow-inline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod {
    padding: 5px 0;
}

.nome {
    font-size: 13px;
    opacity: 0.85;
}

.link-plus {
    font-weight: 600;
}

.noResult {
    padding: 20px;
    text-align: center;
    color: var(--text-soft);
}

.error-message {
    color: #e53935;
    font-size: 13px;
}

/* Cartões de listagem das páginas internas (posts, vídeos, álbuns, eventos...) */

.grid-card {
    width: 33.333%;
    padding: 0 10px 20px 0;
}

.card-grid {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: block;
    height: 100%;
}

a:hover .card-grid,
a.card-grid:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-grid .card-grid-image {
    height: 170px;
    overflow: hidden;
}

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

a:hover .card-grid .card-grid-image img {
    transform: scale(1.08);
}

.card-grid .small,
.card-grid .card-grid-date {
    padding: 10px 15px 0;
    font-size: 12px;
    color: var(--text-softer) !important;
}

.card-grid .card-grid-container {
    padding: 6px 15px 15px;
}

.card-grid .card-grid-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--p2) !important;
}

.card-grid.without-image .card-grid-container {
    padding: 15px;
}

.card-grid .card-grid-event-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
}

.card-grid .card-grid-date .card-grid-day,
.card-grid .card-grid-date .card-grid-hour {
    display: block;
    text-align: center;
    font-weight: 700;
}

/* Lista de notícias usada em páginas internas (card-news) */

.news-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.news-wrapper.size-1 {
    flex-direction: column;
}

.news-item {
    flex: 1 1 250px;
}

.card-news.card-news-image {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

a:hover .card-news.card-news-image {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.card-news.card-news-image .img {
    width: 90px;
    min-width: 90px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
}

.card-news.card-news-image .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-news-date {
    font-size: 11px;
    color: var(--text-softer) !important;
}

.card-news-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: var(--p2) !important;
}

/* Página de post */

.post-head {
    margin-bottom: 15px;
}

.post-image img {
    max-width: 100%;
    border-radius: var(--card-radius);
}

.post-entry {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    line-height: 1.8;
}

.post-entry img {
    max-width: 100%;
    border-radius: 8px;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--p3);
    color: #fff;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.post-share a:hover {
    background: var(--p4);
    transform: translateY(-2px);
}

/* Recados (página) — balão de mensagem */

.balao2 {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px 15px;
    position: relative;
    color: var(--p2) !important;
    word-break: break-word;
}

.balao2:before {
    content: "";
    position: absolute;
    top: -8px;
    left: 18px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.06);
}

.balao2:after {
    content: none;
}

/* Paginação */

.paginator {
    margin-top: 20px;
}

.paginator li .page-link {
    border: none;
    border-radius: 8px !important;
    margin-right: 6px;
    background: var(--card-bg);
    color: var(--p2);
    box-shadow: var(--card-shadow);
    font-weight: 600;
}

.paginator li .page-link:hover {
    background: var(--p4);
    color: #fff;
}

.paginator li .page-link.active {
    background: var(--p3) !important;
    color: #fff !important;
}

/* list-group (categorias etc.) */

.list-group-item {
    border: none;
    margin-bottom: 6px;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.list-group-item.active {
    background-color: var(--p3) !important;
    color: #fff !important;
}

.list-group-item:hover {
    background-color: var(--p4) !important;
    color: #fff !important;
}

/* Programação (abas) */

.schedule-tabs button,
.schedule-tabs .nav-link {
    border: none;
    border-radius: 25px;
    font-weight: 600;
    color: var(--p2);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    margin: 0 4px 8px 0;
    padding: 8px 18px;
}

.schedule-tabs .nav-link.active,
.schedule-tabs button.active {
    background: var(--p3) !important;
    color: #fff !important;
}

.broadcaster {
    border-radius: var(--card-radius);
}

/* Top música (página) */

.votarMusica {
    background: var(--p3);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.votarMusica:hover {
    background: var(--p4);
}

.promo-finished {
    opacity: 0.55;
    filter: grayscale(60%);
}

/* Formulários */

.send-form input[type="text"],
.send-form input[type="email"],
.send-form input[type="tel"],
.send-form textarea,
.send-form select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border 0.3s ease;
    width: 100%;
    background: #fff;
}

.send-form input:focus,
.send-form textarea:focus,
.send-form select:focus {
    outline: none;
    border-color: var(--p4);
}

.btn-subm,
.send-message {
    background: var(--p3);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subm:hover,
.send-message:hover {
    background: var(--p4);
    transform: translateY(-2px);
}

.contact_area {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.video-container {
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* Módulos horizontais (menu/links no rodapé) */

.module-h .nav-pills .nav-link:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Anúncio */

.ad-box {
    display: block;
    text-align: center;
}

/* Câmera offline */

.ratio-content.offline {
    background: var(--p2);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offline-message {
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ---------- Banner de cookies (LGPD) ---------- */

#cookie-banner-lgpd {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: var(--p2);
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

#cookie-banner-lgpd .cookie-banner-lgpd-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#cookie-banner-lgpd .cookie-banner-lgpd_text-box {
    flex: 1;
    min-width: 250px;
}

#cookie-banner-lgpd .cookie-banner-lgpd_text {
    font-size: 13px;
    line-height: 1.6;
}

#cookie-banner-lgpd .cookie-banner-lgpd_text a {
    color: var(--p4) !important;
    text-decoration: underline;
}

.button-accept-terms {
    background: var(--p4);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-accept-terms:hover {
    background: #fff;
    color: var(--p2);
}

#cookie-banner-lgpd.cookie-banner-lgpd-animated {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner-lgpd.cookie-banner-lgpd-animated.cookie-banner-lgpd-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

#cookie-banner-lgpd.cookie-banner-lgpd-animated.cookie-banner-lgpd-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- Página em fundo com imagem ---------- */

.background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1399px) {
    .content-grid {
        grid-template-columns: minmax(300px, 1.1fr) 2fr minmax(315px, 1.15fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* Coluna do meio sempre em primeiro no empilhamento */
    .main-area {
        order: 1;
    }

    .sidebar-left {
        order: 2;
    }

    .sidebar-right {
        order: 3;
    }

    .sidebar-left,
    .sidebar-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .sidebar .modules {
        margin-bottom: 5px;
    }
}

@media (max-width: 991px) {
    .grid-card {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .news-grid,
    .videos-grid.grid-main {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 24px;
    }

    .featured-content {
        padding: 20px;
    }

    .sidebar-left,
    .sidebar-right {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .grid-card {
        width: 100%;
        padding-right: 0;
    }

    .message-buttons .all-link {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 20px 0;
    }
}

/* ============================================================
   Páginas internas — visual do modelo aplicado às rotas
   ============================================================ */

/* Aliases para páginas legadas que usam --colorN (podcast/podcasts) */
:root {
    --color1: var(--p1);
    --color2: var(--p3);
    --color3: var(--p2);
}

/* Cabeçalho de página */
.page-head {
    margin: 25px 0;
}

.page-head .ph-title {
    font-size: 28px;
    font-family: 'Poppins', sans-serif;
    color: var(--p2);
    margin: 0 0 6px;
    text-transform: uppercase;
    display: inline-block;
}

.page-head .ph-title i {
    color: var(--p4);
    margin-right: 10px;
}

.page-head .ph-line {
    height: 3px;
    width: 220px;
    max-width: 60%;
    background: linear-gradient(90deg, var(--p4), transparent);
    margin: 6px 0 10px;
}

.ph-breadcrumb {
    font-size: 13px;
    color: var(--text-soft);
}

.ph-breadcrumb a {
    color: var(--p3);
    font-weight: 500;
}

.ph-breadcrumb a:hover {
    color: var(--p4);
}

.ph-breadcrumb i {
    margin: 0 6px;
    font-size: 11px;
    color: var(--text-softer);
}

/* Cartão de conteúdo genérico */
.content-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.content-card img {
    max-width: 100%;
    border-radius: 8px;
}

/* Sidebar das páginas internas */
.side-widget {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 25px;
}

.side-widget .widget-title {
    font-size: 15px;
}

.rel-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.rel-item:last-child {
    border-bottom: none;
}

.rel-item .rel-thumb {
    width: 95px;
    min-width: 95px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
}

.rel-item .rel-thumb i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.rel-item .rel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--p2);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-item:hover .rel-title {
    color: var(--p4);
}

/* Anúncios laterais de páginas internas */
.side-ad {
    margin-bottom: 20px;
    text-align: center;
}

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

/* Página 404 */
.page-404 {
    text-align: center;
    padding: 80px 20px 90px;
}

.page-404 .code-404 {
    font-family: 'Poppins', sans-serif;
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--p4), var(--p3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-404 i.icon-404 {
    font-size: 60px;
    color: var(--p4);
    margin-bottom: 20px;
    display: inline-block;
}

.page-404 h1 {
    font-size: 26px;
    color: var(--p2);
    margin: 10px 0 8px;
}

.page-404 p {
    color: var(--text-soft);
    margin-bottom: 25px;
}

.btn-grad {
    display: inline-block;
    background: linear-gradient(135deg, var(--p4), var(--p3));
    color: #fff !important;
    padding: 13px 35px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Programação */
.sched-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 12px 15px;
    margin-bottom: 10px;
}

.sched-time {
    background: linear-gradient(135deg, var(--p4), var(--p3));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 20px;
    padding: 6px 14px;
    white-space: nowrap;
}

.sched-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--p2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-onair {
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 10px;
    margin-left: 8px;
    animation: pulseOnair 1.6s infinite;
}

@keyframes pulseOnair {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.sched-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    max-width: 220px;
}

.sched-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--p4);
}

/* Locutores */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 28px 20px 22px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.team-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--p4);
    padding: 3px;
    margin-bottom: 14px;
}

.team-card h5 {
    color: var(--p2);
    margin-bottom: 3px;
}

.team-card .team-role {
    display: block;
    font-size: 13px;
    color: var(--p4);
    font-weight: 600;
    margin-bottom: 14px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--p3);
    color: #fff !important;
    margin: 0 3px 6px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--p4);
    transform: translateY(-2px);
}

/* Formulários em cartão */
.form-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.form-card label {
    font-weight: 600;
    font-size: 13px;
    color: var(--p2);
    margin-bottom: 4px;
}

.form-card .form-control,
.form-card .form-select {
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--p2);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--p4);
    box-shadow: none;
}

/* Faixa de destaque da página de pedidos */
.request-hero {
    background: linear-gradient(135deg, var(--p4), var(--p3));
    color: #fff;
    border-radius: var(--card-radius);
    padding: 35px 25px;
    text-align: center;
    margin-bottom: 25px;
}

.request-hero i {
    font-size: 52px;
    margin-bottom: 12px;
    display: inline-block;
}

.request-hero h2 {
    color: #fff;
    margin-bottom: 6px;
}

.request-hero p {
    margin: 0;
    opacity: 0.9;
}

/* Contato */
.contact-info-card i.big-ic {
    font-size: 22px;
    color: var(--p4);
    margin-right: 10px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--p3);
    color: #fff !important;
    margin: 0 6px 8px 0;
    font-size: 19px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: var(--p4);
    transform: translateY(-2px);
}

.map-rounded,
.map-rounded .map-container {
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* Detalhe de evento */
.event-hero {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.event-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px;
}

.event-meta .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p2);
}

.event-meta .meta-pill i {
    color: var(--p4);
}

/* Galeria (royalSlider do álbum) */
.gallery-card .rsOverflow,
.gallery-card .royalSlider,
.gallery-card img.rsImg {
    border-radius: 10px;
}

/* Recados: feed */
.messages-feed .message-card {
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
}

/* Vídeo player card */
.player-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 15px;
    margin-bottom: 20px;
}

.share-label {
    font-weight: 600;
    color: var(--p2);
    margin-right: 8px;
}

/* Promoção */
.promo-hero-img {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.finished-tag {
    display: inline-block;
    background: #e53935;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    margin-bottom: 15px;
}

/* Post */
.post-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 25px;
}

.post-card .post-title {
    font-size: 30px;
    line-height: 1.3;
    color: var(--p2);
    margin-bottom: 10px;
}

.post-card .post-meta {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 20px;
}

.post-card .post-meta i {
    color: var(--p4);
    margin-right: 5px;
}

.post-card .post-meta .badge {
    background: var(--p4) !important;
    color: #fff !important;
    font-weight: 600;
    margin-left: 4px;
}

.post-card .post-image {
    margin-bottom: 20px;
}

.post-card .post-entry {
    box-shadow: none;
    padding: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .sched-item {
        flex-wrap: wrap;
    }

    .sched-user {
        width: 100%;
        max-width: none;
    }

    .page-head .ph-title {
        font-size: 22px;
    }

    .content-card,
    .post-card {
        padding: 20px;
    }
}

/* ============================================================
   v2.1 — Imagens com dimensões fixas (não quebram o layout)
   Regras com !important para vencer o addons.css global,
   que carrega depois do CSS do tema.
   ============================================================ */

#pContent img,
.modules img {
    max-width: 100%;
}

/* Programação: avatar sempre fixo */
.sched-item {
    overflow: hidden;
}

.sched-name {
    min-width: 0;
}

.sched-user {
    flex-shrink: 0;
}

.sched-user img,
.sched-item .broadcaster img,
.sched-item img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Últimas músicas (markup vindo do endpoint /history) */
.module-23 .played-list img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.module-23 .played-list .d-flex {
    align-items: center;
}

.module-23 .played-list .flex-grow-1 {
    min-width: 0;
    overflow: hidden;
}

.module-23 .played-list h6,
.module-23 .played-list p,
.module-23 .played-list small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* No ar */
.module-5 .onAir img.current-img {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    object-fit: cover !important;
}

/* Locutor online */
.locOnline .outer-circle {
    flex-shrink: 0;
}

.locOnline .inner-circle img,
.locOnline .loc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Miniaturas de listas: caixa fixa + corte proporcional */
.song-cover,
.song-cover-top,
.mini-thumb,
.rel-item .rel-thumb,
.message-avatar {
    flex-shrink: 0;
}

.song-cover img,
.song-cover-top img,
.mini-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Cards de notícia / vídeo / álbum / evento: imagem sempre no tamanho da caixa */
.news-image img,
.video-thumbnail img,
.featured-image img,
.card-grid .card-grid-image img,
.card-news.card-news-image .img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.team-card img {
    object-fit: cover !important;
}

/* Destaques (carrossel): alturas uniformes entre slides */
.featured-slider .item img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* Conteúdo livre, anúncios e corpo de post: nunca estourar a coluna */
.free-content img,
.ad-box img,
.side-ad img,
.post-entry img,
.content-card img {
    max-width: 100% !important;
    height: auto;
}

.post-image img {
    width: 100%;
}

/* ============================================================
   v2.2 — Legenda nas capas de álbuns, recados blindado
   ============================================================ */

/* Legenda sobre a própria imagem (cards de álbum) */
.video-thumbnail {
    display: block;
}

.thumb-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.thumb-caption i {
    color: var(--p4);
    margin-right: 6px;
}

.album-card .video-thumbnail {
    height: 185px;
}

.album-card:hover .thumb-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.1));
}

/* Recados: cards do feed blindados contra o CSS global (addons.css) */
.messages-feed .message-item {
    display: flex !important;
    align-items: flex-start;
    gap: 15px;
    background: var(--card-bg) !important;
    border: none !important;
    border-radius: var(--card-radius) !important;
    padding: 20px !important;
    margin: 0 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-shadow: var(--card-shadow) !important;
}

.messages-feed .message-item h4 {
    font-size: 16px;
    color: var(--p2);
    margin: 0 0 6px;
}

.messages-feed .message-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
    word-break: break-word;
}

.messages-feed .message-item.noResult {
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    color: var(--text-soft);
}

/* Widget de publicidade lateral: sem sobra quando só há anúncios */
.side-widget-ads .side-ad:last-child {
    margin-bottom: 0;
}

/* ============================================================
   v2.4 — Estatísticas centralizadas, programação (nome + foto)
   ============================================================ */

/* Estatísticas: cards lado a lado com os números bem centralizados */
.stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
}

.stat-item i {
    font-size: 28px;
}

.stat-info {
    align-items: center;
}

.stat-number {
    font-size: 26px;
}

/* Programação: nome antes, foto sempre alinhada ao final da linha */
.sched-user {
    justify-content: flex-end;
}

.sched-user .text-truncate {
    max-width: 170px;
}


/* ============================================================
   v2.6 — Cabeçalho colado (slider/menu sem vãos) e slider reto
   ============================================================ */

header .modules,
.pos-1.modules {
    margin: 0 !important;
}

.pos-1 .royalSlider,
.pos-1 .rsDefault {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}


/* ============================================================
   v2.7 — Form de recado embutido no módulo + polimento mobile
   ============================================================ */

.modules .modMsgForm {
    margin-top: 15px;
    box-shadow: none;
    border: 1px solid var(--line);
    padding: 18px;
    margin-bottom: 5px;
}

button.btn-send-message {
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .content-grid {
        gap: 20px;
    }

    .main-content {
        padding: 20px 0;
    }

    .modules .modMsgForm {
        padding: 14px;
    }
}

/* ============================================================
   v2.8 — Módulos independentes lado a lado + loading do site
   ============================================================ */

/* Cartões lado a lado NÃO esticam junto com o vizinho */
.sidebar .modules {
    height: auto;
    align-self: start;
}

@media (max-width: 1200px) {
    .sidebar-left,
    .sidebar-right {
        align-items: start;
        align-content: start;
    }
}

/* ---------- Loader inicial (equalizer) ---------- */

#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--p2, #1a1a2e), var(--p3, #0f3460));
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#pageLoader.pl-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pl-eq {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 46px;
}

.pl-eq span {
    width: 7px;
    height: 12px;
    border-radius: 4px;
    background: var(--p4, #00d4ff);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
    animation: plEq 1s ease-in-out infinite;
}

.pl-eq span:nth-child(1) { animation-delay: 0s; }
.pl-eq span:nth-child(2) { animation-delay: 0.15s; }
.pl-eq span:nth-child(3) { animation-delay: 0.3s; }
.pl-eq span:nth-child(4) { animation-delay: 0.45s; }
.pl-eq span:nth-child(5) { animation-delay: 0.6s; }

@keyframes plEq {
    0%, 100% { height: 12px; }
    50% { height: 46px; }
}

/* ---------- Barra de progresso (NProgress) na cor do tema ---------- */

#nprogress .bar {
    background: var(--p4, #00d4ff) !important;
    height: 3px !important;
    z-index: 100000 !important;
}

#nprogress .peg {
    box-shadow: 0 0 10px var(--p4, #00d4ff), 0 0 5px var(--p4, #00d4ff) !important;
}

/* ============================================================
   v2.9 — Laterais em masonry (estilo Pinterest) no colapso
   Os cartões encaixam um abaixo do outro, completando o espaço,
   sem buracos entre linhas e sem esticar com o vizinho.
   ============================================================ */

@media (max-width: 1200px) {
    .sidebar-left,
    .sidebar-right {
        display: block;
        columns: 280px 2;
        column-gap: 20px;
    }

    .sidebar .modules {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
        margin: 0 0 20px !important;
    }
}

@media (max-width: 640px) {
    .sidebar-left,
    .sidebar-right {
        columns: 1;
    }
}

/* ============================================================
   v3.0 — Podcast play, captcha no módulo, loading de módulo,
   nota de sucesso e hover neutro no módulo de recados
   ============================================================ */

/* Podcast: play redondo, imune às regras do header */
._podcast-card .btn-container .play-btn {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* reCAPTCHA cabendo dentro do formulário do módulo */
.modMsgForm .input-field.input-captcha {
    max-width: 100%;
    overflow: hidden;
}

.sidebar .modMsgForm .g-recaptcha-container {
    transform: scale(0.8);
    transform-origin: 0 0;
    height: 64px;
}

/* Sem efeito de hover no botão dentro do módulo (a página /recados mantém os dela) */
.modules .btn-send-message:hover {
    transform: none;
    background: var(--p3);
    box-shadow: none;
}

/* Loading de módulo (genérico): overlay + spinner */
.modules.mod-loading {
    position: relative;
    pointer-events: none;
}

.modules.mod-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(1px);
    border-radius: var(--card-radius);
    z-index: 5;
}

.modules.mod-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid var(--p4);
    border-top-color: transparent;
    border-radius: 50%;
    z-index: 6;
    animation: modSpin 0.8s linear infinite;
}

@keyframes modSpin {
    to { transform: rotate(360deg); }
}

/* Nota de confirmação após minimizar o formulário */
.msg-sent-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line);
    color: var(--p2);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    margin: 12px 0 5px;
}

.msg-sent-note i {
    color: #2eb872;
    font-size: 18px;
}

/* ============================================================
   v3.1 — Botão fechar do form embutido + loading garantido
   ============================================================ */

.modMsgForm {
    position: relative;
}

.modMsgClose {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--p2);
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modMsgClose:hover {
    background: var(--p4);
    color: #fff;
}

/* Botão do form some enquanto o módulo está em loading (evita duplo envio visual) */
.modules.mod-loading .modMsgForm button[type="submit"] {
    opacity: 0.5;
}

/* Loading do módulo também escurece levemente no tema escuro (usa p5) */
.modules.mod-loading::after {
    background: rgba(255, 255, 255, 0.55);
}
