/* TGP Similar Tracks — buttons, tooltip, modal. Dark theme, matches /my-feed/ rows. */

/* ───────── icon buttons: bare glyphs, like the heart and volume icons around them ───────── */
button.tgp-sim-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.86);
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}
button.tgp-sim-btn svg { position: relative; display: block; flex: none; width: 18px; height: 18px; transition: transform 0.2s ease; }
/* hover: a soft glass disc grows in behind the glyph and the two circles drift apart */
button.tgp-sim-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.13);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: scale(0.55);
	transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.25);
}
button.tgp-sim-btn:hover::before,
button.tgp-sim-btn:focus-visible::before { opacity: 1; transform: scale(1); }
button.tgp-sim-btn:hover,
button.tgp-sim-btn:focus-visible { color: #fff; }
button.tgp-sim-btn:hover svg { transform: scale(1.06); }
button.tgp-sim-btn svg circle { transform-box: fill-box; transform-origin: center; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.25); }
button.tgp-sim-btn:hover svg circle:first-child { transform: translateX(-1.6px); }
button.tgp-sim-btn:hover svg circle:last-child { transform: translateX(1.6px); }
button.tgp-sim-btn:active { transform: scale(0.92); }
button.tgp-sim-btn { position: relative; }
/* the theme's global button rules bleed purple fills onto bare buttons: pin them off in every state */
button.tgp-sim-btn,
button.tgp-sim-btn:hover,
button.tgp-sim-btn:focus,
button.tgp-sim-btn:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
}
.tgp-page .tgp-hero__toolbar button.tgp-sim-btn--toolbar.tgp-toolbar-btn,
.tgp-page .tgp-hero__toolbar button.tgp-sim-btn--toolbar.tgp-toolbar-btn:hover { border: 1px solid var(--tgp-line-strong) !important; }

/* grid cards: bare glyph in the artwork corner, shown on hover (always on touch) */
.sr_track_cover.tgp-sim-cover { position: relative; }
.sr_track_cover button.tgp-sim-btn--cover {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 36px;
	height: 36px;
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease, color 0.15s ease;
}
.sr_track_cover button.tgp-sim-btn--cover svg { width: 22px; height: 22px; }
.sr-playlist-item:hover .sr_track_cover button.tgp-sim-btn--cover,
.sr_track_cover button.tgp-sim-btn--cover:focus-visible { opacity: 1; transform: none; }
.sr_track_cover button.tgp-sim-btn--cover:active { transform: scale(0.92); }
@media (hover: none) { .sr_track_cover button.tgp-sim-btn--cover { opacity: 1; transform: none; } }
.song-store-list-container button.tgp-sim-btn--cover { position: static; opacity: 1; transform: none; filter: none; margin-left: 8px; }

/* My Feed rows: between the heart and the price */
#tgp-feed-root button.tgp-sim-btn--feed { width: 32px; height: 32px; color: #71717a; }
#tgp-feed-root button.tgp-sim-btn--feed:hover { color: #fafafa; }
#tgp-feed-root button.tgp-sim-btn--feed svg { width: 17px; height: 17px; }
#tgp-feed-root button.tgp-sim-btn--feed-sm { width: 28px; height: 28px; }
#tgp-feed-root button.tgp-sim-btn--feed-sm svg { width: 15px; height: 15px; }

/* sticky player bar: same weight as the heart beside it */
#sonaar-player .track-store li.tgp-sim-li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
#sonaar-player .track-store li.tgp-sim-li button.tgp-sim-btn { width: 36px; height: 36px; color: #fff; }
#sonaar-player .track-store li.tgp-sim-li button.tgp-sim-btn svg { width: 21px; height: 21px; }

/* expanded mobile player: bare glyph on the artwork's top-right corner (heart stays in the header) */
#sonaar-player .srp_ext_header.tgp-sim-exthead,
#sonaar-player .srp_ext_header:has(.tgp-sim-heart) { position: relative; }
#sonaar-player .srp_ext_artwork.tgp-sim-extart { position: relative; }
#sonaar-player .srp_ext_artwork button.tgp-sim-btn--expanded,
#sonaar-player .srp_ext_header button.tgp-sim-btn--expanded {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 40px;
	height: 40px;
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}
#sonaar-player .srp_ext_artwork button.tgp-sim-btn--expanded svg,
#sonaar-player .srp_ext_header button.tgp-sim-btn--expanded svg { width: 26px; height: 26px; }
#sonaar-player .srp_ext_artwork button.tgp-sim-btn--expanded:active { transform: scale(0.92); }

