/* ============================================
   PARRILLA DE PROGRAMACIÓN - CASTING QUITO
   ============================================ */

.programacion-header { margin-bottom: 2rem; }

/* Tabs de vista (semana / mes / lista) */
.view-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.view-tab {
    padding: .6rem 1.25rem;
    background: #18181b; color: #a1a1aa;
    border: 1px solid #27272a; border-radius: .5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .05em; font-size: 1rem;
    cursor: pointer; transition: all .25s ease;
}
.view-tab:hover { color: #fff; border-color: #e11d48; }
.view-tab.active { background: #e11d48; color: #fff; border-color: #e11d48; }

/* Navegación de semanas */
.week-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem; padding: 1rem;
    background: #18181b; border: 1px solid #27272a; border-radius: .75rem;
    flex-wrap: wrap;
}
.week-nav__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem; color: #fff; letter-spacing: .05em;
}
.week-nav__btn {
    background: #27272a; color: #fff; border: none;
    padding: .5rem 1rem; border-radius: .5rem;
    cursor: pointer; transition: background .2s;
}
.week-nav__btn:hover { background: #e11d48; }

/* ============================================
   GRID SEMANAL (tipo TV profesional)
   ============================================ */
.grid-wrap {
    overflow-x: auto;
    border-radius: .75rem;
    margin-bottom: 2rem;
}
.grid-wrap::-webkit-scrollbar { height: 8px; }
.grid-wrap::-webkit-scrollbar-thumb { background: #e11d48; border-radius: 4px; }

.schedule-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, minmax(120px, 1fr));
    gap: 2px;
    background: #27272a;
    border: 1px solid #27272a;
    border-radius: .75rem;
    overflow: hidden;
    min-width: 900px;
}

/* Cabecera de días */
.grid-header {
    background: #0f0f14;
    padding: .75rem .5rem;
    text-align: center;
    color: #a1a1aa;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .1em; font-size: .85rem;
    border-bottom: 2px solid #27272a;
}
.grid-header.today { color: #e11d48; border-bottom-color: #e11d48; }
.grid-header__day { display: block; font-size: 1.2rem; color: #fff; }
.grid-header__date { font-size: .7rem; letter-spacing: .05em; }

/* Columna de horas */
.grid-time {
    background: #0f0f14;
    padding: .5rem;
    font-family: monospace; font-size: .75rem;
    color: #71717a; text-align: right;
    border-right: 2px solid #27272a;
    min-height: 60px;
    display: flex; align-items: flex-start; justify-content: flex-end;
}

/* Celdas */
.grid-cell {
    background: #18181b;
    position: relative;
    min-height: 60px;
    transition: background .2s;
}
.grid-cell:hover { background: #1f1f23; }

/* Bloques de programa */
.program-block {
    position: absolute;
    left: 2px; right: 2px;
    padding: .5rem .6rem;
    border-radius: .375rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    border-left: 3px solid;
}
.program-block:hover {
    transform: scale(1.03);
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

/* Colores por categoría */
.program-block--masterclass { background: rgba(225,29,72,.15); border-color: #e11d48; color: #fda4af; }
.program-block--teatro      { background: rgba(168,85,247,.15); border-color: #a855f7; color: #d8b4fe; }
.program-block--cine        { background: rgba(59,130,246,.15); border-color: #3b82f6; color: #93c5fd; }
.program-block--moda        { background: rgba(236,72,153,.15); border-color: #ec4899; color: #f9a8d4; }
.program-block--entrevista  { background: rgba(20,184,166,.15); border-color: #14b8a6; color: #5eead4; }
.program-block--casting     { background: rgba(234,179,8,.15);  border-color: #eab308; color: #fde047; }

.program-block__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: .9rem; line-height: 1.1; margin-bottom: .15rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.program-block__time { font-size: .65rem; opacity: .75; font-family: monospace; }

/* Bloque EN VIVO */
.program-block.is-live { animation: liveGlow 2s infinite; }
@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,.5); }
    50%      { box-shadow: 0 0 12px 2px rgba(225,29,72,.4); }
}
.program-block__live-badge {
    position: absolute; top: 4px; right: 4px;
    background: #e11d48; color: #fff;
    font-size: .55rem; font-weight: 700; letter-spacing: .1em;
    padding: 1px 5px; border-radius: 3px;
    display: flex; align-items: center; gap: 3px;
}
.program-block__live-badge::before {
    content: ''; width: 5px; height: 5px;
    background: #fff; border-radius: 50%;
}

/* ============================================
   VISTA LISTA POR DÍA
   ============================================ */
.schedule-list { display: flex; flex-direction: column; gap: 1rem; }
.schedule-day {
    background: #18181b; border: 1px solid #27272a;
    border-radius: .75rem; overflow: hidden;
}
.schedule-day__header {
    background: #0f0f14; padding: 1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #27272a;
}
.schedule-day__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; color: #fff; letter-spacing: .05em;
}
.schedule-day__date { color: #a1a1aa; font-size: .85rem; }
.schedule-day.is-today .schedule-day__name { color: #e11d48; }
.schedule-day.is-today .schedule-day__header { border-bottom-color: #e11d48; }

.schedule-item {
    display: flex; gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #27272a;
    align-items: flex-start;
    transition: background .2s; cursor: pointer;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: #1f1f23; }
.schedule-item__time {
    font-family: monospace; font-size: .85rem;
    color: #e11d48; font-weight: 600;
    min-width: 60px; padding-top: 2px;
}
.schedule-item__cat {
    display: inline-block; font-size: .65rem;
    padding: 1px 8px; border-radius: 3px;
    letter-spacing: .05em; margin-top: 2px;
}
.schedule-item__info { flex: 1; }
.schedule-item__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem; color: #fff;
    letter-spacing: .03em; margin-bottom: .2rem;
}
.schedule-item__desc { font-size: .8rem; color: #a1a1aa; line-height: 1.4; }

/* ============================================
   CALENDARIO MENSUAL
   ============================================ */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px; background: #27272a;
    border-radius: .75rem; overflow: hidden;
}
.month-day-header {
    background: #0f0f14; padding: .75rem .5rem;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: .85rem; color: #a1a1aa; letter-spacing: .1em;
}
.month-cell { background: #18181b; min-height: 100px; padding: .5rem; position: relative; }
.month-cell.other-month { background: #0f0f14; opacity: .4; }
.month-cell.today { background: rgba(225,29,72,.1); border: 1px solid #e11d48; }
.month-cell__number { font-family: monospace; font-size: .85rem; color: #a1a1aa; margin-bottom: .3rem; }
.month-cell.today .month-cell__number { color: #e11d48; font-weight: 700; }
.month-pill {
    display: block; font-size: .65rem;
    padding: 2px 5px; border-radius: 3px;
    margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer; transition: transform .15s;
}
.month-pill:hover { transform: translateX(2px); }

/* Leyenda de categorías */
.legend {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-top: 1rem; padding: 1rem;
    background: #18181b; border: 1px solid #27272a; border-radius: .75rem;
}
.legend__item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #a1a1aa; }
.legend__dot { width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid; }