/* ==========================================================================
   mxmatch Static Web App - Retro Terminal / Linear Midnight Theme
   Designed for seamless integration into https://www.buggycoder.com
   ========================================================================== */

:root {
	--bg-void: #08090a;
	--bg-carbon: #0f1011;
	--bg-obsidian: #161718;
	--bg-graphite: #23252a;
	--bg-glass: rgba(22, 23, 24, 0.75);
	--bg-card-hover: rgba(35, 37, 42, 0.85);
	
	--text-primary: #f7f7f8;
	--text-secondary: #8a8f98;
	--text-muted: #5e626e;
	
	--accent-indigo: #5e6ad2;
	--accent-cyan: #02b8cc;
	--accent-emerald: #27a644;
	--accent-amber: #f59e0b;
	--accent-rose: #ff3ec8;
	
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-glow: rgba(94, 106, 210, 0.35);
	
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
	
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--max-width: 1080px;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background-color: var(--bg-void);
	color: var(--text-primary);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: radial-gradient(circle at 50% 0%, rgba(94, 106, 210, 0.08), transparent 45%),
	            var(--bg-void);
	background-attachment: fixed;
}

a {
	color: var(--accent-indigo);
	text-decoration: none;
	transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
	color: #9ba5ff;
	text-shadow: 0 0 12px rgba(155, 165, 255, 0.4);
}

.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(20px) saturate(1.8);
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	background: rgba(8, 9, 10, 0.75);
	border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.blog-brand {
	color: var(--text-secondary);
}

.brand-dim {
	color: var(--text-muted);
	font-weight: 400;
}

.brand-divider {
	color: var(--text-muted);
}

.section-brand {
	color: var(--text-primary);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	letter-spacing: -0.02em;
}

.live-dot {
	width: 7px;
	height: 7px;
	background: var(--accent-emerald);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--accent-emerald);
	display: inline-block;
	animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-size: 0.8125rem;
	font-weight: 500;
}

.site-nav a {
	color: var(--text-secondary);
	padding: 0.25rem 0.1rem;
}

.site-nav a:hover,
.site-nav a.active {
	color: var(--text-primary);
}

.site-nav a.active {
	border-bottom: 1px solid var(--accent-indigo);
}

/* ==========================================================================
   Main Layout & Content
   ========================================================================== */

.site-main {
	flex: 1;
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem 1.25rem;
}

.page-title-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-subtle);
}

.page-heading {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--text-primary);
}

.page-subtitle {
	color: var(--text-secondary);
	font-size: 0.9375rem;
	margin-top: 0.25rem;
}

.search-box input {
	background: var(--bg-obsidian);
	border: 1px solid var(--border-subtle);
	color: var(--text-primary);
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-family: var(--font-sans);
	outline: none;
	width: 260px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
	border-color: var(--accent-indigo);
	box-shadow: 0 0 12px rgba(94, 106, 210, 0.25);
}

/* ==========================================================================
   Now Playing Hero Card
   ========================================================================== */

.now-playing-card {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	margin-bottom: 2rem;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
	position: relative;
	overflow: hidden;
}

.now-playing-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(94, 106, 210, 0.4), transparent);
}

.np-cover-box {
	position: relative;
	width: 104px;
	height: 104px;
	flex-shrink: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-carbon);
	border: 1px solid var(--border-subtle);
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.np-cover-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.np-content {
	flex: 1;
	min-width: 0;
}

.np-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.np-heading {
	margin-bottom: 0 !important;
	color: var(--accent-indigo) !important;
}

.np-heading:empty {
	display: none !important;
}

.badge {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	text-transform: uppercase;
}

.live-badge {
	background: rgba(39, 166, 68, 0.15);
	color: #4ade80;
	border: 1px solid rgba(39, 166, 68, 0.35);
}

.idle-badge {
	background: rgba(138, 143, 152, 0.12);
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
}

