/* === CLIENT UI UNIFIED STYLES === */

/* === CSS VARIABLES === */
:root {
	--color-bg: #000;
	--color-bg-rgb: 0, 0, 0;
	--color-text: #fff;
	--color-text-muted: #aaa;
	--color-text-subtle: #ccc;
	--color-separator: #555;

	--color-green: #00ff00;
	--color-green-rgb: 0, 255, 0;

	--color-vip: #FFD700;
	--color-vip-rgb: 255, 215, 0;
	--color-vip-artist: #FFA500;

	--color-joker: #c084fc;
	--color-joker-rgb: 168, 85, 247;
	--color-joker-artist: #f472b6;
	--color-joker-border: #a855f7;

	--color-crown: #FFD700;
	--color-white-rgb: 255, 255, 255;
}

/* === PLAYLIST STYLES === */
body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-size: clamp(1rem, 2.8vw, 1.2rem);
}
.playlist-container {
	width: 100%;
	padding: 0 1rem;
}
.list-group-item {
	background-color: transparent;
	border: none;
	padding-left: 0;
	padding-right: 0;
}
h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.track-title {
	font-size: clamp(1.4rem, 4vw, 2.4rem);
	font-weight: bold;
}
.track-artist,
.track-time {
	color: var(--color-text-muted);
	font-size: clamp(1.1rem, 3.2vw, 1.4rem);
}
.active-track .track-title,
.active-track .track-artist {
	color: #1db954;
}
.track-icon {
	display: inline-block;
	width: clamp(2rem, 8vw, 3.5rem);
	height: clamp(2rem, 8vw, 3.5rem);
	margin-right: 0.5em;
	background-color: #aaa;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.active-track .track-icon {
	background-color: #1db954;
}
.track-icon-crown {
	background-color: var(--color-crown) !important;
}
.search-results {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	position: relative;
	z-index: 1001;
	overflow: visible;
}
#playlistList { position: relative; }
.playlist-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	color: #1db954;
	background: rgba(29, 185, 84, 0.08);
	border: 1px solid rgba(29, 185, 84, 0.35);
	border-radius: 999px;
	padding: 0.35rem 1.25rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.search-toggle:hover,
.search-toggle:focus {
	background: rgba(29, 185, 84, 0.15);
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}
.search-toggle-icon {
	font-size: 1.4em;
	line-height: 1;
}
.search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	display: none;
	flex-direction: column;
	padding: 0;
	z-index: 2147483647;
	overflow-y: auto;
}
.search-overlay.visible {
	display: flex;
}
.search-overlay-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	margin: 0;
	max-height: none;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: min(4vw, 2rem);
	overflow: visible;
}
.search-overlay-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}
.search-overlay-title {
	margin: 0;
	font-size: clamp(1.6rem, 4.2vw, 2.6rem);
	color: #1db954;
}
.search-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.search-input-clear {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #aaa;
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	cursor: pointer;
	padding: 0.25rem;
	line-height: 1;
	display: none;
	z-index: 10;
}
.search-input-clear:hover {
	color: #fff;
}
.search-input-clear.visible {
	display: block;
}
.search-results .list-group-item {
	background-color: transparent;
	border: 1px solid rgba(29, 185, 84, 0.15);
	border-left: none;
	border-right: none;
}
.search-results .list-group-item:first-child {
	border-top: none;
}
.search-results .list-group-item:last-child {
	border-bottom: none;
}
.item-title {
	font-size: clamp(1.4rem, 4vw, 2.4rem);
	font-weight: bold;
	color: #fff;
}
.item-artist,
.item-time {
	color: var(--color-text-subtle);
	font-size: clamp(1.1rem, 3.2vw, 1.4rem);
}
.search-results-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: .25rem .5rem;
	border-bottom: 1px solid rgba(29, 185, 84, 0.15);
}
.search-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	color: #1db954;
	background: rgba(29, 185, 84, 0.08);
	border: 1px solid rgba(29, 185, 84, 0.35);
	border-radius: 999px;
	padding: 0.35rem 1.25rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.search-close:hover,
