/* BandFly theme — red/silver app shell with top navigation. Overrides the core tokens. */
:root {
	--bf-bg: #0b0b0f;
	--bf-surface: #15161c;
	--bf-surface-2: #1c1d25;
	--bf-border: #2a2b35;
	--bf-text: #f2f2f5;
	--bf-muted: #9a9cab;
	--bf-silver: #c9cbd6;
	--bf-accent: #e0243c;      /* button red: white text = 4.7:1 (AA) */
	--bf-accent-hover: #f0334b;
	--bf-accent-2: #ff6b7a;    /* light red for text accents on dark: 6.9:1 */
	--bf-accent-ink: #fff;
	--bf-accent-glow: rgba(224, 36, 60, .35);
	--bf-accent-soft: rgba(224, 36, 60, .14);
	--bf-radius: 14px;
	--bf-radius-sm: 8px;
	--bf-shadow: 0 10px 30px rgba(0, 0, 0, .4);
	--bf-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bf-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--bft-max: 1240px;
	--bft-top-h: 64px;
	--bft-tab-h: 64px;
	--bft-player-h: 64px;
	--bft-gutter: 16px;
	--bft-safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 900px) {
	:root { --bft-top-h: 72px; --bft-player-h: 80px; --bft-gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bft-top-h) + 12px); }
body {
	margin: 0;
	background: var(--bf-bg);
	color: var(--bf-text);
	font: 400 16px/1.6 var(--bf-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--bf-accent-2); }
