/* =============================================
   RADIO PAGE CSS — Redesigned v2.0
   Unique glass-morphism + wave animation design
   ============================================= */

/* ── Page Shell ── */
.np-radio-page {
	min-height: 70vh;
	background: linear-gradient(160deg, #f0f4ff 0%, #fdf2f4 50%, #f7f8fa 100%);
}

.np-radio-directory {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0 110px;
	color: #18212f;
	font-family: 'Mukta', sans-serif;
}

/* ── Hero Header ── */
.np-radio-heading {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 40px;
	background: linear-gradient(135deg, #1a0a0d 0%, #2d0f14 40%, #004c98 100%);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(214, 0, 26, 0.22), 0 4px 20px rgba(0,0,0,0.18);
	margin-bottom: 28px;
}

/* animated radio wave rings */
.np-radio-heading::before,
.np-radio-heading::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.08);
	animation: np-radio-pulse 3s ease-out infinite;
}
.np-radio-heading::before {
	width: 320px; height: 320px;
	top: -100px; right: -60px;
}
.np-radio-heading::after {
	width: 200px; height: 200px;
	top: -40px; right: 0px;
	animation-delay: 1s;
}

@keyframes np-radio-pulse {
	0%   { opacity: 0.6; transform: scale(0.85); }
	60%  { opacity: 0.15; transform: scale(1.1); }
	100% { opacity: 0; transform: scale(1.25); }
}

.np-radio-eyebrow {
	margin: 0 0 8px;
	color: rgba(255, 180, 180, 0.85);
	font: 700 11px/1.4 'Poppins', sans-serif;
	letter-spacing: .2em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
}

.np-radio-eyebrow::before {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #ff4d61;
	box-shadow: 0 0 0 3px rgba(255, 77, 97, 0.3);
	animation: np-radio-dot-blink 1.4s ease-in-out infinite;
}

@keyframes np-radio-dot-blink {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(255,77,97,0.3); }
	50%       { opacity: 0.5; box-shadow: 0 0 0 7px rgba(255,77,97,0.1); }
}

.np-radio-heading h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(26px, 4vw, 42px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.np-radio-intro {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.65);
	font-size: 15px;
	line-height: 1.6;
}

/* Station count badge */
.np-radio-count {
	position: relative;
	z-index: 2;
	min-width: 90px;
	min-height: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 2px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	color: #ffffff;
	flex-shrink: 0;
}

