.btl-toplist {
	--btl-accent: #f59e0b;
	--btl-button: #dc2626;
	--btl-button-text: #fff;
	--btl-border: #e5e7eb;
	--btl-muted: #64748b;
	--btl-surface: #fff;
	--btl-text: #172033;
	box-sizing: border-box;
	width: 100%;
	margin: 1.5rem 0;
	color: var(--btl-text);
	font-family: inherit;
}

.btl-toplist *,
.btl-toplist *::before,
.btl-toplist *::after {
	box-sizing: border-box;
}

.btl-title {
	margin: 0 0 1rem;
	color: var(--btl-text);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: 1.25;
}

.btl-list {
	display: grid;
	gap: 12px;
}

.btl-card {
	position: relative;
	display: grid;
	grid-template-columns: 48px 130px minmax(0, 1fr) minmax(130px, auto);
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--btl-border);
	border-radius: 12px;
	background: var(--btl-surface);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.btl-card.is-featured {
	border-color: var(--btl-accent);
	box-shadow: 0 7px 24px rgba(15, 23, 42, 0.1);
}

.btl-without-rank .btl-card {
	grid-template-columns: 130px minmax(0, 1fr) minmax(130px, auto);
}

.btl-without-logo .btl-card {
	grid-template-columns: 48px minmax(0, 1fr) minmax(130px, auto);
}

.btl-without-rank.btl-without-logo .btl-card {
	grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
}

.btl-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	font-size: 1rem;
	font-weight: 800;
}

.btl-card:first-child .btl-rank {
	background: var(--btl-accent);
	color: #fff;
}

.btl-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 78px;
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
}

.btl-logo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.btl-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e2e8f0, #f8fafc);
	color: #475569;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.btl-content {
	min-width: 0;
}

.btl-name-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.btl-name {
	margin: 0;
	color: var(--btl-text);
	font-size: 1.1rem;
	line-height: 1.3;
}

.btl-featured {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--btl-accent) 16%, white);
	color: #92400e;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
}

.btl-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	color: #334155;
	font-size: 0.86rem;
}

.btl-stars {
	position: relative;
	display: inline-block;
	overflow: hidden;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
}

.btl-stars-base {
	color: #dbe1e8;
}

.btl-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--btl-accent);
	white-space: nowrap;
}

.btl-description {
	margin-top: 7px;
	color: var(--btl-muted);
	font-size: 0.93rem;
	line-height: 1.55;
}

.btl-description p {
	margin: 0;
}

.btl-description p + p {
	margin-top: 0.5rem;
}

.btl-disclaimer {
	margin: 14px 0 0 !important;
	color: var(--btl-muted) !important;
	font-size: 0.88rem !important;
	font-style: italic;
	line-height: 1.55 !important;
}

.btl-action {
	display: flex;
	justify-content: flex-end;
}

.btl-button {
	--btl-item-button: var(--btl-button);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 128px;
	min-height: 46px;
	overflow: hidden;
	isolation: isolate;
	padding: 0.72rem 1.2rem;
	border: 0;
	border-radius: 8px;
	background: var(--btl-item-button);
	box-shadow: 0 7px 16px color-mix(in srgb, var(--btl-item-button) 30%, transparent);
	color: var(--btl-button-text) !important;
	font-size: 0.94rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
	-webkit-tap-highlight-color: transparent;
}

.btl-button span {
	position: relative;
	z-index: 2;
}

.btl-button:hover {
	filter: brightness(0.92);
	color: var(--btl-button-text) !important;
	transform: translateY(-2px);
}

.btl-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--btl-item-button) 38%, transparent);
	outline-offset: 3px;
}

.btl-animation-pulse {
	animation: btl-pulse 2s ease-in-out infinite;
}

.btl-animation-shine::before {
	position: absolute;
	z-index: 1;
	top: -40%;
	left: 0;
	width: 38%;
	height: 180%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	content: "";
	transform: translateX(-180%) rotate(12deg);
	animation: btl-shine 2.4s ease-in-out infinite;
}

