.sbc-tv-live-badge {
    background: #d00000;
    color: #fff;
    font-weight: bold;
    padding: 8px 14px;
    display: inline-block;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 14px;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}



/* =====================================================
   🔒 SBC TV — ISOLAMENTO TOTAL
===================================================== */
#sbc-tv-plugin,
#sbc-tv-plugin * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 🔴 AO VIVO */
.sbc-tv-live {
    position: relative;
}

.sbc-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: red;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 10;
    font-size: 14px;
}





/* GRID */
.sbc-tv-grid{
    display: grid;
    grid-template-columns: repeat(2, 380px);
    gap: 20px;
    max-width: 800px;
}

/* CARD */
.sbc-tv-item{
    width: 380px;
    height: 260px;          /* 👈 CONTROLE AQUI */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

/* IFRAME — FORÇA TOTAL */
.sbc-tv-item iframe{
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important; /* 🔥 ISSO RESOLVE */
    border: 0;
    display: block;
}





/* ==============================
   SBC TV — PÁGINA INTERNA
============================== */

.sbc-tv-interna {
    max-width: 820px;
}

.sbc-tv-interna .sbc-tv-grid {
    display: grid;
    grid-template-columns: 380px 380px;
    gap: 30px;
}

.sbc-tv-interna iframe {
    width: 380px;
    height: 210px;
    border-radius: 6px;
}

/* Paginação */
.sbc-tv-interna .sbc-tv-pagination {
    margin: 40px 0;
    text-align: center;
}









/* 🔒 ISOLAMENTO TOTAL DO PLUGIN */
#sbc-tv-plugin {
    width: 100%;
}

/* TOPO */
#sbc-tv-plugin .sbc-tv-topo iframe {
    width: 100%;
    height: 360px;
    border-radius: 12px;
}

/* QUADROS */
#sbc-tv-plugin .sbc-tv-quadro-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

#sbc-tv-plugin .sbc-tv-quadro iframe {
    width: 100%;
    height: 118px;
    border-radius: 8px;
}





/* ==================================================
   SBC TV – GRID PRINCIPAL (RESPEITA SIDEBAR)
================================================== */

.sbc-tv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
}

.sbc-tv-card {
    width: 100%;
}

.sbc-tv-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
}

.sbc-tv-card h3 {
    font-size: 15px;
    margin-top: 8px;
    line-height: 1.3;
}

/* Paginação */
.sbc-tv-pagination {
    margin-top: 30px;
    text-align: center;
}

.sbc-tv-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
}

.sbc-tv-pagination .current {
    background: #000;
    color: #fff;
}


/* FIFO NOTÍCIAS */
.sbc-tv-noticias-fifo {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sbc-tv-item iframe {
    width: 118px;
    height: 64px;
    border-radius: 6px;
}




.sbc-tv-thumb {
    position: relative;
}

.sbc-thumb-click {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}




.sbc-video-topo {
    width: 100%;
    margin: 0 auto;
}

.sbc-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.sbc-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.sbc-video-topo:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ===== SBC TV – EFEITO SOMENTE NOS 5 VÍDEOS ===== */

.sbc-tv-wrapper .sbc-video-box {
    position: relative;
    overflow: hidden; /* mantém zoom interno */
    border-radius: 8px;
    border: 4px solid #ffffff; /* ajuste para 5px se quiser */
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.35),
        0 6px 14px rgba(0,0,0,0.35);
    transition: box-shadow 0.35s ease;
}

/* iframe apenas dos vídeos SBC TV */
.sbc-tv-wrapper .sbc-video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transform: scale(1);
    transition: transform 0.45s ease;
}

/* hover – zoom interno */
.sbc-tv-wrapper .sbc-video-box:hover iframe {
    transform: scale(1.07);
}

/* hover – efeito 3D da borda */
.sbc-tv-wrapper .sbc-video-box:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.6),
        0 10px 22px rgba(0,0,0,0.45);
}





