/* Theme Name: Matt's Music 2023 */

/***** 1. VARIABLES & THEME CONFIG ****/
:root {
	--sidebar-width: 352px;
	--blue: #0071EB;
	--bluehover: #0056B3;
	--text: #394141;
	
	/* Consolidated Grays */
	--text-secondary: #757575; 
	--bg-muted: #eeeeee; 
	--bg-subtle: #f8f8f8;
	--divider: #dddddd;
	--divider-light: #f6f6f6;
	
	--mainbg: #ffffff;
	--white: #FFFFFF;
	--black: #000000;
	--red01: #FF3333;
	--single-header-bg: rgba(255, 255, 255, 0.1);
	--search-suggestions-hover: var(--bg-muted);
	--selectedgradient: linear-gradient(-45deg, var(--bg-subtle), #EDF6FF);
	--sort-arrow-asc: url('images/chevron-up-blue.svg');
	--sort-arrow-desc: url('images/chevron-down-blue.svg');
}


/***** 2. GENERAL ****/
@font-face {font-family: 'Gilroy'; src: url('fonts/gilroy-heavy-webfont.woff2') format('woff2'), url('fonts/gilroy-heavy-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap;}
body {font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 17px; color: var(--text); line-height: 22px; margin: 0; background: var(--mainbg);}
a {color: var(--text); text-decoration: none; margin: 0;}
a:hover {text-decoration: underline;}
ul {list-style: none; margin: 0; padding: 0;}
a img {transition: scale .3s; scale: 1;}
a img:hover {scale: 1.08;}
iframe {border: none; background-color: transparent;}
h1, h2 {font-family: 'Gilroy'; letter-spacing: 0.5px; text-transform: uppercase; color: var(--blue); margin: 0;}
h1 {font-size: 40px; line-height: 50px;}
h1 a {color: var(--blue);}
h2 {font-size: 30px; line-height: 40px; margin-bottom: 15px;}
h3 {font-size: 20px; line-height: 30px; margin: 0;}
.wrapper {display: flex; align-items: flex-start;}
.main {flex: 1;}
.content {padding: 0 50px; box-sizing: border-box; max-width: 1500px; margin: auto;}
.mobile {display: none;}
.mobdarktheme {display: none;}
.darktheme {display: none;}
.myDiv {display: none;}
.icon-blue {display: none;}
.icon-white {display: none;}
.quote {display: none;}
.library-hidden {display: none;}
.page-gallery .sidebar, .page-gallery-artists .sidebar {display: none;}
.page-gallery header, .page-gallery-artists header {display: none;}
.page-gallery .footer, .page-gallery-artists .footer {display: none;}
.count {font-size: 15px; line-height: 15px; color: var(--text-secondary); font-weight: normal;}
.sticky {position: sticky; top: 0; z-index: 100; transition: top 0.5s;}
input:focus, select:focus {outline: none; border: none}
:focus-visible {outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px;}


/***** 3. GRIDS ****/
.main-grid {width: 100%; display: grid;}
.main-grid ul {display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px;}
.main-grid li {text-align: center; font-weight: bold; font-size: 17px; text-transform: capitalize; position: relative; line-height: 25px}
.main-grid li span {display: block;}
.main-grid img {width: 100%; height: auto; margin-bottom: 5px; border-radius: 20px; box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.3);}


/***** 4. SIDEBAR & NAV ****/
.sidebar {background: var(--bg-subtle); border-right: 1px solid var(--divider-light); box-sizing: border-box; padding: 0 30px; min-width: 320px; margin: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-radius: 18px; height: calc(100vh - 32px); position: sticky; overflow: auto; top: 16px; align-self: flex-start; z-index: 100;}
.music-logo {display: flex; align-items: center; margin-top: 30px; justify-content: center;}
.music-logo img {height: 50px; width: auto}
nav ul {padding-top: 20px;}
nav ul a {display: flex; align-items: center; box-sizing: border-box; margin: auto; padding: 20px;}
nav ul a:hover {color: var(--blue); background: none; text-decoration: none;}
nav ul a img {margin-right: 20px; height: 22px; width: 22px;}
nav img:hover {scale: 1;}
nav span {font-size: 13px; padding-left: 5px;}
nav ul li a .icon-black {display: inline-block;}
nav ul li a .icon-white {display: none;}
nav ul li a .icon-blue {display: none;}
nav ul li a:hover .icon-black {display: none !important;}
nav ul li a:hover .icon-white {display: none !important;}
nav ul li a.selected .icon-black {display: none !important;}
nav ul li a.selected .icon-white {display: none !important;}
nav ul li a:hover .icon-blue {display: inline-block !important;}
nav ul li a.selected .icon-blue {display: inline-block !important;}
nav .selected {color: var(--blue); box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.1); border-radius: 12px; margin: auto; background: var(--selectedgradient); font-weight: 650;}
nav .selected:hover {background: var(--selectedgradient);}
.menu-subheading {margin-left: 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; border-top: 1px solid var(--divider); padding-top: 20px; margin-top: 10px; margin-bottom: 10px; color: #666}


/***** 5. HEADER & SEARCH ****/
header {height: 80px; align-items: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); background-color: rgba(255, 255, 255, 0.9); display: flex; width: 100%; margin-bottom: 40px;}
#search-input-wrapper {width: 100%;}
.searchforms {position: relative; width: 100%; max-width: 600px; margin: 0 auto; z-index: 500;}
.search-header {display: flex; align-items: center; position: relative; z-index: 20; background-color: var(--mainbg); border-radius: 50px; padding: 5px 20px; height: 50px; width: 600px; box-sizing: border-box; box-shadow: 0 4px 20px rgba(0,0,0,0.1);}
.searchicon {width: 16px; height: 16px; margin-right: 10px; flex-shrink: 0; padding-left: 0; margin-top: 5px;}
.searchforms select {background: transparent; border: none; color: var(--text); font-weight: 600; font-size: 15px; height: 100%; margin-right: 20px; cursor: pointer; flex-shrink: 0; background-image: url('images/chevron-down-black.svg'); background-repeat: no-repeat; background-position: right center; background-size: 10px; padding-right: 10px; -webkit-appearance: none; appearance: none;}
.searchforms form {flex-grow: 1;}
.searchforms input.navsearch {width: 100%; background: transparent !important; border: none; color: var(--text); font-size: 16px; height: 100%; padding: 0; box-sizing: border-box; outline: none; -webkit-appearance: none;}
.navsearch::placeholder {color: var(--text); opacity: 0.5;}
.search-suggestions {position: absolute; z-index: 10; left: 10px; right: 10px; width: auto; background: var(--white); top: 50%; margin-top: 0; padding-top: 35px; border-radius: 0 0 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); display: none; box-sizing: border-box; max-height: 400px; overflow-y: auto}
.search-suggestions li {padding: 0; border-bottom: 1px solid var(--divider-light); margin: 0; list-style: none;}
.search-suggestions li a {display: flex; align-items: center; padding: 12px 15px; text-decoration: none; color: var(--text); width: 100%; box-sizing: border-box; text-align: left}
.search-suggestions li.active {background-color: var(--search-suggestions-hover);}
.search-suggestions li:hover {background-color: var(--search-suggestions-hover);}
.search-text-col {display: flex; flex-direction: column;}
.search-meta {display: block; font-size: 11px; color: var(--text-secondary); font-weight: normal; line-height: 13px; margin-top: 2px; text-align: left}
strong.highlight {font-weight: 700; background-color: rgba(255, 255, 0, 0.5); color: var(--text); border-radius: 2px;}
.search-thumb {width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 12px; flex-shrink: 0; background: #eee;}
.search-hero-artist {margin: auto; margin-bottom: 20px; padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 20px; background-size: cover !important; background-position: center center !important; position: relative; overflow: hidden; z-index: 1; background-color: var(--black); color: var(--white); width: fit-content}
.search-hero-artist h2 {margin-bottom: 0}
.search-hero-artist .largelink {font-weight: bold}
.search-hero-artist img {width: 150px; height: auto; object-fit: cover; display: block; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); border-radius: 50%}
.search-hero-artist a {color: var(--white)}
.search-hero-artist .count {color: var(--white)}
.search-hero-artist::before {content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--bg-img); background-size: cover; background-position: center; filter: blur(10px); opacity: 0.5; z-index: -1; scale: 1.1;}
.hero-bio {max-width: 800px; margin-top: 10px}
.is-artist-image {border-radius: 50%}