.btl-animation-bounce {
	animation: btl-bounce 2.2s ease-in-out infinite;
}

@keyframes btl-pulse {
	0%, 100% {
		box-shadow: 0 7px 16px color-mix(in srgb, var(--btl-item-button) 24%, transparent);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 7px 24px color-mix(in srgb, var(--btl-item-button) 48%, transparent);
		transform: scale(1.035);
	}
}

@keyframes btl-shine {
	0%, 18% { transform: translateX(-180%) rotate(12deg); }
	68%, 100% { transform: translateX(390%) rotate(12deg); }
}

@keyframes btl-bounce {
	0%, 72%, 100% { transform: translateY(0); }
	80% { transform: translateY(-5px); }
	88% { transform: translateY(1px); }
	94% { transform: translateY(-2px); }
}

.btl-theme-compact .btl-list {
	gap: 8px;
}

.btl-theme-compact .btl-card {
	grid-template-columns: 40px 96px minmax(0, 1fr) minmax(118px, auto);
	gap: 12px;
	padding: 12px 14px;
}

.btl-theme-compact.btl-without-rank .btl-card {
	grid-template-columns: 96px minmax(0, 1fr) minmax(118px, auto);
}

.btl-theme-compact.btl-without-logo .btl-card {
	grid-template-columns: 40px minmax(0, 1fr) minmax(118px, auto);
}

.btl-theme-compact.btl-without-rank.btl-without-logo .btl-card {
	grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
}

.btl-theme-compact .btl-rank {
	width: 36px;
	height: 36px;
}

.btl-theme-compact .btl-logo {
	width: 96px;
	height: 60px;
}

.btl-theme-compact .btl-description {
	display: none;
}

.btl-notice {
	padding: 10px 12px;
	border-left: 4px solid #dba617;
	background: #fff8e5;
}

@media (max-width: 760px) {
	.btl-card,
	.btl-theme-compact .btl-card {
		grid-template-columns: 42px minmax(90px, 112px) minmax(0, 1fr);
		align-items: start;
		gap: 12px;
		padding: 14px;
	}

	.btl-without-rank .btl-card,
	.btl-theme-compact.btl-without-rank .btl-card {
		grid-template-columns: minmax(90px, 112px) minmax(0, 1fr);
	}

	.btl-without-logo .btl-card,
	.btl-theme-compact.btl-without-logo .btl-card {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.btl-without-rank.btl-without-logo .btl-card,
	.btl-theme-compact.btl-without-rank.btl-without-logo .btl-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.btl-logo,
	.btl-theme-compact .btl-logo {
		width: 100%;
		height: 68px;
	}

	.btl-content {
		align-self: center;
	}

	.btl-action {
		grid-column: 2 / -1;
		justify-content: stretch;
	}

	.btl-without-rank .btl-action,
	.btl-without-logo .btl-action,
	.btl-without-rank.btl-without-logo .btl-action {
		grid-column: 1 / -1;
	}

	.btl-button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.btl-card,
	.btl-theme-compact .btl-card {
		grid-template-columns: 38px 82px minmax(0, 1fr);
		gap: 9px;
		padding: 12px;
	}

	.btl-without-rank .btl-card,
	.btl-theme-compact.btl-without-rank .btl-card {
		grid-template-columns: 82px minmax(0, 1fr);
	}

	.btl-without-logo .btl-card,
	.btl-theme-compact.btl-without-logo .btl-card {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.btl-without-rank.btl-without-logo .btl-card,
	.btl-theme-compact.btl-without-rank.btl-without-logo .btl-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.btl-rank,
	.btl-theme-compact .btl-rank {
		width: 34px;
		height: 34px;
	}

	.btl-logo,
	.btl-theme-compact .btl-logo {
		height: 58px;
	}

	.btl-name {
		font-size: 1rem;
	}

	.btl-description {
		grid-column: 1 / -1;
	}

	.btl-rating {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.btl-action {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btl-button,
	.btl-button::before {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.btl-button:hover {
		transform: none;
	}
}

