/* ─────────────────────────────────────────────────────────────
 * NOVA FM — Estilos (tema oscuro ámbar/zinc, port del prototipo)
 * Autocontenido: prefijo .nfr- para no colisionar con el tema.
 * ───────────────────────────────────────────────────────────── */

.nfr-root {
	--nfr-bg: #09090b;
	--nfr-card: rgba(24, 24, 27, 0.55);
	--nfr-border: #27272a;
	--nfr-text: #f4f4f5;
	--nfr-muted: #71717a;
	--nfr-amber: #f59e0b;
	--nfr-amber-soft: rgba(245, 158, 11, 0.08);
	--nfr-radius: 16px;
	color: var(--nfr-text);
	background: var(--nfr-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	border-radius: var(--nfr-radius);
	padding: 12px;
	box-sizing: border-box;
}

.nfr-root *,
.nfr-root *::before,
.nfr-root *::after { box-sizing: border-box; }

.nfr-shell { max-width: 1150px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.nfr-card {
	background: var(--nfr-card);
	border: 1px solid var(--nfr-border);
	border-radius: var(--nfr-radius);
	padding: 20px;
}

.nfr-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nfr-muted { color: var(--nfr-muted); font-size: 13px; margin: 4px 0; }
.nfr-hint { color: var(--nfr-muted); font-size: 12px; margin: 8px 0 0; }

/* ══ Cabecera ══ */
.nfr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 4px;
}
.nfr-header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nfr-logo { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(245, 158, 11, 0.3); background: #18181b; flex-shrink: 0; }
.nfr-logo img { width: 100%; height: 100%; object-fit: cover; }
.nfr-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.nfr-slogan { font-size: 12px; color: var(--nfr-muted); display: block; }
.nfr-header-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nfr-pill {
	display: inline-flex; align-items: center; gap: 6px;
	background: #18181b; border: 1px solid var(--nfr-border);
	border-radius: 999px; padding: 5px 12px; font-size: 12px; color: #d4d4d8;
}
.nfr-pill-live { border-color: rgba(245, 158, 11, 0.4); color: var(--nfr-amber); font-weight: 600; }
.nfr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; animation: nfr-pulse 1.4s infinite; }
.nfr-pill-live .nfr-live-dot { background: var(--nfr-amber); }
@keyframes nfr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ══ Aviso ══ */
.nfr-notice {
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: #fbbf24;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
}

/* ══ Grids ══ */
.nfr-grid { display: grid; gap: 18px; }
.nfr-grid-top { grid-template-columns: 1.6fr 1fr; }
.nfr-grid-bottom { grid-template-columns: 1fr 1fr; }

/* ══ Reproductor ══ */
.nfr-player-head { display: flex; gap: 18px; align-items: center; }
.nfr-vinyl {
	position: relative; width: 150px; height: 150px; flex-shrink: 0;
	border-radius: 50%; overflow: hidden;
	border: 2px solid var(--nfr-border);
	background: #18181b;
	box-shadow: 0 0 0 6px #0c0c0e, 0 0 40px rgba(245, 158, 11, 0.12);
	transition: box-shadow 0.4s ease;
}
.nfr-vinyl img { width: 100%; height: 100%; object-fit: cover; }
.nfr-vinyl.is-playing img { animation: nfr-spin 6s linear infinite; }
@keyframes nfr-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.nfr-eq { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; align-items: flex-end; height: 26px; }
.nfr-eq i { width: 4px; background: var(--nfr-amber); border-radius: 2px; animation: nfr-eq 0.9s ease-in-out infinite; }
.nfr-eq i:nth-child(2) { animation-delay: 0.15s; }
.nfr-eq i:nth-child(3) { animation-delay: 0.3s; }
.nfr-eq i:nth-child(4) { animation-delay: 0.45s; }
.nfr-eq i:nth-child(5) { animation-delay: 0.6s; }
@keyframes nfr-eq { 0%, 100% { height: 6px; } 50% { height: 24px; } }

.nfr-player-info { min-width: 0; }
.nfr-kind { margin: 0 0 4px; font-size: 12px; color: var(--nfr-amber); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.nfr-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfr-artist { margin: 4px 0 10px; font-size: 14px; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nfr-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--nfr-muted); font-variant-numeric: tabular-nums; }
.nfr-progress-track { flex: 1; height: 5px; border-radius: 3px; background: #27272a; overflow: hidden; }
.nfr-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--nfr-amber), #fbbf24); border-radius: 3px; transition: width 0.3s linear; }

.nfr-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.nfr-btn {
	appearance: none; border: 1px solid var(--nfr-border);
	background: #18181b; color: var(--nfr-text);
	border-radius: 10px; padding: 9px 16px;
	font-size: 13px; font-weight: 600; cursor: pointer;
	transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
	min-height: 40px;
}
.nfr-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: #3f3f46; }
.nfr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.nfr-btn-primary { background: var(--nfr-amber); border-color: var(--nfr-amber); color: #1c1917; }
.nfr-btn-primary:hover:not(:disabled) { background: #fbbf24; }
.nfr-btn-icon { padding: 9px 13px; font-size: 14px; }
.nfr-btn-ghost { background: transparent; border-color: var(--nfr-border); color: #d4d4d8; font-weight: 500; }
.nfr-vol { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nfr-vol input[type="range"] { width: 130px; accent-color: var(--nfr-amber); cursor: pointer; }
.nfr-demo-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nfr-muted); cursor: pointer; }
.nfr-demo-toggle input { accent-color: var(--nfr-amber); width: 16px; height: 16px; cursor: pointer; }
.nfr-nextup { margin: 12px 0 0; font-size: 12.5px; color: #a1a1aa; }
.nfr-nextup b { color: var(--nfr-amber); font-weight: 600; }

.nfr-yt-host { width: 100%; aspect-ratio: 16 / 9; margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--nfr-border); }
.nfr-yt-host iframe { width: 100%; height: 100%; border: 0; }
.nfr-spotify-embed { margin-top: 14px; }
.nfr-spotify-embed iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; }

/* ══ Columna lateral ══ */
.nfr-col { display: flex; flex-direction: column; gap: 18px; }
.nfr-side { padding: 16px 18px; }
.nfr-weather { min-height: 40px; }
.nfr-w-temp { display: flex; align-items: baseline; gap: 10px; }
.nfr-w-temp b { font-size: 30px; font-weight: 700; color: var(--nfr-amber); }
.nfr-w-temp span { font-size: 13px; color: #d4d4d8; }
.nfr-w-meta { font-size: 12px; color: var(--nfr-muted); margin-top: 4px; }
.nfr-w-loc { font-size: 11px; color: #52525b; margin-top: 2px; }

.nfr-news { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow-y: auto; }
.nfr-news li { display: flex; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed #27272a; color: #d4d4d8; }
.nfr-news li:last-child { border-bottom: 0; }
.nfr-news a { color: #d4d4d8; text-decoration: none; }
.nfr-news a:hover { color: var(--nfr-amber); }
.nfr-n-num { color: var(--nfr-amber); font-variant-numeric: tabular-nums; font-weight: 600; flex-shrink: 0; }

.nfr-groups { display: flex; flex-direction: column; gap: 8px; }
.nfr-group {
	display: flex; gap: 10px; align-items: center;
	border: 1px solid var(--nfr-border); border-radius: 12px;
	padding: 8px; transition: border-color 0.2s ease, background 0.2s ease;
}
.nfr-group.is-current { border-color: rgba(245, 158, 11, 0.5); background: var(--nfr-amber-soft); }
.nfr-group img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.nfr-group b { font-size: 13px; display: block; }
.nfr-group span { font-size: 11px; color: var(--nfr-muted); }

/* ══ Tarjeta del locutor ══ */
.nfr-dj-card { background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(24, 24, 27, 0.55) 40%); }
.nfr-dj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nfr-dj-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nfr-dj-avatar { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(245, 158, 11, 0.3); flex-shrink: 0; }
.nfr-dj-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nfr-dj-name { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nfr-dj-status { margin: 2px 0 0; font-size: 12px; color: var(--nfr-muted); }
.nfr-badge-dj {
	border: 1px solid rgba(245, 158, 11, 0.4); color: var(--nfr-amber);
	background: var(--nfr-amber-soft); font-size: 11px; font-weight: 600;
	border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.nfr-waves { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.nfr-waves i { width: 3px; background: var(--nfr-amber); border-radius: 2px; animation: nfr-eq 0.8s ease-in-out infinite; }
.nfr-waves i:nth-child(2) { animation-delay: 0.12s; }
.nfr-waves i:nth-child(3) { animation-delay: 0.24s; }
.nfr-waves i:nth-child(4) { animation-delay: 0.36s; }
@keyframes nfr-eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }

.nfr-dj-config { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.nfr-select-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nfr-muted); }
.nfr-select-wrap select {
	background: #0c0c0e; color: var(--nfr-text);
	border: 1px solid var(--nfr-border); border-radius: 9px;
	padding: 7px 10px; font-size: 12.5px; cursor: pointer; min-height: 36px;
}
.nfr-engine-hint { flex-basis: 100%; margin-top: 0; }

.nfr-script {
	margin-top: 14px;
	border-left: 3px solid var(--nfr-amber);
	background: rgba(245, 158, 11, 0.05);
	border-radius: 10px;
	padding: 12px 16px;
}
.nfr-script p { margin: 0; font-size: 14px; color: #e4e4e7; font-style: italic; }
.nfr-ducking { margin: 10px 0 0; font-size: 12px; color: var(--nfr-amber); }

.nfr-request { display: flex; gap: 10px; margin-top: 14px; }
.nfr-request input {
	flex: 1; min-width: 0;
	background: #0c0c0e; border: 1px solid var(--nfr-border);
	color: var(--nfr-text); border-radius: 10px;
	padding: 9px 14px; font-size: 13px; min-height: 40px;
}
.nfr-request input:focus { outline: none; border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

/* ══ Fuentes ══ */
.nfr-sources-title { font-size: 15px; }
.nfr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nfr-tab {
	background: transparent; border: 1px solid transparent;
	color: var(--nfr-muted); border-radius: 9px;
	padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
	min-height: 36px;
}
.nfr-tab:hover { color: #d4d4d8; }
.nfr-tab.is-active { background: var(--nfr-amber); color: #1c1917; }
.nfr-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nfr-row input[type="text"] {
	flex: 1; min-width: 180px;
	background: #0c0c0e; border: 1px solid var(--nfr-border);
	color: var(--nfr-text); border-radius: 10px;
	padding: 9px 12px; font-size: 13px; min-height: 40px;
}
.nfr-row input:focus { outline: none; border-color: rgba(245, 158, 11, 0.5); }
.nfr-row select {
	background: #0c0c0e; color: var(--nfr-text);
	border: 1px solid var(--nfr-border); border-radius: 10px;
	padding: 7px 10px; font-size: 12.5px; min-height: 40px; cursor: pointer;
}
.nfr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.nfr-chip {
	background: #18181b; border: 1px solid var(--nfr-border);
	color: #a1a1aa; border-radius: 999px;
	padding: 5px 12px; font-size: 11.5px; cursor: pointer; min-height: 30px;
}
.nfr-chip:hover { color: var(--nfr-amber); border-color: rgba(245, 158, 11, 0.4); }

.nfr-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.nfr-station, .nfr-queue-item {
	display: flex; align-items: center; gap: 12px;
	border: 1px solid var(--nfr-border); border-radius: 12px;
	padding: 9px 12px; background: #0c0c0e;
}
.nfr-station-info { min-width: 0; flex: 1; }
.nfr-station-info b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfr-station-info span { font-size: 11.5px; color: var(--nfr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.nfr-station-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #18181b; }

.nfr-file-drop {
	display: block; border: 1.5px dashed var(--nfr-border);
	border-radius: 12px; padding: 22px; text-align: center;
	color: var(--nfr-muted); font-size: 13px; cursor: pointer;
	transition: border-color 0.2s ease;
}
.nfr-file-drop:hover { border-color: rgba(245, 158, 11, 0.5); }
.nfr-file-drop input { display: none; }

.nfr-browser-frame { margin-top: 12px; border: 1px solid var(--nfr-border); border-radius: 12px; overflow: hidden; }
.nfr-browser-frame iframe { width: 100%; height: 340px; border: 0; background: #fff; display: block; }
.nfr-browser-note { margin: 8px 12px; font-size: 11.5px; color: var(--nfr-muted); }
#nfr-browser-open { margin: 0 12px 12px; display: inline-block; text-decoration: none; }

.nfr-queue-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.nfr-queue-head h4 { margin: 0; font-size: 13px; font-weight: 600; }
.nfr-queue { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }

/* ══ Transcripciones / historial ══ */
.nfr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.nfr-card-head h3 { margin: 0; }
.nfr-scroll { max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
.nfr-scroll::-webkit-scrollbar { width: 6px; }
.nfr-scroll::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }
.nfr-transcript, .nfr-history { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 8px; }
.nfr-t-item { border: 1px solid var(--nfr-border); background: #0c0c0e; border-radius: 12px; padding: 12px 14px; }
.nfr-t-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.nfr-tag {
	border: 1px solid rgba(245, 158, 11, 0.3); background: var(--nfr-amber-soft);
	color: var(--nfr-amber); border-radius: 999px;
	font-size: 10px; font-weight: 600; padding: 3px 9px;
}
.nfr-t-meta { font-size: 10.5px; color: var(--nfr-muted); }
.nfr-t-script { margin: 0; font-size: 13px; color: #d4d4d8; }
.nfr-h-item { border-bottom: 1px dashed #27272a; padding: 7px 2px; }
.nfr-h-item:last-child { border-bottom: 0; }
.nfr-h-title { display: block; font-size: 13px; font-weight: 600; }
.nfr-h-meta { display: block; font-size: 11px; color: var(--nfr-muted); }

/* ══ About ══ */
.nfr-about p { font-size: 13px; color: #a1a1aa; }

/* ══ Responsive ══ */
@media (max-width: 900px) {
	.nfr-grid-top { grid-template-columns: 1fr; }
	.nfr-grid-bottom { grid-template-columns: 1fr; }
	.nfr-player-head { flex-direction: column; align-items: flex-start; }
	.nfr-vinyl { width: 120px; height: 120px; }
	.nfr-request { flex-direction: column; }
}
@media (max-width: 480px) {
	.nfr-root { padding: 6px; border-radius: 12px; }
	.nfr-card { padding: 14px; }
	.nfr-title { font-size: 17px; white-space: normal; }
	.nfr-controls { gap: 8px; }
	.nfr-vol input[type="range"] { width: 90px; }
}