/* our heart on player surfaces without a Sonaar one */
button.tgp-sim-heart { color: rgba(255, 255, 255, 0.86); }
button.tgp-sim-heart:hover svg { transform: scale(1.08); }
button.tgp-sim-heart.is-on { color: #ef4444 !important; }
button.tgp-sim-heart.is-on svg path { fill: currentColor; }
button.tgp-sim-heart.is-busy { opacity: 0.6; }
button.tgp-sim-heart.tgpsim-pop svg { animation: tgpsimPop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.4); }
#sonaar-player .track-store li.tgp-sim-heart-li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
#sonaar-player .track-store li.tgp-sim-heart-li button.tgp-sim-btn { width: 36px; height: 36px; color: #fff; }
#sonaar-player .track-store li.tgp-sim-heart-li button.tgp-sim-btn svg { width: 21px; height: 21px; }
#sonaar-player .srp_ext_header button.tgp-sim-btn--heart-ext {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	color: #fff;
}
#sonaar-player .srp_ext_header button.tgp-sim-btn--heart-ext svg { width: 26px; height: 26px; }
#sonaar-player .srp_ext_header button.tgp-sim-btn--heart-ext:active { transform: translateY(-50%) scale(0.92); }
#sonaar-player .srp_ext_header button.tgp-sim-btn--heart-ext.is-on { color: #ef4444 !important; }

/* track page, mobile cover actions: same bare 36px glyph as the heart and share beside it */
.tgp-page .tgp-cover-actions button.tgp-sim-btn--coveract.tgp-cover-btn svg { width: 22px !important; height: 22px !important; }

/* track page toolbar: Save / Share / Similar, same 36px square */
.tgp-page .tgp-hero__toolbar button.tgp-sim-btn--toolbar.tgp-toolbar-btn { border-radius: 10px !important; }
.tgp-page .tgp-hero__toolbar button.tgp-sim-btn--toolbar.tgp-toolbar-btn svg { width: 16px; height: 16px; }
.tgp-page .tgp-hero__toolbar button.tgp-sim-btn--toolbar.tgp-toolbar-btn::before { border-radius: 10px; }

/* ───────── tooltip ───────── */
.tgp-sim-tip {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 2147483000;
	padding: 6px 10px;
	border-radius: 8px;
	background: #0f0f13;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	color: #fafafa;
	font: 600 11.5px/1.3 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s ease;
}
.tgp-sim-tip.is-on { opacity: 1; }
.tgp-sim-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background: #0f0f13;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transform: translateX(-50%) rotate(45deg);
}
.tgp-sim-tip.is-below::after { bottom: auto; top: -5px; transform: translateX(-50%) rotate(-135deg); }

/* ───────── modal ───────── */
html.tgp-sim-lock, html.tgp-sim-lock body { overflow: hidden !important; }

