/* ── Voice roster cards ─────────────────────────────────────── */

.voice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.2em;
	max-width: 860px;
	margin: 2em auto 0;
	padding: 0 1em;
	text-align: left;
}

.voice-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	padding: 1em 1.2em 1.1em;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.voice-card:hover {
	background: rgba(255,255,255,0.09);
	border-color: rgba(255,255,255,0.18);
}

.voice-card-top {
	display: flex;
	align-items: center;
	gap: 0.85em;
	margin-bottom: 0.85em;
}

/* ── Mini soundwave replacing avatar ────────────────────────── */

.voice-wave {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	justify-content: center;
}

.voice-wave span {
	display: block;
	width: 3px;
	border-radius: 2px;
	background: rgba(0,255,204,0.5);
	animation: voiceWave 1.4s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 6px;  animation-delay: 0.0s; }
.voice-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 10px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 18px; animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { height: 12px; animation-delay: 0.4s; }

/* Pause animation when not playing, softer idle state */
.voice-wave.idle span {
	animation-play-state: paused;
	background: rgba(0,255,204,0.25);
}

@keyframes voiceWave {
	0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
	50%       { transform: scaleY(1.0);  opacity: 1.0; }
}

.voice-info {
	flex: 1;
	min-width: 0;
}

.voice-name {
	font-size: 1em;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.3;
}

/* ── Custom audio player ─────────────────────────────────────── */

.voice-player {
	display: flex;
	align-items: center;
	gap: 0.7em;
}

.player-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0,255,204,0.15);
	border: 1px solid rgba(0,255,204,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
	padding: 0;
}

.player-btn:hover {
	background: rgba(0,255,204,0.28);
}

.player-btn svg {
	width: 12px;
	height: 12px;
	fill: #00ffcc;
	display: block;
}

.player-btn.playing .play-icon  { display: none; }
.player-btn.playing .pause-icon { display: block; }
.player-btn:not(.playing) .play-icon  { display: block; }
.player-btn:not(.playing) .pause-icon { display: none; }

.player-track {
	flex: 1;
	min-width: 0;
}

.player-bar-wrap {
	position: relative;
	height: 4px;
	background: rgba(255,255,255,0.12);
	border-radius: 2px;
	cursor: pointer;
	margin-bottom: 4px;
}

.player-bar-fill {
	height: 100%;
	background: #00ffcc;
	border-radius: 2px;
	width: 0%;
	pointer-events: none;
	transition: width 0.1s linear;
}

.player-time {
	font-size: 0.65em;
	color: rgba(255,255,255,0.35);
	letter-spacing: 0.05em;
	user-select: none;
}

/* ── Timeline hint ───────────────────────────────────────────── */
.timeline-hint {
	text-align: center;
	font-size: 0.78em;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,0.35);
	margin: 1.4em 0 0;
}

/* ── Frosted content area (parallax fade-in on scroll) ──────── */

.wrapper.style5 {
	position: relative;
}

.wrapper.style5::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url('../../images/banner.jpg');
	background-size: cover;
	background-position: center center;
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.4s ease;
}

.wrapper.style5.bg-visible::before {
	opacity: 0.08;
}

.wrapper.style5 .inner {
	position: relative;
	z-index: 1;
}
