/* ============================================
   BROADCAST VIMEO - ESTILOS FRONTEND
   Versión organizada - Sin conflictos
   ============================================ */

/* -------------------------------------------------
   1. CONTENEDORES PRINCIPALES
   ------------------------------------------------- */
.bv-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.bv-video-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.bv-shortcode-wrapper .bv-video-container {
    margin: 20px 0;
}

/* -------------------------------------------------
   2. TÍTULOS
   ------------------------------------------------- */
.bv-video-title {
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.bv-shortcode-wrapper .bv-video-title {
    font-size: 2rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* -------------------------------------------------
   3. METADATOS GENERALES
   ------------------------------------------------- */
.bv-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bv-meta-item {
    font-size: 15px;
    color: #555;
}

.bv-meta-item strong {
    color: #0073aa;
}

.bv-status-active {
    color: #28a745;
    font-weight: 600;
}

/* -------------------------------------------------
   4. CONTENEDOR DE VIDEO
   ------------------------------------------------- */
.bv-video-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.bv-vimeo-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.bv-vimeo-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bv-vimeo-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

.bv-vimeo-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
}

.bv-vimeo-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------------------------------
   5. INDICADORES DE ESTADO
   ------------------------------------------------- */
.bv-live-indicator,
.bv-replay-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.bv-live-indicator {
    background: #dc3545;
}

.bv-replay-indicator {
    background: linear-gradient(135deg, #5c7cfa, #4dabf7);
}

.bv-live-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: bv-pulse 1.5s infinite;
}

.bv-live-text {
    margin-left: 5px;
    font-weight: normal;
}

.bv-broadcast-time {
    font-family: initial;
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.bv-remaining-info {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.9;
}

.bv-broadcast-hint {
    font-size: 0.85em;
    opacity: 0.9;
    margin-left: auto;
}

/* -------------------------------------------------
   6. BADGES DE ESTADO (versiones pequeñas)
   ------------------------------------------------- */
.bv-badge-live,
.bv-badge-replay,
.bv-badge-scheduled {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.3px;
}

.bv-badge-live {
    background: #dc3545;
    color: white;
    animation: bv-pulse 2s infinite;
}

.bv-badge-replay {
    background: #4263eb;
    color: white;
}

.bv-badge-scheduled {
    background: #fab005;
    color: #212529;
}

.bv-estado-mini {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9em;
}

.bv-live-badge-mini {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.7rem;
    color: #dc3545;
    font-weight: 600;
}

.bv-live-ahora {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    animation: bv-pulse 2s infinite;
}

/* -------------------------------------------------
   7. ANIMACIONES
   ------------------------------------------------- */
@keyframes bv-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes bv-pulse-border {
    0% { border-left-color: #dc3545; }
    50% { border-left-color: #ff6b6b; }
    100% { border-left-color: #dc3545; }
}

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

@keyframes bv-fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bv-fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* -------------------------------------------------
   8. MENSAJES INFORMATIVOS
   ------------------------------------------------- */
.bv-scheduled-message {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    margin: 20px 0;
    color: #856404;
}

.bv-scheduled-message h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.bv-message-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ffc107;
    margin-bottom: 15px;
}

.bv-message-text {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.bv-scheduled-details {
    background: rgba(255,255,255,0.5);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: left;
}

.bv-scheduled-details p {
    margin: 8px 0;
}

.bv-instructions {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.bv-starting-message {
    text-align: center;
    padding: 30px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    margin: 20px 0;
    color: #0c5460;
}

.bv-starting-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #17a2b8;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

.bv-error-message {
    text-align: center;
    padding: 30px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 20px 0;
    color: #721c24;
}

.bv-error-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.bv-no-video {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border-radius: 10px;
    margin: 30px 0;
}

.bv-no-video h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.bv-video-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    margin: 20px 0;
    color: #6c757d;
}

.bv-placeholder-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.bv-access-expired {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border-radius: 10px;
    margin: 20px 0;
}

.bv-access-expired h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.bv-expired-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.bv-expired-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.95em;
}

.bv-no-results {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #6c757d;
    font-size: 1.1rem;
    border: 2px dashed #dee2e6;
    margin: 30px 0;
    width: 100%;
}

.bv-no-results p {
    margin: 0;
}

/* -------------------------------------------------
   9. BOTONES
   ------------------------------------------------- */
.bv-retry-button {
    margin-top: 20px;
    padding: 10px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.bv-retry-button:hover {
    background: #0056b3;
}

.bv-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.bv-card-button:hover {
    background: #005a87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.bv-card-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* -------------------------------------------------
   10. BOTÓN DE PARRILA (FANCYBOX)
   ------------------------------------------------- */
.bv-boton-parrilla-container {
    margin: 20px 0;
    text-align: center;
}

.bv-boton-parrilla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.bv-boton-parrilla:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bv-boton-parrilla .dashicons {
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.bv-btn-pequeno {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.bv-btn-mediano {
    padding: 12px 30px;
    font-size: 1rem;
}

.bv-btn-grande {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.bv-btn-azul {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
}

.bv-btn-azul:hover {
    background: linear-gradient(135deg, #005a87, #004466);
    color: white;
}

.bv-btn-rojo {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.bv-btn-rojo:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    color: white;
}

.bv-btn-verde {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.bv-btn-verde:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: white;
}

.bv-btn-gris {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.bv-btn-gris:hover {
    background: linear-gradient(135deg, #545b62, #3d4349);
    color: white;
}

/* -------------------------------------------------
   11. DESCRIPCIÓN Y SHORTCODE BOX
   ------------------------------------------------- */
.bv-description {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.bv-description h3 {
    color: #333;
    margin-bottom: 15px;
}

.bv-description p {
    line-height: 1.6;
    color: #555;
}

.bv-shortcode-box {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.bv-shortcode-box code {
    display: block;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-family: initial;
    margin-top: 5px;
}

/* -------------------------------------------------
   12. NOTIFICACIONES FLOTANTES
   ------------------------------------------------- */
.bv-broadcast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bv-broadcast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.bv-broadcast-notification::before {
    content: '⏪';
    margin-right: 8px;
    font-size: 16px;
}

/* -------------------------------------------------
   13. FRANJAS HORARIAS MÚLTIPLES
   ------------------------------------------------- */
.bv-franjas-multiples {
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid #e0e7ed;
    padding-top: 15px;
}

.bv-franjas-count {
    background: #0073aa;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 10px;
    display: inline-block;
}

.bv-franjas-list {
    margin-top: 15px;
    overflow: hidden;
}

.bv-franja-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.95em;
    transition: background 0.2s;
    gap: 5px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

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

.bv-franja-item:hover {
    background: #f8fafc;
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.bv-franja-activa {
    background: #e7f5ff;
    border-color: #0073aa;
    border-left-width: 4px;
}

.bv-franja-indice {
    background: #6c757d;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    flex-shrink: 0;
}

.bv-franja-activa .bv-franja-indice {
    background: #0073aa;
}

.bv-franja-fechas {
    flex: 1;
    font-family: initial;
}

.bv-franja-activa-label {
    color: #0073aa;
    font-weight: 600;
    font-size: 0.8em;
    margin-left: 10px;
    background: rgba(0,115,170,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.bv-franja-numero {
    background: #6c757d;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.bv-franja-activa .bv-franja-numero {
    background: #0073aa;
}

.bv-franja-horario {
    flex: 1;
    color: #495057;
    font-family: initial;
    font-size: 0.85rem;
}

.bv-franja-actual {
    color: #0073aa;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,115,170,0.1);
    padding: 2px 8px;
    border-radius: 30px;
    white-space: nowrap;
}

.bv-mas-franjas {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    text-align: center;
}

.bv-franjas-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.bv-franjas-header strong {
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bv-franjas-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

/* -------------------------------------------------
   14. GRID DE BROADCASTS (TARJETAS)
   ------------------------------------------------- */
.bv-broadcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin: 30px 0;
    width: 100%;
}

.bv-grid-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bv-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 115, 170, 0.15);
    border-color: #0073aa;
}

.bv-card-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bv-card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.bv-card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.bv-card-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.bv-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bv-card-body {
    padding: 20px;
    background: white;
    flex: 1;
}

.bv-card-footer {
    padding: 15px 20px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

/* -------------------------------------------------
   15. HORARIO SEMANAL (TABLA Y GRID)
   ------------------------------------------------- */
.bv-semana-titulos {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.bv-semana-titulos li {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dashed #e0e7ed;
}

.bv-semana-titulos li:last-child {
    border-bottom: none;
}

.bv-semana-titulos a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.bv-semana-titulos a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.bv-semana-titulos-simple {
    line-height: 1.8;
}

.bv-semana-titulos-simple a {
    color: #0073aa;
    text-decoration: none;
    white-space: nowrap;
}

.bv-semana-titulos-simple a:hover {
    text-decoration: underline;
}

.bv-horario-semanal {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bv-horario-semanal th {
    background: #0073aa;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.bv-horario-semanal td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.bv-horario-semanal tr:last-child td {
    border-bottom: none;
}

.bv-horario-semanal tr:hover td {
    background: #f8f9fa;
}

.bv-horario-semanal td:first-child {
    font-weight: 600;
    background: #f1f3f5;
    width: 100px;
}

.bv-horario-hora {
    font-family: initial;
    color: #495057;
    white-space: nowrap;
}

.bv-horario-programa a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.bv-horario-programa a:hover {
    text-decoration: underline;
}

.bv-sin-programacion {
    color: #adb5bd;
    font-style: italic;
    padding: 8px 0;
}

.bv-horario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bv-dia-columna {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.bv-dia-titulo {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
    font-size: 1.1rem;
    text-transform: capitalize;
}

.bv-dia-programas {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bv-programa-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
    transition: all 0.2s;
}

.bv-programa-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.bv-live-ahora-item {
    border-left-color: #dc3545;
    background: #ffe3e3;
}

.bv-programa-hora {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
    font-family: initial;
}

.bv-programa-titulo {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    font-size: 10px;
}

.bv-programa-titulo:hover {
    color: #0073aa;
}

/* -------------------------------------------------
   16. PARRILLA SEMANAL (GRID 7 DÍAS)
   ------------------------------------------------- */
.bv-parrilla-semanal {
    width: 100%;
    margin: 30px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.bv-parrilla-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    text-align: center;
}

.bv-parrilla-header-dia {
    padding: 5px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bv-parrilla-header-dia:last-child {
    border-right: none;
}

.bv-parrilla-body {
    display: flex;
    flex-direction: column;
}

.bv-parrilla-fila {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e9ecef;
}

.bv-parrilla-fila:last-child {
    border-bottom: none;
}

.bv-parrilla-celda {
    border-right: 1px solid #e9ecef;
    padding: 12px;
    min-height: 120px;
    background: white;
    transition: background 0.2s;
}

.bv-parrilla-celda:last-child {
    border-right: none;
}

.bv-parrilla-celda:hover {
    background: #f8f9fa;
}

.bv-programa-block {
    height: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f1f3f5;
    transition: all 0.2s;
}

.bv-programa-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bv-programa-block.bv-live-ahora {
    border-left-color: #dc3545;
    background: #fff5f5;
    animation: bv-pulse-border 2s infinite;
}

.bv-programa-vacio {
    background: transparent;
    border-left-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bv-sin-programa {
    color: #ced4da;
    font-size: 1.2rem;
}

.bv-programa-horario {
    font-size: 10px;
    font-family: initial;
    color: #495057;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px dashed #ced4da;
}

.bv-hora-inicio,
.bv-hora-fin {
    font-weight: 600;
}

.bv-parrilla-vacia {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    background: #f8f9fa;
}

/* -------------------------------------------------
   17. FANCYBOX PERSONALIZADO
   ------------------------------------------------- */
.bv-fancybox-contenido {
    max-width: 1200px;
    width: 90vw;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bv-fancybox-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 10px 10px;
    text-align: center;
}

.bv-fancybox-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;

}

.bv-fancybox-subheader {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.bv-fancybox-parrilla {
    padding: 10px;
    background: #f8f9fa;
    
    overflow-y: auto;
}

.bv-fancybox-parrilla::-webkit-scrollbar {
    width: 8px;
}

.bv-fancybox-parrilla::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bv-fancybox-parrilla::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 10px;
}

.bv-fancybox-parrilla::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}
.fancybox__content{
    padding: 10px !Important;
}
.fade-in {
    animation: bv-fadeIn 0.3s ease;
}

.fade-out {
    animation: bv-fadeOut 0.3s ease;
}

/* -------------------------------------------------
   18. UTILIDADES
   ------------------------------------------------- */
.bv-hidden {
    display: none !important;
}

/* -------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------- */
@media (max-width: 1024px) {
    .bv-parrilla-header-dia {
        padding: 12px 5px;
    }
    
    .bv-dia-nombre {
        font-size: 0.9rem;
    }
    
    .bv-parrilla-celda {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .bv-single-container,
    .bv-video-container {
        padding: 15px;
    }
    
    .bv-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .bv-live-indicator,
    .bv-replay-indicator {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    
    .bv-remaining-info,
    .bv-broadcast-hint {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        text-align: center;
    }
    
    .bv-scheduled-message,
    .bv-starting-message,
    .bv-error-message,
    .bv-access-expired {
        padding: 20px 15px;
    }
    
    .bv-franja-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .bv-franja-indice {
        width: 24px;
        height: 24px;
        font-size: 0.7em;
    }
    
    .bv-franja-fechas {
        width: calc(100% - 40px);
        font-size: 0.9em;
    }
    
    .bv-franja-activa-label {
        margin-left: 40px;
        width: calc(100% - 40px);
        text-align: center;
    }
    
    .bv-broadcast-notification {
        left: 20px;
        right: 20px;
        width: auto;
        border-radius: 8px;
        text-align: center;
    }
    
    .bv-broadcast-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bv-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bv-card-badge {
        align-self: flex-start;
    }
    
    .bv-horario-semanal {
        display: block;
        overflow-x: auto;
    }
    
    .bv-horario-semanal td:first-child {
        width: auto;
    }
    
    .bv-horario-grid {
        grid-template-columns: 1fr;
    }
    
    .bv-semana-titulos-simple a {
        white-space: normal;
        display: inline-block;
        margin: 3px 0;
    }
    
    .bv-parrilla-semanal {
        overflow-x: auto;
    }
    
    .bv-parrilla-header {
        min-width: 700px;
    }
    
    .bv-parrilla-body {
        min-width: 700px;
    }
    
    .bv-programa-block {
        padding: 8px;
    }
    
    .bv-fancybox-header {
        padding: 20px;
    }
    
    .bv-fancybox-header h2 {
        font-size: 1.4rem;
    }
    
    .bv-fancybox-subheader {
        font-size: 1rem;
    }
    
    .bv-fancybox-parrilla {
        padding: 15px;
    }
    
    .bv-btn-pequeno,
    .bv-btn-mediano,
    .bv-btn-grande {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bv-horario-semanal th,
    .bv-horario-semanal td {
        padding: 8px 10px;
    }
    
    .bv-live-ahora {
        display: inline-block;
        margin-top: 5px;
        margin-left: 0;
    }
    
    .bv-franjas-header {
        flex-wrap: wrap;
    }
    
    .bv-franjas-count {
        margin-left: 0;
    }
    
    .bv-card-button {
        padding: 12px 15px;
    }
    
    .bv-parrilla-celda {
        min-height: 100px;
    }
    
    .bv-programa-titulo {
        font-size: 0.8rem;
    }
    
    .bv-fancybox-header h2 {
        font-size: 1.2rem;
    }
    
    .bv-fancybox-subheader {
        font-size: 0.9rem;
    }
}
/* -------------------------------------------------
   20. BOTÓN DE CIERRE PARA FANCYBOX
   ------------------------------------------------- */
.bv-fancybox-contenido {
    position: relative;
}

.bv-fancybox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.bv-fancybox-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.bv-fancybox-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animación para el botón de cierre */
@keyframes bv-close-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.bv-fancybox-close:active {
    animation: bv-close-pulse 0.3s;
}

/* Responsive para el botón de cierre */
@media (max-width: 768px) {
    .bv-fancybox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .bv-fancybox-close .dashicons {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bv-fancybox-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
}
/* -------------------------------------------------
   21. PLAYLIST / MÚLTIPLES VIDEOS
   ------------------------------------------------- */
.bv-current-video-info {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.bv-current-video-title {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bv-current-video-desc {
    font-size: 0.95rem;
    color: #495057;
}

.bv-playlist-progress {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.bv-next-video-hint {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.9;
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 30px;
}

.bv-playlist {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.bv-playlist h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.bv-playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bv-playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    gap: 10px;
    flex-wrap: wrap;
}

.bv-playlist-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.bv-playlist-item.bv-current {
    background: #e7f5ff;
    border-color: #0073aa;
    border-left-width: 4px;
}

.bv-playlist-index {
    font-weight: 600;
    color: #6c757d;
    min-width: 30px;
}

.bv-playlist-title {
    flex: 1;
    font-weight: 500;
    color: #212529;
}

.bv-playlist-duration {
    color: #6c757d;
    font-size: 0.85rem;
    font-family: monospace;
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 20px;
}

.bv-playlist-current {
    color: #0073aa;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(0,115,170,0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.bv-video-counter {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Responsive para playlist */
@media (max-width: 768px) {
    .bv-current-video-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bv-playlist-progress,
    .bv-next-video-hint {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .bv-playlist-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bv-playlist-index {
        min-width: auto;
    }
    
    .bv-playlist-title {
        width: 100%;
        margin: 5px 0;
    }
    
    .bv-playlist-duration {
        align-self: flex-start;
    }
}

