/* =====================================================================
   SkankRadio Rankings / Leaderboard Page (1.14.1)
   [skankradio_leaderboard] shortcode at /rankings/
   Prefix: .srl-*

   Colors:
     #ffffff  — primary text (titles, track names)
     #16BC0E  — green: borders, secondary text (artist names, labels,
                rank numbers, "SCORE", subtitle)
     #F9AB03  — orange: hover, active filter
     #1a1a1a  — dark surface (cover placeholders, card backgrounds)
   ===================================================================== */

.srl-page {
	max-width: 1600px;
	margin: 25px auto 80px;
	padding: 0 20px;
	color: #ffffff;
	font-family: inherit;
}

/* v1.16.12: Hello Elementor theme clamps .site-main and .page-content
   to a narrower width (typically ~1140px) via theme.css. The body
   already carries .sr-page-rankings on this page only, so we widen
   the theme's wrappers just here. Specificity (0,2,1) beats the
   theme's .site-main (0,1,0) without needing !important. */
body.sr-page-rankings .site-main,
body.sr-page-rankings .page-content {
	max-width: 1600px;
	width: 100%;
}

/* === HEADER === */
.srl-header { margin-bottom: 40px; }
.srl-title {
	margin: 0;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 800;
	color: #F9AB03;
	letter-spacing: -0.5px;
	line-height: 1;
}
.srl-subtitle {
	margin: 8px 0 24px;
	color: #16BC0E;
	font-size: 15px;
}