/***** 6. HOME ****/
.home header {margin-bottom: 0;}
.musicwall {background: url('images/album-wall.webp'); width: 100%; height: 500px; display: flex; align-items: center; margin-bottom: -70px; background-position: center center; background-size: cover; margin-top: -80px}
.musicwall img {height: 250px; border-radius: 12px; border: 3px solid var(--white); box-shadow: 4px 4px 6px -2px rgba(0, 0, 0, 0.7); width: auto; margin-top: 0}
.musicwall a {margin: auto;}
.stats {border-radius: 24px; border: 5px solid var(--white); box-sizing: border-box; margin: auto; padding: 20px; margin-bottom: 40px; color: var(--white); background: linear-gradient(-45deg, var(--blue), var(--bluehover)); width: 100%; max-width: 900px; text-align: center; font-weight: bold;}
.stats p {margin: 0}
.stats ul {display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--white); padding-bottom: 20px;}
.stats li {text-align: center; font-weight: bold; font-size: 40px; line-height: 30px; border-right: 1px solid var(--white); text-transform: uppercase;}
.stats li:last-child {border-right: none;}
.stats li img {height: 32px; width: auto; margin-top: 15px;}
.stats .count {color: var(--white); font-size: 15px;}
.top-artists {margin-top: 50px; border-top: 1px solid var(--divider); padding-top: 40px}
.home .latest .count {margin-top: -15px; margin-bottom: 20px;}
.home .latest.main-grid ul {grid-template-columns: repeat(4, 1fr); gap: 30px}
.home .latest.main-grid li {margin-bottom: 10px}
.button {background: var(--blue); color: var(--white); font-weight: 500; padding: 15px 30px; width: fit-content; border-radius: 12px; margin-top: 20px}
.button:hover {text-decoration: none; background: var(--bluehover)}
.button-wrapper {display: flex; justify-content: flex-end}