.search-close:focus {
	background: rgba(29, 185, 84, 0.15);
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}

.playlist-footer {
	text-align: center;
	padding: 1.5rem 0;
	margin-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: clamp(0.9rem, 2.5vw, 1rem);
}
.footer-link {
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}
.footer-link:hover {
	color: var(--color-green);
	text-decoration: underline;
}
.footer-separator {
	color: var(--color-separator);
	margin: 0 0.75rem;
}

/* === BUY DIALOG STYLES === */
.buy-dialog-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	align-items: center;
	justify-content: center;
}

.buy-dialog-overlay.visible {
	display: flex;
}

.buy-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

/* Společné styly pro všechny dialogy */
.dialog-window {
	position: relative;
	background: rgba(0, 0, 0, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	padding: 2.5rem 2rem 2rem;
	color: #fff;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.buy-dialog-window {
	max-width: 520px;
	width: calc(100% - 3rem);
}

.buy-dialog-title {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	margin-bottom: 1.5rem;
}

.buy-dialog-track-info {
	margin-bottom: 2rem;
	text-align: center;
}

.buy-dialog-track-name {
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.5rem;
}

.buy-dialog-track-artist {
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	color: #bdbdbd;
	margin-bottom: 0;
}

.buy-dialog-subtitle {
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	margin-bottom: 2rem;
	color: #bdbdbd;
	transition: color 0.3s ease;
}

.buy-dialog-subtitle.buy-dialog-info {
	color: #bdbdbd;
}

.buy-dialog-subtitle.buy-dialog-warning {
	color: #ffa726;
	font-weight: 500;
}

.buy-dialog-subtitle.buy-dialog-error {
	color: #ef5350;
	font-weight: 600;
}

.buy-dialog-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.buy-dialog-actions .btn {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	min-height: 5rem;
	padding: 1rem;
	border-radius: 0.5rem;
	text-align: left;
}

.buy-dialog-actions .btn .btn-icon {
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1;
	flex-shrink: 0;
	width: clamp(2rem, 5vw, 3rem);
	height: clamp(2rem, 5vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

.buy-dialog-actions .btn .btn-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.buy-dialog-actions .btn.btn-success .btn-icon img {
	filter: brightness(0) saturate(100%) invert(68%) sepia(45%) saturate(1527%) hue-rotate(95deg) brightness(91%) contrast(85%);
}

.buy-dialog-actions .btn.btn-warning .btn-icon img {
	filter: brightness(0) saturate(100%) invert(79%) sepia(52%) saturate(548%) hue-rotate(358deg) brightness(101%) contrast(93%);
}

.buy-dialog-actions .btn.btn-danger .btn-icon img {
	filter: brightness(0) saturate(100%) invert(62%) sepia(67%) saturate(4288%) hue-rotate(333deg) brightness(101%) contrast(101%);
}

.buy-dialog-actions .btn .btn-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
}

.buy-dialog-actions .btn .btn-label {
	font-size: clamp(1rem, 2.8vw, 1.3rem);
	line-height: 1.2;
}

.buy-dialog-actions .btn .btn-price {
	font-size: clamp(1.3rem, 3.5vw, 1.8rem);
	font-weight: bold;
	white-space: normal;
	word-break: break-word;
	margin-top: auto;
}

.buy-dialog-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: #1db954;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.buy-dialog-close:hover,
.buy-dialog-close:focus {
	color: #fff;
	outline: none;
}

.buy-dialog-pay-method {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5rem;
	padding: 1rem;
	border: 0;
	margin-top: 0;
}

.pay-method-logo {
	height: clamp(1.6rem, 4vw, 2.2rem);
	max-height: 2.2rem;
	width: auto;
	max-width: 140px;
	opacity: 0.85;
}

.buy-dialog-actions .btn:disabled,
.buy-dialog-actions .btn.btn-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
}

.buy-dialog-actions .btn:disabled {
	pointer-events: none;
}

.buy-dialog-actions .btn.btn-disabled {
	pointer-events: auto; /* Tlačítko zůstane klikatelné pro zobrazení důvodu */
}

.buy-dialog-actions .btn.loading {
	position: relative;
}

.buy-dialog-actions .btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5rem;
	height: 1.5rem;
	margin: -0.75rem 0 0 -0.75rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btn-spinner 0.6s linear infinite;
}

