:root {
	--h2m-bg: #111111;
	--h2m-card: #1e1e1e;
	--h2m-accent: #f0c015;
	--h2m-text: #ffffff;
	--h2m-text-muted: #b3b3b3;
	--h2m-player-bg: #181818;
}

body {
	padding-bottom: 88px;
}

.h2m-stream-home {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0 16px 128px;
	color: var(--h2m-text);
	background:
		radial-gradient(circle at 18% 0%, rgba(240, 192, 21, 0.18), transparent 28%),
		linear-gradient(180deg, #171717 0%, var(--h2m-bg) 42%, var(--h2m-bg) 100%);
}

.h2m-hero {
	width: min(1180px, 100%);
	margin: 0 auto;
	padding: 64px 0 34px;
}

.h2m-hero__content {
	display: grid;
	gap: 18px;
	max-width: 760px;
}

.h2m-hero__logo {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	width: max-content;
	color: var(--h2m-bg);
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.h2m-hero__logo span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--h2m-bg);
	background: var(--h2m-accent);
	border-radius: 50%;
}

.h2m-hero__logo strong {
	color: var(--h2m-text);
	font-size: 18px;
}

.h2m-hero__title {
	max-width: 720px;
	margin: 0;
	color: var(--h2m-text);
	font-size: clamp(40px, 8vw, 82px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: 0;
}

.h2m-hero__subtitle {
	max-width: 620px;
	margin: 0;
	color: var(--h2m-text-muted);
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.5;
}

.h2m-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-height: 46px;
	padding: 0 20px;
	color: var(--h2m-bg);
	background: var(--h2m-accent);
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h2m-hero__cta:hover,
.h2m-hero__cta:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(240, 192, 21, 0.24);
	outline: none;
}

.h2m-genre-filter {
	display: flex;
	gap: 10px;
	width: min(1180px, 100%);
	margin: 0 auto 28px;
	padding: 2px 0 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.h2m-filter-pill {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	color: var(--h2m-text);
	text-decoration: none;
	white-space: nowrap;
	background: #222;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.h2m-filter-pill:hover,
.h2m-filter-pill:focus,
.h2m-filter-pill.is-active {
	color: var(--h2m-bg);
	background: var(--h2m-accent);
	border-color: var(--h2m-accent);
	outline: none;
}

.h2m-featured {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.h2m-section-title {
	margin: 0 0 18px;
	padding-left: 12px;
	color: var(--h2m-text);
	border-left: 3px solid var(--h2m-accent);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.h2m-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	min-height: 180px;
}

.h2m-grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.h2m-card {
	overflow: hidden;
	background: var(--h2m-card);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.h2m-card:hover,
.h2m-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(240, 192, 21, 0.16);
}

.h2m-card.is-active {
	border-color: var(--h2m-accent);
	box-shadow: 0 0 0 1px rgba(240, 192, 21, 0.45), 0 14px 32px rgba(240, 192, 21, 0.14);
}

.h2m-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	color: var(--h2m-text);
	text-decoration: none;
	background: linear-gradient(135deg, #050505 0%, #222 52%, rgba(240, 192, 21, 0.75) 100%);
}

.h2m-card__cover img,
.h2m-single__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.h2m-card:hover .h2m-card__cover img,
.h2m-card:focus-within .h2m-card__cover img {
	transform: scale(1.035);
	filter: brightness(0.76);
}

.h2m-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--h2m-accent);
	font-size: clamp(42px, 9vw, 72px);
	font-weight: 900;
	text-transform: uppercase;
}

.h2m-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.18);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.h2m-card:hover .h2m-card__overlay,
.h2m-card:focus-within .h2m-card__overlay {
	opacity: 1;
}

.h2m-card__play,
.h2m-single__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--h2m-bg);
	background: var(--h2m-accent);
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
	cursor: pointer;
}

.h2m-card__body {
	display: grid;
	gap: 6px;
	padding: 12px;
}

.h2m-card__artist,
.h2m-single__artist {
	margin: 0;
	color: var(--h2m-accent);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.h2m-card__title {
	margin: 0;
	color: var(--h2m-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.32;
}

.h2m-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.h2m-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px;
	color: var(--h2m-text-muted);
	background: var(--h2m-card);
	border-radius: 12px;
}

.h2m-player {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: grid;
	grid-template-columns: 56px minmax(0, 30%) minmax(112px, 15%) minmax(220px, 35%) minmax(80px, 20%);
	gap: 12px;
	align-items: center;
	height: 72px;
	padding: 8px 18px;
	color: var(--h2m-text);
	background: rgba(24, 24, 24, 0.92);
	border-top: 1px solid #333;
	box-shadow: 0 -16px 30px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
	box-sizing: border-box;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.h2m-player.is-visible {
	transform: translateY(0);
}

.h2m-player * {
	box-sizing: border-box;
}

.h2m-player__cover {
	width: 56px;
	height: 56px;
	overflow: hidden;
	background: #2a2a2a;
	border-radius: 4px;
}

.h2m-player__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.h2m-player__meta {
	min-width: 0;
	line-height: 1.25;
}

.h2m-player__artist {
	color: var(--h2m-text-muted);
	font-size: 12px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.h2m-player__title {
	margin-top: 4px;
	color: var(--h2m-text);
	font-size: 14px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.h2m-player__controls {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

.h2m-player__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0;
	color: var(--h2m-text-muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.h2m-player__button:hover,
.h2m-player__button:focus {
	color: var(--h2m-text);
	outline: none;
}

.h2m-player__button--main {
	width: 40px;
	height: 40px;
	min-width: 40px;
	color: #000;
	background: #fff;
	font-size: 16px;
}

.h2m-player__button--main:hover,
.h2m-player__button--main:focus {
	color: #000;
	background: var(--h2m-accent);
	transform: scale(1.04);
}

.h2m-player__timeline {
	display: grid;
	gap: 6px;
	align-items: center;
	min-width: 0;
}

.h2m-player__progress {
	position: relative;
	display: block;
	width: 100%;
	height: 5px;
	padding: 0;
	overflow: hidden;
	background: #444;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.h2m-player__progress span {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 0;
	height: 100%;
	background: var(--h2m-accent);
}

.h2m-player__time {
	display: flex;
	gap: 4px;
	justify-content: flex-end;
	color: var(--h2m-text-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.h2m-player__volume {
	justify-self: end;
}

.h2m-player__youtube {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

.h2m-single {
	width: min(1180px, calc(100% - 32px));
	margin: 48px auto 120px;
	color: #1a1a1a;
}

.h2m-single__layout {
	display: grid;
	grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.h2m-single__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.05;
}

.h2m-single__cover {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #1a1a1a;
	border-radius: 8px;
}

.h2m-single__year {
	margin: 10px 0 24px;
	color: #555;
}

.h2m-single__play {
	width: auto;
	min-width: 0;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	text-decoration: none;
}

@media (min-width: 760px) {
	.h2m-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.h2m-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body {
		padding-bottom: 76px;
	}

	.h2m-stream-home {
		padding-right: 12px;
		padding-left: 12px;
	}

	.h2m-hero {
		padding-top: 42px;
	}

	.h2m-player {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		height: 64px;
		gap: 10px;
		padding: 8px 12px;
	}

	.h2m-player__cover {
		width: 48px;
		height: 48px;
	}

	.h2m-player__controls {
		grid-column: 3;
	}

	.h2m-player__timeline,
	.h2m-player__volume {
		display: none;
	}

	.h2m-player__button:not(.h2m-player__button--main) {
		display: none;
	}

	.h2m-single__layout {
		display: grid;
		grid-template-columns: 1fr;
	}
}