/***** 8. SINGLE SONG ****/
.single-post header {margin-bottom: 0; position: fixed; background: none; border-bottom: none; left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); padding-left: 0; box-sizing: border-box; top: 0; z-index: 999; background-color: var(--single-header-bg); backdrop-filter: blur(5px);}
.admin-bar.single-post header {margin-top: 32px;}
.songdetails {width: 100%; background-position: center center; margin-bottom: 30px; background-size: cover; box-sizing: border-box; background-color: var(--black);}
.blackoverlay {background-color: rgba(0,0,0,0.3); width: 100%; height: 100%; backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); box-sizing: border-box; padding: 30px 0;}
.blackoverlay .content {display: flex; flex-wrap: nowrap;}
.single-post .blackoverlay .content {margin-top: 80px;}
.albumart {margin-right: 30px; flex-shrink: 0;}
.albumart img {height: auto; width: 360px; border-radius: 24px; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); display: block;}
.songcontent {color: var(--white); flex: 1; font-size: 20px; line-height: 28px; font-weight: 500; text-transform: none; min-width: 0; align-content: center}
.songcontent a, .songcontent h1 {color: var(--white);}
.songartist {margin: 0 0 10px 0; text-transform: uppercase; font-size: 15px; font-weight: 500;}
.meta {display: flex; align-items: center; margin-bottom: 15px; text-transform: capitalize;}
.meta img {height: 22px; width: 22px; margin-right: 10px;}
.songcontent .meta:last-child {margin-bottom: 0;}
.missing {background: var(--bg-muted); color: var(--text-secondary); font-size: 13px; padding: 5px 20px; border-radius: 4px; width: auto; font-weight: bold; display: inline-block;}
a.missing {color: var(--text-secondary);}
a.missing:hover {background: var(--divider); text-decoration: none;}
.unavailable-tag {background: #FF6164; color: #591827; margin-left: 10px;}
.explicit-tag {border-radius: 100px; background: var(--black); color: var(--white); font-weight: bold; font-size: 13px; height: 15px; width: 15px; line-height: 15px; text-align: center; padding: 2px; float: left; margin-right: 8px; margin-top: 6px; display: block;}
.explicit-tag:hover {text-decoration: none;}
.explicit img {width: auto; height: 35px; box-shadow: none; border-radius: 2px; margin-top: 10px;}
.spotify {background: #1ED760; color: var(--text); font-weight: bold; text-align: center; border-radius: 100px; padding: 5px 25px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; line-height: 35px; margin-top: 20px; text-transform: uppercase; width: 230px; font-size: 15px;}
.spotify:hover {background: #1DB954; text-decoration: none;}
.spotify img {width: 20px; height: auto; margin-right: 10px; margin-top: 0;}
.topartist {background: linear-gradient(45deg, #FFD700, #FFC200, #FFD700, #FFFF00, #FFD700); color: #000; box-sizing: border-box; border-radius: 8px; font-weight: bold; text-transform: uppercase; box-shadow: 2px 2px 18px -2px rgba(0, 0, 0, 0.3); display: flex; align-items: center; width: fit-content; margin-top: 15px; font-size: 13px; padding: 3px 17px;}
.topartist span {margin: auto;}
.topartist img {width: auto; box-shadow: none; border-radius: 0; height: 13px; margin-right: 10px;}
.featured {width: 100%; margin-bottom: 30px; padding: 20px; box-sizing: border-box; border-radius: 12px; text-transform: none; display: flex; align-items: center; gap: 30px; position: relative; z-index: 0; color: var(--white); margin-top: 10px;}
.featuredimg {height: 185px; width: auto; border-radius: 20px; box-shadow: 4px 4px 28px -4px rgba(0, 0, 0, 0.7); display: block; flex-shrink: 0;}
.featuredtext {flex: 1; font-size: 32px; line-height: 37px; font-family: 'Gilroy'; text-transform: uppercase;}
.search-web {width: 100%; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px;}
.search-web img:hover {scale: 1;}
.query {padding: 8px 30px; box-sizing: border-box; border-radius: 100px; font-weight: bold; font-size: 15px; color: var(--white); line-height: normal; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: rgba(0, 0, 0, 0.15); display: inline-flex; align-items: center; text-transform: none;}
.query:hover {text-decoration: none; background: rgba(0, 0, 0, 0.3);}
.query img {height: 20px; width: auto; margin-right: 10px; margin-top: 0;}
.resultcontent h4 {margin: 0 0 10px 0; text-transform: uppercase; font-size: 15px; font-weight: 500;}
.meta.missing {margin-top: 15px; width: fit-content !important; display: block}
.status-row {display: flex; align-items: center;}
.status-row .meta {margin-bottom: 0; width: auto;}
.songcontent .mb-artist-bio {margin-top: 12px;}
.artist-layout-flex {display: flex; gap: 20px; align-items: center}
.artist-col-img {flex: 0 0 auto; width: auto; align-self: flex-start; }
.artist-col-img img {width: 100px; height: auto; display: block; border-radius: 50%;}
.artist-col-text {flex: 1; min-width: 0;}
.artist-col-text h3 {text-transform: uppercase; font-size: 15px; font-weight: 700; line-height: 15px; margin-bottom: 8px}
.moresongs {display: inline-block; margin-top: 10px; font-weight: bold;}
.youtube-facade {width: 100%; max-width: 1060px; aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; cursor: pointer; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: #000; margin-bottom: 30px;}
.youtube-facade .play-button {width: 100px; height: 100px; background-color: rgba(33, 33, 33, 0.8); border-radius: 50%; position: relative; scale: 1; transition: scale 0.2s cubic-bezier(0.0, 0.0, 0.2, 1); color: transparent !important; font-size: 0 !important; line-height: 0 !important; border: 3px solid rgba(255, 255, 255, 0.5)}
.youtube-facade iframe {width: 100%; height: 100%; border: none;}
.youtube-facade:hover .play-button {scale: 1.15;}
.youtube-facade .play-button::after {content: ""; position: absolute; top: 50%; left: 50%; translate: -42% -50%; width: 55px; height: 55px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4.5v15a1.5 1.5 0 0 0 2.25 1.3l12-7.5a1.5 1.5 0 0 0 0-2.6l-12-7.5A1.5 1.5 0 0 0 7 4.5z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; margin-left: -6px; opacity: 1;}
.genre-links {margin-top: 20px}
.genre-links ul {display: flex; list-style: none; padding: 0; margin: 0; gap: 8px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none;}
.genre-links ul::-webkit-scrollbar {display: none;}
.genre-links li {flex-shrink: 0;}
.genre-links li a {background: var(--white); color: var(--black); padding: 0px 12px; border-radius: 8px; font-size: 13px; display: block;}
.genre-links li a:hover {text-decoration: none; opacity: 0.8}
.meta-grid {display: flex; flex-wrap: wrap; gap: 15px 25px;}
.meta-grid .meta {flex: 0 0 auto; margin: 0; display: flex; align-items: center;}
.player-controls-wrapper {position: relative; display: flex; align-items: center; background-color: #444; border-radius: 300px; height: 56px; padding: 0 20px 0 60px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); gap: 12px; color: var(--white); z-index: 1; border: 2px solid rgba(255, 255, 255, 0.15); margin-left: 20px;}
.player-bg-overlay {position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%); z-index: -1; border-radius: inherit;}
.record-spin {position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 2px solid #444 !important; background-color: #333 !important; box-sizing: border-box !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; overflow: hidden !important; animation: spinRecord 4s linear infinite !important; animation-play-state: paused !important; transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden;}
.record-hole {position: absolute !important; top: 50% !important; left: 50% !important; translate: -50% -50% !important; width: 12px !important; height: 12px !important; background-color: transparent !important; border-radius: 50% !important; border: 2px solid #444 !important; z-index: 2 !important; margin: 0 !important; padding: 0 !important; box-sizing: content-box !important;}
.record-spin img {position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; min-width: 100% !important; max-height: 100% !important; min-height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; padding: 0 !important; border: none !important; border-radius: 50% !important; -webkit-mask-image: radial-gradient(circle at center, transparent 6px, black 6.5px); mask-image: radial-gradient(circle at center, transparent 6px, black 6.5px);}
.custom-track-preview {margin-top: 30px; max-width: 84px; animation: shootOutPill 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 0.3s;}
@keyframes shootOutPill {0% {max-width: 84px;} 100% {max-width: 320px;}}
.scrubber-container {display: flex; align-items: center; flex-grow: 1; gap: 8px; font-size: 13px; color: #ffffff; font-weight: 500; opacity: 0; overflow: hidden; white-space: nowrap; animation: fadeScrubber 0.4s ease forwards; animation-delay: 0.7s;}
@keyframes fadeScrubber {0% {opacity: 0;} 100% {opacity: 1;}}
@keyframes initialRecordSpin {0% {rotate: -360deg;} 100% {rotate: 0deg;}}
.content button.preview-btn {background-color: transparent !important; border: none !important; width: 76px !important; height: 76px !important; min-width: 76px !important; max-width: 76px !important; box-sizing: border-box !important; border-radius: 50% !important; position: absolute !important; left: -26px !important; top: 50% !important; margin: -38px 0 0 0 !important; cursor: pointer !important; padding: 0 !important; z-index: 10 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important; animation: initialRecordSpin 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 0.3s; scale: 1 !important; transition: scale 0.3s ease !important;}
.content button.preview-btn:hover {scale: 1.08 !important;}
@keyframes spinRecord {0% {rotate: 0deg; transform: translateZ(0);} 100% {rotate: 360deg; transform: translateZ(0);}}
.content button.preview-btn.is-playing .record-spin {animation-play-state: running !important;}
#seek-slider {flex-grow: 1; -webkit-appearance: none; appearance: none; height: 4px; background: linear-gradient(to right, #ffffff var(--progress, 0%), rgba(255, 255, 255, 0.2) var(--progress, 0%)); border-radius: 2px; outline: none; cursor: pointer;}
#seek-slider::-webkit-slider-thumb {-webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.5);}
#seek-slider::-moz-range-thumb {width: 12px; height: 12px; border-radius: 50%; background: #ffffff; cursor: pointer; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.5);}


/***** 9. PLAYLIST GRADIENTS ****/
.years1930-1959 {background: linear-gradient(to top right, #009710, #00f7ea);}
.years1960-1964 {background: linear-gradient(to top right, #8b552f, #a4e648);}
.years1965-1969 {background: linear-gradient(to top right, #282e92, #e949ea);}
.years1970-1974 {background: linear-gradient(to top right, #2d9099, #5c4ce7);}
.years1975-1979 {background: linear-gradient(to top right, #493191, #ed57be);}
.years1980-1984 {background: linear-gradient(to top right, #2c9673, #4d87f7);}
.years1985-1989 {background: linear-gradient(to top right, #8f2f6d, #f29552);}
.years1990-1994 {background: linear-gradient(to top right, #882c98, #eb4954);}
.years1995-1999 {background: linear-gradient(to top right, #8c295d, #f7ab4d);}
.years2000-2004 {background: linear-gradient(to top right, #362c97, #eb4bd9);}
.years2005-2009 {background: linear-gradient(to top right, #288e89, #4d58f7);}
.years2010-2014 {background: linear-gradient(to top right, #278c3a, #44cbe6);}
.years2015-2019 {background: linear-gradient(to top right, #912f2d, #d8e447);}
.years2020-2024 {background: linear-gradient(to top right, #2a5298, #c34df8);}
.years2025-2029 {background: linear-gradient(to top right, #9f1825, #fff947);}


/***** 10. TAGS / ARTISTS / ALBUMS ****/
.tag header {margin-bottom: 0; background-color: var(--single-header-bg);}
.tag .blackoverlay {margin-top: -80px; padding-top: 110px;}
.tag .blackoverlay .content {align-items: center;}
.artistart {margin-right: 30px;}
.artistart img {height: auto; width: 240px; box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.1); border-radius: 50%}
.tag .songcontent {font-weight: normal; font-size: 17px; line-height: 26px;}
.tag .songcontent .count {float: none; color: var(--white); text-transform: uppercase; letter-spacing: 0.4px;}
.tag .topartist {padding: 10px 20px;}
.tag .topartist img {margin-top: -1px;}
.associated-artists {margin-top: 40px; border-top: 1px solid var(--divider); padding-top: 30px; width: 100%;}
.associated-artists img {border-radius: 50%; width: 100%; height: auto;}
.associated-artists ul {display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px;}
.associated-artists li {text-align: center; font-size: 13px; font-weight: bold; line-height: 16px;}
.associated-block {margin-top: 40px; border-top: 1px solid var(--divider); padding-top: 30px;}
.assoc-header {display: flex; align-items: center; gap: 15px; margin-bottom: 20px;}
.assoc-header img {border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; display: block; width: 80px; height: auto;}
.page-artists header {margin-bottom: 0;}
.page-artists .musicwall {background: url('images/artists-wall.webp'); margin-bottom: 20px; background-size: cover;}
.page-artists td.data-image img {width: 100px; margin-right: 10px}
.page-artists .library-controls {margin-bottom: 20px}
.page-artists th.col-small, td.data-count {width: 1%; white-space: nowrap; padding-left: 20px;}
.page-artists th.col-large, td.data-name-desc {width: auto;}
.page-artists th.sortable {cursor: pointer; user-select: none;}
.page-artists .data-name {font-weight: 600; margin-bottom: 5px}
.page-artists .data-desc {font-size: 15px; line-height: 23px}
.sorting-options {gap: 30px; margin-top: 20px; width: 100%; text-transform: none; margin-bottom: 30px; display: flex; align-items: center}
.sorting-options select {height: 32px; padding: 5px 10px; box-sizing: border-box; font-size: 15px; background: var(--bg-muted); border-radius: 4px; color: var(--text); border: none;}
.sorting-options label {font-size: 15px; font-weight: 600;}
.view-toggle-container {display: flex; gap: 10px; align-items: center;}
.view-toggle-btn {display: flex; align-items: center; justify-content: center; width: 40px; height: 35px; background-color: var(--bg-muted); border: 1px solid var(--divider); border-radius: 6px; transition: background-color 0.2s ease, border-color 0.2s ease; text-decoration: none;}
.view-toggle-btn img {display: block; width: 20px; height: 20px; scale: 1; transition: scale 0.2s ease;}
.view-toggle-btn:hover {background-color: var(--bg-subtle);}
.view-toggle-container a:hover img {scale: 1.3;}
.view-toggle-btn.active-view {background-color: var(--text); border-color: var(--text); pointer-events: none;}
.view-toggle-btn.active-view img {filter: invert(1);}
.tag-list-row {margin-bottom: 20px; display: flex; flex-direction: row; align-items: center; border-bottom: 1px solid var(--divider); padding-bottom: 20px; gap: 20px;}
.tag-list-row p {margin: 0;}
.tag-image img {width: 140px; height: auto; object-fit: cover; border-radius: 12px; display: block; flex-shrink: 0}
.tag-content {flex: 1; min-width: 0; display: flex; flex-direction: column;}
.tag-header {justify-content: space-between; align-items: flex-start; margin-bottom: 5px;}
.tag-header .count {margin-bottom: 5px;}
.tag-name {font-size: 20px; font-weight: bold; color: inherit; text-decoration: none; margin-right: 5px; line-height: 30px;}
.tag-desc {font-size: 15px}
.no-desc {background: var(--red01); font-style: italic; color: var(--white); padding: 5px 10px; font-weight: 800; font-size: 14px; display: inline-block; border-radius: 4px;}
.pagination {display: flex; justify-content: center; align-items: center; gap: 8px; margin: 40px 0 0 0; flex-wrap: wrap}
.pagination .page-numbers {display: flex; justify-content: center; align-items: center; min-width: 44px; height: 44px; padding: 0 12px; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; color: var(--text); border: 1px solid var(--divider); border-radius: 8px; transition: all 0.2s ease;}
.pagination a.page-numbers:hover {background-color: var(--bg-muted); border-color: var(--divider)}
.pagination .page-numbers.current {background-color: var(--blue); color: var(--white); border-color: var(--blue); cursor: default;}
.pagination .page-numbers.dots {border: none; background: transparent; color: #999; min-width: auto; padding: 0 4px;}
.pagination .page-numbers img {width: 16px; height: 16px; display: block;}
.pagination .page-numbers svg {width: 20px; height: 20px; display: block; margin: 0 auto;}
.pagination .next, .pagination .prev {padding: 0 10px;}
.page-albums .main-grid {margin-top: 25px;}
.page-albums .main-grid ul {grid-template-columns: repeat(5, 1fr)}
.page-album-tracklisting h2 {font-family: inherit; margin: 0; font-size: 20px; line-height: 30px; text-transform: capitalize}
.artist-about {border: 1px solid var(--bg-muted); width: 100%; margin-bottom: 40px; padding: 20px; background: var(--bg-subtle); box-sizing: border-box; line-height: 27px; border-radius: 12px; display: flow-root;}
.artist-about li {display: block; width: 100%; margin-bottom: 30px; border-bottom: 1px solid var(--divider); padding-bottom: 20px; list-style: none;}
.artist-about li:last-child {margin-bottom: 0; border-bottom: none; padding-bottom: 0;}
.artist-about p {margin: 0; margin-bottom: 10px;}
.artist-about .artist-thumb {float: left; margin-right: 20px; margin-bottom: 10px; max-width: 150px;}
.artist-about .artist-thumb img {display: block; border-radius: 20px; width: 150px; height: auto;}
.artist-about .moresongs {display: inline-block; margin-top: 10px;}
.moresongs {color: var(--blue); font-size: 15px; font-weight: bold; text-transform: none;}
.genre-header {margin-bottom: 20px}
.artist-name {text-transform: uppercase; font-size: 15px; font-weight: 500; margin-top: -2px !important; margin-bottom: 6px !important}
h2.count {font-weight: normal; font-family: inherit; text-transform: none; letter-spacing: normal;}
#loading-message {text-align: center; color: var(--text-secondary); margin-top: 30px}
.resultcontent .meta.artist-name {display: block;}


/***** 11. SEARCH RESULTS & LISTS ****/
.results ul {display: grid; grid-template-columns: 1fr 1fr; gap: 40px;}
.searchresult {display: flex;}
.resultcontent {flex: 1;}
.resultcontent .meta {margin-bottom: 10px; align-items: flex-start}
.resultthumb img {border-radius: 16px; margin-right: 20px; width: 150px; height: auto; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);}
.tracklist .count {width: 100%; margin-bottom: 30px; display: block;}
.tracklist ul {margin-top: 30px;}
.tracklist li {width: 100%; display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--divider); padding-bottom: 20px;}
.tracklist .searchresult {display: flex; align-items: center; width: 100%;}
.tracklist li:last-child {border-bottom: none; padding-bottom: 0; margin-bottom: 0;}
.tracklist .resultcontent .meta {margin-bottom: 0; margin-top: 4px}
.tracklist .meta img {width: 18px; margin-right: 5px;}
.tracklist .resultthumb {width: 100px; flex-shrink: 0; margin-right: 20px;}
.tracklist .resultthumb img {width: 100%; height: auto; border-radius: 8px;}
.tagresults {border: 1px solid var(--bg-muted); width: 100%; margin-bottom: 30px; padding: 20px; background: var(--bg-subtle); box-sizing: border-box; line-height: 27px; border-radius: 12px; margin-top: 20px;}
.tagresults h2 {color: var(--text);}
.tagresults ul {display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, max-content)); gap: 22px;}
.tagresults li {text-align: center; font-weight: bold; font-size: 15px; line-height: 18px;}
.tagresults img {width: 100%; height: auto; border-radius: 12px; margin-bottom: 5px; border-radius: 50%}
.results .missing {margin-left: -12px; position: absolute; margin-top: -12px; z-index: 888; padding: 3px 8px; box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);}
.results .missing:hover {text-decoration: none; background: var(--divider);}
.results .missingsong {opacity: 0.45;}
.noresults {font-size: 26px; text-align: center; color: var(--blue); font-weight: bold; margin-bottom: 50px;}
.noresults img {height: 120px; width: auto;}
.noresults p {margin: 0;}
.search-results .results {margin-top: 20px}


/***** 12. LIBRARY & MISSING ****/
.mobile-actions {display: none !important;}
table {text-align: left;}
table img {border-radius: 10px; width: 75px; height: auto; margin-bottom: -3px}
tr {box-sizing: border-box; border-bottom: 1px solid var(--bg-muted); padding: 24px;}
td {box-sizing: border-box; border-bottom: 1px solid var(--bg-muted); padding: 15px 5px}
th {box-sizing: border-box; border-bottom: 1px solid var(--bg-muted); padding: 24px 5px}
td a {color: var(--text);}
table.tablesorter thead tr th {background-image: none; background-position: right center; border: none; padding: 0 5px}
table.tablesorter thead tr th.tablesorter-headerDesc {color: var(--blue); background: var(--sort-arrow-asc) no-repeat; background-position: right; background-size: 12px; margin-top: 3px;}
table.tablesorter thead tr th.tablesorter-headerAsc {color: var(--blue); background: var(--sort-arrow-desc) no-repeat; background-position: right; background-size: 12px; margin-top: 3px;}
.page-complete td {padding: 20px 5px}
.tablesorter-header-inner:hover {cursor: pointer;}
.content button {background: var(--blue); color: var(--white); padding: 15px 30px; text-align: center; border: none; font-size: 17px; font-weight: bold; border-radius: 8px; margin-bottom: 10px; -webkit-appearance: none;}
.content button:hover {cursor: pointer; background: var(--bluehover);}
.content button img {height: 24px; vertical-align: middle; margin-right: 10px; width: auto;}
.explicit-tag {border-radius: 100px; background: var(--black); color: var(--white); font-weight: bold; font-size: 13px; height: 15px; width: 15px; line-height: 15px; text-align: center; padding: 2px; float: left; margin-right: 8px; margin-top: 6px; display: block;}
.explicit-tag:hover {text-decoration: none;}
.smallimg {width: 20px; height: auto; box-shadow: none; margin-top: 3px; border-radius: 0;}
.unavailable {color: var(--red01);}
.unavailable a {color: var(--red01);}
.unavailableonly {font-weight: bold; width: 100%; line-height: 34px; margin-top: 10px; margin-bottom: 20px;}
.switch {position: relative; display: inline-block; width: 60px; height: 34px; margin-right: 10px;}
.switch input {opacity: 0; width: 0; height: 0;}
.slider {position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--divider); transition: .4s;}
.slider:before {position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s;}
input:checked + .slider {background-color: var(--blue);}
input:checked + .slider:before {translate: 26px 0;}
.slider.round {border-radius: 34px;}
.slider.round:before {border-radius: 50%;}
#action-sheet{display: none}
.col-small { width: 8%; }
.col-large { width: 28%; }
.col-actions { width: 5%; }
.col-tiny {width: 5%;}
.col-medium {width: 24%;}
.col-meta {width: 5%;}
.col-regular {width: 18%;}
.page-complete .explicit-tag {margin-top: 2px}
.library-filter-wrapper {margin: 20px 0;}
#library-filter {padding: 13px; font-size: 17px; border-radius: 12px; border: 1px solid var(--divider); background: var(--mainbg); box-sizing: border-box; color: var(--text)}
.sort-arrow {margin-left: 3px}


/***** 13. LATEST & GALLERY ****/
.subhead {font-weight: bold; border-bottom: 1px solid var(--divider); padding-bottom: 5px; margin-bottom: 20px; color: var(--blue); margin-top: 30px; display: block;}
.gallery img {float: left; height: 50px; width: 50px;}


/***** 14. ARTWORK FINDER & UNIFIED SEARCH *****/
.search-wrapper {width: 100%; max-width: 600px; margin: auto; display: flex; justify-content: center;}
.search-wrapper form {display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center;}
.search-group {display: flex; align-items: center; background-color: var(--mainbg); border: 1px solid var(--divider); border-radius: 12px; padding: 2px 5px 2px 15px; width: 100%; box-sizing: border-box; min-height: 50px; position: relative; transition: border-color 0.2s ease, box-shadow 0.2s ease}
.search-type-select {border: none; background: transparent; padding: 10px 10px 10px 0; font-size: 15px; cursor: pointer; outline: none; color: var(--text); height: 100%; font-weight: 600;}
.search-group .divider {width: 1px; height: 20px; background-color: var(--divider); margin-right: 15px; flex-shrink: 0; margin-left: 15px}
.artwork-search {flex-grow: 1; width: 100%; border: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; font-size: 17px; color: var(--text); outline: none; height: 100%; -webkit-appearance: none;}
.artwork-search::placeholder {opacity: 0.5; color: var(--text);}
.clear-input-btn {display: none; background: transparent !important; border: none !important; padding: 0 10px !important; margin: 0 !important; cursor: pointer; height: 100%; align-items: center; justify-content: center; border-radius: 0; box-shadow: none !important; min-width: auto !important;}
.clear-input-btn img {width: 14px !important; height: 14px !important; opacity: 0.4; display: block; margin: 0 !important; filter: none !important;}
.clear-input-btn:hover img {opacity: 0.8;}
.page-artwork .content {text-align: center;}
.page-artwork label {font-weight: bold; margin-right: 10px;}
.external.main-grid {margin-top: 40px}
.external.main-grid img {width: 100%; height: auto; border-radius: 12px; margin-bottom: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);}
.external.main-grid li {min-width: 0; margin-bottom: 20px; font-size: 13px; line-height: 18px; text-align: left; display: flex; flex-direction: column; height: 100%;}
.external.main-grid h3 {font-size: 15px; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; text-align: left; margin-bottom: 3px}
.external.main-grid p {margin: 0; margin-bottom: 0}
.largelink {background: var(--blue); color: var(--white); padding: 8px 20px; box-sizing: border-box; border-radius: 6px; display: block; width: fit-content; font-size: 13px; margin-bottom: 5px;}
.largelink:hover {background: var(--bluehover); text-decoration: none;}
.meta-info {color: var(--text-secondary); font-weight: normal; font-size: 13px; margin-top: -5px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block}
.toolbar > button {border-radius: 50%; padding: 12px; background: var(--bg-muted); height: 44px; width: 44px; border: none;}
.toolbar > button:hover {background: var(--divider)}
.toolbar > button img {height: 12px; width: 12px; margin: 0; opacity: 0.5;}


/***** 15. PLAYLIST ANALYZER ****/
.page-spotify table {width: 100%; border-collapse: collapse;}
.page-spotify th.sortable {cursor: pointer; user-select: none; padding-top: 10px; padding-bottom: 10px; vertical-align: middle; white-space: nowrap; transition: color 0.2s;}
.page-spotify th.sortable:hover {color: var(--blue);}
.page-spotify th.sort-asc {color: var(--blue);}
.page-spotify th.sort-desc {color: var(--blue);}
.page-spotify th.sortable::after {content: ''; display: none; vertical-align: middle; width: 10px; height: 10px; margin-left: 8px; margin-top: -2px; background-size: contain; background-repeat: no-repeat; background-position: center;}
.page-spotify th.sort-asc::after {display: inline-block; background-image: var(--sort-arrow-asc);}
.page-spotify th.sort-desc::after {display: inline-block; background-image: var(--sort-arrow-desc);}
.flex-toolbar {display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px}
.filter-toolbar {display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; margin-top: 20px}
.toolbar input#q {padding: 13px; font-size: 17px; border-radius: 12px; border: 1px solid var(--divider); margin-right: 8px;}
.toolbar::placeholder {color: var(--text); opacity: 0.5;}
.secondary {margin-left: 5px}
.toggle-wrapper {display: flex; align-items: center; gap: 10px;}
.toggle-wrapper.disabled {opacity: 0.5; pointer-events: none;}
.toggle-label {font-weight: bold}
.track-thumb {height: 75px; width: auto; border-radius: 4px; aspect-ratio: 1 / 1; overflow: hidden}
.local-file {color: var(--text-secondary); font-style: italic;}
.thumb-placeholder {width: 75px; height: 75px; background: var(--text-secondary); border-radius: 4px; display: flex; align-items: center; justify-content: center;}
.thumb-placeholder img {width: 24px; height: auto; opacity: 0.7; border-radius: 0; margin-bottom: 0 !important}
#stats {margin-top: 30px}
.stats-main-title {border-top: 1px solid var(--divider); width: 100%; padding-top: 30px;}
.stats-main-title h2 {color: var(--text); display: flex;}
.stats-count {font-family: inherit; font-size: 15px; color: var(--text-secondary); font-weight: normal; vertical-align: middle; margin-left: 10px; text-transform: none;}
.stats-wrapper {display: flex; gap: 40px; align-items: flex-start; margin-top: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--divider); padding-bottom: 30px;}
.stats-cover {flex: 0 0 220px; width: auto;}
.stats-cover img {width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: block; object-fit: contain;}
.stats-info {flex: 1; display: flex; flex-direction: row; gap: 100px; align-items: flex-start; text-transform: capitalize; text-align: left;}
.stats-info ol {margin: 0; padding-left: 20px; margin-top: 10px;}
.stats-info li {margin-bottom: 10px;}
.stats-col {flex: 0 1 auto;}
.content button.btn-shuffle {margin-right: 10px;}
.content button.btn-shuffle img {height: 20px; width: auto; margin-right: 0; margin-top: 0;}
.hidden {display: none !important;}
.page-spotify .content {text-align: center;}
.page-spotify p.muted {text-align: center;}
.page-spotify input {background: var(--mainbg); color: var(--text);}
.page-spotify table {text-transform: capitalize}
.page-spotify table img {margin-bottom: -4px}

/* Playlist Count Compare */
.pl-grid {display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 50px}
.pl-card {display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-decoration: none; color: inherit; background: var(--bg-muted); padding: 10px; box-sizing: border-box; border-radius: 16px}
.pl-cover {width: 100%; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover; margin-bottom: 5px; scale: 1; transition: scale 0.2s ease, box-shadow 0.2s ease;}
.pl-stats-box {font-size: 13px; width: 100%; padding: 10px; box-sizing: border-box; margin-bottom: 5px; font-weight: 600}
.pl-stat-row {display: flex; justify-content: space-between; margin-bottom: 3px; opacity: 0.8;}
.pl-stat-row:last-child {margin-bottom: 0;}
.pl-stat-val {font-weight: bold; opacity: 1;}
.pl-btn {width: 100%; box-sizing: border-box; text-align: center; padding: 8px; border-radius: 12px; font-weight: bold; font-size: 13px; text-decoration: none; transition: opacity 0.2s; background: var(--blue); color: white;}
.pl-btn:hover {text-decoration: none; background: var(--bluehover)}
.status-match {color: #009407 !important;}
.status-mismatch {color: var(--red01) !important;}
.status-error {color: var(--red01) !important; opacity: 1 !important;}


/***** 16. STATS ****/
.stats-tabs-nav {margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; justify-content: center}
.content .tab-btn {background: none; font-size: 15px; transition: opacity 0.2s; font-weight: normal; border: none; border-radius: 0; border-right: 1px solid var(--divider); color: var(--text); padding: 5px 10px; text-align: left}
.content .tab-btn:hover {background: none}
.content .tab-btn span {padding: 0 5px 5px 5px; border-bottom: 2px solid transparent;}
.content .tab-btn.active span {border-bottom: 3px solid var(--blue);}
.song-info {text-align: center; font-weight: 600}
.song-meta-row {display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: normal; color: var(--text-secondary)}

/* Quick Trivia Ribbon */
.trivia-ribbon {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; margin-top: 20px; min-height: 200px}
.trivia-card {background: linear-gradient(-45deg, var(--blue), var(--bluehover)); color: var(--white); padding: 15px 20px; border-radius: 12px; position: relative; overflow: hidden;}
.trivia-card.has-bg {background-color: #111; background-repeat: no-repeat !important; background-position: center center !important; background-size: cover !important}
.trivia-label {font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 5px; display: block; position: relative; z-index: 2; font-weight: 700; border-bottom: 1.5px solid color-mix(in srgb, var(--white), transparent 40%); padding-bottom: 5px; margin-bottom: 15px}
.trivia-value {line-height: 1.3; position: relative; z-index: 2; font-weight: 600; display: block; margin-bottom: 5px; font-size: 20px}
.trivia-card:not(:first-child) .trivia-value { font-size: inherit; }
.trivia-value a {color: var(--white); text-decoration: none;}
.trivia-value a:hover {opacity: 0.8}
.trivia-sub {font-size: 15px; display: block; margin-top: 3px; position: relative; z-index: 2; line-height: 26px}
.collab-link {color: var(--white); text-decoration: none; border-bottom: 1px dotted var(--divider); transition: color 0.2s;}
.collab-link:hover {text-decoration: none; border-bottom: 1px solid var(--divider)}

/* Timeline Chart */
.stats-card-timeline {margin-bottom: 50px; padding: 20px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: relative;}
.chart-header {display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}
.chart-header h2 {margin: 0; color: var(--text)}
.chart-hint {font-size: 13px; color: var(--text-secondary); margin-bottom: 15px; margin-top: 0}
.chart-container {position: relative; height: 300px; width: 100%;}
.chart-controls {display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap;}
.chart-controls label {font-weight: 600; margin: 0;}
.chart-controls select {border-radius: 8px; border: none; height: 32px; box-sizing: border-box; margin: 0; padding: 0 20px; background: var(--bg-muted); font-size: 15px; color: var(--text)}
.chart-controls button {height: 32px; box-sizing: border-box; margin: 0; padding: 0 10px; display: inline-flex; align-items: center; line-height: 1; font-size: 13px; font-weight: 600}
#resetZoomBtn { display: none; }
#resetZoomBtn.active { display: inline-flex; }

/* 6-Bucket Grid Dashboard */
.stats-dashboard-grid {display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; margin-bottom: 50px; border-bottom: 1px solid var(--divider); padding-bottom: 50px}
.stats-widget h3 {margin-top: 0; border-bottom: 2px solid var(--divider); padding-bottom: 12px; margin-bottom: 20px;}
.widget-header {display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--divider); margin-bottom: 20px;}
.widget-header h3 {margin: 0 !important; border: none !important; padding: 0 !important; text-transform: uppercase; font-size: 15px}
.widget-select {border-radius: 8px; border: none; box-sizing: border-box; margin: 0; padding: 0 20px; background: var(--bg-muted); font-size: 15px; color: var(--text)}
.stats-list {margin: 0; padding: 0 10px; list-style: none; box-sizing: border-box}
.stats-list li {display: flex; align-items: center; gap: 15px; margin-bottom: 20px; position: relative;; font-weight: 500}
.stats-list li:last-child {margin-bottom: 0}
.stats-avatar {width: 50px; height: 50px; border-radius: 8px; object-fit: cover}
.stats-rank {width: 20px; text-align: right; font-weight: 500}
.stats-count-tag {font-size: 11px; padding: 3px 8px; margin-left: auto; color: var(--text-secondary); font-weight: 600; text-transform: uppercase}
.stats-count-tag a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--text)}
.stats-count-tag a:hover {border-bottom: 1px solid var(--text)}
.genre-chart-wrapper { position: relative; height: 330px; width: 100%}

/* Number Ones */
.stats-section-title {text-align: center; font-size: 45px; margin-bottom: 10px}
.stats-count-centered {text-align: center; margin-bottom: 30px;}
.tab-pane { display: none; }
.tab-pane.active { display: block; }


/***** 18. FOOTER ****/
.footer {text-align: center; width: 100%; margin-top: 40px; border-top: 1px solid var(--bg-muted); padding-top: 20px; padding-bottom: 30px; font-size: 15px;}
#actionButtons {display: flex; align-items: center; gap: 10px; margin-bottom: 10px;}
#actionButtons button {display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin: 0;}
#actionButtons button img {margin-top: 0; margin-right: 10px;}


/***** DARK THEME ****/
@media (prefers-color-scheme: dark) {
:root {
	--bluehover: #0A81FF;
	--text: #DCDCDC;
	
	/* Consolidated Grays for Dark Mode */
	--text-secondary: #999999;
	--bg-muted: #242424; 
	--bg-subtle: #181818;
	--divider: #333333;
	--divider-light: #212121;
	
	--mainbg: #000000;
	--red01: #E61717;
	--single-header-bg: rgba(0, 0, 0, 0.1);
	--search-suggestions-hover: var(--divider);
	--selectedgradient: linear-gradient(-45deg, #181818, #16202C);
}
select {color-scheme: dark;}

	/* Hardcoded Dark Mode Overrides for single-use variables */
	header { background-color: rgba(0, 0, 0, 0.8); }
	.search-header { background-color: var(--bg-muted); }
	.searchforms select { background-image: url('images/chevron-down-white.svg'); }
	.search-suggestions { background: var(--bg-muted); }
	strong.highlight { background-color: rgba(255, 255, 0, 0.15); }
	.search-thumb { background: var(--divider-light); }
	.stats { border-color: var(--black); }
	.explicit-tag { background: var(--white); color: var(--black); }
	.menu-subheading {color: var(--text-secondary)}

nav ul li a .icon-black {display: none;}
nav ul li a .icon-white {display: inline-block;}
nav ul li a:hover .icon-white {display: none !important;}
nav ul li a.selected .icon-white {display: none !important;}
.clear-input-btn img {filter: invert() !important}
.view-toggle-btn.active-view {background-color: var(--text-secondary); border: 1px solid var(--text-secondary)}
.view-toggle-btn.active-view img {filter: none; opacity: 1}
.view-toggle-container img {filter: invert(); opacity: 0.3}
.genre-header img {filter: invert(1); transition: filter 0.3s ease; opacity: 0.7}
.stats-card-timeline {background: var(--bg-muted)}
}


/***** REDUCED MOTION ****/
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	a img:hover {scale: 1;}
}