/* ========================================================
   ESTILOS HORARIO DE STREAMS & GRÁFICA 2D (MEJORADO)
   ======================================================== */

/* ========================================================
   WIDGET SUPERIOR TIPO STATUS BAR (OPCIÓN 2)
   ======================================================== */
.stream-top-corridor {
    margin-top: -56px;
    margin-left: calc(var(--avatar-size, 120px) + 16px);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 15;
}

.stream-header-slot {
    width: 100%;
    display: flex;
    align-items: center;
}

/* Barra de estado elegante que aprovecha todo el espacio */
.stream-header-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 7px; /* Más pegado a la izquierda */
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(100, 65, 165, 0.45), rgba(42, 8, 69, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
    user-select: none;
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}

.stream-header-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 26px rgba(100, 65, 165, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}

.stream-header-card.is-live {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(185, 28, 28, 0.75)) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

.shc-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.shc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shc-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.shc-desc {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.live-pill-badge-mini {
    background: #ef4444;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* ========================================================
   EFECTO "EN DIRECTO" EN LA FOTO DE PERFIL (AVATAR LIVE RING)
   ======================================================== */
.profile-avatar-container.is-live-avatar .profile-avatar {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4), 0 0 25px rgba(239, 68, 68, 0.75) !important;
    animation: avatarLivePulse 1.6s infinite ease-in-out !important;
    cursor: pointer;
}

@keyframes avatarLivePulse {
    0% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.85), 0 0 14px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.3), 0 0 28px rgba(239, 68, 68, 0.9);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.85), 0 0 14px rgba(239, 68, 68, 0.5);
    }
}

.avatar-live-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid #111113;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    z-index: 25;
    pointer-events: none;
    text-transform: uppercase;
    animation: liveBadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes liveBadgePop {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* --- BOTÓN / TARJETA DEL PERFIL (SECCIÓN) --- */
.stream-schedule-btn-card {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stream-schedule-btn-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stream-default-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Badge "EN DIRECTO" animado */
.live-pill-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.6);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff !important;
    animation: liveWhitePulse 1.3s infinite ease-in-out;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes liveWhitePulse {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); }
    70% { transform: scale(1.2); opacity: 0.9; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.live-dot-mini {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px #ef4444;
    animation: livePulseMini 1.2s infinite ease-in-out;
}

@keyframes livePulseMini {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ========================================================
   MODAL PRINCIPAL DE CALENDARIO 2D
   ======================================================== */
.stream-schedule-modal .stream-modal-content {
    max-width: 1400px;
    width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    position: relative;
    overscroll-behavior: contain;
}

/* Botón de cierre sin superposición */
.stream-schedule-modal .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 40;
}

.stream-schedule-modal .modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.08);
}

/* Encabezado con padding derecho para NUNCA superponerse con la X */
.stream-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    padding-right: 52px !important; /* Espacio de seguridad para el botón de cierre */
}

.stream-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stream-modal-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(100, 65, 165, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
}

.stream-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.stream-modal-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.65));
}

.stream-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #9146ff;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
    white-space: nowrap;
}

.stream-channel-btn:hover {
    background: #772ce8;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Barra de Navegación de Semana */
.stream-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.week-nav-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.week-nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.week-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 170px;
    text-align: center;
}

