.cmc-card {
	position: relative;
	width: 100%;
	height: 500px; /* Default height, can be overridden by controls */
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	cursor: pointer;
	background: #000; /* Fallback color */
}

/* New Background Layer for Zooming */
.cmc-bg-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: 0;
	/* Transform origin center for perfect zooming */
	transform-origin: center center;
}

.cmc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.cmc-card:hover .cmc-main-play-button {
	transform: scale(1.1);
}

/* Overlay */
.cmc-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5); /* Default fallback */
	z-index: 1;
	pointer-events: none; /* Let clicks pass through to content */
}

.cmc-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
}

/* Play Button */
.cmc-play-button-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* Removed flex properties to allow free positioning */
	z-index: 10;
}

.cmc-main-play-button {
	width: 80px; /* Default updated */
	height: 80px; /* Default updated */
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: all 0.3s ease;
	outline: none;
	padding: 0;
}

.cmc-play-icon {
	width: 0; 
	height: 0; 
	border-top: 16px solid transparent; /* Adjusted based on new size */
	border-bottom: 16px solid transparent;
	border-left: 28px solid #fff;
	margin-left: 8px; /* Visual center fix */
	transition: all 0.2s ease;
}

.cmc-card.playing .cmc-play-icon {
	width: 20px;
	height: 28px;
	border: none;
	border-left: 6px solid #fff;
	border-right: 6px solid #fff;
	background: transparent;
	margin-left: 0 !important; /* Force reset margin for centered pause bars */
	transform: translateX(0) !important; /* Ensure no transform shift */
}

/* Info Container (Bottom) */
.cmc-info-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: auto; /* Push to bottom */
}

.cmc-title-wrapper {
	position: relative;
	width: 100%;
	text-align: center;
}

.cmc-category-title {
	text-align: center;
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	margin: 0;
	font-size: 1.2rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	/* Transform applied via inline style controls */
	display: inline-block; /* Allows transform to work properly */
}

/* Volume Control */
.cmc-volume-container {
	width: 100%;
	max-width: 150px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cmc-card:hover .cmc-volume-container {
	opacity: 1;
}

.cmc-volume-icon {
	color: rgba(255,255,255,0.7);
	font-size: 12px;
}

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

.cmc-volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.8);
	cursor: pointer;
	transition: background 0.2s;
}

.cmc-volume-slider::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.8);
	cursor: pointer;
	transition: background 0.2s;
}

.cmc-volume-slider:hover::-webkit-slider-thumb {
	background: #fff;
}

/* Waveform */
.cmc-waveform-container {
	width: 100%;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.cmc-waveform {
	display: flex;
	align-items: center;
	justify-content: center; /* Center the waveform bars */
	gap: 2px;
	height: 100%;
	width: 100%;
}

.cmc-waveform-bar {
	width: 3px;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	transition: height 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
	transform-origin: bottom; /* Scale from bottom */
}

.cmc-waveform-bar.active {
	background-color: #FFC107;
	box-shadow: 0 0 5px rgba(255, 193, 7, 0.6);
}

/* Track List */
.cmc-track-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-bottom: 10px;
}

.cmc-track-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	cursor: pointer;
	transition: color 0.2s ease;
	padding: 4px 0;
}

.cmc-track-item:hover {
	color: #fff;
}

.cmc-track-item.active {
	color: #fff;
	font-weight: 500;
	/* Removed background highlight */
	background: transparent;
}

.cmc-track-icon {
	width: 15px;
	text-align: center;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Minimalist play icon for track */
.cmc-track-icon i {
	font-size: 10px;
}

.cmc-track-separator {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
}