/* ===== ESCOPADO APENAS NO BLOCO SBC TV ===== */
.sbc-tv,
.sbc-tv * {
    box-sizing: border-box;
}

/* CONTAINER DE CADA VÍDEO */
.sbc-tv .sbc-video-topo,
.sbc-tv .sbc-video-bloco {
    position: relative;
    overflow: hidden; /* mantém zoom interno */
    border-radius: 8px;
    border: 4px solid #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.4),
        0 6px 14px rgba(0,0,0,0.35);
    transition: box-shadow 0.35s ease;
}

/* IFRAME – SOMENTE SBC TV */
.sbc-tv .sbc-video-topo iframe,
.sbc-tv .sbc-video-bloco iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transform: scale(1);
    transition: transform 0.5s ease;
}

/* HOVER – ZOOM INTERNO */
.sbc-tv .sbc-video-topo:hover iframe,
.sbc-tv .sbc-video-bloco:hover iframe {
    transform: scale(1.07);
}

/* HOVER – BORDA 3D */
.sbc-tv .sbc-video-topo:hover,
.sbc-tv .sbc-video-bloco:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.7),
        0 10px 22px rgba(0,0,0,0.45);
}



/* =====================================================
   SWITCH iOS - STATUS
===================================================== */
    
.sbc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.sbc-switch input {
    display: none;
}

.sbc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 34px;
    transition: .3s;
}

.sbc-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

.sbc-switch input:checked + .sbc-slider {
    background: #22c55e;
}

.sbc-switch input:checked + .sbc-slider::before {
    transform: translateX(22px);
}


/* =====================================================
   TABELA ADMIN — PADRÃO PROFISSIONAL
===================================================== */

.wrap h1 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

