/**
 * BigX Mixenet - lejátszó és blokkok.
 *
 * A változók a Divi témát nem írják felül; ha az oldal saját színeket
 * definiál, azok felülbírálhatók a :root szinten.
 */

:root {
	--bigx-bg: #14161c;
	--bigx-bg2: #1c1f27;
	--bigx-line: #2a2e39;
	--bigx-fg: #e8eaf0;
	--bigx-dim: #99a0b2;
	--bigx-acc: #5b9dff;
	--bigx-like: #ff5c7a;
	--bigx-bar-h: 84px;
}

/* ------------------------------------------------------------ lejátszósáv */

.bigx-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: var(--bigx-bg);
	color: var(--bigx-fg);
	border-top: 1px solid var(--bigx-line);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
}

body:has(.bigx-player:not([hidden])) {
	padding-bottom: var(--bigx-bar-h);
}

.bigx-bar {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr) minmax(140px, 1fr);
	align-items: center;
	gap: 16px;
	padding: 10px 16px;
	max-width: 1600px;
	margin: 0 auto;
}

.bigx-now {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.bigx-art {
	width: 52px;
	height: 52px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--bigx-bg2);
	flex: none;
}

.bigx-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.bigx-title {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bigx-artist {
	color: var(--bigx-dim);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bigx-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.bigx-buttons {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bigx-icon {
	background: none;
	border: 0;
	color: var(--bigx-dim);
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	padding: 8px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color .15s, background .15s;
}

.bigx-icon:hover { color: var(--bigx-fg); background: var(--bigx-bg2); }
.bigx-icon[aria-pressed="true"] { color: var(--bigx-acc); }
.bigx-icon:focus-visible { outline: 2px solid var(--bigx-acc); outline-offset: 2px; }

.bigx-like[aria-pressed="true"] { color: var(--bigx-like); }
.bigx-like-count { font-size: 12px; font-variant-numeric: tabular-nums; }

.bigx-play {
	background: var(--bigx-fg);
	color: var(--bigx-bg);
	width: 40px;
	height: 40px;
	justify-content: center;
	border-radius: 50%;
	font-size: 15px;
}

.bigx-play:hover { background: #fff; color: var(--bigx-bg); transform: scale(1.05); }

.bigx-seek {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	max-width: 620px;
}

.bigx-time {
	font-size: 11.5px;
	color: var(--bigx-dim);
	font-variant-numeric: tabular-nums;
	min-width: 38px;
	text-align: center;
}

.bigx-seek input[type=range],
.bigx-volume input[type=range] {
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	background: var(--bigx-line);
	border-radius: 2px;
	cursor: pointer;
	flex: 1;
	margin: 0;
}

.bigx-volume input[type=range] { width: 80px; flex: none; }

.bigx-seek input[type=range]::-webkit-slider-thumb,
.bigx-volume input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bigx-fg);
	cursor: pointer;
}

.bigx-seek input[type=range]::-moz-range-thumb,
.bigx-volume input[type=range]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: var(--bigx-fg);
	cursor: pointer;
}

.bigx-extra {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}

.bigx-volume { display: flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------ videópanel */

.bigx-video-panel {
	position: relative;
	background: #000;
	border-bottom: 1px solid var(--bigx-line);
}

.bigx-video-inner {
	max-width: 900px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
}

.bigx-video-inner > div,
.bigx-video-inner iframe,
.bigx-video-inner video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.bigx-video-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	border: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
}

/* A hang módban futó YouTube iframe nem látszik, de él és szól. */
.bigx-yt-host {
	position: fixed;
	left: -9999px;
	top: 0;
	width: 320px;
	height: 180px;
	opacity: 0;
	pointer-events: none;
}

/* ------------------------------------------------------------------- sor */

.bigx-queue {
	border-top: 1px solid var(--bigx-line);
	max-height: 320px;
	overflow-y: auto;
	background: var(--bigx-bg2);
}

.bigx-queue-head {
	padding: 10px 16px;
	font-weight: 600;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--bigx-dim);
	position: sticky;
	top: 0;
	background: var(--bigx-bg2);
}