.buy-dialog-actions .btn.loading .btn-label,
.buy-dialog-actions .btn.loading .btn-price {
	opacity: 0.3;
}

@keyframes btn-spinner {
	to { transform: rotate(360deg); }
}

/* === UNIVERSAL WAITING SPINNER === */
.waiting-spinner {
	width: 48px;
	height: 48px;
	margin: 20px auto;
	border: 4px solid rgba(29, 185, 84, 0.2);
	border-top-color: #1db954;
	border-radius: 50%;
	animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
	to { transform: rotate(360deg); }
}

/* === OBCHODNI PODMINKY DIALOG STYLES === */
.op-dialog-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	align-items: center;
	justify-content: center;
}

.op-dialog-overlay.visible {
	display: flex;
}

.op-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.op-dialog-window {
	max-width: 800px;
	max-height: 80vh;
	width: calc(100% - 3rem);
	overflow-y: auto;
}

.op-dialog-title {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	margin-bottom: 1.5rem;
	text-align: center;
}

.op-dialog-content {
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	line-height: 1.6;
	color: #e0e0e0;
}

.op-dialog-content h2 {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	color: #1db954;
}

.op-dialog-content h3 {
	font-size: clamp(1.1rem, 2.8vw, 1.5rem);
	margin-top: 1.2rem;
	margin-bottom: 0.8rem;
	color: #1db954;
}

.op-dialog-content p {
	margin-bottom: 1rem;
}

.op-dialog-content ul,
.op-dialog-content ol {
	margin-bottom: 1rem;
	padding-left: 2rem;
}

.op-dialog-content li {
	margin-bottom: 0.5rem;
}

.op-dialog-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: #1db954;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.op-dialog-close:hover,
.op-dialog-close:focus {
	color: #fff;
	outline: none;
}

@media (max-width: 767px) {
	.op-dialog-window {
		max-height: 90vh;
	}
}

/* === INFO JUBOX DIALOG === */
.info-jubox-dialog-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	align-items: center;
	justify-content: center;
}

.info-jubox-dialog-overlay.visible {
	display: flex;
}

.info-jubox-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.info-jubox-dialog-window {
	max-width: 800px;
	max-height: 80vh;
	width: calc(100% - 3rem);
	overflow-y: auto;
}

.info-jubox-dialog-title {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	margin-bottom: 1.5rem;
	text-align: center;
}

.info-jubox-dialog-content {
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	line-height: 1.6;
	color: #e0e0e0;
}

.info-jubox-dialog-content h2 {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	color: #1db954;
}

.info-jubox-dialog-content h3 {
	font-size: clamp(1.1rem, 2.8vw, 1.5rem);
	margin-top: 1.2rem;
	margin-bottom: 0.8rem;
	color: #1db954;
}

.info-jubox-dialog-content p {
	margin-bottom: 1rem;
}

.info-jubox-dialog-content ul,
.info-jubox-dialog-content ol {
	margin-bottom: 1rem;
	padding-left: 2rem;
}

.info-jubox-dialog-content li {
	margin-bottom: 0.5rem;
}

.info-jubox-dialog-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: #1db954;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.info-jubox-dialog-close:hover,
.info-jubox-dialog-close:focus {
	color: #fff;
	outline: none;
}

@media (max-width: 767px) {
	.info-jubox-dialog-window {
		max-height: 90vh;
	}
}

/* === PAYMENTS LIST STYLES === */
.payments-section {
	background: transparent;
	min-height: 100vh;
	padding: 40px 20px;
	margin-top: 0;
}

@media (max-width: 767px) {
	.payments-section {
		padding: 16px 12px;
	}
	.payments-container {
		padding: 24px 20px;
		border-radius: 14px;
	}
}

