body.page-template-page-top-smartphone,
body.page-template-page-top-car,
body.page-template-page-top-motor,
body.page-template-page-top-smartphone #main-content {
	background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 22%, #eef6f8 100%);
}

body.page-template-page-top-car #main-content {
	background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 22%, #eef6f8 100%);
}

body.page-template-page-top-motor #main-content {
	background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 22%, #eef6f8 100%);
}

.top-smartphone-page {
	padding-bottom: 48px;
}

.top-smartphone-page__wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
    margin-inline: auto;
}

.top-smartphone-hero {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 0.0fr);
	gap: 24px;
	padding: 28px;
	border-radius: 22px;
	background:
		radial-gradient(circle at top right, rgba(14, 116, 144, 0.18), transparent 34%),
		linear-gradient(135deg, #0f172a 0%, #12364a 54%, #0e7490 100%);
	color: #f8fafc;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.top-smartphone-kicker {
	margin: 0 0 10px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.72);
}

.top-smartphone-title {
	margin: 0;
	color: #fff;
}

.top-smartphone-summary {
	margin: 12px 0 0;
	max-width: 98%;
	line-height: 1.7;
	color: rgba(226, 232, 240, 0.88);
}

.top-smartphone-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	grid-column: 1 / -1;
}

.top-smartphone-stat-card {
	display: grid;
	gap: 4px;
	align-content: start;
	padding: 18px;
	border: 1px solid rgba(226, 232, 240, 0.14);
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.22);
	backdrop-filter: blur(10px);
}

.top-smartphone-stat-card .material-icons {
	font-size: 1.25rem;
	color: #7dd3fc;
}

.top-smartphone-stat-card strong {
	font-size: 1.05rem;
	color: #fff;
}

.top-smartphone-stat-card small {
	color: rgba(226, 232, 240, 0.78);
}

.top-smartphone-aspect-tabs {
	margin-bottom: 0;
	padding: 12px;
	border: 1px solid #d7e7ec;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(8px);
}

.top-smartphone-aspect-tabs .leaderboard-tab-btn {
	text-decoration: none;
}

.top-smartphone-mobile-controls {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.top-smartphone-mobile-field {
	display: grid;
	gap: 6px;
}

.top-smartphone-mobile-field label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
}

.top-smartphone-mobile-field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	font-size: 0.96rem;
}

.top-smartphone-price-rail {
	padding: 6px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid #dbe7ea;
}

.top-smartphone-price-rail__inner {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px;
	scrollbar-width: thin;
	scrollbar-color: #94a3b8 transparent;
}

.top-smartphone-price-chip {
	flex: 0 0 auto;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid #d5e5ea;
	background: #fff;
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-smartphone-price-chip:hover {
	transform: translateY(-1px);
	border-color: #38bdf8;
	box-shadow: 0 10px 22px rgba(14, 116, 144, 0.12);
}

.top-smartphone-price-chip.is-active {
	border-color: #0e7490;
	background: linear-gradient(135deg, #0e7490 0%, #0284c7 100%);
	color: #fff;
}

.top-smartphone-ranking-section {
	margin-top: 0;
}

.top-smartphone-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.top-smartphone-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.top-smartphone-section-note {
	margin: 0;
	color: #64748b;
	line-height: 1.6;
}

.phone-leaderboard-section {
	margin-top: 0;
	background: #f8f9fa;
	border-radius: 18px;
	padding: 30px;
	border: 1px solid #dce8ec;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.leaderboard-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0;
}

.leaderboard-tab-btn {
	background: none;
	border: none;
	padding: 10px 18px;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	color: #6c757d;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	margin-bottom: -2px;
	border-bottom: 2px solid transparent;
}

.leaderboard-tab-btn:hover {
	color: #0E7490;
	background: rgba(14, 116, 144, 0.05);
}

.leaderboard-tab-btn.active {
	color: #0E7490;
	border-bottom: 2px solid #0E7490;
	background: rgba(14, 116, 144, 0.07);
}

.leaderboard-tab-btn .material-icons {
	font-size: 1.1rem;
}

.leaderboard-tab-panel {
	display: block;
}

.leaderboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.leaderboard-item {
	display: flex;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	gap: 12px;
	transition: background 0.2s ease;
}

.leaderboard-item:last-child {
	border-bottom: none;
}

.leaderboard-item:hover {
	background: #f0f8ff;
}

.leaderboard-rank {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.84rem;
	flex-shrink: 0;
	background: #e9ecef;
	color: #6c757d;
}

.leaderboard-rank.rank-1 { background: #FFD700; color: #7a5c00; }
.leaderboard-rank.rank-2 { background: #C0C0C0; color: #444; }
.leaderboard-rank.rank-3 { background: #CD7F32; color: #fff; }

.leaderboard-info {
	flex: 1;
	min-width: 0;
}

.leaderboard-name {
	font-weight: 600;
	color: #2c3e50;
	font-size: 0.97rem;
	line-height: 1.35;
}

.leaderboard-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.leaderboard-name a:hover {
	color: #0E7490;
}

.leaderboard-meta {
	font-size: 0.8rem;
	color: #6c757d;
	margin-top: 4px;
	line-height: 1.5;
}

.leaderboard-col-header {
	display: flex;
	align-items: center;
	padding: 4px 12px 6px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9ca3af;
	border-bottom: 1px solid #e9ecef;
	margin-bottom: 4px;
}

.leaderboard-col-header .lch-rank {
	width: 32px;
	flex-shrink: 0;
	text-align: center;
}

.leaderboard-col-header .lch-name {
	flex: 1;
	padding-left: 8px;
}

.leaderboard-col-header .lch-index {
	flex-shrink: 0;
	min-width: 100px;
	text-align: right;
	color: #0E7490;
}

.leaderboard-score-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.leaderboard-score {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0E7490;
}

.leaderboard-bar {
	width: 88px;
	height: 5px;
	background: #e9ecef;
	border-radius: 3px;
	overflow: hidden;
}

.leaderboard-bar-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #0E7490, #0284C7);
	border-radius: 3px;
	transition: width 0.55s ease;
}

.leaderboard-empty {
	text-align: center;
	padding: 34px 20px;
	color: #6c757d;
	font-size: 0.95rem;
}

.leaderboard-empty .material-icons {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 10px;
}

@media (max-width: 960px) {
	.top-smartphone-hero {
		grid-template-columns: 1fr;
	}

	.top-smartphone-section-heading {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 720px) {
	.top-smartphone-aspect-tabs {
		display: none;
	}

	.top-smartphone-mobile-controls {
		display: grid;
	}

	.top-smartphone-price-rail {
		display: none;
	}

	.top-smartphone-hero__stats {
		grid-template-columns: 1fr;
	}

	.phone-leaderboard-section {
		padding: 22px 18px;
	}
}

@media (max-width: 600px) {
	.top-smartphone-hero {
		padding: 22px 18px;
		border-radius: 18px;
	}

	.top-smartphone-summary {
		line-height: 1.6;
	}

	.top-smartphone-mobile-controls {
		grid-template-columns: 1fr;
	}

	.leaderboard-item {
		align-items: flex-start;
	}

	.leaderboard-score-wrap {
		min-width: 70px;
	}

	.leaderboard-bar {
		width: 60px;
	}

	.leaderboard-name {
		font-size: 0.9rem;
	}

	.leaderboard-meta {
		font-size: 0.76rem;
	}
}