.np-time {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.np-track-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.np-track-link {
	color: var(--text-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: color 0.15s ease;
}

.np-track-link:hover {
	color: var(--accent-cyan);
}

.track-history-arrow {
	font-size: 0.8125rem;
	color: var(--text-muted);
	transition: transform 0.15s ease, color 0.15s ease;
}

.np-track-link:hover .track-history-arrow {
	transform: translate(2px, -2px);
	color: var(--accent-cyan);
}

.np-artist-name {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin-top: 0.2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.np-artist-name a {
	color: var(--text-primary);
	font-weight: 600;
}

.np-album {
	color: var(--text-muted);
}

.np-footer {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	flex-wrap: wrap;
}

.np-history-cta {
	margin-left: auto;
	font-size: 0.6875rem;
	padding: 0.2rem 0.5rem;
}

.np-status-dot {
	width: 6px;
	height: 6px;
	background: var(--accent-indigo);
	border-radius: 50%;
}

/* Equalizer Wave Animation */
.eq-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
	margin-left: 2px;
}

.eq-bar {
	width: 2px;
	background: var(--accent-emerald);
	border-radius: 1px;
	animation: eq-bounce 1.2s ease-in-out infinite alternate;
}

.bar-1 { height: 8px; animation-delay: 0.1s; }
.bar-2 { height: 14px; animation-delay: 0.3s; }
.bar-3 { height: 6px; animation-delay: 0.5s; }
.bar-4 { height: 11px; animation-delay: 0.2s; }

@keyframes eq-bounce {
	0% { height: 3px; }
	100% { height: 14px; }
}

/* ==========================================================================
   Stats Overview Cards
   ========================================================================== */

.stats-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.stat-card {
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	backdrop-filter: blur(12px);
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.stat-card {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.stat-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.15);
}

a.stat-card:hover {
	border-color: var(--accent-cyan);
	box-shadow: 0 4px 20px rgba(46, 196, 182, 0.12);
}

a.stat-card:hover .stat-label {
	color: var(--accent-cyan);
}

.stat-link-arrow {
	font-size: 0.75rem;
	margin-left: 0.25rem;
	opacity: 0.7;
	display: inline-block;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

a.stat-card:hover .stat-link-arrow {
	opacity: 1;
	transform: translate(2px, -2px);
}

#loved-tracks {
	scroll-margin-top: 5rem;
}

.stat-label {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.stat-value {
	font-size: 1.85rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text-primary);
	line-height: 1.1;
}

.stat-sub {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-top: 0.4rem;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */

.section-container {
	margin-bottom: 3rem;
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-primary);
}

.section-desc {
	font-size: 0.8125rem;
	color: var(--text-secondary);
	margin-top: 0.2rem;
}

.btn-subtle {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--accent-indigo);
	padding: 0.35rem 0.6rem;
	border-radius: var(--radius-sm);
	background: rgba(94, 106, 210, 0.08);
	border: 1px solid rgba(94, 106, 210, 0.18);
	transition: all 0.15s ease;
}

.btn-subtle:hover {
	background: rgba(94, 106, 210, 0.2);
	color: #fff;
	text-shadow: none;
}

/* ==========================================================================
   Chart: Listening Over Time
   ========================================================================== */

.chart-container {
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	backdrop-filter: blur(12px);
}

.large-chart {
	padding: 2rem 1.5rem;
}

.chart-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-axis-info {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.axis-pill {
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 700;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.y-pill {
	background: rgba(94, 106, 210, 0.15);
	color: var(--accent-indigo);
	border: 1px solid rgba(94, 106, 210, 0.3);
}

.x-pill {
	background: rgba(46, 196, 182, 0.15);
	color: var(--accent-cyan);
	border: 1px solid rgba(46, 196, 182, 0.3);
}

.axis-metric-desc strong {
	color: var(--text-primary);
}

.bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 150px;
	padding-top: 15px;
}

.large-chart .bar-chart {
	height: 220px;
}

.bar-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	min-width: 0;
	cursor: pointer;
	position: relative;
}

.bar-hover-val {
	font-family: var(--font-mono);
	font-size: 0.5625rem;
	color: var(--accent-cyan);
	margin-bottom: 4px;
	opacity: 0;
	transform: translateY(2px);
	transition: all 0.15s ease;
	white-space: nowrap;
	pointer-events: none;
}

.bar-col:hover .bar-hover-val {
	opacity: 1;
	transform: translateY(0);
}

.bar-wrap {
	width: 100%;
	flex: 1;
	display: flex;
	align-items: flex-end;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 3px 3px 0 0;
	padding: 0 1px;
}

.bar-fill {
	width: 100%;
	background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo));
	border-radius: 2px 2px 0 0;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.bar-col:hover .bar-fill {
	filter: brightness(1.3) drop-shadow(0 0 6px var(--accent-cyan));
}