/* === FILTERS === */
.srl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
}
.srl-filter-group {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.srl-filter-btn {
	display: inline-block;
	padding: 9px 22px;
	background: transparent;
	color: #ffffff;
	border: 2px solid #16BC0E;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.srl-filter-btn:hover,
.srl-filter-btn.is-active {
	color: #F9AB03;
	border-color: #F9AB03;
}

.srl-filter-genre {
	align-items: center;
}
.srl-filter-select {
	background: transparent;
	border: 2px solid #16BC0E;
	color: #ffffff;
	padding: 9px 38px 9px 22px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-family: inherit;
	cursor: pointer;
	min-width: 180px;
	/* Kill native styling so the select matches the pill buttons */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	/* Custom green chevron — repositioned to the right padding */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316BC0E'><path d='M5 8l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 14px;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.srl-filter-select:hover,
.srl-filter-select:focus {
	outline: none;
	border-color: #F9AB03;
	color: #F9AB03;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F9AB03'><path d='M5 8l5 5 5-5z'/></svg>");
}
/* Options in the open dropdown — most browsers honor these
   (Chrome, Firefox, Edge). Safari ignores option bg-color on
   some macOS versions; rare combo, acceptable fallback. */
.srl-filter-select option {
	background-color: #1a1a1a;
	color: #ffffff;
	font-weight: 600;
	text-transform: none;
}
.srl-filter-select option:checked {
	background-color: #16BC0E;
	color: #1a1a1a;
}

/* === EMPTY === */
.srl-empty {
	text-align: center;
	padding: 60px 20px;
	color: #16BC0E;
	font-style: italic;
}

/* === PODIUM ===
   All three cards uniform width, same border treatment. Only the rank
   badge color (gold/silver/bronze) signals placement. */
.srl-podium {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: stretch;
	margin-bottom: 48px;
}
.srl-podium[data-count="1"] {
	grid-template-columns: 1fr;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}
.srl-podium[data-count="2"] {
	grid-template-columns: 1fr 1fr;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* v1.16.8: wrapper containing the linked card + a sibling buy-button slot,
   so the buy button is visually inside the card area but not nested
   inside the card's <a> (which would be invalid HTML).
   v1.16.9: border + hover behavior moved here from .srl-podium-card so
   the buy button slot is inside the bordered area. */
.srl-podium-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: transparent;
	border: 2px solid #16BC0E;
	border-radius: 14px;
	overflow: hidden;
	padding-bottom: 14px;
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.srl-podium-wrapper:hover {
	border-color: #F9AB03;
	transform: translateY(-3px);
}
.srl-podium-buy {
	display: flex;
	justify-content: center;
	padding: 0 14px;
}

.srl-podium-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

/* Rank badges — orange default (attention-grabbing) → green on
   hover, the inverse of the rest of the card. */
.srl-podium-rank {
	padding: 8px 16px;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 1px;
	background: #F9AB03;
	color: #1a1a1a;
	transition: background-color 0.18s ease;
}
.srl-podium-card:hover .srl-podium-rank {
	background: #16BC0E;
}

.srl-podium-cover {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #1a1a1a;
}
.srl-podium-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.srl-podium-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a1a;
	color: #16BC0E;
	font-size: 48px;
}
.srl-podium-meta {
	padding: 16px 18px 20px;
}
.srl-podium-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.srl-podium-card:hover .srl-podium-title { color: #F9AB03; }
.srl-podium-artist {
	margin: 0 0 10px;
	font-size: 13px;
	color: #16BC0E;
}
.srl-podium-card:hover .srl-podium-artist { color: #F9AB03; }

.srl-podium-score {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 8px;
	padding-top: 12px;
	border-top: 2px solid #16BC0E;
}
.srl-score-value {
	font-size: 22px;
	font-weight: 800;
	color: #F9AB03;
}
.srl-podium-card:hover .srl-score-value { color: #16BC0E; }
.srl-score-label {
	font-size: 11px;
	color: #16BC0E;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}
.srl-podium-card:hover .srl-score-label { color: #F9AB03; }

/* === LIST === */
.srl-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.srl-row {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: transparent;
	border: 2px solid #16BC0E;
	border-radius: 10px;
	transition: border-color 0.15s ease;
}
.srl-row:hover { border-color: #F9AB03; }
.srl-row-link {
	flex: 1;
	display: grid;
	grid-template-columns: 60px 56px 1fr auto;
	gap: 14px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}
.srl-row-rank {
	font-size: 18px;
	font-weight: 800;
	color: #F9AB03;
	letter-spacing: 0.5px;
}
.srl-row-link:hover .srl-row-rank { color: #16BC0E; }
.srl-row-cover {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #1a1a1a;
	display: block;
}
.srl-row-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.srl-row-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a1a;
	color: #16BC0E;
	font-size: 20px;
}
.srl-row-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.srl-row-title {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.srl-row-link:hover .srl-row-title { color: #F9AB03; }
.srl-row-artist {
	font-size: 13px;
	color: #16BC0E;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.srl-row-link:hover .srl-row-artist { color: #F9AB03; }
.srl-row-score {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	white-space: nowrap;
}
.srl-row-score-value {
	font-size: 18px;
	font-weight: 800;
	color: #F9AB03;
}
.srl-row-link:hover .srl-row-score-value { color: #16BC0E; }
.srl-row-score-label {
	font-size: 10px;
	color: #16BC0E;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}
.srl-row-link:hover .srl-row-score-label { color: #F9AB03; }

/* ── Buy / Free-download button (v1.16.9) ────────────────
   Visual styling — background/border/color/hover swap — comes from the
   shared green-kit selector lists in core.css (where .srl-buy-btn is
   registered alongside .srt-buy-btn, .srr-buy-btn, etc.). The rules
   below only handle sizing and layout within the row + podium slots.
*/
.srl-row-buy {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-width: 110px;
}
.srl-buy-btn,
a.srl-buy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	white-space: nowrap;
	line-height: 1;
	cursor: pointer;
}
/* WC's injected "View cart" link that appears after add-to-cart. */
.srl-row-buy a.added_to_cart,
.srl-podium-buy a.added_to_cart {
	display: inline-block;
	margin-top: 6px;
	color: #F9AB03 !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.srl-row-buy a.added_to_cart:hover,
.srl-podium-buy a.added_to_cart:hover {
	color: #16BC0E !important;
	text-decoration: underline;
}

/* === MOBILE === */
@media (max-width: 768px) {
	.srl-page { padding: 0 14px; margin: 20px auto 60px; }
	.srl-podium {
		grid-template-columns: 1fr;
		max-width: 360px;
		margin-left: auto;
		margin-right: auto;
		gap: 14px;
	}
	.srl-podium[data-count="2"] { grid-template-columns: 1fr; }
	.srl-row {
		flex-direction: column;
		gap: 6px;
	}
	.srl-row-buy { min-width: 0; }
	.srl-row-link {
		grid-template-columns: 36px 48px 1fr auto;
		gap: 10px;
		padding: 8px 12px;
	}
	.srl-row-rank { font-size: 15px; }
	.srl-row-cover { width: 48px; height: 48px; }
	.srl-row-title { font-size: 14px; }
	.srl-row-score-value { font-size: 16px; }
}

/* === PAGINATION ===
   Mirror the time-period pill buttons: transparent bg, 2px green border,
   white text → orange on hover. Active page = orange filled. */
.srl-pagination {
	margin: 40px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}
.srl-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 8px 16px;
	background: transparent;
	color: #ffffff;
	border: 2px solid #16BC0E;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease;
}
a.srl-page-btn:hover {
	color: #F9AB03;
	border-color: #F9AB03;
}
.srl-page-btn.is-active {
	color: #F9AB03;
	border-color: #F9AB03;
}
.srl-page-disabled {
	color: #16BC0E;
	opacity: 0.35;
	cursor: not-allowed;
}
.srl-page-ellipsis {
	color: #16BC0E;
	padding: 0 4px;
	font-weight: 700;
	letter-spacing: 2px;
}

@media (max-width: 768px) {
	.srl-page-btn { min-width: 38px; padding: 7px 12px; font-size: 13px; }
}
