/* ==========================================================================
   ALJANIA RADIO SCHEDULE - FRONTEND WIDGET (DARK METAL LIVE EDITION)
   PC: Vista Completa Lunes a Domingo + Banner "Actualmente en Vivo" (Lima, PE)
   Móvil: LU MA MI JU VI SA DO compacto + Día Seleccionado Expandido (ej. DOMINGO)
   ========================================================================== */

.aljania-schedule-widget {
	width: 100%;
	max-width: 100% !important;
	margin: 12px auto 24px auto;
	background: linear-gradient(180deg, #0f1119 0%, #090a0f 100%);
	border: 1px solid #1e2334;
	border-top: 3px solid #e50914;
	border-radius: 14px;
	padding: 22px 24px 26px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.78), 0 0 28px rgba(229, 9, 20, 0.12);
	color: #f1f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	position: relative;
}

.aljania-schedule-widget *,
.aljania-schedule-widget *::before,
.aljania-schedule-widget *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   1. CABECERA + RELOJ EN VIVO LIMA, PERÚ
   ========================================================================== */
.aljania-sched-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.aljania-sched-title-group {
	display: flex;
	align-items: center;
	gap: 11px;
}

.aljania-sched-title-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(229, 9, 20, 0.16);
	border: 1px solid rgba(229, 9, 20, 0.48);
	color: #ff3b45;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
	flex-shrink: 0;
}

.aljania-sched-heading {
	margin: 0 !important;
	color: #ffffff;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 1.2;
}

.aljania-sched-lima-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #141824;
	border: 1px solid #262e45;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;
	color: #cbd5e1;
	white-space: nowrap;
}

.aljania-sched-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e50914;
	box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.8);
	animation: aljSchedPulse 1.8s infinite;
	flex-shrink: 0;
}

@keyframes aljSchedPulse {
	0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.75); }
	70% { box-shadow: 0 0 0 7px rgba(229, 9, 20, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.aljania-sched-clock-day {
	color: #94a3b8;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 11px;
}

.aljania-sched-clock-time {
	color: #ffffff;
	font-family: monospace;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.6px;
}

.aljania-sched-clock-tz {
	color: #ff5c65;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.8px;
}

/* ==========================================================================
   2. BANNER "ACTUALMENTE EN VIVO" (NOW ON AIR)
   ========================================================================== */
.aljania-sched-now-banner {
	margin-bottom: 20px;
}

.aljania-now-card {
	position: relative;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	padding: 16px 20px;
	border-radius: 12px;
	background: linear-gradient(115deg, rgba(229, 9, 20, 0.16) 0%, #141724 42%, #0e1019 100%);
	border: 1px solid rgba(229, 9, 20, 0.55);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(229, 9, 20, 0.12);
	overflow: hidden;
}

.aljania-now-card.is-autodj {
	background: linear-gradient(115deg, rgba(56, 189, 248, 0.1) 0%, #131723 45%, #0d1018 100%);
	border-color: #27314a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.aljania-now-cover {
	width: 118px;
	height: 118px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid rgba(229, 9, 20, 0.65);
	background: #08090d;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
	flex-shrink: 0;
}

.aljania-now-card.is-autodj .aljania-now-cover {
	border-color: #334155;
}

.aljania-now-cover img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.aljania-now-center {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aljania-now-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.aljania-live-onair-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #e50914;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	box-shadow: 0 0 14px rgba(229, 9, 20, 0.75);
}

.aljania-live-onair-pill.is-autodj {
	background: #1e293b;
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.35);
	box-shadow: none;
}

.aljania-now-time-pill {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: monospace;
}

.aljania-now-genre-pill {
	background: rgba(251, 191, 36, 0.14);
	border: 1px solid rgba(251, 191, 36, 0.35);
	color: #fbbf24;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 999px;
	text-transform: uppercase;
}

.aljania-now-title {
	margin: 0 !important;
	color: #ffffff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.aljania-now-desc {
	margin: 0 !important;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aljania-now-progress-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.aljania-now-progress-track {
	flex: 1;
	height: 5px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	overflow: hidden;
}

.aljania-now-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #e50914 0%, #ff5252 100%);
	box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
	border-radius: 999px;
	transition: width 0.6s ease;
}

.aljania-now-progress-pct {
	font-size: 10.5px;
	color: #94a3b8;
	font-weight: 700;
	white-space: nowrap;
}

.aljania-now-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 190px;
}

.aljania-now-host-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	width: 100%;
}

.aljania-now-host-box:hover {
	border-color: rgba(229, 9, 20, 0.65);
	background: rgba(229, 9, 20, 0.08);
}

.aljania-now-host-avatar {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 2px solid #e50914;
	flex-shrink: 0;
}

.aljania-now-host-meta {
	min-width: 0;
	flex: 1;
}

.aljania-now-host-meta small {
	display: block;
	font-size: 9.5px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #94a3b8;
	font-weight: 700;
}

.aljania-now-host-meta strong {
	display: block;
	font-size: 13px;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aljania-now-next-pill {
	font-size: 11px;
	color: #94a3b8;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 6px 10px;
	width: 100%;
	text-align: right;
}

.aljania-now-next-pill strong {
	color: #f8fafc;
}

/* ==========================================================================
   3. BARRA DE DÍAS DE LA SEMANA (PC: NOMBRES COMPLETOS | MÓVIL: LU MA + ACTIVO FULL)
   ========================================================================== */
.aljania-sched-days-bar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 18px;
	background: #0b0d14;
	border: 1px solid #1b2030;
	border-radius: 10px;
	padding: 6px;
}

.aljania-sched-day-tab {
	position: relative;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #94a3b8;
	padding: 10px 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none !important;
}

.aljania-sched-day-tab:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
}