.tgp-sim-modal { position: fixed; inset: 0; z-index: 99990; display: none; }
.tgp-sim-modal.is-open { display: block; }
.tgp-sim-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 10, 0.78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: tgpSimFade 0.18s ease;
}
.tgp-sim-panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(760px, calc(100% - 32px));
	max-height: min(84vh, 860px);
	display: flex;
	flex-direction: column;
	background: #15151b;
	background-image: linear-gradient(180deg, #1a1a22 0%, #111116 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	color: #fafafa;
	font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	overflow: hidden;
	animation: tgpSimIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* the sticky player stays above the overlay so the track keeps its controls; the panel clears it */
html.tgp-sim-lock #sonaar-player { z-index: 99995 !important; }
body.continuousPlayer-enable .tgp-sim-panel { top: calc((100vh - 90px) / 2); max-height: min(calc(100vh - 90px - 40px), 860px); }
@keyframes tgpSimFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tgpSimIn { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

button.tgp-sim-close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #9ca3af;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}
button.tgp-sim-close:hover { color: #fafafa; background: rgba(255, 255, 255, 0.1); }
/* refresh: next twelve matches; hidden when there is only one page */
button.tgp-sim-refresh {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 18px;
	right: 62px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #9ca3af;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}
button.tgp-sim-refresh.is-on, button.tgp-sim-refresh.is-loading { display: inline-flex; }
button.tgp-sim-refresh:hover { color: #fafafa; background: rgba(255, 255, 255, 0.1); }
button.tgp-sim-refresh svg { display: block; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1); }
button.tgp-sim-refresh:hover svg { transform: rotate(90deg); }
@keyframes tgpsimSpinSlow { to { transform: rotate(360deg); } }
button.tgp-sim-refresh.is-loading svg { animation: tgpsimSpinSlow 0.8s linear infinite; }
button.tgp-sim-foot-more {
	all: unset;
	color: #c4b5fd;
	font-weight: 700;
	cursor: pointer;
	border-bottom: 1px solid rgba(196, 181, 253, 0.4);
}
button.tgp-sim-foot-more:hover { color: #fff; border-color: #fff; }

.tgp-sim-head { flex: none; padding: 26px 70px 20px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tgp-sim-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 18px 18px; overscroll-behavior: contain; }
.tgp-sim-body::-webkit-scrollbar { width: 8px; }
.tgp-sim-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }

/* seed */
.tgpsim-seed { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tgpsim-seed-cover { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: #222; }
.tgpsim-seed-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tgpsim-eyebrow { color: #a78bfa; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
a.tgpsim-seed-title {
	color: #fafafa !important;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.tgpsim-seed-title:hover { color: #c4b5fd !important; }
.tgpsim-seed-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
a.tgpsim-seed-vendor { color: #9ca3af !important; font-size: 13px; text-decoration: none !important; }
a.tgpsim-seed-vendor:hover { color: #d4d4d8 !important; }

/* chips */
.tgpsim-chips { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
.tgpsim-chip {
	padding: 3px 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
	color: #a1a1aa;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1.4;
}
.tgpsim-chip.is-match { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; }
.tgpsim-chip--key { text-transform: none; letter-spacing: 0.02em; font-size: 11px; }
.tgpsim-chip--tag::before { content: "#"; opacity: 0.6; margin-right: 1px; }
.tgpsim-chips--inline { display: none; }

/* rows (My Feed design) */
.tgp-sim-rows { display: flex; flex-direction: column; }
.tgpsim-row {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto 188px;
	align-items: center;
	gap: 13px;
	padding: 9px 10px;
	border-radius: 12px;
	min-width: 0;
	transition: background 0.15s ease;
}
@media (hover: hover) { .tgpsim-row:hover { background: rgba(255, 255, 255, 0.04); } }

button.tgpsim-play {
	all: unset;
	position: relative;
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: #222;
}
.tgpsim-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgpsim-play-ic {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 12, 0.55);
	color: #fff;
}
@media (hover: hover) { .tgpsim-row:hover .tgpsim-play-ic--play { display: flex; } }
.tgpsim-row.is-playing .tgpsim-play-ic--play { display: none !important; }
@media (hover: hover) { .tgpsim-row.is-playing:hover .tgpsim-play-ic--pause { display: flex; } }
.tgpsim-eq {
	position: absolute;
	inset: 0;
	display: none;
	align-items: flex-end;
	justify-content: center;
	gap: 2.5px;
	padding-bottom: 9px;
	background: rgba(10, 10, 12, 0.5);
}
.tgpsim-row.is-playing .tgpsim-eq { display: flex; }
@media (hover: hover) { .tgpsim-row.is-playing:hover .tgpsim-eq { display: none; } }
.tgpsim-eq i { width: 3px; border-radius: 2px; background: #c4b5fd; height: 10px; animation: tgpsimEq 0.9s ease-in-out infinite; }
.tgpsim-eq i:nth-child(2) { animation-delay: 0.22s; height: 16px; }
.tgpsim-eq i:nth-child(3) { animation-delay: 0.44s; height: 7px; }
@keyframes tgpsimEq { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

.tgpsim-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tgpsim-chips--col { flex-wrap: nowrap; justify-content: flex-end; }
a.tgpsim-title {
	color: #fafafa !important;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.tgpsim-title:hover { color: #c4b5fd !important; }
.tgpsim-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
a.tgpsim-vendor { color: #9ca3af !important; font-size: 12px; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tgpsim-vendor:hover { color: #d4d4d8 !important; }

.tgpsim-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; width: 188px; }
button.tgpsim-heart,
button.tgpsim-pivot {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #71717a;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
button.tgpsim-heart svg, button.tgpsim-pivot svg { display: block; }
/* the theme's global button rules paint a purple fill on these: pin them off in every state */
button.tgpsim-heart, button.tgpsim-heart:hover, button.tgpsim-heart:focus, button.tgpsim-heart:active, button.tgpsim-heart.is-on,
button.tgpsim-pivot, button.tgpsim-pivot:hover, button.tgpsim-pivot:focus, button.tgpsim-pivot:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
}
button.tgpsim-heart:hover { color: #f87171; transform: scale(1.08); }
button.tgpsim-heart.is-on { color: #ef4444; }
button.tgpsim-heart.is-on svg { fill: currentColor; }
button.tgpsim-heart.is-busy { opacity: 0.6; }
@keyframes tgpsimPop { 0% { transform: scale(1); } 25% { transform: scale(0.72); } 55% { transform: scale(1.32); } 75% { transform: scale(0.92); } 100% { transform: scale(1); } }
button.tgpsim-heart.tgpsim-pop svg { animation: tgpsimPop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.4); }
button.tgpsim-pivot { position: relative; }
button.tgpsim-pivot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); opacity: 0; transform: scale(0.55); transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.25); }
button.tgpsim-pivot:hover::before { opacity: 1; transform: scale(1); }
button.tgpsim-pivot:hover { color: #fff; }
button.tgpsim-pivot svg { position: relative; }
button.tgpsim-pivot svg circle { transform-box: fill-box; transform-origin: center; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.25); }
button.tgpsim-pivot:hover svg circle:first-child { transform: translateX(-1.6px); }
button.tgpsim-pivot:hover svg circle:last-child { transform: translateX(1.6px); }

/* add to cart: the site's round price pill, brand purple; in cart = outlined purple with a check */
button.tgpsim-buy {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	width: 112px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid #6540f5;
	background: #6540f5;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(101, 64, 245, 0.25);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
button.tgpsim-buy:hover { background: #7a5bff; border-color: #7a5bff; box-shadow: 0 6px 16px rgba(101, 64, 245, 0.35); }
button.tgpsim-buy:active { transform: scale(0.97); }
.tgpsim-buy-add, .tgpsim-buy-in { display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.15s ease; }
.tgpsim-buy-add svg { flex: none; opacity: 0.9; }
.tgpsim-buy-in { display: none; }
.tgpsim-price { display: inline-flex; align-items: baseline; gap: 6px; }
.tgpsim-price del { color: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: 12px; text-decoration: line-through; }
.tgpsim-price ins { text-decoration: none; }
.tgpsim-price .woocommerce-Price-currencySymbol { font-weight: 700; }
button.tgpsim-buy.is-incart { background: rgba(101, 64, 245, 0.14); border-color: rgba(167, 139, 250, 0.55); color: #c4b5fd; box-shadow: none; }
button.tgpsim-buy.is-incart .tgpsim-buy-add { display: none; }
button.tgpsim-buy.is-incart .tgpsim-buy-in { display: inline-flex; }
button.tgpsim-buy.is-incart:hover { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }
button.tgpsim-buy.is-busy .tgpsim-buy-add, button.tgpsim-buy.is-busy .tgpsim-buy-in { opacity: 0; visibility: hidden; }
.tgpsim-buy-spin {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	display: none;
	animation: tgpsimSpin 0.7s linear infinite;
}
button.tgpsim-buy.is-busy .tgpsim-buy-spin { display: block; }
@keyframes tgpsimSpin { to { transform: rotate(360deg); } }

.tgp-sim-foot { margin: 14px 10px 4px; color: #71717a; font-size: 12px; }

/* empty / loading */
.tgp-sim-empty { padding: 56px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.tgp-sim-empty strong { font-size: 16px; color: #fafafa; }
.tgp-sim-empty span { color: #9ca3af; }

.tgp-sim-head-skel { display: flex; align-items: center; gap: 16px; }
.tgp-sim-head-skel > i { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.tgp-sim-head-skel span { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tgp-sim-head-skel span i { height: 12px; border-radius: 6px; }
.tgp-sim-skel { display: flex; align-items: center; gap: 13px; padding: 9px 10px; }
.tgp-sim-skel-cover { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.tgp-sim-skel-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tgp-sim-skel-lines i { height: 10px; border-radius: 5px; }
.tgp-sim-skel-pill { width: 54px; height: 12px; border-radius: 6px; flex: none; }
.tgp-sim-head-skel i, .tgp-sim-skel i {
	display: block;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
	background-size: 200% 100%;
	animation: tgpsimShimmer 1.3s linear infinite;
}
@keyframes tgpsimShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* hidden engines: off-screen, never display:none (Sonaar must initialise them) */
#tgpsim-engine, #tgpsim-engine-hold {
	position: absolute !important;
	left: -99999px !important;
	top: 0 !important;
	width: 640px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* ───────── mobile: bottom sheet, two-line rows ───────── */
@media (max-width: 640px) {
	.tgp-sim-panel {
		left: 0;
		top: auto;
		bottom: 0;
		transform: none;
		width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 22px 22px 0 0;
		animation: tgpSimUp 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
	}
	body.continuousPlayer-enable .tgp-sim-panel { top: auto; bottom: var(--tgp-sim-player-h, 72px); max-height: calc(88dvh - var(--tgp-sim-player-h, 72px)); }
	@keyframes tgpSimUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	button.tgp-sim-close { top: 14px; right: 14px; }
	button.tgp-sim-refresh { top: 14px; right: 58px; }
	.tgp-sim-head { padding: 20px 60px 14px 18px; }
	.tgp-sim-body { padding: 6px 10px 20px; }
	.tgpsim-seed { gap: 12px; }
	.tgpsim-seed-cover { width: 52px; height: 52px; border-radius: 10px; }
	a.tgpsim-seed-title { font-size: 17px; white-space: normal; line-height: 1.25; }
	.tgpsim-seed-sub { gap: 6px 8px; }

	/* row: cover | title, producer | heart, price  — chips wrap on their own line under the title */
	.tgpsim-row {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) auto;
		grid-template-areas: "cover main actions" "cover chips chips";
		column-gap: 11px;
		row-gap: 6px;
		align-items: center;
		padding: 10px 6px;
		overflow: hidden;
	}
	button.tgpsim-play { grid-area: cover; width: 44px; height: 44px; align-self: start; }
	.tgpsim-main { grid-area: main; min-width: 0; }
	a.tgpsim-title { font-size: 14px; }
	.tgpsim-sub { gap: 6px; }
	.tgpsim-chips--inline { display: none; }
	.tgpsim-chips--col { grid-area: chips; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; max-width: 100%; min-width: 0; }
	.tgpsim-chip { font-size: 9.5px; padding: 3px 7px; }
	.tgpsim-actions { grid-area: actions; width: auto; gap: 2px; }
	button.tgpsim-heart, button.tgpsim-pivot { width: 30px; height: 30px; }
	button.tgpsim-pivot svg { width: 17px; height: 17px; }
	button.tgpsim-buy { height: 32px; width: auto; min-width: 0; padding: 0 12px; font-size: 12.5px; }
	.tgpsim-price del { font-size: 11px; }
	.tgp-sim-foot { margin: 12px 6px 0; font-size: 11.5px; }
}
@media (max-width: 360px) {
	.tgpsim-row { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 9px; }
	button.tgpsim-play { width: 40px; height: 40px; }
	button.tgpsim-buy { padding: 0 10px; font-size: 12px; }
}