.bar-axis-label {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
	margin-top: 6px;
	text-align: center;
	line-height: 1;
}

.year-full {
	display: block;
}

.year-short {
	display: none;
}

@media (max-width: 680px) {
	.year-full {
		display: none;
	}
	.year-short {
		display: block;
	}
}

.chart-x-timeline-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.85rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
}

.timeline-axis-title {
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--text-secondary);
}

.timeline-endpoint {
	color: var(--text-muted);
}

/* ==========================================================================
   Artists Grid
   ========================================================================== */

.artists-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
}

.full-grid {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.25rem;
}

.artist-card {
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.artist-card:hover {
	transform: translateY(-3px);
	border-color: rgba(94, 106, 210, 0.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	text-shadow: none;
}

.artist-card-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--bg-obsidian);
	overflow: hidden;
}

.artist-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.artist-card:hover .artist-card-cover img {
	transform: scale(1.04);
}

.rank-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(8, 9, 10, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-subtle);
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 700;
	color: var(--text-primary);
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
}

.artist-card-info {
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.artist-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.artist-plays {
	font-size: 0.75rem;
	color: var(--text-muted);
}

/* ==========================================================================
   Track Rows
   ========================================================================== */

.track-list {
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	backdrop-filter: blur(12px);
	overflow: hidden;
}

.track-row {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-subtle);
	gap: 0.9rem;
	transition: background 0.12s ease;
}

.track-row:last-child {
	border-bottom: none;
}

.track-row:hover {
	background: rgba(255, 255, 255, 0.03);
}

.track-num {
	width: 24px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	text-align: right;
}

.track-thumb {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	background: var(--bg-carbon);
	border: 1px solid var(--border-subtle);
	flex-shrink: 0;
}

.track-meta {
	flex: 1;
	min-width: 0;
}

.track-title-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.track-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.track-artist-row {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-top: 0.1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.track-artist {
	color: var(--text-secondary);
}

.track-artist:hover {
	color: var(--accent-indigo);
}

.track-album {
	color: var(--text-muted);
}

.track-album-sub {
	color: var(--text-muted);
}

.heart-icon {
	color: var(--accent-rose);
	font-size: 0.8125rem;
}

.track-time, .track-plays {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	white-space: nowrap;
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */

.section-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tracks-search-box {
	display: flex;
	align-items: center;
}

.tracks-search-box input {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	color: var(--text-primary);
	outline: none;
	width: 180px;
	transition: all 0.15s ease;
}

.tracks-search-box input:focus {
	border-color: var(--accent-indigo);
	background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 0 10px rgba(94, 106, 210, 0.25);
	width: 220px;
}

.pagination-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.pagination-bar-top {
	margin-top: 0.25rem;
	margin-bottom: 0.75rem;
}

.pagination-summary {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
	letter-spacing: -0.01em;
}

.pagination-summary span {
	color: var(--text-muted);
	font-weight: 500;
}

.pagination-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.pagination-nav-top {
	margin-top: 0;
	margin-bottom: 0;
}

.pagination-nav-bottom {
	justify-content: center;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}

.page-numbers {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.page-btn {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	transition: all 0.15s ease;
	user-select: none;
}

.page-btn:hover:not(:disabled) {
	background: var(--bg-hover);
	color: var(--text-primary);
	border-color: var(--accent-indigo);
}

.page-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.page-btn.active {
	background: var(--accent-indigo);
	color: #ffffff;
	border-color: var(--accent-indigo);
	font-weight: 600;
	box-shadow: 0 0 10px rgba(94, 106, 210, 0.4);
}

.page-ellipsis {
	color: var(--text-muted);
	padding: 0 0.25rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	user-select: none;
}

/* ==========================================================================
   Artist & Album Detail Hero
   ========================================================================== */

.breadcrumbs {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
}

.breadcrumbs a {
	color: var(--text-secondary);
}

.breadcrumbs span {
	color: var(--text-primary);
}

.artist-hero {
	display: flex;
	align-items: center;
	gap: 2rem;
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 2rem;
	margin-bottom: 2.5rem;
	backdrop-filter: blur(16px);
}

.artist-hero-image {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bg-obsidian);
	border: 2px solid var(--border-subtle);
	flex-shrink: 0;
}

.album-hero-image {
	border-radius: var(--radius-md) !important;
}

.artist-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.artist-hero-content {
	flex: 1;
}

.rank-badge {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--accent-cyan);
	letter-spacing: 0.05em;
}

.artist-hero-title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text-primary);
	margin: 0.25rem 0 0.5rem 0;
}

