/* Retro Vinyl Player – Frontend Styles
   Doppelter Wrapper + !important gegen Theme-Overrides (Blogarise-kompatibel) */

html body .rvp-outer-wrap {
	all: initial !important;
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html body .rvp-outer-wrap * {
	box-sizing: border-box !important;
}

html body .rvp-outer-wrap .rvp-wrap {
	display: block !important;
	max-width: 640px !important;
	margin: 30px auto !important;
	background: linear-gradient(160deg, #fdf3e2 0%, #f4e0bb 100%) !important;
	border-radius: 18px !important;
	padding: 28px !important;
	box-shadow: 0 18px 40px rgba(180, 130, 60, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
}

/* ---------- Konsole / Turntable ---------- */

html body .rvp-outer-wrap .rvp-console {
	background: linear-gradient(160deg, #e9c893 0%, #dcae76 100%) !important;
	border-radius: 14px !important;
	padding: 24px !important;
	position: relative !important;
	box-shadow: inset 0 2px 10px rgba(120, 80, 30, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

html body .rvp-outer-wrap .rvp-turntable {
	position: relative !important;
	width: 220px !important;
	height: 220px !important;
	margin: 0 auto 20px auto !important;
}

html body .rvp-outer-wrap .rvp-vinyl {
	width: 220px !important;
	height: 220px !important;
	border-radius: 50% !important;
	background:
		repeating-radial-gradient(circle at center,
			#111 0px, #111 2px,
			#1c1c1c 3px, #1c1c1c 5px) !important;
	box-shadow: 0 8px 22px rgba(120, 80, 30, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.06) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: transform 0.2s linear !important;
}

html body .rvp-outer-wrap .rvp-vinyl.rvp-spinning {
	animation: rvp-spin 2.8s linear infinite !important;
}

@keyframes rvp-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

html body .rvp-outer-wrap .rvp-vinyl-label {
	width: 78px !important;
	height: 78px !important;
	border-radius: 50% !important;
	background: radial-gradient(circle at 35% 30%, #ff9d5c, #e0703a 70%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 0 0 3px #2a1c15, 0 0 0 5px rgba(255, 255, 255, 0.6) !important;
	position: relative !important;
}

html body .rvp-outer-wrap .rvp-vinyl-label::after {
	content: "" !important;
	position: absolute !important;
	width: 8px !important;
	height: 8px !important;
	background: #2a1c15 !important;
	border-radius: 50% !important;
}

html body .rvp-outer-wrap .rvp-vinyl-label-text {
	color: #fff5e8 !important;
	-webkit-text-fill-color: #fff5e8 !important;
	font-size: 9px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	text-align: center !important;
	line-height: 1.2 !important;
	padding: 0 8px !important;
	max-width: 60px !important;
	overflow: hidden !important;
}

html body .rvp-outer-wrap .rvp-tonearm {
	position: absolute !important;
	top: -8px !important;
	right: -18px !important;
	width: 90px !important;
	height: 90px !important;
	transform-origin: 88% 12% !important;
	transform: rotate(-28deg) !important;
	transition: transform 0.5s ease !important;
	z-index: 3 !important;
}

html body .rvp-outer-wrap .rvp-tonearm.rvp-arm-down {
	transform: rotate(6deg) !important;
}

html body .rvp-outer-wrap .rvp-tonearm-base {
	position: absolute !important;
	top: 4px !important;
	right: 4px !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	background: #c9a86a !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

html body .rvp-outer-wrap .rvp-tonearm-stick {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 4px !important;
	height: 78px !important;
	background: linear-gradient(180deg, #d8bd86, #a9895a) !important;
	border-radius: 2px !important;
	transform: rotate(35deg) !important;
	transform-origin: top center !important;
}

html body .rvp-outer-wrap .rvp-tonearm-head {
	position: absolute !important;
	top: 62px !important;
	right: -18px !important;
	width: 18px !important;
	height: 10px !important;
	background: #c9a86a !important;
	border-radius: 3px !important;
	transform: rotate(35deg) !important;
}

/* ---------- Now Playing ---------- */

html body .rvp-outer-wrap .rvp-now-playing {
	text-align: center !important;
	margin-bottom: 14px !important;
	min-height: 40px !important;
}

html body .rvp-outer-wrap .rvp-np-title {
	display: block !important;
	color: #4a2f1a !important;
	-webkit-text-fill-color: #4a2f1a !important;
	font-weight: 700 !important;
	font-size: 16px !important;
}

html body .rvp-outer-wrap .rvp-np-artist {
	display: block !important;
	color: #8a6a45 !important;
	-webkit-text-fill-color: #8a6a45 !important;
	font-size: 13px !important;
	margin-top: 2px !important;
}

/* ---------- Progress ---------- */

html body .rvp-outer-wrap .rvp-progress-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-bottom: 16px !important;
}

html body .rvp-outer-wrap .rvp-time-elapsed,
html body .rvp-outer-wrap .rvp-time-duration {
	color: #8a6a45 !important;
	-webkit-text-fill-color: #8a6a45 !important;
	font-size: 11px !important;
	min-width: 32px !important;
	text-align: center !important;
}

html body .rvp-outer-wrap input[type="range"].rvp-progress-bar,
html body .rvp-outer-wrap input[type="range"].rvp-volume-bar {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 1 !important;
	height: 5px !important;
	border-radius: 4px !important;
	background: #d9b98c !important;
	outline: none !important;
	cursor: pointer !important;
}

html body .rvp-outer-wrap input[type="range"].rvp-progress-bar::-webkit-slider-thumb,
html body .rvp-outer-wrap input[type="range"].rvp-volume-bar::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 13px !important;
	height: 13px !important;
	border-radius: 50% !important;
	background: #e0703a !important;
	box-shadow: 0 0 0 3px rgba(224, 112, 58, 0.25) !important;
	cursor: pointer !important;
}

html body .rvp-outer-wrap input[type="range"].rvp-progress-bar::-moz-range-thumb,
html body .rvp-outer-wrap input[type="range"].rvp-volume-bar::-moz-range-thumb {
	width: 13px !important;
	height: 13px !important;
	border-radius: 50% !important;
	border: none !important;
	background: #e0703a !important;
	cursor: pointer !important;
}

/* ---------- Controls ---------- */

html body .rvp-outer-wrap .rvp-controls-row {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 14px !important;
	flex-wrap: wrap !important;
}

html body .rvp-outer-wrap .rvp-btn {
	background: #fffaf1 !important;
	color: #4a2f1a !important;
	border: 1px solid rgba(120, 80, 30, 0.2) !important;
	border-radius: 50% !important;
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
	box-shadow: 0 2px 6px rgba(120, 80, 30, 0.15) !important;
	transition: background 0.2s ease, transform 0.1s ease !important;
}

html body .rvp-outer-wrap .rvp-btn:hover {
	background: #fff1d9 !important;
	transform: scale(1.05) !important;
}

html body .rvp-outer-wrap .rvp-btn svg {
	width: 18px !important;
	height: 18px !important;
	fill: #4a2f1a !important;
}

html body .rvp-outer-wrap .rvp-btn-play {
	width: 52px !important;
	height: 52px !important;
	background: #e0703a !important;
	border: none !important;
}

html body .rvp-outer-wrap .rvp-btn-play svg {
	fill: #fffaf1 !important;
	width: 22px !important;
	height: 22px !important;
}

html body .rvp-outer-wrap .rvp-btn-play:hover {
	background: #ec8452 !important;
}

html body .rvp-outer-wrap .rvp-volume-row {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-left: 10px !important;
	min-width: 120px !important;
}

html body .rvp-outer-wrap .rvp-volume-icon {
	width: 16px !important;
	height: 16px !important;
	fill: #8a6a45 !important;
	flex-shrink: 0 !important;
}

html body .rvp-outer-wrap .rvp-volume-bar {
	width: 90px !important;
}

/* ---------- Popup-Launch-Button ---------- */

html body .rvp-outer-wrap .rvp-popup-launch-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	margin-top: 16px !important;
	padding: 11px 16px !important;
	background: transparent !important;
	color: #e0703a !important;
	border: 2px solid #e0703a !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer !important;
	transition: background 0.2s ease, color 0.2s ease !important;
}

html body .rvp-outer-wrap .rvp-popup-launch-btn svg {
	width: 16px !important;
	height: 16px !important;
	fill: #e0703a !important;
	flex-shrink: 0 !important;
	transition: fill 0.2s ease !important;
}

html body .rvp-outer-wrap .rvp-popup-launch-btn span {
	color: #e0703a !important;
	-webkit-text-fill-color: #e0703a !important;
}

html body .rvp-outer-wrap .rvp-popup-launch-btn:hover {
	background: #e0703a !important;
}

html body .rvp-outer-wrap .rvp-popup-launch-btn:hover svg {
	fill: #fffaf1 !important;
}

html body .rvp-outer-wrap .rvp-popup-launch-btn:hover span {
	color: #fffaf1 !important;
	-webkit-text-fill-color: #fffaf1 !important;
}

/* ---------- Playlist ---------- */

html body .rvp-outer-wrap .rvp-playlist {
	list-style: none !important;
	margin: 20px 0 0 0 !important;
	padding: 0 !important;
	max-height: 320px !important;
	overflow-y: auto !important;
}

html body .rvp-outer-wrap .rvp-playlist-item {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	margin-bottom: 4px !important;
	background: rgba(255, 255, 255, 0.7) !important;
	transition: background 0.15s ease !important;
}

html body .rvp-outer-wrap .rvp-playlist-item:hover {
	background: #ffffff !important;
}

html body .rvp-outer-wrap .rvp-playlist-item.rvp-active-track {
	background: rgba(224, 112, 58, 0.18) !important;
}

html body .rvp-outer-wrap .rvp-playlist-play {
	background: #fffaf1 !important;
	border: 1px solid rgba(120, 80, 30, 0.2) !important;
	border-radius: 50% !important;
	width: 30px !important;
	height: 30px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
}

html body .rvp-outer-wrap .rvp-playlist-play svg {
	width: 13px !important;
	height: 13px !important;
	fill: #4a2f1a !important;
}

html body .rvp-outer-wrap .rvp-playlist-info {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
}

html body .rvp-outer-wrap .rvp-playlist-title {
	color: #4a2f1a !important;
	-webkit-text-fill-color: #4a2f1a !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body .rvp-outer-wrap .rvp-playlist-artist {
	color: #8a6a45 !important;
	-webkit-text-fill-color: #8a6a45 !important;
	font-size: 12px !important;
}

html body .rvp-outer-wrap .rvp-playlist-duration {
	color: #8a6a45 !important;
	-webkit-text-fill-color: #8a6a45 !important;
	font-size: 12px !important;
	flex-shrink: 0 !important;
}

html body .rvp-outer-wrap .rvp-admin-notice {
	background: #fff3cd !important;
	color: #664d03 !important;
	-webkit-text-fill-color: #664d03 !important;
	padding: 12px 16px !important;
	border-radius: 6px !important;
	border: 1px solid #ffe69c !important;
}

/* ---------- Widget-Layout (kompakt, für Sidebar/Widget-Bereiche) ---------- */

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget {
	max-width: 100% !important;
	margin: 12px 0 !important;
	padding: 16px !important;
	border-radius: 12px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-console {
	padding: 14px !important;
	border-radius: 10px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-turntable,
html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-vinyl {
	width: 110px !important;
	height: 110px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-vinyl-label {
	width: 42px !important;
	height: 42px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-vinyl-label-text {
	font-size: 7px !important;
	max-width: 34px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-tonearm {
	width: 55px !important;
	height: 55px !important;
	top: -4px !important;
	right: -10px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-tonearm-stick {
	height: 44px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-np-title {
	font-size: 13px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-np-artist {
	font-size: 11px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-controls-row {
	gap: 8px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-btn {
	width: 32px !important;
	height: 32px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-btn svg {
	width: 14px !important;
	height: 14px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-btn-play {
	width: 42px !important;
	height: 42px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-btn-play svg {
	width: 18px !important;
	height: 18px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-volume-row {
	width: 100% !important;
	justify-content: center !important;
	margin-left: 0 !important;
	order: 10 !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-volume-bar {
	width: 70px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-popup-launch-btn {
	font-size: 11px !important;
	padding: 8px 10px !important;
	margin-top: 12px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist {
	max-height: 200px !important;
	margin-top: 14px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist-item {
	padding: 7px 8px !important;
	gap: 8px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist-play {
	width: 24px !important;
	height: 24px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist-title {
	font-size: 12px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist-artist {
	font-size: 10px !important;
}

html body .rvp-outer-wrap .rvp-wrap.rvp-layout-widget .rvp-playlist-duration {
	display: none !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
	html body .rvp-outer-wrap .rvp-wrap {
		padding: 18px !important;
		margin: 16px auto !important;
		border-radius: 14px !important;
	}

	html body .rvp-outer-wrap .rvp-turntable {
		width: 170px !important;
		height: 170px !important;
	}

	html body .rvp-outer-wrap .rvp-vinyl {
		width: 170px !important;
		height: 170px !important;
	}

	html body .rvp-outer-wrap .rvp-vinyl-label {
		width: 62px !important;
		height: 62px !important;
	}

	html body .rvp-outer-wrap .rvp-controls-row {
		gap: 10px !important;
	}

	html body .rvp-outer-wrap .rvp-volume-row {
		width: 100% !important;
		justify-content: center !important;
		margin-left: 0 !important;
		order: 10 !important;
	}
}
