/**
 * Beat Player Horizontal (Professional) Styles
 *
 * @package Beat_Player
 */

/* Container */
.beat-player-horizontal-container {
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Wrapper */
.beat-player-horizontal-wrapper {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #000;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	color: #fff;
}

/* Left Section: Image */
.beat-player-left-section {
	flex-shrink: 0;
}

.beat-player-image-wrapper {
	width: 120px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.beat-player-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.beat-player-image-placeholder {
	color: #666;
}

.beat-player-image-placeholder svg {
	width: 60%;
	height: 60%;
}

/* Middle Section: Player Controls */
.beat-player-middle-section {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Header Info */
.beat-player-header-info {
	margin-bottom: 8px;
}

.beat-player-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.beat-player-artist {
	margin: 4px 0 0 0;
	font-size: 13px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Playback Section */
.beat-player-playback-section {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Play Button Horizontal */
.beat-player-play-btn-horizontal {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ff0000;
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.beat-player-play-btn-horizontal:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.beat-player-play-btn-horizontal:active {
	transform: scale(0.95);
}

.beat-player-play-icon-horizontal,
.beat-player-pause-icon-horizontal {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Time Display */
.beat-player-time-display {
	flex-shrink: 0;
	font-size: 12px;
	color: #999;
	min-width: 35px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Waveform Container */
.beat-player-waveform-container {
	flex: 1;
	height: 40px;
	position: relative;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}

.beat-player-waveform-canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.beat-player-progress-line {
	position: absolute;
	top: 0;
	left: 0;
	width: 2px;
	height: 100%;
	background: #ff0000;
	pointer-events: none;
	z-index: 10;
}

/* Beat Information Badges */
.beat-player-info-horizontal {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.beat-info-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 12px;
	background: rgba(255, 0, 0, 0.1);
	border: 1px solid rgba(255, 0, 0, 0.3);
	border-radius: 4px;
	min-width: 60px;
}

.beat-info-label {
	font-size: 14px;
	font-weight: 700;
	color: #ff0000;
}

.beat-info-sublabel {
	font-size: 10px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Right Section: Controls and Actions */
.beat-player-right-section {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
}

/* Control Buttons */
.beat-player-control-buttons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.beat-player-control-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.beat-player-control-btn:hover {
	background: rgba(255, 0, 0, 0.2);
	border-color: rgba(255, 0, 0, 0.4);
	color: #ff0000;
}

.beat-player-control-btn svg {
	width: 16px;
	height: 16px;
}

.beat-player-control-btn.active {
	background: rgba(255, 0, 0, 0.3);
	border-color: #ff0000;
	color: #ff0000;
}

/* Volume Control Horizontal */
.beat-player-volume-control-horizontal {
	display: flex;
	align-items: center;
	gap: 8px;
}

.beat-player-volume-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.beat-player-volume-slider-horizontal {
	width: 60px;
	height: 3px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}

.beat-player-volume-slider-horizontal::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ff0000;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
}

.beat-player-volume-slider-horizontal::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ff0000;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
}

/* Action Buttons */
.beat-player-action-buttons {
	display: flex;
	gap: 8px;
}

.beat-player-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
}

.beat-player-buy-btn-horizontal {
	background: #ff0000;
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.beat-player-buy-btn-horizontal:hover {
	background: #cc0000;
	box-shadow: 0 6px 16px rgba(255, 0, 0, 0.6);
	transform: translateY(-2px);
}

.beat-player-download-btn-horizontal {
	background: rgba(255, 0, 0, 0.2);
	color: #ff0000;
	border: 1px solid #ff0000;
}

.beat-player-download-btn-horizontal:hover {
	background: rgba(255, 0, 0, 0.3);
	transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.beat-player-horizontal-wrapper {
		gap: 16px;
		padding: 16px;
	}

	.beat-player-image-wrapper {
		width: 100px;
		height: 100px;
	}

	.beat-player-title {
		font-size: 16px;
	}

	.beat-player-play-btn-horizontal {
		width: 40px;
		height: 40px;
	}

	.beat-player-info-horizontal {
		gap: 8px;
	}

	.beat-info-badge {
		padding: 4px 8px;
		font-size: 12px;
	}
}

@media (max-width: 768px) {
	.beat-player-horizontal-wrapper {
		flex-wrap: wrap;
		gap: 12px;
		padding: 12px;
	}

	.beat-player-left-section {
		flex-basis: 100%;
		display: flex;
		justify-content: center;
	}

	.beat-player-image-wrapper {
		width: 140px;
		height: 140px;
	}

	.beat-player-middle-section {
		flex-basis: 100%;
		gap: 10px;
	}

	.beat-player-playback-section {
		gap: 8px;
	}

	.beat-player-right-section {
		flex-basis: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
	}

	.beat-player-control-buttons {
		order: 2;
	}

	.beat-player-action-buttons {
		order: 1;
		flex: 1;
	}

	.beat-player-btn {
		flex: 1;
		padding: 12px 16px;
		font-size: 13px;
	}

	.beat-player-info-horizontal {
		flex-basis: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.beat-player-horizontal-wrapper {
		flex-direction: column;
		gap: 12px;
		padding: 12px;
	}

	.beat-player-image-wrapper {
		width: 120px;
		height: 120px;
	}

	.beat-player-title {
		font-size: 14px;
	}

	.beat-player-artist {
		font-size: 12px;
	}

	.beat-player-playback-section {
		width: 100%;
	}

	.beat-player-waveform-container {
		height: 30px;
	}

	.beat-player-right-section {
		width: 100%;
		flex-direction: column;
		gap: 8px;
	}

	.beat-player-action-buttons {
		width: 100%;
	}

	.beat-player-btn {
		flex: 1;
		padding: 10px 12px;
		font-size: 12px;
	}

	.beat-player-control-buttons {
		width: 100%;
		justify-content: center;
	}

	.beat-player-volume-slider-horizontal {
		width: 50px;
	}
}

/* Accessibility */
.beat-player-play-btn-horizontal:focus-visible,
.beat-player-control-btn:focus-visible,
.beat-player-btn:focus-visible {
	outline: 2px solid #ff0000;
	outline-offset: 2px;
}

/* Loading State */
.beat-player-horizontal-container.loading .beat-player-play-btn-horizontal {
	opacity: 0.6;
	pointer-events: none;
}

/* Error State */
.beat-player-horizontal-container.error {
	background: rgba(255, 0, 0, 0.1);
	border: 1px solid #ff0000;
	padding: 12px;
	border-radius: 8px;
	color: #ff0000;
	font-size: 14px;
}
