/* ==========================================================================
   Blocksy child Haktan — استایل صفحه اصلی سبک پادکست
   ========================================================================== */

.pwr-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---------------- هیرو ---------------- */
.pwr-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--pwr-accent, #1a2b4c);
	color: #ffffff;
	padding: 6rem 1.5rem 5rem;
	text-align: center;
}

.pwr-hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 40%);
	pointer-events: none;
}

.pwr-hero-inner {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.pwr-hero-eyebrow {
	display: inline-block;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
}

.pwr-hero-title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	color: #ffffff;
	margin-bottom: 0.75rem;
}

.pwr-hero-subtitle {
	color: rgba(255,255,255,0.8);
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
}

/* ---------------- پلیر ---------------- */
.pwr-player {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 999px;
	padding: 0.9rem 1.75rem;
	max-width: 480px;
	margin: 0 auto;
	backdrop-filter: blur(6px);
}

.pwr-play-btn {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--pwr-accent, #1a2b4c);
	border: none;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.pwr-play-btn:hover {
	transform: scale(1.08);
}

.pwr-play-btn.is-playing {
	animation: pwr-pulse 1.6s ease-in-out infinite;
}

@keyframes pwr-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
	50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.pwr-player-info {
	flex: 1;
	text-align: right;
}

.pwr-player-host {
	display: block;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.75);
	margin-bottom: 0.4rem;
}

.pwr-waveform {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 22px;
}

.pwr-waveform span {
	display: block;
	width: 3px;
	background: rgba(255,255,255,0.6);
	border-radius: 2px;
	height: 30%;
	animation: pwr-bar 1.2s ease-in-out infinite;
}

.pwr-waveform span:nth-child(odd) { animation-duration: 0.9s; }
.pwr-waveform span:nth-child(3n) { animation-duration: 1.3s; }
.pwr-waveform span:nth-child(4n) { animation-duration: 0.7s; }

@keyframes pwr-bar {
	0%, 100% { height: 20%; }
	50% { height: 90%; }
}

.pwr-play-btn:not(.is-playing) ~ .pwr-player-info .pwr-waveform span {
	animation-play-state: paused;
	height: 20%;
}

.pwr-autoplay-hint {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.85);
}

.pwr-hero-cta {
	margin-top: 2.5rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.pwr-hero .ct-button.ct-button-outline {
	color: #ffffff !important;
	border-color: rgba(255,255,255,0.6) !important;
}

/* ---------------- رادیو لامپی قدیمی ---------------- */
.pwr-radio-section {
	padding: 5rem 1.5rem;
	background: var(--pwr-bg-soft, #f7f6f3);
	text-align: center;
}

.pwr-radio-lead {
	margin-bottom: 2.5rem;
	color: var(--pwr-text-muted, #5c5c5c);
}

.pwr-vintage-radio {
	max-width: 480px;
	margin: 0 auto;
}

.pwr-radio-image-wrap {
	position: relative;
}

.pwr-radio-image {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 30px rgba(0,0,0,0.22));
}

.pwr-radio-glow {
	position: absolute;
	top: 60%;
	right: 8%;
	width: 16%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,209,102,0.9) 0%, rgba(255,209,102,0) 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.pwr-radio-glow.pwr-glow-on {
	opacity: 1;
	animation: pwr-tube-glow 1.4s ease-in-out infinite;
}

@keyframes pwr-tube-glow {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 1; }
}

.pwr-station-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 420px;
	margin: 0.5rem auto 0;
	text-align: right;
}

