/* KVS Taltidning Modern & Accessible Audio Player CSS */

.kvs-taltidning-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	padding: 24px;
	margin: 24px 0;
	width: 100%;
	max-width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #0f172a;
	box-sizing: border-box;
}

.kvs-taltidning-card *,
.kvs-taltidning-card *::before,
.kvs-taltidning-card *::after {
	box-sizing: inherit;
}

/* 2-Kolumns Grid Layout (col1 = bild, col2 = spelare) */
.kvs-player-grid {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	align-items: center;
}

.kvs-col-cover {
	width: 100%;
}

.kvs-col-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kvs-cover-wrapper {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.kvs-cover-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kvs-cover-placeholder {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.kvs-cover-placeholder .dashicons {
	font-size: 56px;
	width: 56px;
	height: 56px;
}

.kvs-info-wrapper {
	width: 100%;
}

.kvs-issue-tag {
	display: inline-block;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 9999px;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.kvs-title {
	margin: 4px 0 6px 0;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.kvs-subtext {
	font-size: 0.9rem;
	color: #64748b;
}

/* Controls section */
.kvs-controls-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 12px;
}

.kvs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	font-size: 1.05rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	border: none;
	text-decoration: none !important;
	transition: all 0.2s ease-in-out;
}

.kvs-btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

/* Play/Pause Button - High Contrast Dark Blue */
.kvs-play-btn {
	background: #1d4ed8;
	color: #ffffff !important;
	flex: 1 1 180px;
}

.kvs-play-btn:hover {
	background: #1e40af;
	transform: translateY(-1px);
}

.kvs-play-btn:active {
	transform: translateY(0);
}

.kvs-play-btn .kvs-icon {
	font-size: 1.2rem;
	line-height: 1;
}

/* Download Button - Secondary Clean Style */
.kvs-download-btn {
	background: #f8fafc;
	color: #0f172a !important;
	border: 1px solid #cbd5e1;
	flex: 1 1 150px;
}

.kvs-download-btn:hover {
	background: #e2e8f0;
	color: #0284c7 !important;
	border-color: #94a3b8;
}

.kvs-download-btn .kvs-icon {
	font-size: 1.3rem;
	line-height: 1;
}

/* Progress bar and time */
.kvs-progress-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.kvs-time-display {
	font-size: 0.9rem;
	font-family: monospace;
	font-weight: 600;
	color: #475569;
	min-width: 45px;
}

.kvs-progress-bar-container {
	flex-grow: 1;
	height: 12px;
	background: #e2e8f0;
	border-radius: 9999px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.kvs-progress-bar-container:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.kvs-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
	border-radius: 9999px;
	transition: width 0.1s linear;
}

/* Responsiv layout för mindre skärmar */
@media (max-width: 600px) {
	.kvs-player-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.kvs-col-cover {
		max-width: 220px;
		margin: 0 auto;
	}

	.kvs-controls-row {
		flex-direction: column;
	}

	.kvs-btn {
		width: 100%;
	}
}