/* Container visual */
.wrap table.widefat {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Cabeçalho */
.widefat thead th {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Linhas */
.widefat tbody tr {
    transition: background .2s ease;
}

.widefat tbody tr:hover {
    background: #f9fafb;
}

/* Células */
.widefat td {
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

/* Última linha sem borda */
.widefat tbody tr:last-child td {
    border-bottom: none;
}

/* Coluna Link */
.widefat td:nth-child(3) {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2563eb;
}

/* Coluna Ações */
.widefat td:last-child {
    white-space: nowrap;
}

/* Botões */
.widefat .button {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.widefat .button-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.widefat .button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.widefat .button:not(.button-primary) {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.widefat .button:not(.button-primary):hover {
    background: #e5e7eb;
}

/* Status switch alinhado */
.widefat td .sbc-switch {
    transform: scale(0.9);
}


/* =====================================================
   AJUSTES FINAIS — CABEÇALHO DA TABELA
===================================================== */

/* Espaço acima da tabela */
.wrap table.widefat {
    margin-top: 16px;
}

/* Cabeçalho com separação clara */
.widefat thead th {
    border-bottom: 2px solid #e5e7eb;
}

/* Arredondamento correto do topo */
.widefat thead th:first-child {
    border-top-left-radius: 10px;
}

.widefat thead th:last-child {
    border-top-right-radius: 10px;
}

/* Linha inteira do thead com fundo sólido */
.widefat thead tr {
    background: #f9fafb;
}

/* Ajuste visual do status */
.widefat td .sbc-switch {
    margin-top: 2px;
}

/* Centraliza Status e Ordem */
.widefat td:nth-child(6),
.widefat th:nth-child(6),
.widefat td:nth-child(5),
.widefat th:nth-child(5) {
    text-align: center;
}

/* Ações mais alinhadas */
.widefat td:last-child {
    text-align: right;
}



/* ================================
   SBC TV — BLOCO FIXO (EXATO)
================================ */
/* Estilos para os vídeos no frontend - VERSÃO ATUALIZADA */
.sbc-videos-topo {
    margin: 20px 0 30px 0;
}

.sbc-video-item-topo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sbc-video-item-topo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sbc-video-embed-topo {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.sbc-video-embed-topo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sbc-video-info {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sbc-video-date {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Blocos de vídeos */
.sbc-videos-blocos-container {
    margin: 30px 0;
}

.sbc-blocos-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.sbc-videos-blocos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sbc-video-bloco-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.sbc-video-bloco-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.sbc-video-bloco-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.sbc-video-bloco-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sbc-video-bloco-info {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbc-bloco-number {
    background: #007cba;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.sbc-bloco-date {
    font-size: 12px;
    color: #6c757d;
}

/* Botão Ver Mais */
.sbc-load-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #dee2e6;
}

.sbc-load-more {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sbc-load-more:hover {
    background: #005a87;
    transform: scale(1.05);
}

.sbc-load-more:active {
    transform: scale(0.98);
}

/* Mensagem quando não há mais vídeos */
.sbc-no-more-videos {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #6c757d;
}

/* Responsividade */
@media (max-width: 768px) {
    .sbc-videos-blocos {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .sbc-video-embed-topo iframe {
        height: 350px;
    }
    
    .sbc-blocos-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sbc-videos-blocos {
        grid-template-columns: 1fr;
    }
    
    .sbc-video-embed-topo iframe {
        height: 250px;
    }
}

/* ================================
   SBC — BLOCOs FIXO (EXATO)
================================ */

.sbc-tv-wrapper {
   width: 110vw !important;
    height: 437px;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 15px 0;
    background: #222222 !important;
 align-items: center;
 
}

.sbc-tv-container {
    width: 1366px;
    max-width: 100%;
    height: 398px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 618px 520px;
    gap: 20px;
    align-items: center;
}



/* QUADRO 01 */
.sbc-tv-main .sbc-video-box {
   width: 797px;
    height:396px;
    margin-left:1px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* IFRAMES */
.sbc-video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* QUADROS 02–05 */
.sbc-tv-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
     margin-left:190px;
     margin-top:6px;
}

.sbc-tv-side .sbc-video-box {
    width: 255px;
    height: 190px;
    overflow: hidden;
}



/* ================================
   RESPONSIVO
================================ */
 @media (max-width: 1366px){
    .sbc-tv-wrapper{
         padding: 15px 0;
        height: 437px;
         margin-left:-9px !important;
    }
    
    
  
     .sbc-tv-main .sbc-video-box{
         margin-left:35px;
    width: 700px;
    height:400px;
     }
     
     .sbc-tv-side{
    position: relative;
    left: -9%;
     }
     
    
 }
 
 
 @media (max-width: 1023px) {
    
    .sbc-tv-main .sbc-video-box{

    width: 930px;
    height:400px;
     }
    
    .sbc-tv-wrapper{
        width:700px;
        height:900px;
        margin-left:70px!important;
    }
    
    
    .sbc-tv-container {
        grid-template-columns: 1fr;
        width:500px;
    }
    
    .sbc-tv-container{
     margin-left:10px;
    height:700px;
    }
    
      .sbc-tv-side {
        grid-template-columns: repeat(2, 1fr);
    }
    
}



@media (max-width:767px) {
     .sbc-tv-wrapper {
   width: 776px !important;
    height:890px;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 40px 0;
    background: #222222 !important;
    position: relative;
    left: 4.2%;
 
}

.sbc-tv-container {
    width: 1366px;
    max-width: 100%;
    height: 798px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 618px 520px;
    gap: 20px;
    align-items: center;
    
}



/* QUADRO 01 */
.sbc-tv-main .sbc-video-box {
  
    height:400px;
    margin-left:1px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
     margin-left: 5%;
     margin-top:-400px;
}

.sbc-tv-main .sbc-video-box{
    width:458px;
}


  .sbc-tv-side {
        grid-template-columns: repeat(2, 1fr);
    }
    
     .sbc-tv-side .sbc-video-box{
     width:220px;
    position: relative;
    left: -750px;
    top:222px;
     }

 }