/* Speak the Word — Radio Player */
.stw-radio {
	--stw-accent: #c0392b;
	--stw-accent-dark: #7d241a;
	--stw-bg: #16181d;
	--stw-bg-soft: #1f232b;
	--stw-text: #f4f5f7;
	--stw-muted: #9aa3b2;
	--stw-radius: 14px;
	max-width: 860px;
	margin: 0 auto;
	color: var(--stw-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.stw-radio-empty {
	background: var(--stw-bg-soft);
	color: var(--stw-muted);
	padding: 2rem;
	border-radius: var(--stw-radius);
	text-align: center;
}

/* Featured player */
.stw-featured {
	display: flex;
	gap: 1.25rem;
	background: linear-gradient(135deg, var(--stw-bg) 0%, var(--stw-bg-soft) 100%);
	border-radius: var(--stw-radius);
	padding: 1.5rem;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.stw-featured-art {
	flex: 0 0 130px;
	width: 130px;
	height: 130px;
	border-radius: 12px;
	background-color: var(--stw-accent-dark);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stw-featured-art-fallback {
	font-size: 52px;
	width: 52px;
	height: 52px;
	color: rgba(255, 255, 255, 0.85);
}
.stw-featured-art[style] .stw-featured-art-fallback { display: none; }

.stw-featured-body { flex: 1 1 auto; min-width: 0; }

.stw-featured-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.7rem;
	color: var(--stw-accent);
	margin: 0 0 0.25rem;
	font-weight: 700;
}

.stw-featured-title {
	margin: 0 0 0.2rem;
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--stw-text);
}

.stw-featured-date {
	margin: 0 0 1rem;
	color: var(--stw-muted);
	font-size: 0.9rem;
}

/* Controls */
.stw-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.stw-btn {
	border: none;
	cursor: pointer;
	background: var(--stw-accent);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: background 0.15s ease, transform 0.1s ease;
}
.stw-btn:hover { background: var(--stw-accent-dark); }
.stw-btn:active { transform: scale(0.94); }

/* Play / pause icons via CSS */
.stw-icon-play {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
}
.stw-play.is-playing .stw-icon-play {
	border: none;
	width: 14px;
	height: 16px;
	margin-left: 0;
	background:
		linear-gradient(#fff, #fff) left / 5px 100% no-repeat,
		linear-gradient(#fff, #fff) right / 5px 100% no-repeat;
}

.stw-time {
	font-variant-numeric: tabular-nums;
	font-size: 0.8rem;
	color: var(--stw-muted);
	flex: 0 0 auto;
	min-width: 38px;
	text-align: center;
}

.stw-seek {
	flex: 1 1 auto;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	border-radius: 3px;
	background: #3a3f4b;
	outline: none;
	cursor: pointer;
}
.stw-seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--stw-accent);
	border: 2px solid #fff;
}
.stw-seek::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--stw-accent);
	border: 2px solid #fff;
}

.stw-volume-wrap {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
}
.stw-icon-volume {
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 9px 6px 0;
	border-color: transparent var(--stw-muted) transparent transparent;
	position: relative;
}
.stw-volume {
	width: 70px;
	-webkit-appearance: none;
	appearance: none;
	height: 5px;
	border-radius: 3px;
	background: #3a3f4b;
	cursor: pointer;
}
.stw-volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--stw-muted);
}
.stw-volume::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--stw-muted);
	border: none;
}

/* Episode list */
.stw-list-wrap { margin-top: 1.25rem; }
.stw-list-heading {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stw-muted);
	margin: 0 0 0.5rem;
}

.stw-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 420px;
	overflow-y: auto;
	border-radius: var(--stw-radius);
	background: var(--stw-bg-soft);
}
.stw-list li { margin: 0; }

.stw-list-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 0.85rem 1rem;
	cursor: pointer;
	color: var(--stw-text);
	transition: background 0.12s ease;
}
.stw-list-item:hover { background: rgba(255, 255, 255, 0.05); }
.stw-list-item.is-active {
	background: rgba(192, 57, 43, 0.18);
	box-shadow: inset 3px 0 0 var(--stw-accent);
}

.stw-list-item-icon {
	color: var(--stw-accent);
	flex: 0 0 auto;
	font-size: 20px;
	width: 20px;
	height: 20px;
}
.stw-list-item-text { display: flex; flex-direction: column; min-width: 0; }
.stw-list-item-title { font-weight: 600; }
.stw-list-item-meta { color: var(--stw-muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 600px) {
	.stw-featured { flex-direction: column; align-items: center; text-align: center; }
	.stw-featured-art { flex-basis: 110px; width: 110px; height: 110px; }
	.stw-controls { flex-wrap: wrap; justify-content: center; }
	.stw-seek { order: 5; flex-basis: 100%; }
	.stw-volume-wrap { display: none; }
}