.aljania-sched-day-tab.is-active {
	background: linear-gradient(135deg, #e50914 0%, #a5060e 100%);
	border-color: #ff4752;
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.aljania-day-tab-short {
	display: none;
}

.aljania-day-tab-full {
	display: inline;
}

.aljania-day-today-dot {
	display: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px #10b981;
	flex-shrink: 0;
}

.aljania-sched-day-tab.is-today .aljania-day-today-dot {
	display: inline-block;
}

.aljania-sched-day-tab.is-today.is-active .aljania-day-today-dot {
	background: #ffffff;
	box-shadow: 0 0 8px #ffffff;
}

/* ==========================================================================
   4. TARJETAS DE PROGRAMAS DEL DÍA
   ========================================================================== */
.aljania-sched-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.aljania-sched-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 36px 20px;
	background: #0d1018;
	border: 1px dashed #242b40;
	border-radius: 10px;
	color: #94a3b8;
	font-size: 13.5px;
}

.aljania-sched-card {
	background: linear-gradient(180deg, #141824 0%, #0e111a 100%);
	border: 1px solid #202638;
	border-left: 3px solid var(--card-accent, #e50914);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	min-width: 0;
}

.aljania-sched-card:hover {
	transform: translateY(-2px);
	border-color: rgba(229, 9, 20, 0.55);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.aljania-sched-card.is-live-now {
	background: linear-gradient(135deg, rgba(229, 9, 20, 0.14) 0%, #141824 55%, #0e111a 100%);
	border-color: #e50914;
	box-shadow: 0 0 22px rgba(229, 9, 20, 0.28);
}

.aljania-sched-card-img {
	width: 78px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
	background: #07080c;
	border: 1px solid rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
}

.aljania-sched-card-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.aljania-sched-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.aljania-sched-card-top {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.aljania-sched-time-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #090b10;
	border: 1px solid #262e45;
	color: #f8fafc;
	font-family: monospace;
	font-size: 11.5px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 5px;
}

.aljania-sched-card.is-live-now .aljania-sched-time-badge {
	background: #e50914;
	border-color: #ff4752;
	color: #ffffff;
}

.aljania-sched-card-live-tag {
	font-size: 9.5px;
	font-weight: 900;
	letter-spacing: 0.8px;
	color: #ff4d58;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.aljania-sched-genre-tag {
	font-size: 9.5px;
	font-weight: 800;
	color: #fbbf24;
	background: rgba(251, 191, 36, 0.12);
	border: 1px solid rgba(251, 191, 36, 0.3);
	padding: 1px 7px;
	border-radius: 4px;
	text-transform: uppercase;
}

.aljania-sched-card-title {
	margin: 0 !important;
	color: #ffffff;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.25;
}

.aljania-sched-card-desc {
	margin: 0 !important;
	color: #94a3b8;
	font-size: 12.5px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aljania-sched-card-footer {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.aljania-sched-host-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #e2e8f0;
	text-align: left;
	min-width: 0;
}

.aljania-sched-host-trigger:hover .aljania-sched-host-name {
	color: #ff4d58;
}

.aljania-sched-host-trigger img {
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 1.5px solid rgba(229, 9, 20, 0.65);
	flex-shrink: 0;
}

.aljania-sched-host-name {
	font-size: 12px;
	font-weight: 700;
	color: #e2e8f0;
	transition: color 0.18s;
}

.aljania-sched-socials-row {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.aljania-sched-soc-link {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #1b2030;
	border: 1px solid #2b334b;
	color: #cbd5e1 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	transition: all 0.18s ease;
}

.aljania-sched-soc-link:hover {
	background: #e50914;
	border-color: #ff4752;
	color: #ffffff !important;
	transform: translateY(-1px);
}

/* ==========================================================================
   5. MODAL DE PERFIL DEL LOCUTOR / PROGRAMA
   ========================================================================== */
.aljania-sched-host-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.aljania-sched-host-modal-box {
	background: #121622;
	border: 1px solid #28314a;
	border-top: 3px solid #e50914;
	border-radius: 14px;
	width: 100%;
	max-width: 460px;
	padding: 22px;
	position: relative;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.aljania-sched-host-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.aljania-sched-host-modal-close:hover {
	background: #e50914;
	color: #ffffff;
}

.aljania-modal-host-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.aljania-modal-host-head img {
	width: 64px !important;
	height: 64px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 2px solid #e50914;
	flex-shrink: 0;
}

.aljania-modal-host-head h4 {
	margin: 0 0 3px 0;
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
}

.aljania-modal-host-head span {
	color: #ff5c65;
	font-size: 12px;
	font-weight: 700;
}

.aljania-modal-host-bio {
	color: #cbd5e1;
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0 0 16px 0;
}

.aljania-modal-host-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aljania-modal-soc-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #1b2133;
	border: 1px solid #2d3752;
	color: #f1f5f9 !important;
	padding: 7px 13px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s;
}

.aljania-modal-soc-pill:hover {
	background: #e50914;
	border-color: #ff4752;
	color: #ffffff !important;
}

/* ==========================================================================
   6. DISEÑO RESPONSIVE CELULAR & TABLET
   (Días inactivos en 2 letras: LU MA MI JU VI SA DO | Día activo en NOMBRE COMPLETO)
   ========================================================================== */
@media (max-width: 960px) {
	.aljania-now-card {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.aljania-now-cover {
		width: 96px;
		height: 96px;
	}

	.aljania-now-right {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.aljania-now-host-box,
	.aljania-now-next-pill {
		width: auto;
		flex: 1;
	}

	.aljania-sched-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.aljania-schedule-widget {
		padding: 15px 12px 18px;
		border-radius: 12px;
	}

	.aljania-sched-heading {
		font-size: 16.5px;
	}

	.aljania-sched-lima-pill {
		width: 100%;
		justify-content: center;
		padding: 6px 12px;
	}

	/* Barra de días inteligente en celular: LU MA MI JU VI SA DO + Activo expandido (ej. DOMINGO) */
	.aljania-sched-days-bar {
		display: flex !important;
		align-items: stretch !important;
		gap: 4px !important;
		padding: 4px !important;
	}

	.aljania-sched-day-tab {
		flex: 1 1 0% !important;
		min-width: 0 !important;
		padding: 9px 4px !important;
		font-size: 11px !important;
		letter-spacing: 0.4px !important;
		gap: 3px !important;
	}

	.aljania-sched-day-tab .aljania-day-tab-short {
		display: inline !important;
	}

	.aljania-sched-day-tab .aljania-day-tab-full {
		display: none !important;
	}

	/* El día seleccionado se expande suavemente para mostrar el nombre completo */
	.aljania-sched-day-tab.is-active {
		flex: 2.8 1 auto !important;
		padding: 9px 10px !important;
		font-size: 11.5px !important;
		letter-spacing: 0.7px !important;
	}

	.aljania-sched-day-tab.is-active .aljania-day-tab-short {
		display: none !important;
	}

	.aljania-sched-day-tab.is-active .aljania-day-tab-full {
		display: inline !important;
		white-space: nowrap !important;
	}

	.aljania-now-card {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
		padding: 13px;
	}

	.aljania-now-cover {
		width: 76px;
		height: 76px;
	}

	.aljania-now-title {
		font-size: 17px;
	}

	.aljania-now-right {
		flex-direction: column;
		align-items: stretch;
	}

	.aljania-now-next-pill {
		text-align: left;
	}

	.aljania-sched-card {
		padding: 12px;
		gap: 11px;
	}

	.aljania-sched-card-img {
		width: 64px;
		height: 64px;
	}

	.aljania-sched-card-title {
		font-size: 14.5px;
	}
}
