/*! ==========================================================================
 * Luxury News — LIVE RADIO Player (Karnataka-first, floating)
 * ---------------------------------------------------------------------------
 * Floating launcher fixed above the back-to-top button (bottom-right).
 * Click launcher -> drawer expands upward. No full-screen modal.
 * z-index 9000: above normal content + sticky nav (990), below critical
 * overlays/modals (mobile nav 9999999, search modal 999999).
 * Mobile (<=480px): compact bottom bar that never covers the header nav,
 * article text or footer actions while the drawer is closed.
 * ========================================================================== */

.np-radio-player {
	position: fixed;
	right: 20px;
	bottom: 88px;                 /* above .scrollup (bottom 20px, 40px tall) */
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font-family: inherit;
}

/* ---- drawer (expands upward from the launcher) ---- */
.np-radio-drawer {
	width: 340px;
	max-width: calc(100vw - 24px);
	max-height: min(68vh, calc(100vh - 200px));
	display: none;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(7, 21, 47, .2);
	overflow: hidden;
}

.np-radio-drawer.np-open { display: flex; }

.np-radio-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	background: #07152f;
	color: #fff;
}

.np-radio-head-title { font-size: 14px; font-weight: 800; letter-spacing: .4px; }
.np-radio-head-sub { font-size: 11px; color: #aeb6c2; flex: 1; text-align: right; }

.np-radio-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.np-radio-close:hover { color: #ffc107; }

/* ---- filter chips (horizontal scroll on mobile) ---- */
.np-radio-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: #f5f6f8;
	border-bottom: 1px solid #eaecf0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.np-radio-tabs::-webkit-scrollbar { display: none; }

.np-radio-chip {
	flex: 0 0 auto;
	border: 1px solid #d7dbe1;
	background: #fff;
	color: #3d4653;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.np-radio-chip:hover { border-color: #c8102e; color: #c8102e; }
.np-radio-chip.np-chip-active {
	background: #07152f;
	border-color: #07152f;
	color: #fff;
}

/* ---- now playing / persistent controls ---- */
.np-radio-now {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px 6px;
}

.np-radio-logo {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	background: #eef0f3;
	flex: 0 0 48px;
}

.np-radio-now-meta { flex: 1; min-width: 0; }

.np-radio-now-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .8px;
	color: #c8102e;
	text-transform: uppercase;
}

.np-radio-station-name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #16191f;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-radio-station-sub { display: block; font-size: 11.5px; color: #8a9099; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.np-radio-play {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: #c8102e;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(200, 16, 46, .3);
}
.np-radio-play:disabled { opacity: .5; cursor: default; box-shadow: none; }
.np-radio-play:not(:disabled):hover { background: #07152f; }

.np-radio-volume {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 14px 6px;
}

.np-vol-ico { font-size: 13px; }

.np-vol-range { flex: 1; accent-color: #c8102e; cursor: pointer; min-height: 20px; }

.np-radio-status {
	font-size: 12.5px;
	color: #6b7076;
	padding: 0 14px 8px;
	min-height: 16px;
	line-height: 1.4;
}
.np-radio-status.np-radio-error { color: #c8102e; font-weight: 600; }

.np-radio-list-wrap { display: flex; flex-direction: column; overflow: hidden; }

.np-radio-list {
	list-style: none;
	margin: 0;
	padding: 2px 8px 10px;
	overflow-y: auto;
	max-height: 34vh;
}

.np-radio-empty {
	text-align: center;
	color: #8a9099;
	font-size: 13px;
	padding: 18px 12px 22px;
}

/* station row: [logo] name + sub  [▶ Listen Live] */
.np-radio-station {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #f0f2f4;
	padding: 8px;
	cursor: pointer;
	border-radius: 8px;
}
.np-radio-station:last-child { border-bottom: 0; }
.np-radio-station:hover { background: #f5f6f8; }
.np-radio-station.np-active { background: #fdf0f1; }

.np-rs-logo {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 8px;
	background: #eef0f3;
	flex: 0 0 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.np-rs-info { flex: 1; min-width: 0; }

.np-rs-name {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #16191f;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-rs-sub {
	display: block;
	font-size: 11px;
	color: #8a9099;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-radio-station.np-active .np-rs-name { color: #c8102e; }

.np-rs-play {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	color: #c8102e;
	background: #fdeef0;
	border: 1px solid #f6cdd4;
	border-radius: 999px;
	padding: 5px 10px;
	white-space: nowrap;
}
.np-radio-station.np-active .np-rs-play { background: #c8102e; color: #fff; border-color: #c8102e; }

/* ---- always-visible floating launcher (minimized player) ---- */
.np-radio-min {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 178px;
	max-width: 240px;
	background: #07152f;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(7, 21, 47, .32);
	-webkit-transition: background .15s ease, -webkit-transform .1s ease;
	transition: background .15s ease, transform .1s ease;
}
.np-radio-min:hover { background: #c8102e; }
.np-radio-min:active { -webkit-transform: translateY(1px); transform: translateY(1px); }

.np-radio-min-logo {
	width: 26px;
	height: 26px;
	object-fit: cover;
	border-radius: 50%;
	flex: 0 0 26px;
	background: rgba(255,255,255,.16);
}

.np-radio-min-ico { font-size: 15px; }

.np-radio-min-name {
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 0 1 auto;
}

.np-radio-live-pill {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .6px;
	background: #c8102e;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	flex: 0 0 auto;
}
.np-radio-live-pill[hidden] { display: none; }

.np-radio-min-toggle { font-size: 12px; }

/* ---- header / mobile trigger buttons ---- */
.hb-radio-link { display: inline-flex; align-items: center; gap: 4px; }

.mobile-radio-btn { font-size: 15px; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.np-radio-chip, .np-radio-min, .np-radio-play { -webkit-transition: none; transition: none; }
}

/* ---- responsive: compact bottom bar on mobile ---- */
@media (max-width: 480px) {
	.np-radio-player {
		left: 10px;
		right: 10px;
		bottom: 66px;             /* above back-to-top (bottom 20 + 40 tall) */
		align-items: stretch;
		gap: 8px;
	}

	.np-radio-drawer {
		width: 100%;
		max-width: calc(100vw - 20px);
		max-height: 66vh;
		-ms-flex-item-align: center;
		align-self: center;
	}

	.np-radio-min {
		width: 100%;
		min-width: 0;
		max-width: none;
		justify-content: flex-start;
		border-radius: 14px;
		padding: 10px 14px;
		gap: 9px;
	}

	.np-radio-min-name { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; text-align: left; padding: 0 2px; }
	.np-radio-list { max-height: 38vh; }
	.np-radio-tabs { padding: 8px 10px; }
	.np-radio-chip { padding: 5px 13px; font-size: 12.5px; }
}

/* ---- very small screens: compact, less obstructive bottom bar ---- */
@media (max-width: 360px) {
	.np-radio-player {
		left: 8px;
		right: 8px;
		bottom: 60px;             /* stays above back-to-top */
		gap: 6px;
	}
	.np-radio-min {
		padding: 7px 11px;
		min-height: 46px;         /* keeps a comfortable touch target */
		border-radius: 12px;
	}
	.np-radio-min-name { font-size: 12px; }
	.np-radio-min-ico { font-size: 14px; }
	.np-radio-min-logo { width: 24px; height: 24px; flex-basis: 24px; }
	.np-radio-drawer { max-height: 60vh; }
	.np-radio-list { max-height: 30vh; }
	.np-rs-play { font-size: 10px; padding: 4px 8px; }
	.np-rs-name { font-size: 12.5px; }
}
