/* ============================================
   Waveform Player
   ============================================ */

.ws-waveform-player {
	display: flex;
	align-items: stretch;
	gap: 12px;
	padding: 12px 0px;
	background: transparent;
	border-radius: 8px;
	border: 0px solid #d6d6d6;
}

.ws-waveform-player.withbg {
	background-color:#fcfcfc;
	border-width: 1px;
	padding-left:16px;
	padding-right:16px;
}

.ws-waveform-player .ws-waveform-wave {
	font-weight:600;
	color:#000;
	font-size:14px;
	font-family:Montserrat, Arial, sans-serif;
}

/* Controls column */
.ws-waveform-controls {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Play / Pause button */
.ws-waveform-play-btn {
	display: flex;
	padding: 0px;
	align-items: center;
	justify-content: center;
	width: 70px !important;
	min-width: 0px !important;
	height: 70px;
	border-radius: 50%;
	background: #98523d;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ws-waveform-play-btn:hover {
	background: #d97757;
}

/* Play icon â€” CSS triangle */
.ws-icon-play {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 14px 0 14px 23px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
	scale:1;
	transition: scale 0.2s ease-out;
}

/* Pause icon Ã¢â‚¬â€ two vertical bars */
.ws-icon-pause {
	display: none;
	width: 23px;
	height: 28px;
	position: relative;
	scale:1;
	transition: scale 0.2s ease-out;
}

.ws-waveform-play-btn:hover .ws-icon-pause,
.ws-waveform-play-btn:hover .ws-icon-play {
	scale: 1.2;
}

.ws-icon-pause::before,
.ws-icon-pause::after {
	content: '';
	position: absolute;
	top: 0;
	width: 4px;
	height: 100%;
	background: #fff;
	border-radius: 1px;
}

.ws-icon-pause::before { left: 0; }
.ws-icon-pause::after  { right: 0; }

/* Toggle icons based on state */
.ws-waveform-play-btn.is-playing .ws-icon-play  { display: none; }
.ws-waveform-play-btn.is-playing .ws-icon-pause { display: block; }

/* Main column: waveform + footer stacked */
.ws-waveform-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Waveform fills full width of main column */
.ws-waveform-wave {
	width: 100%;
}

/* Footer row: loop checkbox + zoom slider */
.ws-waveform-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Loop regions checkbox label */
.ws-loop-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: #111;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

.ws-loop-checkbox {
	width: 15px;
	height: 15px;
	cursor: pointer;
	accent-color: #98523d;
	flex-shrink: 0;
}

/* Zoom row */
.ws-waveform-zoom {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ws-zoom-label {
	font-size:15px;
	color:#111;
	font-weight:500;
	flex-shrink: 0;
}

.ws-zoom-slider {
	width: 120px;
	height: 4px;
	accent-color: #98523d;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background: #ddd;
	border-radius: 2px;
	outline: none;
}

.ws-zoom-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #98523d;
	cursor: pointer;
}

.ws-zoom-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #98523d;
	border: none;
	cursor: pointer;
}

.ws-zoom-slider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: #ddd;
}

.ws-zoom-slider::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: #ddd;
}

/* ============================================
   Single Record Card
   ============================================ */

.ws-single-record-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border: 4px solid #4ecdc4;
	border-radius: 8px;
	overflow: hidden;
	padding:20px;
}

.ws-single-record-card .ws-src-image {
	flex-shrink: 0;
	width: 240px;
}

.ws-single-record-card .ws-src-image a {
	display: block;
	height: 100%;
}

.ws-single-record-card .ws-src-image .record-image {
	width: 100%;
	height: 100%;
	border-radius:8px;
	border:4px solid rgba( 255,255,255, 0.8 );
}

.ws-single-record-card .ws-src-image .record-image img {
	width: 100%;
	height: 100%;
	aspect-ratio:1/1;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ws-single-record-card .ws-src-content {
	flex: 1;
	min-width: 0;
	padding: 8px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ws-single-record-card .ws-src-title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.3em;
	letter-spacing:0.02em;
}

.ws-single-record-card .ws-src-title a {
	text-decoration: none;
	color: inherit;
}

.ws-single-record-card .ws-src-title a:hover {
	text-decoration: underline;
}

.ws-single-record-card .ws-src-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ws-single-record-card .ws-src-type-tag,
.ws-single-record-card .ws-src-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 3px;
	border: 1px solid #c04732;
	color: #c04732;
}

.ws-single-record-card .ws-src-type-tag {
	border-width: 1px;
	color:#fff;
}

.ws-single-record-card .ws-src-description {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
}

/* ============================================
   Inline Record Card
   ============================================ */

.inline-record-card-wrapper {
	display: inline;
	position: relative;
}

.inline-record-card-wrapper .record-text {
	cursor: pointer;
	font-weight:700;
	color:#c04732;
	border-bottom:1px solid #c04732;
}

.inline-record-card-wrapper .record-eye-icon {
	display: inline-block;
	font-style: normal;
	margin-left: 4px;
	font-size: 1em;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.inline-record-card-wrapper .record-card-flyer {
	display: none;
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	z-index: 100;
}

.inline-record-card-wrapper.is-open .record-card-flyer {
	display: block;
}

/* ============================================
   Error state
   ============================================ */

.ws-waveform-error {
	padding: 8px 12px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	font-size: 0.875rem;
}

/* ============================================
   Soundcite
   ============================================ */

.soundcite {
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: 1px;
	color:#c04732;
}

.soundcite:before {
	border-left-color:#c04732 !important;
}

@media only screen and ( max-width:468px ) {
	.ws-single-record-card {
		display:block;
	}

	.ws-single-record-card .ws-src-image {
		width:auto;
	}

	.ws-single-record-card .ws-src-image img {
		display:block;
		margin-left:auto;
		margin-right:auto;
	}

	.ws-single-record-card .ws-src-content {
		padding-top:20px;
		padding-left:0px;
		padding-right:0px;
	}
}