/* =========================================================================
   Heimat Beats 2.0 — music, player, filters, tabs, Christmas.
   Ported from the original src/index.css and component classes.
   ========================================================================= */

:root {
	--hb-player-bg:     rgba(255,255,255,0.90);
	--hb-player-border: rgba(17,24,39,0.08);
	--hb-player-shadow: 0 -8px 28px rgba(0,0,0,0.10);
	--hb-primary:       hsl(162 73% 27%);
	--hb-primary-rgb:   19 119 87;
	--hb-soft:          hsl(210 40% 96%);
	--hb-xmas-evergreen: 142 40% 15%;
	--hb-xmas-red:       355 65% 45%;
	--hb-xmas-accent:    hsl(355, 65%, 45%);
}
html.dark {
	--hb-player-bg:     rgba(20,20,26,0.70);
	--hb-player-border: rgba(255,255,255,0.08);
	--hb-player-shadow: 0 -10px 36px rgba(0,0,0,0.55);
	--hb-primary:       hsl(162 73% 45%);
	--hb-primary-rgb:   31 199 148;
	--hb-soft:          hsl(217 33% 17%);
	--hb-xmas-evergreen: 142 35% 20%;
	--hb-xmas-red:       355 60% 50%;
	--hb-xmas-accent:    hsl(355, 60%, 55%);
}

.hb-icon { flex-shrink: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* ---------- Nav additions ---------- */
.hb-theme { position: relative; }
.hb-theme-toggle { background: transparent; border-color: transparent; }
.hb-theme-toggle .hb-icon-moon { display: none; }
html.dark .hb-theme-toggle .hb-icon-sun { display: none; }
html.dark .hb-theme-toggle .hb-icon-moon { display: block; }
.hb-theme-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 8.5rem;
	background: var(--hb-surface-solid); border: 1px solid var(--hb-border); border-radius: 10px;
	box-shadow: var(--hb-shadow-card); padding: 4px; display: flex; flex-direction: column;
}
.hb-theme-menu button {
	display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
	background: none; border: 0; border-radius: 6px; padding: .45rem .6rem; font-size: .9rem; cursor: pointer;
}
.hb-theme-menu button:hover, .hb-theme-menu button.is-active { background: var(--hb-soft); }
.hb-mobile-title { font-weight: 700; font-size: 1.1rem; margin: 0 .5rem 1rem; position: absolute; top: 1.25rem; }
.hb-mobile-sep { border-top: 1px solid var(--hb-border); margin: .75rem 0 .5rem; }
.hb-mobile-nav .hb-support { display: flex; align-items: center; gap: .5rem; }

/* ---------- Buttons ---------- */
.hb-btn { justify-content: center; }
.hb-btn-lg { height: 44px; padding: 0 2rem; }
.hb-btn-hero {
	background: linear-gradient(to right, var(--hb-primary), rgb(var(--hb-primary-rgb) / .8)); color: #fff;
	box-shadow: 0 10px 30px -10px rgb(var(--hb-primary-rgb) / .5); transition: transform .3s ease, box-shadow .3s ease;
}
.hb-btn-hero:hover { transform: scale(1.05); color: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.2); }
.hb-btn-ghost { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.hb-btn-ghost:hover { background: rgba(255,255,255,.3); }
.hb-btn-coffee { background: #facc15; color: #111827; height: 44px; padding: 0 2rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); }
.hb-btn-coffee:hover { background: #eab308; color: #111827; }

/* ---------- Home hero ---------- */
.hb-home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-home-hero-shade {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom right, hsl(162 73% 27% / .9), hsl(162 73% 27% / .7), hsl(210 40% 96% / .8));
}
html.dark .hb-home-hero-shade { background: linear-gradient(to bottom right, hsl(162 73% 45% / .9), hsl(162 73% 45% / .7), hsl(217 33% 17% / .8)); }
.hb-home-hero-content { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5rem; }
.hb-home-hero h1 { font-weight: 700; line-height: 1.25; }

.hb-section { padding: 5rem 0; }
.hb-section-tight { padding: 0 0 5rem; }
.hb-section-fade { background: linear-gradient(to bottom, var(--hb-bg), color-mix(in srgb, var(--hb-soft) 30%, transparent)); }
.hb-section-head { margin-bottom: 1.5rem; }
.hb-section-title { font-weight: 700; }
.hb-title-icon { display: flex; align-items: center; gap: .75rem; }
.hb-title-icon .hb-icon { color: var(--hb-primary); }

/* ---------- Filter bar ---------- */
.hb-filterbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .hb-filterbar { flex-direction: row; } }
.hb-search { position: relative; flex: 1; }
.hb-search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--hb-muted); pointer-events: none; }
.hb-input, .hb-select {
	width: 100%; height: 40px; font: inherit; font-size: .9rem;
	background: var(--hb-surface); color: var(--hb-text);
	border: 1px solid var(--hb-border); border-radius: 10px; padding: 0 .75rem;
}
.hb-input { padding-left: 2.5rem; padding-right: 2.5rem; }
.hb-input::placeholder { color: var(--hb-muted); }
.hb-input:focus, .hb-select:focus { outline: 2px solid var(--hb-primary); outline-offset: 2px; }
.hb-select { width: 100%; cursor: pointer; }
@media (min-width: 640px) { .hb-select { width: 200px; } }
.hb-search-clear {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
	background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--hb-muted);
}
.hb-search-clear:hover { background: var(--hb-soft); color: var(--hb-text); }