.week-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.today-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.today-nav-btn:hover {
    background: var(--primary, #3b82f6);
}

.timezone-notice {
    font-size: 0.78rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================
   CUADRÍCULA / GRÁFICA 2D
   ======================================================== */
.schedule-2d-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding-bottom: 8px;
}

.schedule-2d-grid {
    width: 100%;
    min-width: 820px;
    display: flex;
    flex-direction: column;
}

.grid-header-row {
    display: flex;
    align-items: center;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 20;
}

.grid-day-header-cell {
    width: 95px;
    min-width: 95px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    display: flex;
    align-items: center;
    gap: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    left: 0;
    background: rgba(15, 15, 20, 0.98);
    z-index: 25;
}

.grid-hours-track-header {
    flex: 1;
    height: 100%;
    position: relative;
}

.grid-hour-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.grid-hour-marker.hour-odd {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.60rem;
    font-weight: 500;
}

.grid-hour-marker.hour-first {
    left: 0% !important;
    transform: translate(2px, -50%) !important;
}

.grid-hour-marker.hour-last {
    left: 100% !important;
    transform: translate(calc(-100% - 2px), -50%) !important;
}

.grid-day-row {
    display: flex;
    align-items: stretch;
    height: 62px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: background 0.15s ease;
}

.grid-day-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.grid-day-row.is-today-row {
    background: rgba(59, 130, 246, 0.04);
}

.grid-day-label-cell {
    width: 95px;
    min-width: 95px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    left: 0;
    background: rgba(15, 15, 22, 0.96);
    z-index: 10;
}

.grid-day-label-cell.active-today {
    border-left: 3px solid var(--primary, #3b82f6);
}

.day-short-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.day-date-number {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

.today-tag {
    font-size: 0.62rem;
    font-weight: 800;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    padding: 1px 4px;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 2px;
}

.grid-day-timeline {
    flex: 1;
    position: relative;
    height: 100%;
}

.grid-vertical-guide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.grid-vertical-guide.guide-odd {
    background: rgba(255, 255, 255, 0.02);
}

.grid-current-time-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.grid-current-time-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.timeline-empty-notice {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    pointer-events: none;
}

.stream-grid-block {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, z-index 0.2s;
    z-index: 5;
    user-select: none;
}

.stream-grid-block:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 12;
}

.stream-grid-block.is-live {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    border: 1px solid #ef4444;
    animation: liveBlockGlow 2s infinite ease-in-out;
}

@keyframes liveBlockGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.85); }
}

.stream-grid-block.is-past {
    opacity: 0.65;
    filter: grayscale(0.2);
}

.block-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.block-thumb-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.block-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.block-live-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

/* ========================================================
   MODAL DE DETALLE DEL STREAM (COMPLETAMENTE REDISEÑADO)
   ======================================================== */
.stream-detail-popup {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.stream-detail-cover-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #000000;
}

.stream-detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-detail-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(18, 18, 24, 1), transparent);
    pointer-events: none;
}

.stream-detail-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.stream-detail-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.08);
}

.stream-detail-body {
    padding: 16px 22px 22px 22px;
}

.stream-detail-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge-scheduled {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-live {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.6);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.status-badge-past {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
}

.stream-detail-date {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stream-detail-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.stream-detail-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.stream-detail-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--primary, #3b82f6);
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}

.stream-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-btn-directo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.stream-btn-directo:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
}

.stream-detail-secondary-actions {
    display: flex;
    gap: 8px;
}

.stream-btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.stream-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ========================================================
   RESPONSIVE MÓVIL
   ======================================================== */
@media (max-width: 768px) {
    .stream-top-corridor {
        margin-top: clamp(34px, 10vw, 48px) !important;
        margin-left: 0 !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        clear: both !important;
    }

    .stream-header-slot {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .stream-header-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stream-schedule-modal .stream-modal-content {
        padding: 14px;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .schedule-2d-grid {
        min-width: 680px;
    }

    .stream-modal-header {
        padding-right: 44px !important;
    }

    .stream-modal-title {
        font-size: 1.15rem;
    }

    .grid-day-header-cell,
    .grid-day-label-cell {
        width: 90px;
        min-width: 90px;
        padding: 6px 8px;
    }

    .day-short-name {
        font-size: 0.78rem;
    }

    .day-date-number {
        font-size: 0.68rem;
    }

    .grid-day-row {
        height: 56px;
    }

    .block-thumb {
        width: 26px;
        height: 26px;
    }

    .block-title {
        font-size: 0.72rem;
    }

    .block-time {
        font-size: 0.65rem;
    }
}