.bigx-queue-list { list-style: none; margin: 0; padding: 0; }

.bigx-queue-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border-bottom: 1px solid var(--bigx-line);
}

.bigx-queue-item.is-current { background: rgba(91, 157, 255, .1); }

.bigx-queue-play {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: none;
	border: 0;
	color: inherit;
	text-align: left;
	padding: 9px 0;
	cursor: pointer;
	min-width: 0;
}

.bigx-queue-title { font-size: 13.5px; }
.bigx-queue-artist { font-size: 11.5px; color: var(--bigx-dim); }

.bigx-queue-remove {
	background: none;
	border: 0;
	color: var(--bigx-dim);
	font-size: 18px;
	cursor: pointer;
	padding: 4px 8px;
}

/* ---------------------------------------------------------------- blokkok */

.bigx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
}

.bigx-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: inherit;
}

.bigx-card-art {
	aspect-ratio: 1;
	border-radius: 8px;
	background: var(--bigx-bg2) center/cover no-repeat;
	display: block;
	transition: transform .18s;
}

.bigx-card:hover .bigx-card-art { transform: translateY(-3px); }
.bigx-card-title { font-weight: 600; font-size: 14px; }
.bigx-card-sub { font-size: 12.5px; opacity: .7; }

.bigx-list { list-style: none; margin: 18px 0 0; padding: 0; }

.bigx-list-numbered { counter-reset: bigxrow; }

.bigx-list-numbered .bigx-row::before {
	counter-increment: bigxrow;
	content: counter(bigxrow);
	width: 22px;
	text-align: right;
	opacity: .5;
	font-variant-numeric: tabular-nums;
	font-size: 13px;
}

.bigx-row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 8px;
	border-radius: 8px;
}

.bigx-row:hover { background: rgba(127, 127, 127, .09); }
.bigx-row.is-playing { background: rgba(91, 157, 255, .13); }

.bigx-row-play {
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	opacity: .55;
	font-size: 14px;
	padding: 5px;
}

.bigx-row:hover .bigx-row-play { opacity: 1; }
.bigx-row-art { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; }

