.wjtl-casts-page .wjtl-casts-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e4e4e4;
}

.wjtl-casts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wjtl-cast {
	padding: 1.25rem 0;
	border-bottom: 1px solid #eee;
	display: grid;
	gap: 0.5rem;
}

.wjtl-cast-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.wjtl-cast-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.wjtl-cast-date {
	color: #666;
	font-size: 0.85rem;
	white-space: nowrap;
}

.wjtl-cast-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wjtl-cast-listen,
.wjtl-cast-download {
	padding: 0.35rem 0.85rem;
	border: 1px solid #1d4ed8;
	background: #fff;
	color: #1d4ed8;
	border-radius: 3px;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.3;
	display: inline-block;
}

.wjtl-cast-listen:hover,
.wjtl-cast-download:hover {
	background: #1d4ed8;
	color: #fff;
}

.wjtl-cast.is-playing {
	background: #f0f6ff;
}

.wjtl-cast.is-playing .wjtl-cast-listen {
	background: #1d4ed8;
	color: #fff;
}

.wjtl-cast-missing {
	color: #a00;
	font-style: italic;
	margin: 0;
}

.wjtl-cast-description {
	color: #333;
	font-size: 0.95rem;
}

.wjtl-cast-description p {
	margin: 0.25rem 0;
}

.wjtl-casts-empty {
	color: #666;
	font-style: italic;
	padding: 2rem 0;
}

.wjtl-casts-list {
	padding-bottom: 100px; /* clearance for the sticky player */
}

.wjtl-cast-player {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1e293b;
	color: #fff;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	z-index: 1000;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.wjtl-cast-player[hidden] {
	display: none;
}

.wjtl-cast-player-info {
	flex: 0 1 260px;
	min-width: 0;
}

.wjtl-cast-player-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
}

.wjtl-cast-player-title {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wjtl-cast-player-audio {
	flex: 1 1 auto;
	min-width: 0;
}

.wjtl-cast-player-close {
	flex: 0 0 auto;
	background: transparent;
	color: #fff;
	border: 1px solid #475569;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.wjtl-cast-player-close:hover {
	background: #475569;
}

@media (max-width: 600px) {
	.wjtl-cast-player {
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	.wjtl-cast-player-info {
		flex: 1 1 100%;
	}
	.wjtl-cast-player-audio {
		flex: 1 1 auto;
		width: 100%;
	}
}

.wjtl-casts-pagination {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wjtl-casts-pagination a,
.wjtl-casts-pagination span {
	padding: 0.35rem 0.65rem;
	border: 1px solid #ddd;
	text-decoration: none;
	color: #333;
}

.wjtl-casts-pagination .current {
	background: #333;
	color: #fff;
	border-color: #333;
}

.wjtl-cast-uploader {
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	border: 1px solid #d9e2ec;
	background: #f7faff;
	border-radius: 4px;
}

.wjtl-cast-uploader summary {
	cursor: pointer;
	font-weight: 600;
	color: #243b53;
}

.wjtl-cast-upload-form {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.wjtl-cast-upload-form .wjtl-field {
	display: grid;
	gap: 0.25rem;
}

.wjtl-cast-upload-form label {
	font-size: 0.85rem;
	color: #486581;
	font-weight: 500;
}

.wjtl-cast-upload-form input[type="text"],
.wjtl-cast-upload-form input[type="date"],
.wjtl-cast-upload-form input[type="file"],
.wjtl-cast-upload-form textarea {
	padding: 0.4rem 0.55rem;
	border: 1px solid #bcccdc;
	border-radius: 3px;
	font: inherit;
	background: #fff;
}

.wjtl-cast-upload-form .wjtl-field-submit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.wjtl-cast-upload-form button[type="submit"] {
	padding: 0.5rem 1.2rem;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font: inherit;
}

.wjtl-cast-upload-form button[type="submit"]:disabled {
	background: #9fb3c8;
	cursor: not-allowed;
}

.wjtl-cast-upload-form progress {
	width: 200px;
	height: 8px;
}

.wjtl-cast-upload-form #wjtl-cast-upload-status {
	color: #486581;
	font-size: 0.9rem;
}