/* ---------- Shared panel card ---------- */
.hb-panel, .hb-panel-card {
	background: var(--hb-surface); border: 1px solid var(--hb-border);
	box-shadow: var(--hb-shadow); border-radius: 14px;
}
.hb-panel { padding: 1.5rem; }
.hb-song-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hb-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Home song card ---------- */
.hb-song-card { padding: 1rem; display: flex; align-items: center; gap: 1rem; transition: box-shadow .3s ease; }
.hb-song-card:hover { box-shadow: 0 10px 30px -10px rgb(var(--hb-primary-rgb) / .3); }
.hb-song-card-play {
	position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
	border: 0; padding: 0; cursor: pointer; background: var(--hb-primary); color: #fff;
	display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.hb-song-card-play:not(.has-cover):hover { transform: scale(1.05); }
.hb-song-card-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-song-card-glyph { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hb-song-card-play.has-cover .hb-song-card-glyph { background: rgba(0,0,0,.4); opacity: 0; transition: opacity .15s ease; }
.hb-song-card-play.has-cover:hover .hb-song-card-glyph, .hb-song-card.is-playing .hb-song-card-glyph { opacity: 1; }
.hb-song-card-glyph .hb-icon-pause, .hb-song-card-glyph .hb-icon-alert { display: none; }
.hb-song-card.is-playing .hb-icon-play { display: none; }
.hb-song-card.is-playing .hb-icon-pause { display: block; }
.hb-song-card.has-error .hb-icon-play, .hb-song-card.has-error .hb-icon-pause { display: none; }
.hb-song-card.has-error .hb-icon-alert { display: block; }
.hb-song-card.has-error .hb-song-card-play { opacity: .5; cursor: not-allowed; }
.hb-song-card-text { flex: 1; min-width: 0; }
.hb-song-card-title { font-size: 1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.hb-song-card-sub { font-size: .875rem; color: var(--hb-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-song-card-error { font-size: .75rem; color: #dc2626; margin: .25rem 0 0; }
.hb-song-card-seek { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.hb-song-card-note { color: var(--hb-muted); }
.hb-time { font-size: 12px; color: var(--hb-muted); font-variant-numeric: tabular-nums; }
.hb-mini-range {
	flex: 1; height: 4px; -webkit-appearance: none; appearance: none; background: var(--hb-soft);
	border-radius: 999px; cursor: pointer; border: 0; padding: 0;
}
.hb-mini-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--hb-primary); }
.hb-mini-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--hb-primary); }

/* ---------- Region hub ---------- */
.hb-region-hero { min-height: 400px; display: flex; align-items: center; padding: 5rem 0; position: relative; }
.hb-region-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, var(--hb-primary), rgb(var(--hb-primary-rgb) / .8), var(--hb-soft)); }
.hb-region-hero .hb-container { position: relative; }
.hb-region-title { font-weight: 700; letter-spacing: .2px; margin-bottom: 1rem; }
.hb-region-body { padding: 3rem 0; }
@media (min-width: 640px) { .hb-region-body { padding: 5rem 0; } }
.hb-tabs {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 28rem; margin: 0 auto 2rem;
	height: 40px; padding: 4px; border-radius: 8px; background: var(--hb-soft); color: var(--hb-muted);
}
@media (min-width: 640px) { .hb-tabs { margin-bottom: 3rem; } }
.hb-tab {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	border: 0; background: none; border-radius: 4px; font-size: .95rem; font-weight: 500; cursor: pointer; color: inherit;
}
.hb-tab.is-active { background: var(--hb-bg); color: var(--hb-text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hb-panel-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hb-panel-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.hb-panel-title { font-size: 1.5rem; font-weight: 700; letter-spacing: .2px; margin: 0; }
@media (min-width: 640px) { .hb-panel-title { font-size: 1.875rem; } }
.hb-panel-title-solo { margin-bottom: 1.5rem; }
.hb-play-all { padding: .75rem 1.5rem; border: 0; }
.hb-region-song { padding: .75rem; display: flex; align-items: center; gap: .75rem; cursor: pointer; transition: box-shadow .3s ease, border-color .3s ease; }
@media (min-width: 640px) { .hb-region-song { padding: 1rem; gap: 1rem; } }
.hb-region-song:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); }
.hb-region-song.playing { border-color: var(--hb-accent); }
.hb-region-song-cover { position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
@media (min-width: 640px) { .hb-region-song-cover { width: 64px; height: 64px; } }
.hb-region-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.hb-cover-empty, .hb-cover-hover, .hb-cover-playing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hb-cover-empty { background: rgb(var(--hb-primary-rgb) / .1); color: var(--hb-primary); }
.hb-cover-hover { background: rgba(0,0,0,.4); color: #fff; opacity: 0; transition: opacity .15s ease; }
.hb-region-song:hover .hb-cover-hover { opacity: 1; }
.hb-cover-playing { background: rgb(var(--hb-primary-rgb) / .8); color: #fff; display: none; }
.hb-region-song.playing .hb-cover-playing { display: flex; }
.hb-region-song.playing .hb-cover-playing .hb-icon { animation: hb-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes hb-pulse { 50% { opacity: .5; } }
.hb-region-song-text { flex: 1; min-width: 0; }
.hb-region-song-top { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .25rem; }
.hb-region-song-title { flex: 1; font-size: .875rem; font-weight: 600; letter-spacing: .2px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
@media (min-width: 640px) { .hb-region-song-title { font-size: 1rem; } }
.hb-region-song-sub { font-size: .8rem; color: var(--hb-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-playing-badge { display: none; flex-shrink: 0; font-size: .75rem; padding: 2px 6px; border-radius: 999px; background: var(--hb-accent); color: #fff; white-space: nowrap; line-height: 1.4; }
.playing .hb-playing-badge { display: inline-block; }
.hb-region-song.playing .hb-region-song-btn { background: var(--hb-accent); color: #fff; border: none; }

/* ---------- Music library / songs list ---------- */
.hb-music { padding: 3rem 0; }
.hb-music-inner { max-width: 64rem; }
.hb-music-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.hb-music-title { font-size: 1.875rem; font-weight: 700; margin: 0; line-height: 1.2; }
.hb-music .hb-play-all { height: 40px; padding: 0 1rem; font-size: .875rem; font-weight: 500; flex-shrink: 0; box-shadow: 0 10px 30px -10px rgb(var(--hb-primary-rgb) / .3); }
.hb-song-rows { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hb-song-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hb-song-row {
	display: flex; align-items: center; gap: 1rem; padding: 1rem; text-align: left; width: 100%;
	border-radius: 8px; border: 1px solid var(--hb-border); background: var(--hb-surface-solid);
	cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.hb-song-row:hover { background: color-mix(in srgb, var(--hb-soft) 50%, var(--hb-surface-solid)); }
.hb-song-row.playing { border-color: var(--hb-accent); }
.hb-song-row-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 8px; background: rgb(var(--hb-primary-rgb) / .2); color: var(--hb-primary); display: flex; align-items: center; justify-content: center; }
.hb-song-row-icon.has-cover { background: none; overflow: hidden; }
.hb-song-row-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-song-row-text { flex: 1; min-width: 0; display: block; }
.hb-song-row-title { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.hb-song-row-artist { display: block; font-size: .875rem; color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.hb-song-row-play { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; background: rgb(var(--hb-primary-rgb) / .1); color: var(--hb-primary); display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.hb-song-row-play .hb-icon { margin-left: 2px; }
.hb-song-row:hover .hb-song-row-play, .hb-song-row.playing .hb-song-row-play { background: var(--hb-primary); color: #fff; }
.hb-music-empty { text-align: center; padding: 4rem 0; color: var(--hb-muted); }
.hb-music-empty .hb-icon { opacity: .5; margin: 0 auto 1rem; display: block; }
.hb-music-empty p { font-size: 1.125rem; margin: 0; }

/* ---------- Song detail ---------- */
.hb-song-detail { padding: 2rem 0; }
.hb-back-muted { color: var(--hb-muted); font-weight: 400; margin-bottom: 2rem; }
.hb-back-muted:hover { color: var(--hb-primary); }
.hb-song-hero { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .hb-song-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hb-song-cover { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--hb-soft); display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--hb-muted) 30%, transparent); }
.hb-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.hb-song-info { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.hb-song-title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.1; }
.hb-song-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--hb-muted); font-size: 1rem; }
.hb-song-audio { background: color-mix(in srgb, var(--hb-soft) 30%, transparent); padding: 1rem; border-radius: 8px; }
.hb-song-audio audio { width: 100%; display: block; }
.hb-song-audio-missing { display: flex; align-items: center; gap: .6rem; color: var(--hb-muted); font-size: .95rem; }
.hb-song-desc { color: var(--hb-muted); font-size: .9rem; }
.hb-song-desc p { margin: 0 0 .75rem; }
.hb-song-section { margin-bottom: 3rem; }
.hb-song-section h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
.hb-lyrics { padding: 1.5rem; }
.hb-lyrics pre { white-space: pre-wrap; font-family: inherit; font-size: .875rem; line-height: 1.625; margin: 0; }
.hb-related-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hb-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-related { display: block; color: inherit; height: auto; }
.hb-related:hover { color: inherit; }
.hb-related-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--hb-soft); display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--hb-muted) 30%, transparent); }
.hb-related-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hb-related:hover .hb-related-media img { transform: scale(1.05); }
.hb-related-body { padding: 1rem; }
.hb-related-body h3 { font-size: 1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-related:hover h3 { color: var(--hb-primary); }
.hb-related-body p { font-size: .875rem; color: var(--hb-muted); margin: 0; }

/* ---------- Support banner (original SupportBanner) ---------- */
.hb-support-banner {
	background: linear-gradient(to right, color-mix(in srgb, var(--hb-soft) 60%, transparent), color-mix(in srgb, var(--hb-soft) 30%, transparent), transparent);
	border: 1px solid var(--hb-border); border-radius: 12px; padding: 2rem; text-align: center;
	display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.hb-support-banner p { font-size: 1.125rem; font-weight: 500; margin: 0; max-width: 42rem; }
.hb-support-icon { color: #facc15; }

/* ---------- Sticky player ---------- */
.hb-player-spacer { height: 84px; }
.hb-player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	-webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	background: var(--hb-player-bg); border-top: 1px solid var(--hb-player-border);
	box-shadow: var(--hb-player-shadow);
	padding: 12px clamp(12px, 3vw, 22px); padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.hb-player-grid { display: grid; align-items: center; gap: 12px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1.2fr); }
.hb-player-meta { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.hb-player-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.hb-player-cover-empty { background: var(--hb-surface-2); display: flex; align-items: center; justify-content: center; color: var(--hb-muted); }
.hb-player-text { min-width: 0; flex: 1; }
.hb-player-title { font-size: .875rem; font-weight: 600; color: var(--hb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.hb-player-sub { font-size: .75rem; color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.hb-player-center { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hb-player-controls { display: flex; align-items: center; gap: .5rem; }
.hb-player-progress { display: flex; align-items: center; gap: .5rem; width: 100%; }
.hb-player-progress .hb-time { min-width: 40px; text-align: right; }
.hb-player-progress .hb-time-end { text-align: left; }
.hb-player-toggles { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.hb-volume { display: flex; align-items: center; gap: .35rem; margin-right: .35rem; }
.hb-volume-range { width: 72px; flex: none; height: 6px; }
@media (max-width: 900px) { .hb-volume-range { display: none; } }
@media (max-width: 640px) {
	.hb-player-grid { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
	.hb-hide-xs { display: none; }
}
.hb-progress {
	-webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 8px; cursor: pointer; padding: 0; margin: 0;
	--hb-fill: 0%;
	background: linear-gradient(to right, var(--hb-accent), var(--hb-accent)) no-repeat, linear-gradient(to right, rgba(127,127,127,.35), rgba(127,127,127,.35));
	background-size: var(--hb-fill) 100%, 100% 100%;
	border-radius: 999px; border: 1px solid var(--hb-border);
}
.hb-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--hb-accent); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.1); }
.hb-progress::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--hb-accent); border: 2px solid #fff; }
.hb-ctrl {
	width: 40px; height: 40px; border-radius: 999px; padding: 0; cursor: pointer; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--hb-surface-2); border: 1px solid var(--hb-border); color: var(--hb-text);
}
.hb-ctrl:hover { filter: brightness(1.05); }
.hb-ctrl-primary { background: var(--hb-accent); color: #fff; border: none; }
.hb-toggle-on { background: var(--hb-accent-weak); color: var(--hb-accent); border: 1px solid transparent; }
#hb-player-toggle .hb-icon-pause { display: none; }
#hb-player-toggle .hb-icon-play { margin-left: 2px; }
.hb-player.is-playing #hb-player-toggle .hb-icon-play { display: none; }
.hb-player.is-playing #hb-player-toggle .hb-icon-pause { display: block; }
[data-hb-action="repeat"] .hb-icon-repeat1 { display: none; }
[data-hb-action="repeat"].is-one .hb-icon-repeat { display: none; }
[data-hb-action="repeat"].is-one .hb-icon-repeat1 { display: block; }
[data-hb-action="mute"].is-muted { opacity: .5; }

/* ---------- Queue drawer ---------- */
.hb-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 95; }
.hb-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: 100%; max-width: 28rem; overflow-y: auto;
	background: var(--hb-surface-solid); border-left: 1px solid var(--hb-border); padding: 1.5rem; box-shadow: -10px 0 40px rgba(0,0,0,.25);
}
.hb-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hb-drawer-head h2 { font-size: 1.125rem; font-weight: 600; margin: 0; }
.hb-drawer-close { background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--hb-muted); display: flex; }
.hb-drawer-close:hover { color: var(--hb-text); }
.hb-queue-list { display: flex; flex-direction: column; gap: .5rem; }
.hb-queue-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; cursor: pointer; width: 100%; text-align: left; transition: box-shadow .15s ease, border-color .15s ease; }
.hb-queue-item:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.12); }
.hb-queue-item.is-current { border-color: var(--hb-accent); }
.hb-queue-cover { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--hb-surface-2); display: flex; align-items: center; justify-content: center; color: var(--hb-muted); }
.hb-queue-text { flex: 1; min-width: 0; }
.hb-queue-title { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-queue-now { margin-left: .5rem; font-size: .75rem; color: var(--hb-accent); }
.hb-queue-artist, .hb-queue-dur { font-size: .75rem; color: var(--hb-muted); }

/* ---------- Toasts ---------- */
.hb-toasts { position: fixed; right: 1rem; bottom: 100px; z-index: 120; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.hb-toast { background: #dc2626; color: #fff; border-radius: 10px; padding: .75rem 1rem; font-size: .875rem; box-shadow: 0 10px 25px rgba(0,0,0,.25); max-width: 320px; }
.hb-toast strong { display: block; }

/* ---------- Navigation progress ---------- */
.hb-loading #main { opacity: .55; transition: opacity .15s ease; }

/* ---------- Christmas ---------- */
.hb-xmas-hero {
	position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; color: #fff;
	background: linear-gradient(to bottom right, hsl(142 40% 12%), hsl(150 35% 18%), hsl(355 45% 25%));
}
.hb-xmas-flakes { position: absolute; inset: 0; opacity: .1; }
.hb-xmas-flakes span { position: absolute; animation: hb-pulse 2s cubic-bezier(.4,0,.6,1) infinite; line-height: 1; }
.hb-xmas-flakes span:nth-child(1) { top: 2.5rem; left: 10%; font-size: 3.75rem; }
.hb-xmas-flakes span:nth-child(2) { top: 5rem; right: 15%; font-size: 2.25rem; animation-delay: .3s; }
.hb-xmas-flakes span:nth-child(3) { bottom: 5rem; left: 20%; font-size: 3rem; animation-delay: .5s; }
.hb-xmas-flakes span:nth-child(4) { bottom: 8rem; right: 25%; font-size: 1.875rem; animation-delay: .7s; }
.hb-xmas-hero-inner { position: relative; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .hb-xmas-hero-inner { padding-top: 6rem; padding-bottom: 6rem; } }
.hb-xmas-hero h1 { font-size: clamp(1.875rem, 5.2vw, 3.75rem); font-weight: 700; line-height: 1.25; margin: 0 0 1.25rem; color: #fff; }
.hb-xmas-lead { font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 500; color: rgba(255,255,255,.9); margin: 0 0 1.75rem; }
.hb-xmas-intro { max-width: 48rem; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.625; color: rgba(255,255,255,.8); }
.hb-xmas-section { padding: 4rem 0; }
@media (min-width: 768px) { .hb-xmas-section { padding: 6rem 0; } }
.hb-xmas-song { background: linear-gradient(180deg, transparent 0%, hsl(var(--hb-xmas-evergreen) / .03) 100%); }
.hb-xmas-stories { background: hsl(var(--hb-xmas-evergreen) / .03); }
.hb-xmas-card { max-width: 48rem; margin: 0 auto; padding: 2rem; text-align: center; border-color: hsl(var(--hb-xmas-red) / .2); }
@media (min-width: 768px) { .hb-xmas-card { padding: 3rem; } }
.hb-xmas-disc { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px; background: hsl(var(--hb-xmas-red) / .1); color: var(--hb-xmas-accent); margin-bottom: 1.5rem; }
.hb-xmas-card h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin: 0 0 .75rem; }
.hb-xmas-card > p { color: var(--hb-muted); max-width: 36rem; margin: 0 auto 2rem; line-height: 1.625; font-size: 1rem; }
.hb-xmas-card audio { width: 100%; max-width: 28rem; margin: 0 auto 1.25rem; display: block; }
.hb-xmas-card .hb-xmas-note { font-size: .875rem; margin-bottom: 0; opacity: .8; }
.hb-xmas-note a { text-decoration: underline; color: inherit; }
.hb-xmas-note a:hover { color: var(--hb-xmas-accent); }
.hb-xmas-head { text-align: center; margin-bottom: 3rem; }
.hb-xmas-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 700; margin: 0 0 1rem; }
.hb-xmas-head p { color: var(--hb-muted); max-width: 42rem; margin: 0 auto; font-size: 1rem; }
.hb-xmas-grid { display: grid; gap: 1.5rem; max-width: 64rem; margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hb-xmas-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hb-xmas-story { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; border-color: hsl(var(--hb-xmas-red) / .1); transition: all .3s ease; }
@media (min-width: 768px) { .hb-xmas-story { padding: 2rem; } }
.hb-xmas-story:hover { transform: translateY(-2px); border-color: hsl(var(--hb-xmas-red) / .3); box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); }
.hb-xmas-flag { font-size: 1.875rem; line-height: 1.2; flex-shrink: 0; }
.hb-xmas-story-body { flex: 1; display: flex; flex-direction: column; height: 100%; }
.hb-xmas-region { font-size: .875rem; font-weight: 500; color: var(--hb-xmas-accent); margin: 0 0 .25rem; }
.hb-xmas-story h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .75rem; transition: color .15s ease; }
.hb-xmas-story:hover h3 { color: var(--hb-xmas-accent); }
.hb-xmas-desc { color: var(--hb-muted); margin: 0 0 1.5rem; line-height: 1.625; flex: 1; font-size: 1rem; }
.hb-btn-xmas { width: 100%; height: 40px; padding: 0 1rem; font-size: .875rem; font-weight: 500; background: var(--hb-bg); border: 1px solid hsl(var(--hb-xmas-red) / .3); color: hsl(var(--hb-xmas-red)); }
.hb-btn-xmas:hover { background: hsl(var(--hb-xmas-red) / .08); border-color: hsl(var(--hb-xmas-red) / .5); color: hsl(var(--hb-xmas-red)); }
.hb-xmas-closing { max-width: 48rem; text-align: center; }
.hb-xmas-closing p { font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--hb-muted); line-height: 1.625; margin: 0 0 2rem; }
.hb-xmas-closing .hb-xmas-final { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; font-style: italic; color: var(--hb-text); margin: 0; }

/* The 2.0 footer sits directly under the spacer */
.hb-footer { margin-top: 0; }

/* Grid and flex children may shrink below their content width (long song titles). */
.hb-song-row, .hb-region-song, .hb-song-card, .hb-panel, .hb-panel-card { min-width: 0; }
.hb-music-head { flex-wrap: wrap; }

.hb-card-body .hb-pill { align-self: flex-start; }

.hb-mobile-backdrop { z-index: 100; }
.hb-mobile-nav { z-index: 101; overflow-y: auto; box-shadow: 10px 0 40px rgba(0,0,0,.25); }