.pwr-station-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	background: #ffffff;
	border: 1px solid var(--pwr-border, #e5e3de);
	border-radius: 999px;
	padding: 0.6rem 0.9rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pwr-station-row.is-active {
	border-color: var(--pwr-accent, #1a2b4c);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.pwr-station-row-embed {
	flex-direction: column;
	align-items: stretch;
	border-radius: 20px;
	padding: 0.9rem 1rem;
}

.pwr-station-row-embed .pwr-station-text {
	margin-bottom: 0.5rem;
}

.pwr-station-embed-player {
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
}

.pwr-station-embed-player iframe {
	width: 100%;
	border: none;
	display: block;
}

.pwr-station-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.pwr-station-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--pwr-accent, #1a2b4c);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pwr-station-status {
	font-size: 0.78rem;
	color: var(--pwr-text-muted, #5c5c5c);
	margin-top: 2px;
}

.pwr-station-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cfd3da;
	flex-shrink: 0;
}

.pwr-station-row.is-playing .pwr-station-live-dot {
	background: #2ecc71;
	animation: pwr-live-blink 1.2s ease-in-out infinite;
}

.pwr-station-listen-live {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pwr-accent, #1a2b4c);
	border: 1px solid var(--pwr-accent, #1a2b4c);
	border-radius: 999px;
	padding: 0.3rem 0.7rem;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.pwr-station-listen-live:hover {
	background: var(--pwr-accent, #1a2b4c);
	color: #ffffff;
	opacity: 1;
}

.pwr-station-toggle {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(145deg, #eab255, #c8863a);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.pwr-station-toggle:hover {
	transform: scale(1.06);
}

.pwr-station-row.is-playing .pwr-station-toggle {
	animation: pwr-pulse 1.6s ease-in-out infinite;
}

@media (max-width: 500px) {
	.pwr-station-name {
		font-size: 0.85rem;
	}
}

.pwr-current-station {
	margin-top: 1.25rem;
	margin-bottom: 0.25rem;
	font-weight: 600;
	color: var(--pwr-text, #1c1c1c);
}

.pwr-now-playing-embed {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--pwr-text-muted, #5c5c5c);
}

.pwr-current-station .pwr-station-live {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e74c3c;
	margin-inline-start: 0.4rem;
	animation: pwr-live-blink 1.2s ease-in-out infinite;
}

@keyframes pwr-live-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

@media (max-width: 500px) {
	.pwr-wave-btn {
		font-size: 0.8rem;
		padding: 0.5rem 0.9rem;
	}
}

/* ---------------- اشتراک ---------------- */
.pwr-subscribe {
	background: var(--pwr-bg-soft, #f7f6f3);
	padding: 2rem 1.5rem;
	text-align: center;
	border-bottom: 1px solid var(--pwr-border, #e5e3de);
}

.pwr-subscribe-label {
	font-weight: 600;
	margin-bottom: 1rem;
}

.pwr-subscribe-links {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.pwr-subscribe-btn {
	border: 1px solid var(--pwr-border, #e5e3de);
	border-radius: 999px;
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
	color: var(--pwr-text, #1c1c1c);
	background: #ffffff;
}

.pwr-subscribe-btn:hover {
	background: var(--pwr-accent, #1a2b4c);
	color: #ffffff;
	opacity: 1;
}

/* ---------------- اپیزودها ---------------- */
.pwr-episodes {
	padding: 5rem 1.5rem;
}

.pwr-section-title {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 2.5rem;
}

.pwr-episodes-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.pwr-episode-card {
	background: #ffffff;
	border: 1px solid var(--pwr-border, #e5e3de);
	border-radius: var(--pwr-radius, 14px);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwr-episode-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.pwr-episode-thumb {
	position: relative;
	aspect-ratio: 16/10;
	background: var(--pwr-bg-soft, #f7f6f3);
	overflow: hidden;
}

.pwr-episode-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pwr-episode-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 2.5rem;
}

.pwr-episode-number {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: var(--pwr-accent, #1a2b4c);
	color: #fff;
	font-size: 0.75rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}

.pwr-episode-body {
	padding: 1.25rem;
}

.pwr-episode-title {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.pwr-episode-title a {
	color: var(--pwr-text, #1c1c1c);
}

.pwr-episode-excerpt {
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.pwr-episode-link {
	font-weight: 600;
	font-size: 0.9rem;
}

/* ---------------- خبرنامه ---------------- */
.pwr-newsletter {
	background: var(--pwr-accent, #1a2b4c);
	color: #ffffff;
	text-align: center;
	padding: 4rem 1.5rem;
}

.pwr-newsletter .pwr-section-title {
	color: #ffffff;
}

.pwr-newsletter p {
	color: rgba(255,255,255,0.8);
	margin-bottom: 1.5rem;
}

.pwr-newsletter-form {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	max-width: 420px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.pwr-newsletter-form input[type="email"] {
	flex: 1;
	min-width: 220px;
	border-radius: 999px;
	border: none;
	padding: 0.85rem 1.25rem;
}

/* ---------------- واکنش‌گرا ---------------- */
@media (max-width: 900px) {
	.pwr-episodes-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.pwr-episodes-grid {
		grid-template-columns: 1fr;
	}
	.pwr-player {
		flex-direction: column;
		border-radius: 24px;
		padding: 1.5rem;
	}
	.pwr-player-info {
		text-align: center;
	}
	.pwr-waveform {
		justify-content: center;
	}
}