.payments-container {
	background: rgba(20, 20, 20, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 40px 30px;
	max-width: 600px;
	margin: 0 auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	text-align: center;
}

.payments-container h1 {
	color: #1db954;
	margin-bottom: 30px;
	font-size: 28px;
}

/* Icon styles in payments-container */
.payments-container .icon {
	font-size: clamp(3rem, 10vw, 5rem);
	margin-bottom: 1.5rem;
	line-height: 1;
	text-align: center;
}

.payments-container .icon.success {
	color: #1db954;
}

.payments-container .icon.error {
	color: #FF4444;
}

/* Error state - červený nadpis */
.payments-container .icon.error + h1 {
	color: #ff5c5c;
}

.payment-card {
	background: #181818;
	border: 1px solid rgba(29, 185, 84, 0.25);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
}

.payment-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(29, 185, 84, 0.25);
}

.payment-card-header strong {
	font-size: 16px;
	color: #fff;
}

.payment-card-header .amount {
	font-size: 18px;
	font-weight: bold;
	color: #1db954;
}

.payment-info-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-info-row:last-child {
	border-bottom: none;
}

.payment-info-label {
	color: #aaa;
	font-size: 14px;
}

.payment-info-value {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}

.payments-container .btn {
	display: inline-block;
	background: rgba(255, 255, 255, 0.04);
	color: #1db954;
	border: 1px solid rgba(29, 185, 84, 0.6);
	padding: 16px 40px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	cursor: pointer;
	margin-top: 20px;
	box-shadow: none;
}

