:root {
	--ubr-bg: #0d0d0d;
	--ubr-bg-elev: #181818;
	--ubr-bg-elev-2: #232323;
	--ubr-green: #1DB954;
	--ubr-green-dark: #169c46;
	--ubr-red: #b6122b;
	--ubr-blue: #2c6fbb;
	--ubr-text: #ffffff;
	--ubr-text-muted: #b3b3b3;
	--ubr-radius: 12px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--ubr-bg);
	color: var(--ubr-text);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Topbar ---------- */
.ubr-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(13,13,13,0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ubr-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.ubr-brand__img {
	height: 40px;
	width: auto;
}

.ubr-nav { flex: 1; overflow-x: auto; }

.ubr-menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.ubr-menu a {
	color: var(--ubr-text-muted);
	font-weight: 500;
	font-size: 14px;
	transition: color .2s ease;
}

.ubr-menu a:hover { color: var(--ubr-text); }

.ubr-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ubr-bg-elev-2);
	color: var(--ubr-text);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;
	flex-shrink: 0;
	transition: background .2s ease, transform .2s ease;
}
.ubr-live-pill:hover { background: var(--ubr-green-dark); transform: translateY(-1px); }

.ubr-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ubr-red);
	box-shadow: 0 0 0 0 rgba(182,18,43,.6);
	animation: ubr-pulse 1.6s infinite;
}

@keyframes ubr-pulse {
	0% { box-shadow: 0 0 0 0 rgba(182,18,43,.6); }
	70% { box-shadow: 0 0 0 8px rgba(182,18,43,0); }
	100% { box-shadow: 0 0 0 0 rgba(182,18,43,0); }
}

/* ---------- Hero ---------- */
.ubr-hero {
	background-size: cover;
	background-position: center;
	padding: 90px 24px 70px;
}

.ubr-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.ubr-hero__logo {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	padding: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
	flex-shrink: 0;
}

