/* =========================================================
   SongChoice – Public styles (dark-theme + 3-column grid)
   ========================================================= */

.songchoice-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 0;
}

/* ---------- Card ---------- */
.songchoice-item {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 14px;
	padding: 1.35rem 1.35rem 1.2rem;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
	color: #f0f0f0;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.songchoice-item:hover {
	border-color: #4a4a4a;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
	transform: translateY(-2px);
}

/* ---------- Header + Genre ---------- */
.songchoice-header {
	margin-bottom: 0.6rem;
}

.songchoice-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.songchoice-genre-badge {
	display: inline-block;
	background: #2c2c2c;
	color: #f5a623;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid #3d3d3d;
}

.songchoice-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

/* ---------- Description ---------- */
.songchoice-description {
	margin-bottom: 0.9rem;
	color: #aaa;
	font-size: 0.88rem;
	line-height: 1.5;
	flex-grow: 0;
}

.songchoice-description p {
	margin: 0 0 0.4rem;
}

/* ---------- Player ---------- */
.songchoice-player {
	margin: 0.5rem 0 1rem;
}

.songchoice-player audio {
	width: 100%;
	height: 40px;
	border-radius: 8px;
	outline: none;
}

.songchoice-no-audio {
	color: #777;
	font-style: italic;
	margin: 0.75rem 0;
	font-size: 0.85rem;
}

/* ---------- Rating area ---------- */
.songchoice-rating-area {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #2e2e2e;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

/* Average block */
.songchoice-average {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.songchoice-avg-score {
	display: flex;
	align-items: baseline;
	gap: 0.1rem;
	min-width: 58px;
}

.songchoice-avg-value {
	font-size: 1.65rem;
	font-weight: 700;
	color: #f5a623;
	line-height: 1;
}

.songchoice-avg-max {
	font-size: 0.85rem;
	color: #888;
	font-weight: 500;
}

.songchoice-avg-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.songchoice-stars {
	display: flex;
	gap: 1px;
	line-height: 1;
}

.songchoice-stars .star {
	font-size: 0.9rem;
	line-height: 1;
}

.songchoice-stars .star.full,
.songchoice-stars .star.half {
	color: #f5a623;
}

.songchoice-stars .star.empty {
	color: #444;
}

.songchoice-vote-count {
	font-size: 0.75rem;
	color: #777;
}

/* ---------- Rate form ---------- */
.songchoice-rate-form {
	background: #222;
	border: 1px solid #333;
	border-radius: 10px;
	padding: 0.75rem 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.songchoice-rate-label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #999;
}

.songchoice-star-input {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
}

.songchoice-star-input .star-btn {
	background: none;
	border: none;
	padding: 1px 2px;
	margin: 0;
	font-size: 1.25rem;
	color: #555;
	cursor: pointer;
	line-height: 1;
	transition: color 0.12s ease, transform 0.12s ease;
	border-radius: 3px;
}

.songchoice-star-input .star-btn:hover,
.songchoice-star-input .star-btn.hovered {
	color: #f5a623;
	transform: scale(1.2);
}

.songchoice-star-input .star-btn.selected {
	color: #f5a623;
}

.songchoice-star-input .star-btn:focus {
	outline: 2px solid #f5a623;
	outline-offset: 1px;
}

.songchoice-rate-message {
	font-size: 0.8rem;
	color: #4caf50;
	min-height: 1.1em;
}

.songchoice-rate-message.error {
	color: #ef5350;
}

.songchoice-already-rated {
	color: #888;
	font-size: 0.85rem;
	margin: 0;
	padding: 0.4rem 0;
}

/* ---------- Empty state ---------- */
.songchoice-empty {
	text-align: center;
	color: #777;
	padding: 3rem 1rem;
	font-size: 1rem;
	grid-column: 1 / -1;
}

/* ---------- Responsive grid ---------- */
@media (max-width: 960px) {
	.songchoice-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

@media (max-width: 600px) {
	.songchoice-list {
		grid-template-columns: 1fr;
		gap: 1.15rem;
		padding: 0.5rem 0;
	}

	.songchoice-item {
		padding: 1.2rem 1.15rem 1.1rem;
	}

	.songchoice-title {
		font-size: 1.1rem;
	}

	.songchoice-avg-value {
		font-size: 1.5rem;
	}

	.songchoice-star-input .star-btn {
		font-size: 1.2rem;
	}
}