.album-artist-by {
	font-size: 1rem;
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.artist-hero-stats {
	display: flex;
	gap: 2rem;
	margin-top: 1rem;
}

.mini-stat {
	display: flex;
	flex-direction: column;
}

.stat-num {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text-primary);
	font-family: var(--font-mono);
}

/* ==========================================================================
   Albums Grid
   ========================================================================== */

.albums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.25rem;
}

.album-card {
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.album-card:hover {
	transform: translateY(-3px);
	border-color: rgba(94, 106, 210, 0.4);
	text-shadow: none;
}

.album-cover {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--bg-carbon);
}

.album-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.album-info {
	padding: 0.75rem;
}

.album-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.album-meta {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 0.2rem;
}

/* ==========================================================================
   Data Table
   ========================================================================== */

.table-responsive {
	overflow-x: auto;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	background: var(--bg-glass);
	backdrop-filter: blur(12px);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.875rem;
}

.data-table th, .data-table td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
	background: rgba(255, 255, 255, 0.02);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.data-table tr:last-child td {
	border-bottom: none;
}

.year-badge {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent-cyan);
}

.muted-td {
	color: var(--text-secondary);
}

/* ==========================================================================
   Loved Grid
   ========================================================================== */

.loved-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.loved-card {
	display: flex;
	gap: 0.85rem;
	background: var(--bg-glass);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 0.85rem;
	backdrop-filter: blur(12px);
	align-items: center;
}

.loved-cover {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	flex-shrink: 0;
	background: var(--bg-carbon);
}

.loved-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.loved-heart {
	color: var(--accent-rose);
	font-size: 0.75rem;
}