.payments-container .btn:hover {
	transform: translateY(-2px);
	background: rgba(29, 185, 84, 0.18);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* === PAYMENTS LAYOUT STYLES === */
body.payments-layout {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: radial-gradient(900px 600px at 10% -10%, rgba(29, 185, 84, 0.16), transparent 60%),
		linear-gradient(180deg, #0b0b0b 0%, #111111 45%, #0f0f10 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #fff;
}

body.payments-layout *,
body.payments-layout *::before,
body.payments-layout *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.payments-layout .container {
	background: rgba(20, 20, 20, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 40px 30px;
	max-width: 400px;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	text-align: center;
}

.payments-layout .icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.payments-layout .icon.success {
	color: #1db954;
}

.payments-layout .icon.error {
	color: #FF4444;
}

.payments-layout h1 {
	font-size: 24px;
	margin-bottom: 10px;
	color: #1db954;
}

.payments-layout p {
	color: #bdbdbd;
	margin-bottom: 30px;
	line-height: 1.6;
}

.payments-layout .btn {
	display: inline-block;
	background: rgba(255, 255, 255, 0.04);
	color: #1db954;
	border: 1px solid rgba(29, 185, 84, 0.6);
	padding: 16px 40px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	cursor: pointer;
}

.payments-layout .btn:hover {
	transform: translateY(-2px);
	background: rgba(29, 185, 84, 0.18);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.payments-layout .btn:active {
	transform: translateY(0);
}

.payments-layout .payment-info {
	background: #181818;
	border: 1px solid rgba(29, 185, 84, 0.25);
	border-radius: 12px;
	padding: 8px 12px;
	margin-bottom: 30px;
	text-align: left;
}

.payments-layout .payment-info-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payments-layout .payment-info-row:last-child {
	border-bottom: none;
}

.payments-layout .payment-info-label {
	color: #aaa;
	font-size: 14px;
}

.payments-layout .payment-info-value {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}

/* === PURCHASE RESULT DIALOG === */
.purchase-result-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(5, 8, 10, 0.88);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 1rem;
}

.purchase-result-window {
	max-width: 500px;
	width: 100%;
}

.purchase-result-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: #1db954;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.purchase-result-close:hover,
.purchase-result-close:focus {
	color: #fff;
	outline: none;
}

.purchase-result-icon {
	font-size: clamp(3rem, 10vw, 5rem);
	margin-bottom: 1.5rem;
	line-height: 1;
	text-align: center;
}

.purchase-result-icon-success {
	color: #1db954;
}

.purchase-result-icon-warning {
	color: #FFA500;
}

.purchase-result-icon-error {
	color: #FF4444;
}

.purchase-result-title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	margin-bottom: 1rem;
	color: #fff;
	text-align: center;
}

.purchase-result-message {
	font-size: clamp(1rem, 2.8vw, 1.3rem);
	margin-bottom: 1.5rem;
	color: #bdbdbd;
	line-height: 1.6;
}

.purchase-result-payment-id {
	font-size: clamp(0.9rem, 2.5vw, 1.1rem);
	color: #888;
	margin-bottom: 2rem;
}

.purchase-result-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.purchase-result-btn-close {
	min-width: 150px;
}

/* === PAID TRACK HIGHLIGHT === */

.paid-track {
	position: relative;
	transition: background 0.4s ease;
	border-radius: 6px;
	padding-left: 2rem !important;
	text-align: left !important;
}

.paid-track--bounce {
	animation: paidTrackPulse 0.6s ease;
}

.paid-track--standard {
	background: rgba(var(--color-green-rgb), 0.07);
}

.paid-track--vip .track-title {
	color: var(--color-vip);
}
.paid-track--vip .track-artist {
	color: var(--color-vip-artist);
}
.paid-track--vip {
	background: rgba(var(--color-vip-rgb), 0.09);
}

.paid-track--joker .track-title {
	color: var(--color-joker);
}
.paid-track--joker .track-artist {
	color: var(--color-joker-artist);
}
.paid-track--joker {
	background: rgba(var(--color-joker-rgb), 0.1);
}

/* Aktivní skladba má vždy normální zelené podbarvení bez ohledu na prioritu */
.active-track.paid-track--vip,
.active-track.paid-track--joker {
	background: transparent !important;
}

.active-track.paid-track--vip .track-title,
.active-track.paid-track--joker .track-title,
.active-track.paid-track--vip .track-artist,
.active-track.paid-track--joker .track-artist {
	color: #1db954 !important;
}

.paid-track-mobile-icon {
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	width: clamp(0.8rem, 2.5vw, 1.1rem);
	height: clamp(0.8rem, 2.5vw, 1.1rem);
	-webkit-mask-image: url('/playlist/img/cellphone.svg');
	mask-image: url('/playlist/img/cellphone.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: var(--color-text);
	opacity: 0.6;
	z-index: 10;
}
.paid-track--standard .paid-track-mobile-icon { background-color: var(--color-green); }
.paid-track--vip .paid-track-mobile-icon      { background-color: var(--color-vip); }
.paid-track--joker .paid-track-mobile-icon    { background-color: var(--color-joker); }

/* Aktivně hrající zaplacená skladba – ikona mobilu vždy zelená (jako ostatní ikony active-track) */
.active-track .paid-track-mobile-icon { background-color: #1db954 !important; }

/* Nově přidaná skladba - zvýraznění s fade-out efektem */
.paid-track--newly-added {
	animation: newlyAddedFadeOut 20s ease forwards;
}

@keyframes newlyAddedFadeOut {
	0% {
		background: rgba(var(--color-green-rgb), 0.25);
	}
	100% {
		background: rgba(var(--color-green-rgb), 0.07);
	}
}

.paid-track--vip.paid-track--newly-added {
	animation: newlyAddedFadeOutVip 20s ease forwards;
}

@keyframes newlyAddedFadeOutVip {
	0% {
		background: rgba(var(--color-vip-rgb), 0.25);
	}
	100% {
		background: rgba(var(--color-vip-rgb), 0.09);
	}
}

.paid-track--joker.paid-track--newly-added {
	animation: newlyAddedFadeOutJoker 20s ease forwards;
}

@keyframes newlyAddedFadeOutJoker {
	0% {
		background: rgba(var(--color-joker-rgb), 0.25);
	}
	100% {
		background: rgba(var(--color-joker-rgb), 0.1);
	}
}

/* === TEST PAID BUTTONS === */

.test-paid-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem 1rem 0.5rem;
	background: rgba(var(--color-white-rgb), 0.03);
	border-top: 1px solid rgba(var(--color-white-rgb), 0.08);
	border-bottom: 1px solid rgba(var(--color-white-rgb), 0.08);
	margin-bottom: 0.5rem;
}

.test-paid-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: clamp(0.85rem, 2.5vw, 1rem);
	font-weight: 600;
	border-radius: 999px;
	padding: 0.4rem 1.1rem;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
	letter-spacing: 0.02em;
}
.test-paid-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}
.test-paid-btn:active {
	transform: scale(0.97);
}

.test-paid-btn--standard {
	background: rgba(var(--color-green-rgb), 0.15);
	color: var(--color-green);
	border: 1px solid rgba(var(--color-green-rgb), 0.4);
}
.test-paid-btn--vip {
	background: rgba(var(--color-vip-rgb), 0.15);
	color: var(--color-vip);
	border: 1px solid rgba(var(--color-vip-rgb), 0.4);
}
.test-paid-btn--joker {
	background: rgba(var(--color-joker-rgb), 0.15);
	color: var(--color-joker);
	border: 1px solid rgba(var(--color-joker-rgb), 0.4);
}

/* === TEST UI SPECIFIC STYLES === */
.test-ui-section-divider {
	background: linear-gradient(90deg, transparent, #1db954, transparent);
	height: 2px;
	margin: 4rem 0;
	opacity: 0.18;
}

.test-ui-section-title {
	text-align: center;
	color: #1db954;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 2rem 0;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.test-ui-inline-dialog {
	margin: 2rem auto;
	max-width: 800px;
	position: relative;
	z-index: auto;
}

.test-ui-inline-dialog .buy-dialog-overlay,
.test-ui-inline-dialog .op-dialog-overlay,
.test-ui-inline-dialog .info-jubox-dialog-overlay,
.test-ui-inline-dialog .purchase-result-overlay {
	position: relative;
	display: block;
	background: transparent;
	padding: 0;
	z-index: auto;
	inset: auto;
}

.test-ui-inline-dialog .buy-dialog-backdrop,
.test-ui-inline-dialog .op-dialog-backdrop,
.test-ui-inline-dialog .info-jubox-dialog-backdrop {
	display: none;
}

.test-ui-inline-dialog .buy-dialog-window,
.test-ui-inline-dialog .op-dialog-window,
.test-ui-inline-dialog .info-jubox-dialog-window,
.test-ui-inline-dialog .purchase-result-window {
	width: 100%;
	max-width: 100%;
	position: relative;
}

/* === DEBUG INFO PRO TESTMODE === */
.playlist-debug-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(var(--color-white-rgb), 0.05);
	border: 1px solid rgba(var(--color-white-rgb), 0.1);
	border-radius: 6px;
	font-size: clamp(0.8rem, 2.2vw, 0.9rem);
	color: var(--color-text-muted);
}
.playlist-debug-info__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.playlist-debug-info__label {
	font-weight: 600;
	color: var(--color-text-subtle);
}
.playlist-debug-info__value {
	font-family: monospace;
	color: var(--color-green);
}
.playlist-debug-reset-btn,
.playlist-debug-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	background: rgba(var(--color-green-rgb), 0.1);
	border: 1px solid rgba(var(--color-green-rgb), 0.3);
	border-radius: 4px;
	color: var(--color-green);
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease;
	text-decoration: none;
	margin-left: 0.5rem;
}
.playlist-debug-reset-btn:hover,
.playlist-debug-link:hover {
	background: rgba(var(--color-green-rgb), 0.2);
	border-color: rgba(var(--color-green-rgb), 0.5);
	transform: translateY(-1px);
	color: var(--color-green);
	text-decoration: none;
}
.playlist-debug-reset-btn:active,
.playlist-debug-link:active {
	transform: scale(0.97);
}