a:hover { color: #ff8f9a; }
h1, h2, h3, h4 { font-family: var(--bf-display); line-height: 1.15; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--bf-accent-2); outline-offset: 2px; }
::selection { background: var(--bf-accent); color: #fff; }

/* Core component overrides for the red palette */
.bf-btn { color: #fff; }
.bf-btn:hover { background: var(--bf-accent-hover); filter: none; color: #fff; }
.bf-btn-ghost, .bf-btn-ghost:hover { background: transparent; color: var(--bf-text); }
.bf-btn-on, .bf-btn-on:hover { background: var(--bf-surface-2); color: var(--bf-text); }
.bf-eyebrow { color: var(--bf-accent-2); }
.bf-role input:checked + span { box-shadow: 0 0 0 3px var(--bf-accent-soft); }
.bf-tab.is-active { background: var(--bf-accent); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bft-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--bf-text); color: var(--bf-bg); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }
.bft-skip:focus { left: 8px; }
.bft-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Shell ---------- */
.bft-shell { min-height: 100vh; display: flex; flex-direction: column; }
.bft-col { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.bft-main {
	flex: 1; width: 100%; max-width: var(--bft-max); margin: 0 auto;
	padding: 20px var(--bft-gutter) 40px; outline: none;
}
/* Artist pages: core renders a full-width hero, then its own .bf-wrap containers. */
body.bft-full-bleed .bft-main { max-width: none; padding: 0 0 40px; }
.bf-wrap, .bft-wrap { width: 100%; max-width: var(--bft-max); margin-left: auto; margin-right: auto; }
.bf-wrap { padding-left: 16px; padding-right: 16px; }
body:not(.bft-full-bleed) .bft-main .bf-wrap { padding-left: 0; padding-right: 0; }
.bft-narrow { max-width: 760px; }
.bft-bleed { margin: 0; }

/* ---------- Top bar ---------- */
.bft-top {
	position: sticky; top: 0; z-index: 50;
	height: var(--bft-top-h);
	background: rgba(11, 11, 15, .9);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(42, 43, 53, .8);
}
.bft-top-inner {
	display: flex; align-items: center; gap: 1rem;
	height: 100%; max-width: calc(var(--bft-max) + 2 * var(--bft-gutter)); margin: 0 auto; padding: 0 var(--bft-gutter);
}
.bft-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--bf-text); text-decoration: none; flex-shrink: 0; }
.bft-brand:hover { color: var(--bf-text); }
.bft-logo { display: block; height: auto; }
.bft-logo-top { width: 40px; height: 40px; object-fit: contain; }
.bft-lockup { display: none; line-height: 1; }
.bft-wordmark { font-family: var(--bf-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: var(--bf-text); }
.bft-wordmark b { color: var(--bf-accent); font-weight: 700; }
.bft-tagline { display: block; margin-top: 3px; font-size: .62rem; letter-spacing: .06em; color: var(--bf-silver); white-space: nowrap; }
.bft-mark { display: block; flex-shrink: 0; }

.bft-top-nav { display: none; }
.bft-top-nav .bft-nav-list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.bft-top-nav .bft-nav-link, .bft-top-nav .bft-menu a {
	position: relative; display: inline-flex; align-items: center; gap: .4rem; height: var(--bft-top-h); padding: 0 .8rem;
	color: var(--bf-text); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.bft-top-nav .bft-nav-link .bft-icon { display: none; }
.bft-top-nav .bft-nav-link:hover, .bft-top-nav .bft-menu a:hover { color: var(--bf-accent-2); }
.bft-top-nav .bft-nav-link.is-active, .bft-top-nav .current-menu-item > a { color: var(--bf-accent-2); }
.bft-top-nav .bft-nav-link.is-active::after, .bft-top-nav .current-menu-item > a::after {
	content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bf-accent);
}
/* Equalizer next to Radio: idle bars, animated while audio plays */
.bft-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; order: -1; }
.bft-eq i { display: block; width: 3px; height: 40%; border-radius: 1px; background: var(--bf-accent); transform-origin: bottom; }
.bft-eq i:nth-child(2) { height: 100%; }
.bft-eq i:nth-child(3) { height: 65%; }
body.bft-is-playing .bft-eq i { animation: bft-eqb .9s ease-in-out infinite alternate; }
body.bft-is-playing .bft-eq i:nth-child(2) { animation-delay: -.3s; }
body.bft-is-playing .bft-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes bft-eqb { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.bft-tabbar .bft-eq { display: none; }

.bft-search { position: relative; display: none; flex: 1 1 280px; max-width: 380px; margin-left: auto; }
.bft-search .bft-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--bf-muted); width: 18px; height: 18px; pointer-events: none; }
.bft-search input {
	width: 100%; height: 42px; padding: 0 1rem 0 2.6rem;
	background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: 999px;
	color: var(--bf-text); font: inherit; font-size: .9rem;
}
.bft-search input::placeholder { color: var(--bf-muted); }
.bft-search input:focus { outline: none; border-color: var(--bf-accent); box-shadow: 0 0 0 3px var(--bf-accent-soft); }
.bft-user { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.bft-search-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--bf-text); cursor: pointer; }
.bft-search-btn:hover { background: var(--bf-surface); }
.bft-signin { color: var(--bf-text); text-decoration: none; font-weight: 600; font-size: .92rem; display: none; }
.bft-signin:hover { color: var(--bf-accent-2); }
.bft-avatar img { display: block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bf-border); }
.bft-avatar:hover img { border-color: var(--bf-accent); }

/* Mobile search drawer (toggled by the search icon) */
body.bft-search-open .bft-search {
	display: block; position: absolute; left: var(--bft-gutter); right: var(--bft-gutter); top: calc(var(--bft-top-h) + 8px); max-width: none; margin: 0;
}
body.bft-search-open .bft-search input { box-shadow: var(--bf-shadow); }

@media (min-width: 600px) {
	.bft-lockup { display: block; }
	.bft-signin { display: inline; }
}
@media (min-width: 900px) {
	.bft-top-inner { gap: 1.25rem; }
	.bft-logo-top { width: 48px; height: 48px; }
	.bft-top-nav { display: block; }
	.bft-search { display: block; margin-left: auto; }
	.bft-user { margin-left: 0; }
	.bft-search-btn { display: none; }
	.bft-tabbar { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) {
	.bft-tagline { display: none; }
	.bft-top-nav .bft-nav-link { padding: 0 .55rem; font-size: .9rem; }
	.bft-search { max-width: 220px; }
}

/* ---------- Bottom tab bar (mobile) ---------- */
.bft-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	height: calc(var(--bft-tab-h) + var(--bft-safe-b)); padding-bottom: var(--bft-safe-b);
	background: rgba(13, 13, 18, .97);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-top: 1px solid var(--bf-border);
}
.bft-tabbar .bft-nav-list { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--bft-tab-h); margin: 0; padding: 0; list-style: none; }
.bft-tabbar .bft-nav-link {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
	color: var(--bf-muted); text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .02em;
}
.bft-tabbar .bft-nav-link.is-active { color: var(--bf-text); }
.bft-tabbar .bft-nav-link.is-active .bft-icon { color: var(--bf-accent-2); }

