/* DJ Arty Home: tarjeta de radio, historial y aviso de Weekend Party.
   Usa las variables globales de Elementor cuando existen y valores de la marca como respaldo. */
.djh-radio,
.djh-history,
.djh-weekend {
	--djh-bg: #0B0910;
	--djh-surface: #15111D;
	--djh-surface-2: #1E1829;
	--djh-line: #2D2538;
	--djh-ink: #F5EFF8;
	--djh-muted: #A99FB5;
	--djh-live: #FF3B5C;
	--djh-grad: linear-gradient(100deg, #BB62F1 0%, #EE4B4B 52%, #FFBD13 100%);
	--djh-mono: "DM Mono", ui-monospace, Menlo, monospace;
	--djh-display: "Syne", "Arial Black", sans-serif;
	color: var(--djh-ink);
	font-family: "Figtree", system-ui, sans-serif;
}

/* ---------- Indicador en vivo ---------- */
.djh-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--djh-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #FF8095;
}
.djh-live i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--djh-live);
	animation: djh-pulse 1.8s ease-in-out infinite;
}
.djh-live.is-off { color: var(--djh-muted); }
.djh-live.is-off i { background: var(--djh-muted); animation: none; }

/* ---------- Tarjeta de radio ---------- */
.djh-radio {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	border-radius: 18px;
	border: 1px solid var(--djh-line);
	background: rgba(21, 17, 29, .92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(5, 3, 9, .55);
}
.djh-radio.is-weekend {
	border: 1.5px solid transparent;
	background: linear-gradient(rgba(21, 17, 29, .96), rgba(21, 17, 29, .96)) padding-box, var(--djh-grad) border-box;
}
.djh-radio__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.djh-radio__brand { font-family: var(--djh-display); font-weight: 700; font-size: 15px; }
.djh-radio__show {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--djh-grad);
	color: #160B12;
	font-weight: 700;
	font-size: 13.5px;
}
.djh-radio__show[hidden] { display: none; }
.djh-radio__show small { font-family: var(--djh-mono); font-weight: 500; font-size: 11.5px; }
.djh-radio__now { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.djh-cover {
	width: 84px;
	height: 84px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--djh-surface-2);
	display: block;
	transition: opacity .3s ease;
}
.djh-radio__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.djh-radio__meta strong {
	font-family: var(--djh-display);
	font-size: 19px;
	line-height: 1.15;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.djh-radio__meta span:last-child { color: var(--djh-muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djh-label { font-family: var(--djh-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--djh-muted); }
.djh-radio__player { border-top: 1px solid var(--djh-line); padding-top: 14px; }
.djh-slot {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 1px dashed var(--djh-line);
	border-radius: 12px;
	font-size: 13.5px;
	color: var(--djh-muted);
}
.djh-slot strong { color: var(--djh-ink); font-weight: 600; font-size: 14px; }

/* ---------- Historial ---------- */
.djh-history { display: flex; flex-direction: column; gap: 8px; }
.djh-history__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.djh-track {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--djh-line);
}
.djh-track:last-child { border-bottom: 0; }
.djh-track__art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--djh-surface-2); display: block; }
.djh-track__meta { display: flex; flex-direction: column; min-width: 0; }
.djh-track__meta strong { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djh-track__meta span { color: var(--djh-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djh-track__time { font-family: var(--djh-mono); font-size: 13px; color: var(--djh-muted); font-variant-numeric: tabular-nums; }
.djh-history__empty,
.djh-history__note { margin: 0; font-size: 13px; color: var(--djh-muted); }
.djh-history__empty[hidden] { display: none; }

/* ---------- Weekend Party ---------- */
.djh-weekend { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.djh-weekend .djh-live { padding: 4px 10px; border-radius: 999px; background: rgba(255, 59, 92, .14); }
.djh-weekend .djh-live.is-off { background: rgba(245, 239, 248, .08); }
.djh-weekend__count { margin: 0; font-family: var(--djh-mono); font-size: 14px; color: #E3D9EC; }

@keyframes djh-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
	.djh-live i { animation: none; }
	.djh-cover { transition: none; }
}
@media (max-width: 480px) {
	.djh-radio { padding: 14px; }
	.djh-radio__now { grid-template-columns: 68px minmax(0, 1fr); }
	.djh-cover { width: 68px; height: 68px; }
	.djh-radio__meta strong { font-size: 17px; }
	.djh-track { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
	.djh-track__art { width: 48px; height: 48px; }
}