/* === TOAST NOTIFICATIONS === */

.toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9100;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 90%;
	max-width: 400px;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: auto;
	border-left: 4px solid #666;
	min-height: 70px;
}

.toast-show {
	transform: translateY(0);
	opacity: 1;
}

.toast-hide {
	transform: translateY(100px);
	opacity: 0;
}

.toast-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: bold;
}

.toast-message {
	flex: 1;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.toast-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: color 0.2s;
}

.toast-close:hover {
	color: #333;
}

/* Toast types */
.toast-info {
	border-left-color: #3498db;
}

.toast-info .toast-icon {
	background: #e3f2fd;
	color: #3498db;
}

.toast-success {
	border-left-color: #27ae60;
}

.toast-success .toast-icon {
	background: #e8f5e9;
	color: #27ae60;
}

.toast-warning {
	border-left-color: #f39c12;
}

.toast-warning .toast-icon {
	background: #fff3e0;
	color: #f39c12;
}

.toast-error {
	border-left-color: #e74c3c;
}

.toast-error .toast-icon {
	background: #ffebee;
	color: #e74c3c;
}

/* Responsive */
@media (max-width: 480px) {
	.toast-container {
		width: 95%;
		bottom: 10px;
	}
	
	.toast {
		padding: 12px;
	}
	
	.toast-message {
		font-size: 13px;
	}
}