.np-radio-count strong {
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.np-radio-count span {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

/* ── Search Bar ── */
.np-radio-search-wrap {
	position: relative;
	margin: 0 0 16px;
}

.np-radio-search-wrap > .np-radio-search-icon {
	position: absolute;
	top: 50%;
	left: 18px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: #d6001a;
	opacity: 0.7;
}

.np-radio-search-wrap input {
	width: 100%;
	min-height: 56px;
	padding: 14px 52px 14px 52px;
	border: 2px solid #e8eaef;
	border-radius: 14px;
	background: #ffffff;
	color: #18212f;
	font: 500 15px 'Mukta', sans-serif;
	outline: none;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.np-radio-search-wrap input:focus {
	border-color: #d6001a;
	box-shadow: 0 0 0 4px rgba(214, 0, 26, 0.09), 0 4px 20px rgba(15, 23, 42, 0.06);
}

.np-radio-search-wrap input::placeholder {
	color: #b0b8c9;
}

.np-radio-search-clear {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #778194;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.np-radio-search-clear:hover { background: #ffe0e3; color: #d6001a; }
.np-radio-search-clear[hidden] { display: none; }
.np-radio-search-clear svg { width: 16px; height: 16px; }

/* ── Filter Chips ── */
.np-radio-filter-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.np-radio-filter-wrap[hidden] { display: none; }

.np-radio-filter-button {
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 16px;
	border: 1.5px solid #e1e5eb;
	border-radius: 999px;
	background: #ffffff;
	color: #596477;
	font: 700 13px 'Mukta', sans-serif;
	cursor: pointer;
	transition: all 0.18s ease;
	box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.np-radio-filter-button:hover { border-color: rgba(214,0,26,.5); color: #d6001a; }

.np-radio-filter-button.is-active {
	border-color: #d6001a;
	background: linear-gradient(135deg, #d6001a, #ff2d45);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(214, 0, 26, 0.28);
}

.np-radio-filter-button > span {
	min-width: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(24, 33, 47, 0.09);
	font-size: 11px;
	line-height: 1.7;
	text-align: center;
}

.np-radio-filter-button.is-active > span {
	background: rgba(255, 255, 255, 0.25);
}

/* ── Status line ── */
.np-radio-status {
	margin: 0 0 14px;
	color: #8892a4;
	font-size: 13px;
	font-style: italic;
}

/* ── Station Grid ── */
.np-radio-station-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

/* ── Station Card ── */
.np-radio-station-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	border: 1.5px solid #edf0f6;
	border-radius: 14px;
	background: #ffffff;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.22s, transform 0.22s;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.np-radio-station-card:hover,
.np-radio-station-card:focus-within {
	border-color: #d6001a;
	box-shadow: 0 12px 32px rgba(214, 0, 26, 0.12);
	transform: translateY(-3px);
}

/* Card logo area — full-width thumbnail */
.np-radio-logo-control {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: linear-gradient(135deg, #1a0610 0%, #002244 100%);
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
}

.np-radio-logo-control:focus-visible,
.np-radio-station-open:focus-visible {
	outline: 3px solid rgba(214, 0, 26, .35);
	outline-offset: 2px;
}

.np-radio-logo-control .np-radio-station-logo {
	width: 100%;
	height: 100%;
}

/* gradient overlay */
.np-radio-logo-control::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5));
	pointer-events: none;
}

/* Play indicator badge */
.np-radio-logo-indicator {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border: 2px solid rgba(255,255,255,0.5);
	border-radius: 50%;
	background: #d6001a;
	color: #fff;
	font: 700 10px/1 Arial, sans-serif;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	transition: background 0.2s;
}

.np-radio-logo-indicator.is-playing {
	background: #10b981;
	font-size: 12px;
	animation: np-playing-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes np-playing-bounce {
	from { transform: scale(1); }
	to   { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(16,185,129,0.2); }
}

.np-radio-logo-indicator.is-unavailable {
	background: #9aa3b2;
}

/* Open detail button (bottom area of card) */
.np-radio-station-open {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

/* Logo — full-area display */
.np-radio-station-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: linear-gradient(135deg, #1a0610 0%, #002244 100%);
	color: rgba(255,255,255,0.7);
	font-size: 36px;
	font-weight: 900;
}

.np-radio-detail-logo,
.np-radio-player-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #edf0f4;
	background: #fff7f7;
	color: #d6001a;
	font-weight: 800;
}

.np-radio-station-logo img,
.np-radio-detail-logo img,
.np-radio-player-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
}

.np-radio-station-copy {
	flex: 1;
	min-width: 0;
}

.np-radio-station-copy strong {
	display: block;
	overflow: hidden;
	color: #18212f;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-radio-station-copy span {
	display: block;
	margin-top: 3px;
	color: #8892a4;
	font-size: 12px;
}

.np-radio-station-copy span.np-radio-stream-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 5px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
}

.np-radio-stream-badge.is-ready {
	background: #e6f9f2;
	color: #0d7050;
}

.np-radio-stream-badge.is-unavailable {
	background: #fff5dc;
	color: #7a5a20;
}

.np-radio-card-arrow {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: #c8cdd7;
	margin-left: 4px;
}

/* ── Detail View ── */
.np-radio-detail[hidden],
.np-radio-player[hidden] { display: none; }

.np-radio-detail { margin-top: 8px; }

.np-radio-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 9px 18px;
	border: 1.5px solid #e1e5eb;
	border-radius: 999px;
	background: #fff;
	color: #555f70;
	font: 700 13px 'Mukta', sans-serif;
	cursor: pointer;
	transition: all 0.18s;
	box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}

.np-radio-back:hover { border-color: #d6001a; color: #d6001a; background: #fff5f5; }
.np-radio-back svg { width: 16px; height: 16px; }

.np-radio-detail-card {
	display: flex;
	align-items: center;
	gap: 36px;
	min-height: 280px;
	padding: 36px 40px;
	border: 1.5px solid #edf0f6;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
	position: relative;
	overflow: hidden;
}

.np-radio-detail-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #d6001a, #ff4d61, #004c98);
}

.np-radio-detail-logo {
	width: 180px;
	height: 180px;
	border-radius: 16px;
	font-size: 60px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	border: none;
	flex-shrink: 0;
}

.np-radio-detail-info { flex: 1; min-width: 0; }

.np-radio-detail-info h2 {
	margin: 0;
	color: #111827;
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 900;
	line-height: 1.2;
}

.np-radio-detail-meta,
.np-radio-detail-description {
	margin: 10px 0 0;
	color: #697386;
	font-size: 15px;
	line-height: 1.6;
}

.np-radio-detail-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

/* ── Buttons ── */
.np-radio-play {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #d6001a, #ff2d45);
	color: #fff;
	font: 700 15px 'Mukta', sans-serif;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(214, 0, 26, 0.3);
	transition: all 0.2s;
}

.np-radio-play:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(214, 0, 26, 0.4);
}

.np-radio-play:disabled {
	background: #c4cad5;
	box-shadow: none;
	cursor: not-allowed;
}

.np-radio-website {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border: 1.5px solid #e1e5eb;
	border-radius: 12px;
	background: #fff;
	color: #384253;
	font: 700 15px 'Mukta', sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.np-radio-website:hover { border-color: #d6001a; color: #d6001a; background: #fff5f5; }

/* ── Stream Note ── */
.np-radio-stream-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 18px;
	border: 1.5px solid #fce8b0;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff9ea, #fffcf0);
	color: #6d5524;
}

.np-radio-stream-note[hidden] { display: none; }
.np-radio-stream-note > svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; }
.np-radio-stream-note strong, .np-radio-stream-note span { display: block; }
.np-radio-stream-note strong { font-size: 14px; }
.np-radio-stream-note span { margin-top: 3px; font-size: 13px; opacity: 0.85; }

/* ── Sticky Player ── */
.np-radio-player {
	position: fixed;
	left: 50%;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(560px, calc(100% - 32px));
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid rgba(214, 0, 26, 0.15);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(214,0,26,0.08);
	transform: translateX(-50%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* animated top bar while playing */
.np-radio-player::before {
	content: '';
	position: absolute;
	top: 0; left: 16px; right: 16px;
	height: 3px;
	background: linear-gradient(90deg, #d6001a, #ff4d61, #004c98, #d6001a);
	background-size: 200% 100%;
	border-radius: 0 0 4px 4px;
	animation: np-player-bar 2.5s linear infinite;
}

@keyframes np-player-bar {
	0%   { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

.np-radio-player-logo {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	font-size: 20px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	border: none;
}

.np-radio-player-label { flex: 1; min-width: 0; }

.np-radio-player-label strong,
.np-radio-player-label span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.np-radio-player-label strong { color: #111827; font-size: 14px; font-weight: 800; }
.np-radio-player-label span  { color: #6b7280; font-size: 12px; margin-top: 2px; }

.np-radio-player-toggle {
	min-height: 40px;
	padding: 8px 18px;
	border: 0;
	border-radius: 20px;
	background: linear-gradient(135deg, #d6001a, #ff2d45);
	color: #fff;
	font: 700 13px 'Mukta', sans-serif;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(214,0,26,0.3);
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.np-radio-player-toggle:hover { box-shadow: 0 5px 16px rgba(214,0,26,0.4); transform: translateY(-1px); }

/* ── Empty State ── */
.np-radio-empty {
	grid-column: 1 / -1;
	padding: 48px 20px;
	border: 2px dashed #e0e4eb;
	border-radius: 14px;
	background: #fff;
	color: #9aa3b5;
	text-align: center;
	font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
	.np-radio-station-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
	.np-radio-station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.np-radio-heading { padding: 28px 24px; }
}

@media (max-width: 600px) {
	.np-radio-directory { padding: 20px 0 140px; }
	.np-radio-heading { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
	.np-radio-count { min-width: 70px; min-height: 70px; position: absolute; top: 20px; right: 20px; }
	.np-radio-heading { position: relative; }
	.np-radio-heading h1 { font-size: 26px; }
	.np-radio-station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.np-radio-detail-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
	.np-radio-detail-logo { width: 120px; height: 120px; }
	.np-radio-player { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); gap: 10px; padding: 10px 12px; }
	.np-radio-player-logo { width: 42px; height: 42px; }
	.np-radio-player-toggle { min-height: 36px; padding: 6px 13px; }
}

@media (max-width: 400px) {
	.np-radio-station-list { grid-template-columns: 1fr; }
}