.ubr-hero__kicker {
	color: var(--ubr-green);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.ubr-hero__title {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	margin: 8px 0 4px;
	line-height: 1.1;
}

.ubr-hero__subtitle {
	color: var(--ubr-text-muted);
	font-size: 16px;
	margin: 0 0 28px;
}

.ubr-hero__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ubr-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ubr-green);
	color: #0d0d0d;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 999px;
	transition: transform .15s ease, background .15s ease;
}
.ubr-btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.ubr-btn-primary:hover { transform: scale(1.04); background: #1ed760; }

.ubr-btn-secondary {
	color: var(--ubr-text);
	font-weight: 600;
	font-size: 14px;
	border-bottom: 1px solid transparent;
}
.ubr-btn-secondary:hover { border-color: var(--ubr-text); }

/* ---------- Full-screen player (front page) ---------- */
.ubr-fullplayer {
	min-height: calc(100vh - 65px);
	min-height: calc(100svh - 65px);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px 140px;
}

.ubr-fullplayer__card {
	width: 100%;
	max-width: 520px;
	background: rgba(24,24,24,0.82);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 24px;
	padding: 44px 36px 40px;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0,0,0,.6);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ubr-fullplayer__disc-wrap { position: relative; margin-bottom: 28px; }

.ubr-fullplayer__disc {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: #fff;
	padding: 26px;
	box-shadow: 0 0 0 10px rgba(255,255,255,0.05), 0 0 0 22px rgba(255,255,255,0.03), 0 24px 60px rgba(0,0,0,.55);
}
.ubr-fullplayer__disc img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
body.ubr-on-air .ubr-fullplayer__disc {
	animation: ubr-spin 14s linear infinite;
	box-shadow: 0 0 0 10px rgba(29,185,84,0.15), 0 0 0 22px rgba(29,185,84,0.06), 0 24px 60px rgba(0,0,0,.55);
}
@keyframes ubr-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.ubr-fullplayer__badge {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ubr-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.ubr-fullplayer__badge .ubr-live-dot { background: #fff; box-shadow: none; animation: ubr-blink 1.4s infinite; }
@keyframes ubr-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .25; }
}

.ubr-fullplayer__kicker {
	color: var(--ubr-green);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.ubr-fullplayer__title {
	font-size: clamp(26px, 4.5vw, 38px);
	font-weight: 800;
	margin: 8px 0 2px;
	line-height: 1.15;
}

.ubr-fullplayer__subtitle {
	color: var(--ubr-text);
	font-size: 15px;
	font-style: italic;
	margin: 0 0 2px;
	opacity: .85;
}

.ubr-fullplayer__freq {
	color: var(--ubr-text-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	margin: 0 0 24px;
}

.ubr-fullplayer__wave {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 44px;
	margin-bottom: 26px;
	width: 100%;
	max-width: 340px;
}
.ubr-fullplayer__wave i {
	flex: 1;
	max-width: 6px;
	height: 100%;
	border-radius: 4px;
	background: rgba(255,255,255,0.14);
	transform: scaleY(0.18);
	transform-origin: center;
	transition: background .3s ease;
}
body.ubr-on-air .ubr-fullplayer__wave i {
	background: var(--ubr-green);
	animation: ubr-wave 1.1s ease-in-out infinite;
}
body.ubr-on-air .ubr-fullplayer__wave i:nth-child(3n)   { animation-delay: .12s; }
body.ubr-on-air .ubr-fullplayer__wave i:nth-child(3n+1) { animation-delay: .34s; }
body.ubr-on-air .ubr-fullplayer__wave i:nth-child(4n)   { animation-delay: .51s; }
body.ubr-on-air .ubr-fullplayer__wave i:nth-child(5n)   { animation-delay: .73s; }
body.ubr-on-air .ubr-fullplayer__wave i:nth-child(7n)   { animation-delay: .89s; }
@keyframes ubr-wave {
	0%, 100% { transform: scaleY(0.18); }
	50% { transform: scaleY(1); }
}

.ubr-bigplay {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--ubr-green);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: 0 12px 34px rgba(29,185,84,.35);
}
.ubr-bigplay:hover { transform: scale(1.07); background: #1ed760; box-shadow: 0 16px 44px rgba(29,185,84,.5); }
.ubr-bigplay svg { width: 34px; height: 34px; fill: #0d0d0d; }
.ubr-bigplay .ubr-icon-play { margin-left: 4px; }

.ubr-fullplayer__status {
	color: var(--ubr-text-muted);
	font-size: 13px;
	margin: 18px 0 22px;
	min-height: 18px;
}

.ubr-fullplayer__volume {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 280px;
}
.ubr-fullplayer__volume input[type="range"] {
	flex: 1;
	accent-color: var(--ubr-green);
}

@media (max-width: 520px) {
	.ubr-fullplayer { padding: 28px 14px 130px; }
	.ubr-fullplayer__card { padding: 34px 22px 32px; }
	.ubr-fullplayer__disc { width: 170px; height: 170px; padding: 20px; }
	.ubr-bigplay { width: 72px; height: 72px; }
}

/* ---------- Sections & grid ---------- */
.ubr-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px;
}

.ubr-section__head h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
}

.ubr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.ubr-card {
	background: var(--ubr-bg-elev);
	border-radius: var(--ubr-radius);
	padding: 14px;
	transition: background .2s ease, transform .2s ease;
	position: relative;
}
.ubr-card:hover { background: var(--ubr-bg-elev-2); transform: translateY(-4px); }

.ubr-card__art {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	background: #000;
}
.ubr-card__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ubr-card__play {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ubr-green);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
	box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.ubr-card:hover .ubr-card__play { opacity: 1; transform: translateY(0); }
.ubr-card__play svg { width: 18px; height: 18px; fill: #0d0d0d; margin-left: 2px; }

.ubr-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ubr-card__date {
	font-size: 12px;
	color: var(--ubr-text-muted);
	margin: 0;
}

.ubr-grid--pages {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.ubr-pill-card {
	display: block;
	text-align: center;
	background: var(--ubr-bg-elev);
	padding: 16px 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	transition: background .2s ease;
}
.ubr-pill-card:hover { background: var(--ubr-green); color: #0d0d0d; }

.ubr-empty { color: var(--ubr-text-muted); }

/* ---------- Single / page ---------- */
.ubr-single__article { max-width: 780px; margin: 0 auto; }
.ubr-single__back a { color: var(--ubr-green); font-size: 14px; font-weight: 600; }
.ubr-single__title { font-size: 34px; font-weight: 800; margin: 12px 0 6px; }
.ubr-single__date { color: var(--ubr-text-muted); font-size: 13px; margin: 0 0 20px; }
.ubr-single__thumb { border-radius: var(--ubr-radius); overflow: hidden; margin-bottom: 24px; }
.ubr-single__content { color: #e6e6e6; font-size: 16px; line-height: 1.8; }
.ubr-single__content img { border-radius: 8px; }
.ubr-pagination { margin-top: 32px; }

/* ---------- Footer ---------- */
.ubr-footer {
	border-top: 1px solid rgba(255,255,255,.06);
	padding: 40px 24px;
	margin-bottom: 96px;
}
.ubr-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}
.ubr-footer__logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 6px; }
.ubr-footer__title { font-weight: 700; margin: 0; }
.ubr-footer__freq, .ubr-footer__copy { color: var(--ubr-text-muted); font-size: 13px; margin: 2px 0 0; }

/* ---------- Fixed player (Spotify-like) ---------- */
.ubr-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	background: var(--ubr-bg-elev);
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 10px 20px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.ubr-player__track {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ubr-player__art {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 6px;
	overflow: hidden;
	background: #000;
	flex-shrink: 0;
}
.ubr-player__art img { width: 100%; height: 100%; object-fit: cover; }

.ubr-eq {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: none;
	align-items: flex-end;
	justify-content: center;
	gap: 3px;
	padding-bottom: 8px;
}
.ubr-player.is-playing .ubr-eq { display: flex; }
.ubr-eq i {
	width: 3px;
	background: var(--ubr-green);
	animation: ubr-eq 0.9s ease-in-out infinite;
}
.ubr-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.ubr-eq i:nth-child(2) { height: 16px; animation-delay: .2s; }
.ubr-eq i:nth-child(3) { height: 10px; animation-delay: .4s; }
.ubr-eq i:nth-child(4) { height: 18px; animation-delay: .1s; }
@keyframes ubr-eq {
	0%, 100% { transform: scaleY(0.4); }
	50% { transform: scaleY(1); }
}

.ubr-player__meta { display: flex; flex-direction: column; min-width: 0; }
.ubr-player__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubr-player__freq { font-size: 11px; color: var(--ubr-text-muted); }

.ubr-player__controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ubr-play-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease;
}
.ubr-play-btn:hover { transform: scale(1.06); }
.ubr-play-btn svg { width: 18px; height: 18px; fill: #0d0d0d; }
.ubr-icon-play { margin-left: 2px; }

.ubr-status {
	font-size: 11px;
	color: var(--ubr-text-muted);
	white-space: nowrap;
}

.ubr-player__volume {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-self: end;
}
.ubr-vol-icon { width: 18px; height: 18px; fill: var(--ubr-text-muted); flex-shrink: 0; }

.ubr-player__volume input[type="range"] {
	width: 100px;
	accent-color: var(--ubr-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.ubr-topbar__inner { gap: 12px; }
	.ubr-nav { display: none; }
	.ubr-hero { padding: 60px 20px 40px; }
	.ubr-hero__inner { gap: 20px; }
	.ubr-hero__logo { width: 120px; height: 120px; }
	.ubr-player { grid-template-columns: 1fr auto; padding: 10px 14px; }
	.ubr-player__volume { display: none; }
	.ubr-status { white-space: normal; text-align: center; max-width: 150px; }
	.ubr-brand__img { height: 34px; }
}