/* ==========================================================================
   CONTACT FORM STYLES (Info Jubox Lead Section)
   Tyto styly patří pouze nové sekci s kontaktním formulářem uvnitř
   dialogu "Info o Juboxu". Jsou záměrně na konci souboru, aby byly
   snadno dohledatelné a oddělené od původního snapshotu UI.
   ========================================================================== */

/* Obal sekce formuláře: tmavý panel s jemným zeleným akcentem */
.info-jubox-lead-section {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid rgba(29, 185, 84, 0.24);
	border-radius: 1rem;
	background:
		linear-gradient(180deg, rgba(29, 185, 84, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
		rgba(255, 255, 255, 0.02);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	text-align: left;
}

/* Samostatná varianta pod dialogem: centrovaný blok s kontrolovanou šířkou */
.info-jubox-lead-section--standalone {
	max-width: 820px;
	margin: 0 auto;
}

/* Nadpis sekce používá základní page heading a tady jen jemně doladíme odsazení */
.info-jubox-lead-section-title {
	margin-bottom: 1.25rem;
}

/* Hlavní nadpis formuláře podle zadání */
.info-jubox-lead-title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.35rem, 3vw, 2rem);
	line-height: 1.15;
	color: #fff;
}

/* Krátká instrukce k validaci formuláře */
.info-jubox-lead-hint {
	margin: 0 0 1.35rem;
	font-size: 0.98rem;
	line-height: 1.5;
	color: #b7d8c2;
}

/* Rozložení formuláře: na širších displejích 2 sloupce, email přes celou šířku */
.info-jubox-lead-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

/* Jeden formulářový blok = label + input */
.info-jubox-lead-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

/* Pole, která mají zabrat celou šířku gridu */
.info-jubox-lead-field--full {
	grid-column: 1 / -1;
}

/* Řádek pro email pole a pomocné @ tlačítko */
.info-jubox-lead-input-row {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
}

/* Popisky polí: světlejší text, aby navazoval na zbytek dialogu */
.info-jubox-lead-label {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #d9d9d9;
}

/* Samotná vstupní pole: tmavé pozadí, zelený focus a jemné zaoblení */
.info-jubox-lead-input {
	width: 100%;
	min-height: 3.5rem;
	padding: 0.95rem 1rem;
	border: 1px solid rgba(29, 185, 84, 0.22);
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* U inputu v email row dovolíme roztáhnout se vedle helper tlačítka */
.info-jubox-lead-input-row .info-jubox-lead-input {
	flex: 1;
}

/* Placeholder držíme utlumený, aby nerušil hlavní obsah */
.info-jubox-lead-input::placeholder {
	color: rgba(255, 255, 255, 0.42);
}

/* Aktivní stav polí používá značkovou zelenou a lehký glow */
.info-jubox-lead-input:focus {
	outline: none;
	border-color: rgba(29, 185, 84, 0.7);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.14);
}

/* Chybový stav při pokusu o odeslání prázdného formuláře */
.info-jubox-lead-input[aria-invalid='true'] {
	border-color: rgba(239, 83, 80, 0.6);
	box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.12);
}

