.home-shell {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-bottom: 18px;
}

.header {
	margin-top: 8px;
	text-align: center;
}

.header .header-logo {
	display: inline-block;
	max-width: 220px;
	width: 100%;
	height: auto;
	image-rendering: optimizeQuality;
}

.home-hero {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	background: rgba(162, 89, 255, 0.08);
	border: 1px solid rgba(162, 89, 255, 0.22);
	border-radius: 16px;
	padding: 18px;
}

.home-overline {
	margin: 0 0 4px;
	color: #d9b4ff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.home-title {
	margin: 0;
	font-size: 1.5rem;
	color: #fff;
}

.home-subtitle {
	margin: 8px 0 0;
	color: #d6cbe6;
	line-height: 1.5;
}

.home-taste-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.home-chip {
	background: rgba(162, 89, 255, 0.16);
	border: 1px solid rgba(162, 89, 255, 0.35);
	color: #f3e7ff;
	font-size: 0.85rem;
	border-radius: 999px;
	padding: 6px 12px;
}

.home-primary-btn {
	background: linear-gradient(90deg, #a259ff 0%, #8528ff 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.home-wrapped-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	padding: 16px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.home-wrapped-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.home-wrapped-cover {
	width: 76px;
	height: 76px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.home-wrapped-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.home-wrapped-cover-placeholder {
	color: rgba(255, 255, 255, 0.75);
	font-size: 2em;
}

.home-wrapped-content {
	min-width: 0;
	flex: 1;
}

.home-wrapped-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

.home-wrapped-song {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.95);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-wrapped-artist {
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
}

.home-wrapped-arrow {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.9);
}

.home-recommendations-section {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 16px;
}

.home-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.home-section-header-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.home-section-header h2 {
	margin: 0;
	font-size: 1.2rem;
	color: #fff;
}

#home-recommendation-hint {
	color: #bfaed1;
	font-size: 0.85rem;
}

.home-reroll-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(162, 89, 255, 0.45);
	background: rgba(162, 89, 255, 0.2);
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.home-reroll-btn:hover {
	background: rgba(162, 89, 255, 0.3);
}

.home-recommendations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.home-rec-card {
	background: rgba(162, 89, 255, 0.09);
	border: 1px solid rgba(162, 89, 255, 0.2);
	border-radius: 12px;
	padding: 10px;
	display: grid;
	grid-template-columns: 56px 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 8px;
}

.home-rec-thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	grid-row: span 2;
}

.home-rec-body {
	min-width: 0;
}

.home-rec-title {
	margin: 0;
	color: #fff;
	font-size: 0.96rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-rec-artist {
	margin: 4px 0 0;
	color: #d6cbe6;
	font-size: 0.86rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-rec-reason {
	margin: 4px 0 0;
	color: #baa6d1;
	font-size: 0.8rem;
}

.home-rec-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.home-rec-play-btn,
.home-rec-add-btn {
	background: rgba(162, 89, 255, 0.2);
	border: 1px solid rgba(162, 89, 255, 0.45);
	color: #fff;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 0.84rem;
	cursor: pointer;
}

.home-rec-play-btn {
	width: 34px;
	height: 34px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.home-rec-add-btn {
	font-weight: 600;
}

.home-rec-play-btn:hover,
.home-rec-add-btn:hover {
	background: rgba(162, 89, 255, 0.3);
}

.home-rec-status {
	margin: 0;
	color: #c8b8d9;
	font-size: 0.78rem;
	grid-column: 2;
}

.home-loading,
.home-empty {
	color: #c8b8d9;
	padding: 14px 10px;
}

.download-buttons {
	margin-top: 4px;
}

.home-download-top {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	margin-top: -4px;
	margin-bottom: -6px;
}

.download-win-btn {
	background: linear-gradient(90deg, #a259ff 0%, #8528ff 100%);
	color: #fff;
	border: none;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
}

@media (max-width: 900px) {
	.home-hero {
		flex-direction: column;
	}

	.home-primary-btn {
		width: 100%;
	}

	.home-section-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-section-header-meta {
		width: 100%;
		justify-content: space-between;
	}

	.home-download-top {
		justify-content: flex-end;
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media (min-width: 900px) {
	.header .header-logo { width:220px; }
}