.bigx-row-meta {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.bigx-row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigx-row-artist { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigx-row-time, .bigx-row-score { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

.bigx-badge {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(91, 157, 255, .18);
	color: var(--bigx-acc);
}

.bigx-pl-head { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.bigx-pl-art { border-radius: 10px; object-fit: cover; }
.bigx-pl-info h2 { margin: 0 0 4px; }
.bigx-pl-sub { opacity: .65; margin: 0 0 8px; font-size: 13.5px; }
.bigx-pl-desc { margin: 0 0 12px; max-width: 60ch; }
.bigx-pl-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.bigx-btn {
	background: var(--bigx-acc);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 9px 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bigx-btn:hover { filter: brightness(1.08); }

.bigx-btn-ghost {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	opacity: .75;
}

/* ------------------------------------------------------------------ rádió */

.bigx-radio {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 14px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--bigx-line);
	border-radius: 12px;
	background: var(--bigx-bg2);
	color: var(--bigx-fg);
}

.bigx-radio-head { grid-column: 1 / -1; font-size: 12.5px; opacity: .75; }

.bigx-radio-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #777;
	margin-right: 7px;
}

.bigx-radio.is-online .bigx-radio-dot {
	background: #3ddc97;
	box-shadow: 0 0 0 0 rgba(61, 220, 151, .7);
	animation: bigx-pulse 2s infinite;
}

@keyframes bigx-pulse {
	70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.bigx-radio-art { border-radius: 6px; object-fit: cover; }
.bigx-radio-now { display: flex; flex-direction: column; min-width: 0; }
.bigx-radio-now span { opacity: .7; font-size: 13px; }
.bigx-radio-play { grid-column: 1 / -1; justify-self: start; }
.bigx-radio-hist { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; opacity: .6; }
.bigx-radio-hist li { padding: 2px 0; }

/* -------------------------------------------------------------- szerkesztő */

.bigx-ed {
	display: grid;
	grid-template-columns: minmax(200px, 260px) 1fr;
	gap: 24px;
	align-items: start;
}

.bigx-ed-side-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.bigx-btn-sm { padding: 5px 12px; font-size: 13px; }

.bigx-ed-list { list-style: none; margin: 0; padding: 0; }

.bigx-ed-list button {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	border-radius: 7px;
	padding: 9px 11px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.bigx-ed-list button:hover { background: rgba(127, 127, 127, .1); }
.bigx-ed-list button.is-active { background: rgba(91, 157, 255, .16); font-weight: 600; }
.bigx-ed-list span { opacity: .55; font-size: 12px; }

.bigx-ed-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.bigx-ed-title {
	flex: 1;
	min-width: 200px;
	font-size: 20px;
	font-weight: 650;
	background: transparent;
	border: 0;
	border-bottom: 1px dashed rgba(127, 127, 127, .45);
	color: inherit;
	padding: 5px 2px;
}

.bigx-ed-title:focus { outline: none; border-bottom-color: var(--bigx-acc); }
.bigx-ed-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bigx-ed-public { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.bigx-btn[disabled] { opacity: .45; cursor: default; }

.bigx-ed-tracks { list-style: none; margin: 0 0 24px; padding: 0; }

.bigx-ed-track {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: rgba(127, 127, 127, .05);
	margin-bottom: 4px;
}

.bigx-ed-track.is-dragging { opacity: .4; }
.bigx-ed-track.is-over { border-color: var(--bigx-acc); }
.bigx-ed-grip { cursor: grab; opacity: .45; font-size: 15px; }
.bigx-ed-track:active .bigx-ed-grip { cursor: grabbing; }

.bigx-ed-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.bigx-ed-meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigx-ed-meta span { font-size: 12px; opacity: .6; }
.bigx-ed-dur { font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }

.bigx-ed-search { border-top: 1px solid rgba(127, 127, 127, .22); padding-top: 16px; }

.bigx-ed-search input[type=search] {
	width: 100%;
	padding: 10px 13px;
	border-radius: 9px;
	border: 1px solid rgba(127, 127, 127, .32);
	background: transparent;
	color: inherit;
	font: inherit;
}

.bigx-ed-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 340px; overflow-y: auto; }

.bigx-ed-results button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	border-radius: 7px;
	padding: 8px 11px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.bigx-ed-results button:hover { background: rgba(127, 127, 127, .1); }
.bigx-ed-results em { font-style: normal; opacity: .6; font-size: 12.5px; }
.bigx-ed-add { font-size: 18px; opacity: .5; }

@media (max-width: 780px) {
	.bigx-ed { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ egyéb */

.bigx-loading, .bigx-empty, .bigx-error { padding: 20px; opacity: .6; text-align: center; }
.bigx-error { color: #ff8787; }

.bigx-toast {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(var(--bigx-bar-h) + 18px);
	background: var(--bigx-bg2);
	color: var(--bigx-fg);
	border: 1px solid var(--bigx-line);
	padding: 10px 18px;
	border-radius: 999px;
	z-index: 100000;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.bigx-pjax-loading body { cursor: progress; }
.bigx-pjax-loading .bigx-mount { opacity: .5; transition: opacity .2s; }

/* ------------------------------------------------------------------ mobil */

@media (max-width: 900px) {
	:root { --bigx-bar-h: 128px; }

	.bigx-bar {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 8px 12px;
	}

	.bigx-extra { justify-content: center; }
	.bigx-volume { display: none; }
	.bigx-art { width: 44px; height: 44px; }
	.bigx-video-inner { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.bigx-card-art, .bigx-play, .bigx-icon { transition: none; }
	.bigx-radio.is-online .bigx-radio-dot { animation: none; }
}