/* Pomocné tlačítko pro vložení znaku @ do emailu */
.info-jubox-lead-helper {
	flex: 0 0 auto;
	min-width: 3.5rem;
	min-height: 3.5rem;
	padding: 0 1rem;
	border: 1px solid rgba(29, 185, 84, 0.25);
	border-radius: 0.85rem;
	background: rgba(29, 185, 84, 0.12);
	color: #1db954;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Hover/focus helperu drží stejnou zelenou identitu jako zbytek formuláře */
.info-jubox-lead-helper:hover,
.info-jubox-lead-helper:focus {
	outline: none;
	transform: translateY(-1px);
	background: rgba(29, 185, 84, 0.18);
	border-color: rgba(29, 185, 84, 0.45);
	color: #fff;
}

/* CTA tlačítko: plná šířka, zelený gradient a vyšší kontrast pro akci */
.info-jubox-lead-submit {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: 0.95rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #1db954 0%, #128b3c 100%);
	color: #04120a;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(29, 185, 84, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Hover/focus drží stejnou energii jako zbytek zelených akcí v UI */
.info-jubox-lead-submit:hover,
.info-jubox-lead-submit:focus {
	outline: none;
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 18px 34px rgba(29, 185, 84, 0.3);
}

/* Po úspěšném odeslání tlačítko uzamkneme a vizuálně zklidníme */
.info-jubox-lead-submit:disabled {
	cursor: not-allowed;
	transform: none;
	filter: none;
	background: linear-gradient(135deg, rgba(29, 185, 84, 0.4) 0%, rgba(18, 139, 60, 0.4) 100%);
	color: rgba(255, 255, 255, 0.92);
	box-shadow: none;
	opacity: 0.85;
}

/* Chybová validační hláška pod formulářem */
.info-jubox-lead-error {
	margin: 1rem 0 0;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(239, 83, 80, 0.28);
	border-radius: 0.85rem;
	background: rgba(239, 83, 80, 0.1);
	color: #ffd7d6;
	font-size: 0.98rem;
}

/* Potvrzení po odeslání: decentní zelený badge uvnitř stejného panelu */
.info-jubox-lead-feedback {
	margin: 1rem 0 0;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(29, 185, 84, 0.28);
	border-radius: 0.85rem;
	background: rgba(29, 185, 84, 0.12);
	color: #dfffea;
	font-size: 0.98rem;
}

/* Na mobilu skládáme formulář pod sebe a zachováme pohodlné tap targety */
@media (max-width: 767px) {
	.info-jubox-lead-section {
		padding: 1.2rem;
	}

	.info-jubox-lead-form {
		grid-template-columns: 1fr;
	}

	.info-jubox-lead-input-row {
		gap: 0.6rem;
	}

	.info-jubox-lead-helper {
		min-width: 3.25rem;
		padding: 0 0.85rem;
	}
}

/* ==========================================================================
   FLASH MESSAGES
   ========================================================================== */

.flash {
	position: fixed;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	max-width: 90%;
	width: auto;
	padding: 1rem 3rem 1rem 1.5rem;
	border-radius: 0.85rem;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	animation: flashSlideIn 0.3s ease-out;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.flash .close {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	transform: translateY(-50%);
	padding: 0;
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.flash .close:hover,
.flash .close:focus {
	opacity: 1;
	outline: none;
}

.flash .close span {
	display: block;
}

@keyframes flashSlideIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes flashSlideOut {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
	to {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}
}

.flash-success {
	background: linear-gradient(135deg, #1db954 0%, #128b3c 100%);
	color: #fff;
	border: 1px solid rgba(29, 185, 84, 0.5);
}

.flash-error {
	background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
	color: #fff;
	border: 1px solid rgba(239, 83, 80, 0.5);
}

.flash-info {
	background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
	color: #fff;
	border: 1px solid rgba(66, 165, 245, 0.5);
}

.flash-warning {
	background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%);
	color: #fff;
	border: 1px solid rgba(255, 167, 38, 0.5);
}

@media (max-width: 767px) {
	.flash {
		max-width: 95%;
		padding: 0.85rem 1.2rem;
		font-size: 0.95rem;
	}
}