/* ---------- Content ---------- */
.bft-app-title { margin-bottom: 1rem; }
.bft-section { max-width: var(--bft-max); margin: 0 auto 3rem; }
.bft-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.bft-section-title { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 .75rem; }
.bft-section-head .bft-section-title { margin: 0; }
.bft-section-head a { color: var(--bf-accent-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.bft-tile-blank { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--bf-radius); background: linear-gradient(135deg, var(--bf-surface-2), #2a141a); color: var(--bf-accent-2); }
.bft-tile-blank .bft-icon { width: 40%; height: 40%; }

@media (max-width: 719px) {
	.bft-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; margin: 0 calc(-1 * var(--bft-gutter)); padding: 0 var(--bft-gutter) .5rem; scrollbar-width: none; }
	.bft-rail::-webkit-scrollbar { display: none; }
	.bft-rail > * { flex: 0 0 42%; scroll-snap-align: start; }
}

/* Hero (landing) */
.bft-hero {
	position: relative; display: grid; gap: 2rem; align-items: center;
	max-width: var(--bft-max); margin: 0 auto 3rem; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
	border-radius: 24px; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(224, 36, 60, .30), transparent 55%),
		radial-gradient(90% 80% at 100% 100%, rgba(150, 156, 180, .14), transparent 60%),
		var(--bf-surface);
	border: 1px solid var(--bf-border);
}
.bft-hero-title { font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; margin: .6rem 0 1rem; letter-spacing: -.04em; color: #fff; }
.bft-hero-title span { color: var(--bf-silver); }
.bft-hero-title em { font-style: normal; background: linear-gradient(90deg, #ff3b52, var(--bf-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bft-hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: #d4d5de; max-width: 36em; margin: 0 0 .5rem; }
.bft-btn-xl { padding: .9rem 1.5rem; font-size: 1rem; }
.bft-hero-art { display: none; position: relative; }
.bft-hero-logo { position: relative; z-index: 1; width: min(100%, 380px); margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(224, 36, 60, .4)); }
.bft-hero-logo-sm { width: 150px; height: auto; margin: 0 0 1rem; }
.bft-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: flex-end; gap: 5px; justify-content: center; z-index: 0; opacity: .5; }
.bft-wave i { display: block; width: 5px; border-radius: 3px; background: linear-gradient(var(--bf-accent-2), var(--bf-accent)); height: calc(10px + (var(--i) * 7 % 38) * 1px); transform-origin: bottom; animation: bft-eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s); }
@keyframes bft-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (min-width: 900px) {
	.bft-hero { grid-template-columns: 1.15fr 1fr; }
	.bft-hero-art { display: flex; align-items: center; justify-content: center; }
	.bft-hero-logo-sm { display: none; }
}

/* Radio teaser */
.bft-radio-teaser {
	display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 4vw, 2.5rem);
	border-radius: 24px; background: linear-gradient(135deg, #24121a, var(--bf-surface) 60%); border: 1px solid var(--bf-border);
}
.bft-radio-teaser .bf-btn .bft-icon { width: 16px; height: 16px; }
.bft-dial { position: relative; width: 180px; aspect-ratio: 1; margin: 0 auto; display: none; }
.bft-dial span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bf-accent); opacity: .5; animation: bft-ping 3s ease-out infinite; }
.bft-dial span:nth-child(2) { animation-delay: 1s; }
.bft-dial span:nth-child(3) { animation-delay: 2s; }
.bft-dial::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: linear-gradient(135deg, var(--bf-accent), var(--bf-accent-2)); box-shadow: 0 0 40px var(--bf-accent-glow); }
@keyframes bft-ping { from { transform: scale(.4); opacity: .8; } to { transform: scale(1); opacity: 0; } }
@media (min-width: 760px) {
	.bft-radio-teaser { grid-template-columns: 1.5fr 1fr; }
	.bft-dial { display: block; }
}

