/* Estructura Base */
body.transmission-body, 
html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden; /* Evita scroll en el body para permitir scroll en sidebar */
    font-family: "Roboto", sans-serif;
}

.transmission-room {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* Barra Superior (Header) */
.trans-header {
    background: #1a1a1a;
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    z-index: 1000;
}

.btn-back {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #136ad5; /* Color acento de la plantilla */
}

/* Contenedor Principal (Video + Sidebar) */
.main-container-room {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden; /* Importante para que el scroll solo sea del sidebar */
    background: #000;
}

/* Área del Reproductor */
.video-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
}

.video-area .ratio {
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    border-radius: 8px;
    overflow: hidden;
}

/* Barra Lateral (Sidebar) */
.transmission-sidebar {
    width: 320px; /* Ancho reducido solicitado */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #222;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

/* Pestañas (Tabs) del Sidebar */
.transmission-sidebar .nav-tabs {
    border: none;
    background: #f8f9fa;
    display: flex;
}

.transmission-sidebar .nav-tabs .nav-item {
    flex: 1;
    margin: 0;
}

.transmission-sidebar .nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 18px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #777;
    background: #f1f1f1;
    width: 100%;
    transition: 0.3s;
}

.transmission-sidebar .nav-tabs .nav-link.active {
    background: #ffffff;
    color: #136ad5;
    border-bottom: 3px solid #136ad5;
}

/* Contenido de Pestañas */
.tab-content-container {
    flex: 1;
    overflow-y: auto; /* Scroll independiente */
}

/* Estilos de la Agenda / Programa */
.agenda-content {
    padding: 10px;
}

.bloque-title {
    background: #f1f5f9;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin: 15px 0 10px 0;
    color: #334155;
    display: block;
    border-left: 4px solid #136ad5;
}

.agenda-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.agenda-item:hover {
    background: #f8fbff;
}

.agenda-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.agenda-item .details {
    display: flex;
    flex-direction: column;
}

.agenda-item .time {
    font-size: 0.7rem;
    color: #136ad5;
    font-weight: 800;
    margin-bottom: 2px;
}

.agenda-item .topic {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 3px;
}

.agenda-item .speaker {
    font-size: 0.75rem;
    color: #64748b;
}

/* Pestaña de Información */
.info-pane {
    padding: 25px;
}

.info-pane h6 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Pie de página de la sala (Footer) */
.trans-footer {
    background: #111111;
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    font-size: 0.75rem;
    border-top: 1px solid #222;
}

/*--------------------------------------------------------------
# Media Queries (Responsividad)
--------------------------------------------------------------*/
@media (max-width: 992px) {
    body.transmission-body {
        overflow-y: auto;
    }
    
    .transmission-room {
        height: auto;
        min-height: 100vh;
    }

    .main-container-room {
        flex-direction: column;
        overflow: visible;
    }

    .transmission-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #333;
    }

    .video-area {
        padding: 10px;
    }
    
    .tab-content-container {
        overflow-y: visible;
    }
}