.loved-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.loved-artist {
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.loved-plays {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--text-muted);
	margin-top: 0.15rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--border-subtle);
	padding: 2rem 1.25rem;
	background: var(--bg-void);
	text-align: center;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.footer-sub a {
	color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 768px) {
	.site-header-inner {
		padding: 0.75rem 1rem;
		gap: 0.5rem;
	}
	.site-nav {
		gap: 0.85rem;
		font-size: 0.8125rem;
	}
	.site-main {
		padding: 1.5rem 1rem 3.5rem 1rem;
	}
	.artist-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		padding: 1.5rem;
	}
	.artist-hero-image {
		width: 100px;
		height: 100px;
	}
	.artist-hero-title {
		font-size: 1.6rem;
	}
	.search-box input {
		width: 100%;
	}
	.page-title-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.site-header-inner {
		padding: 0.65rem 0.85rem;
	}
	.blog-brand, .section-brand {
		font-size: 0.95rem;
	}
	.site-nav {
		gap: 0.55rem;
		font-size: 0.75rem;
	}
	.site-main {
		padding: 1rem 0.85rem 3rem 0.85rem;
	}

	/* Now Playing Hero Widget */
	.now-playing-card {
		padding: 0.85rem;
		display: grid;
		grid-template-columns: 72px 1fr;
		gap: 0.75rem;
		align-items: center;
	}
	.np-cover-box {
		width: 72px;
		height: 72px;
		border-radius: var(--radius-sm);
	}
	.np-content {
		min-width: 0;
	}
	.np-header {
		flex-wrap: wrap;
		gap: 0.35rem;
		margin-bottom: 0.2rem;
	}
	.np-track-name {
		font-size: 1.05rem;
	}
	.np-artist-name {
		font-size: 0.8125rem;
		margin-top: 0.15rem;
	}
	.np-footer {
		grid-column: 1 / -1;
		margin-top: 0.35rem;
		padding-top: 0.35rem;
		border-top: 1px solid rgba(255, 255, 255, 0.05);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.4rem;
	}
	.np-history-cta {
		margin-left: 0;
		width: 100%;
		text-align: center;
		justify-content: center;
		padding: 0.35rem 0.5rem;
		font-size: 0.75rem;
	}

	/* Stats Overview (2x2 Grid) */
	.stats-overview {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.6rem;
		margin-bottom: 2rem;
	}
	.stat-card {
		padding: 0.75rem;
	}
	.stat-label {
		font-size: 0.5625rem;
		margin-bottom: 0.2rem;
	}
	.stat-value {
		font-size: 1.35rem;
	}
	.stat-sub {
		font-size: 0.625rem;
		margin-top: 0.15rem;
	}

	/* Sections & Headings */
	.section-container {
		margin-bottom: 2rem;
	}
	.section-header {
		margin-bottom: 0.75rem;
		gap: 0.4rem;
	}
	.section-title {
		font-size: 1.15rem;
	}
	.section-desc {
		font-size: 0.75rem;
	}
	.btn-subtle {
		font-size: 0.75rem;
		padding: 0.25rem 0.5rem;
	}

	/* Listening Over Time Chart */
	.chart-container {
		padding: 0.85rem 0.6rem;
	}
	.chart-header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		margin-bottom: 0.65rem;
	}
	.chart-axis-info {
		font-size: 0.6875rem;
	}
	.bar-chart {
		gap: 2px;
		height: 110px;
		padding-top: 6px;
	}
	.large-chart .bar-chart {
		height: 150px;
	}
	.bar-axis-label {
		font-size: 0.5625rem;
		margin-top: 4px;
	}
	.year-full {
		display: none;
	}
	.year-short {
		display: block;
	}
	.chart-x-timeline-bar {
		margin-top: 0.45rem;
		padding-top: 0.35rem;
	}
	.timeline-endpoint {
		font-size: 0.625rem;
	}
	.timeline-axis-title {
		font-size: 0.5625rem;
	}

	/* Top Artists Grid (2 columns) */
	.artists-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.65rem;
	}
	.artist-card-info {
		padding: 0.6rem 0.5rem;
	}
	.artist-name {
		font-size: 0.8125rem;
	}
	.artist-plays {
		font-size: 0.6875rem;
	}
	.rank-tag {
		font-size: 0.5625rem;
		padding: 0.1rem 0.3rem;
		top: 6px;
		left: 6px;
	}

	/* Recent Tracks List — 2-col grid: [thumb | meta+time] */
	.track-row {
		display: grid;
		grid-template-columns: 44px 1fr;
		grid-template-rows: auto;
		gap: 0 0.75rem;
		align-items: center;
		padding: 0.75rem 0.85rem;
	}
	.track-num {
		display: none;
	}
	.track-thumb {
		grid-column: 1;
		grid-row: 1 / 3;
		width: 44px;
		height: 44px;
		border-radius: var(--radius-sm);
		align-self: start;
		margin-top: 0.1rem;
	}
	.track-meta {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}
	.track-title {
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--text-primary);
		line-height: 1.25;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.track-artist-row {
		font-size: 0.775rem;
		margin-top: 0.15rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.track-time, .track-plays {
		grid-column: 2;
		grid-row: 2;
		font-size: 0.6875rem;
		color: var(--text-muted);
		margin-top: 0.15rem;
		white-space: normal;
		text-align: left;
		align-self: start;
	}

	/* Loved Tracks Grid */
	.loved-grid {
		grid-template-columns: 1fr;
		gap: 0.6rem;
	}
	.loved-card {
		padding: 0.65rem 0.75rem;
	}

	/* Pagination Navigation */
	.pagination-nav {
		flex-wrap: wrap;
		gap: 0.35rem;
		justify-content: center;
	}
	.pagination-summary {
		width: 100%;
		text-align: center;
		order: -1;
		margin-bottom: 0.25rem;
	}
	.page-btn {
		padding: 0.25rem 0.45rem;
		font-size: 0.75rem;
	}
}