/* How it works + plans */
.bft-how { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bft-how h3 { margin: .6rem 0 .3rem; font-size: 1.15rem; }
.bft-how-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bf-accent-soft); color: var(--bf-accent-2); }
.bft-plans { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1rem 0; }
.bft-plan { padding: 1.25rem; border-radius: var(--bf-radius); background: var(--bf-surface); border: 1px solid var(--bf-border); }
.bft-plan.is-featured { border-color: var(--bf-accent); box-shadow: 0 0 0 3px var(--bf-accent-soft); }
.bft-plan h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.bft-plan-price { margin: 0; color: var(--bf-muted); }
.bft-plan-price b { font-family: var(--bf-display); font-size: 1.8rem; color: var(--bf-text); font-variant-numeric: tabular-nums; }
.bft-plan-fee { margin: .5rem 0 0; color: var(--bf-muted); font-size: .9rem; }
.bft-plan-fee b { color: var(--bf-accent-2); font-size: 1.05rem; }
.bft-empty-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.bft-empty-cta p { margin: 0; }

/* Posts */
.bft-posts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bft-post-card { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); overflow: hidden; }
.bft-post-card-link { display: block; color: var(--bf-text); text-decoration: none; }
.bft-post-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bft-post-card-body { padding: 1rem 1.1rem; }
.bft-post-card h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.bft-entry-head { margin-bottom: 1.25rem; }
.bft-feature { margin: 0 0 1.5rem; }
.bft-feature img { border-radius: var(--bf-radius); display: block; width: 100%; }
.bft-404 { text-align: center; padding: 3rem 0; }
.bft-404 .bf-actions { justify-content: center; }

/* Entry content + WP blocks */
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry-content blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--bf-accent); color: #d4d5de; }
.entry-content pre, .entry-content code { background: var(--bf-surface-2); border-radius: 6px; }
.entry-content code { padding: .1em .35em; font-size: .9em; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--bf-border); padding: .5rem; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--bf-border); margin: 2rem 0; }
.entry-content input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=file]), .entry-content textarea, .entry-content select {
	background: var(--bf-surface-2); color: var(--bf-text); border: 1px solid var(--bf-border); border-radius: var(--bf-radius-sm); padding: .6rem .75rem; font: inherit;
}
.alignwide { max-width: var(--bft-max); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: var(--bf-radius-sm); }
.wp-block-button__link { background: var(--bf-accent); color: #fff; border-radius: 999px; font-weight: 700; padding: .65rem 1.2rem; text-decoration: none; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--bf-text); border: 1.5px solid var(--bf-border); }
.wp-block-separator { border-color: var(--bf-border); }
.wp-caption-text, figcaption { color: var(--bf-muted); font-size: .85rem; }
.has-text-align-center { text-align: center; }

/* Comments (used by the artist Fan Wall) */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius-sm); padding: 1rem; margin-bottom: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; }
.comment-form .submit { background: var(--bf-accent); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.2rem; font-weight: 700; cursor: pointer; }

/* Pagination */
.nav-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.nav-links .page-numbers { padding: .35rem .7rem; border-radius: 8px; color: var(--bf-muted); text-decoration: none; background: var(--bf-surface); }
.nav-links .page-numbers.current { color: #fff; background: var(--bf-accent); font-weight: 700; }

/* ---------- Footer ---------- */
.bft-foot { border-top: 1px solid var(--bf-border); padding: 1.75rem var(--bft-gutter) calc(var(--bft-tab-h) + 1.75rem + var(--bft-safe-b)); color: var(--bf-muted); font-size: .85rem; background: #09090c; }
body.bft-has-player .bft-foot { padding-bottom: calc(var(--bft-tab-h) + var(--bft-player-h) + 1.75rem + var(--bft-safe-b)); }
.bft-foot-inner { max-width: var(--bft-max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.bft-foot-brand .bft-wordmark { font-size: 1.2rem; }
.bft-foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.bft-foot a { color: var(--bf-muted); text-decoration: none; }
.bft-foot a:hover { color: var(--bf-text); }
@media (min-width: 900px) {
	.bft-foot, body.bft-has-player .bft-foot { padding: 1.75rem var(--bft-gutter); }
	body.bft-has-player .bft-foot { padding-bottom: calc(var(--bft-player-h) + 1.75rem); }
}

/* ---------- Player bar ---------- */
.bft-player {
	position: fixed; left: 0; right: 0; z-index: 55;
	bottom: calc(var(--bft-tab-h) + var(--bft-safe-b));
	height: var(--bft-player-h);
	background: rgba(18, 18, 24, .97);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--bf-border);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
}
.bft-player[hidden] { display: none; }
.bft-player-row { display: flex; align-items: center; gap: .6rem; height: 100%; padding: 0 var(--bft-gutter); }
.bft-player-now { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
.bft-player-art { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bf-surface-2); flex-shrink: 0; }
.bft-player-art[src=""] { visibility: hidden; }
.bft-player-meta { display: grid; min-width: 0; line-height: 1.25; }
.bft-player-title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bft-player-artist { color: var(--bf-muted); font-size: .82rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bft-player-artist:hover { color: var(--bf-text); }
.bft-player-center { display: flex; align-items: center; gap: .5rem; }
.bft-player-ctrls { display: flex; align-items: center; gap: .15rem; }
.bft-player-side { display: flex; align-items: center; gap: .25rem; }

.bft-pbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--bf-text); cursor: pointer; padding: 0; flex-shrink: 0; }
.bft-pbtn:hover { background: rgba(255, 255, 255, .08); }
.bft-pbtn:disabled { opacity: .4; cursor: default; }
.bft-pbtn .bft-icon { width: 20px; height: 20px; }
.bft-pbtn-main { width: 46px; height: 46px; background: var(--bf-accent); color: #fff; box-shadow: 0 6px 18px var(--bf-accent-glow); }
.bft-pbtn-main:hover { background: var(--bf-accent-hover); }
.bft-pbtn-main .bft-icon { width: 22px; height: 22px; }
.bft-pbtn[aria-pressed="true"] { color: var(--bf-accent-2); }
.bft-pbtn-shuffle[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--bf-accent-2); }
.bft-pbtn-like[aria-pressed="true"] .bft-icon { fill: var(--bf-accent); stroke: var(--bf-accent); }
.bft-i-pause, .bft-i-muted { display: none; }
.bft-player.is-playing .bft-i-play { display: none; }
.bft-player.is-playing .bft-i-pause { display: inline; }
.bft-player.is-muted .bft-i-vol { display: none; }
.bft-player.is-muted .bft-i-muted { display: inline; }
.bft-player.is-loading .bft-pbtn-main { animation: bft-pulse 1s ease-in-out infinite; }
@keyframes bft-pulse { 50% { opacity: .6; } }

/* Progress: thin line on phones, inline scrubber with times on desktop */
.bft-player-progress { position: absolute; left: 0; right: 0; top: -7px; height: 14px; display: flex; align-items: center; gap: .6rem; }
.bft-player-time { display: none; color: var(--bf-muted); font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.bft-player-time[data-bft-elapsed] { text-align: right; }
.bft-player input[type=range] {
	-webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 0; background: transparent; cursor: pointer;
	--bft-pct: 0%;
}
.bft-player input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--bf-accent) var(--bft-pct), rgba(255, 255, 255, .16) var(--bft-pct)); border-radius: 2px; }
.bft-player input[type=range]::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.bft-player input[type=range]::-moz-range-progress { height: 4px; background: var(--bf-accent); border-radius: 2px; }
.bft-player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.bft-player input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.bft-player input[type=range]:hover::-webkit-slider-thumb, .bft-player input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
.bft-player input[type=range]:hover::-moz-range-thumb, .bft-player input[type=range]:focus-visible::-moz-range-thumb { opacity: 1; }
.bft-player input[type=range]:focus-visible { outline: none; }
.bft-player input[type=range]:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 2px var(--bf-accent-2); }
.bft-vol { width: 96px !important; }

.bft-player-buy .bft-icon { width: 16px; height: 16px; }
.bft-player-buy span { display: none; }
.bft-player-buy[hidden] { display: none; }
.bft-player-close { color: var(--bf-muted); }
.bft-player-close .bft-icon { width: 18px; height: 18px; }

/* Queue popover */
.bft-queue-wrap { position: relative; }
.bft-queue {
	position: absolute; right: 0; bottom: calc(100% + 14px); width: min(340px, 90vw); max-height: 50vh; overflow-y: auto;
	background: var(--bf-surface); border: 1px solid var(--bf-border); border-radius: var(--bf-radius); box-shadow: var(--bf-shadow); padding: .5rem;
}
.bft-queue[hidden] { display: none; }
.bft-queue-head { margin: .25rem .5rem .5rem; font-weight: 700; font-size: .85rem; color: var(--bf-muted); text-transform: uppercase; letter-spacing: .06em; }
.bft-queue-list { list-style: none; margin: 0; padding: 0; }
.bft-queue-list button {
	display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 8px;
	background: transparent; color: var(--bf-text); text-align: left; font: inherit; font-size: .88rem; cursor: pointer;
}
.bft-queue-list button:hover, .bft-queue-list button:focus-visible { background: var(--bf-surface-2); }
.bft-queue-list img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--bf-surface-2); flex-shrink: 0; }
.bft-queue-list img:not([src]) { content: ""; border: 0; }
.bft-queue-list .bft-q-text { display: grid; min-width: 0; line-height: 1.25; }
.bft-queue-list .bft-q-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bft-queue-list .bft-q-text small { color: var(--bf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bft-queue-list .is-current button { color: var(--bf-accent-2); }
.bft-queue-empty { padding: .5rem; color: var(--bf-muted); font-size: .88rem; }

/* Phone: compact bar — art, title, play, next */
.bft-pbtn-like, .bft-pbtn-shuffle, .bft-player-ctrls [data-bft-prev], .bft-player-side .bft-pbtn-vol, .bft-vol, .bft-queue-wrap, .bft-player-buy { display: none; }
.bft-player-close { display: inline-grid; }

@media (min-width: 600px) {
	.bft-player-ctrls [data-bft-prev], .bft-queue-wrap, .bft-pbtn-like { display: inline-grid; }
	.bft-queue-wrap { display: block; }
	.bft-player-buy:not([hidden]) { display: inline-flex; }
}
@media (min-width: 900px) {
	.bft-player { bottom: 0; }
	.bft-player-row {
		display: grid; grid-template-columns: minmax(200px, 1fr) minmax(360px, 2fr) minmax(200px, 1fr);
		gap: 1.25rem; max-width: 1440px; margin: 0 auto; padding: 0 24px;
	}
	.bft-player-art { width: 52px; height: 52px; }
	.bft-player-center { gap: 1rem; }
	.bft-pbtn-shuffle { display: inline-grid; }
	.bft-player-progress { position: static; flex: 1; height: auto; }
	.bft-player-time { display: inline; }
	.bft-player-side { justify-content: flex-end; }
	.bft-player-side .bft-pbtn-vol { display: inline-grid; }
	.bft-vol { display: block; }
	.bft-player-buy span { display: inline; }
	.bft-pbtn-main { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Page transition hint */
body.bft-loading .bft-main { opacity: .55; transition: opacity .15s; }
body.bft-loading::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 40%; z-index: 100; background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2)); animation: bft-bar 1s ease-in-out infinite; }
@keyframes bft-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Single-row horizontal rails (Artists page) */
.bft-hrail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.bft-hrail > * { flex: 0 0 160px; scroll-snap-align: start; }
@media (min-width: 900px) { .bft-hrail > * { flex-basis: 180px; } }
.bft-hrail .bft-tile-blank { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--bf-radius); background: var(--bf-surface-2); }
