/* ==========================================================================
   Site theme - loaded after style.css and overrides it.
   Colours live in :root, change them there to re-brand the whole site.
   ========================================================================== */
:root {
	--brand-1: #6d28d9;   /* header gradient start (purple) */
	--brand-2: #2563eb;   /* header gradient end (blue) */
	--accent: #fbbf24;    /* search button / highlights */
	--accent-ink: #1f1300;
	--ink: #1e1b2e;
	--ink-soft: #5b5873;
	--link: #5b3fd6;
	--bg: #f3f4f9;
	--card: #ffffff;
	--card-2: #fbfbfe;    /* inner panels (song info table, share pill) */
	--chip: #eef0f7;      /* neutral pills */
	--tint: #ece9fe;      /* light purple chips, icon tiles */
	--line-strong: #d6d2f5;
	--line: #e6e7f0;
	--radius: 18px;
	--shadow: 0 6px 20px rgba(30, 27, 70, .07);
	--g-orange: linear-gradient(90deg, #f97316, #fb923c 55%, #f5b301);
	--g-purple: linear-gradient(90deg, #7c3aed, #e11d74 60%, #f97316);
	--g-pink:   linear-gradient(90deg, #db2777, #f43f5e 60%, #fb7185);
	--g-blue:   linear-gradient(90deg, #2563eb, #7c3aed);
	--page-w: 1200px;   /* header, content and footer all line up to this width */
	--page-pad: 14px;
}

/* ---- base ---- */
html, body { background: var(--bg); }
body, body div, body p, body span, body b, body h1, body h2, body h3, body h4, body input, body button, body select, body textarea {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body { color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); padding: 0; }
a:hover { color: var(--brand-1); }
#mainDiv { max-width: var(--page-w); margin: 0 auto; padding: 14px var(--page-pad) 30px; box-sizing: border-box; }
#mainDiv img { max-width: 100%; height: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 30; background: linear-gradient(110deg, var(--brand-1), var(--brand-2)); box-shadow: 0 4px 18px rgba(37, 23, 110, .25); }
.site-head-in { max-width: var(--page-w); margin: 0 auto; padding: 12px var(--page-pad); display: flex; align-items: center; gap: 18px; box-sizing: border-box; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand-logo { height: 46px; width: auto; max-width: 180px; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff;
	background: radial-gradient(circle at 35% 30%, #fb923c, #e11d74 60%, #7c3aed); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }

.head-search { flex: 1; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
	border-radius: 999px; padding: 5px 5px 5px 16px; margin: 0; min-width: 0; }
.head-search-ic { color: #fff; font-size: 18px; opacity: .9; }
.head-search input[type="text"] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; padding: 8px 4px; width: auto; }
.head-search input[type="text"]::placeholder { color: rgba(255,255,255,.75); }
.head-search input[type="submit"] { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 9px 20px; font-weight: 800; font-size: 14px; cursor: pointer; margin: 0; }
.head-search input[type="submit"]:hover { filter: brightness(1.05); }

/* ---- notice ticker (siteuploads/notice.php) ---- */
.notice { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #2a1a5e, #141a33); color: #fff; padding: 8px max(var(--page-pad), calc((100% - var(--page-w)) / 2 + var(--page-pad))); overflow: hidden; }
.notice-tag { flex: none; background: #e11d48; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.notice-run { overflow: hidden; white-space: nowrap; flex: 1; }
/* negative delay: the text is already on screen when the page opens */
.notice-run span { display: inline-block; padding-left: 100%; animation: ticker 22s linear -9s infinite; font-weight: 600; font-size: 14px; }
.notice-run a { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice-run span { animation: none; padding-left: 0; } }

/* ---- section boxes ---- */
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; color: #fff; }
.box-orange .box-head { background: var(--g-orange); }
.box-purple .box-head { background: var(--g-purple); }
.box-pink .box-head   { background: var(--g-pink); }
.box-blue .box-head   { background: var(--g-blue); }
#mainDiv .box-title { margin: 0; padding: 0; background: none; border: 0; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-align: left; }
.box-more { flex: none; color: #fff; background: rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; text-transform: uppercase; }
.box-more:hover { color: #fff; background: rgba(255,255,255,.35); }
.box-body { padding: 14px; }

/* ---- song cards ---- */
.songs { display: grid; gap: 12px; }
@media (min-width: 760px) { .songs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .songs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
a.song { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink);
	text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
a.song:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.song-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--chip); flex: none; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.song-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.song-title { font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { color: var(--link); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.pill-size { background: var(--chip); color: #4b5068; }
.pill-dl { background: #fff4e0; color: #c2410c; }
.pill-time { background: var(--tint); color: #5b3fd6; }
.ad-slot { grid-column: 1 / -1; text-align: center; }
.ad-slot:empty { display: none; }

/* ---- category rows (home + services) ---- */
/* minmax(0, ...) so a long name can never make the column wider than the screen */
.cats { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* laid out like a song card: icon / thumb, then the name with the count and flags on a line under it */
a.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.cat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-1px); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand-1); font-size: 20px; flex: none; }
#mainDiv img.cat-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: none; padding: 0; }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-name { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.cat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-count { font-size: 12px; font-weight: 800; color: #15803d; background: #e7f8ee; padding: 3px 9px; border-radius: 8px; }
.flag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; color: #fff; line-height: 1.2; }
.flag-new { background: #16a34a; } .flag-upd { background: #2563eb; } .flag-hot { background: #e11d48; }

/* ---- old markup on inner pages, restyled ---- */
#mainDiv h1, #mainDiv h2, #mainDiv h3, #mainDiv h4, #mainDiv .title, #mainDiv div.head3 {
	background: var(--g-blue); color: #fff; border: 0; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: 16px; font-weight: 800; text-align: left; line-height: 1.35;
}
#mainDiv h1 a, #mainDiv h2 a, #mainDiv h3 a { color: #fff; }
#mainDiv .box-head h1, #mainDiv .box-head h2, #mainDiv .box-head h3 { border-radius: 0; }
p.track { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }
p.track a { color: var(--link); padding: 0 2px; }
.description { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 12px 14px; color: var(--ink-soft); }

.dtype { border: 0; padding: 4px 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0; }
.dtype a, .dtype span { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); }
.dtype span, .dtype a:hover { background: var(--brand-1); border-color: var(--brand-1); color: #fff; }

.pgn { background: none; padding: 16px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pgn a, .pgn span { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 6px 12px; margin: 0 2px; font-weight: 700; display: inline-block; }
.pgn a:hover, .pgn span { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }
.pgn form { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-soft); }
.pgn input[type="text"] { width: 52px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.pgn input[type="submit"] { background: var(--brand-1); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; }

/* category list page (old .catRow markup) */
#cateogry .catList { display: grid; gap: 10px; }
@media (min-width: 760px) { #cateogry .catList { grid-template-columns: 1fr 1fr; } }
.catRow, .catRowHome { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.catRow:hover, .catRowHome:hover { background: var(--card); box-shadow: var(--shadow); border-color: var(--line-strong); }
.catRow a, .catRowHome a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink); font-weight: 700; background-image: none; }
.catRow a div, .catRowHome a div { display: flex; align-items: center; gap: 10px; }
.catRow img.flThumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; border: 0; padding: 0; box-shadow: none; }

/* song page */
.albumCoverSmall img, .thumbTop, #mainDiv img.absmiddle { border-radius: 14px; border: 0; box-shadow: var(--shadow); padding: 0; }
#mainDiv img.thumbTop { display: block; width: 220px; max-width: 70%; margin: 4px auto 14px; aspect-ratio: 1; object-fit: cover; }
.randomFile { margin-top: 18px; }
.description span { color: var(--ink-soft); }
p.home { margin: 0; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: inherit; font-size: 14px; }
/* singer / remixer / label ... pages use a lone p.home as their breadcrumb */
#mainDiv > div > p.home:only-child { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; }
#mainDiv > div > p.home:only-child a { color: var(--link); padding: 0 2px; }
#mainDiv > div > p.home:only-child i.fa { margin-right: 4px; }
p.home span, p.home b.infotext, .infotext { color: var(--ink); font-weight: 700; }
.musicplayer { margin: 14px 0; }
.musicplayer audio { width: 100%; border-radius: 999px; }
.musicplayer video { display: block; width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }
.fInfo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 16px; box-shadow: var(--shadow); }
#mainDiv a.touch, #mainDiv a.dwnLink { display: block; text-decoration: none; }
#mainDiv .fi { background: var(--g-orange); color: #fff; font-weight: 800; font-size: 16px; text-align: center; border-radius: 14px; padding: 15px 16px; margin: 8px 0; border: 0; box-shadow: 0 8px 20px rgba(249, 115, 22, .28); }
#mainDiv .fi small { color: #fff !important; opacity: .9; }
#mainDiv a.touch:hover .fi, #mainDiv .fi a:hover { filter: brightness(1.05); }
#mainDiv .fi a { color: #fff; }
.fhd { background: var(--tint); color: var(--brand-1); border: 0; border-radius: 8px; padding: 4px 10px; }
summary { border-radius: 12px !important; box-shadow: none !important; border: 1px solid var(--line); background: var(--card) !important; font-size: 15px !important; font-weight: 700 !important; }

/* download page */
#mainDiv h1.song-head { background: var(--g-purple); display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 15px; letter-spacing: .2px; box-shadow: 0 8px 20px rgba(124, 58, 237, .22); }
.song-head-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 16px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; margin: 0 0 16px; text-align: center; }
#mainDiv img.dl-cover { display: block; width: 240px; max-width: 72%; aspect-ratio: 1; object-fit: cover; margin: 0 auto 12px; border-radius: 18px; border: 0; padding: 0; box-shadow: 0 10px 28px rgba(30, 27, 70, .18); }
.dl-by { margin: 0 0 10px; font-weight: 700; color: var(--ink-soft); }
.dl-by a { color: var(--link); }
.dl-share { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); margin-bottom: 14px; }
.dl-share-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft); margin-right: 3px; }
.sh { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; padding: 0; transition: transform .15s; }
.sh:hover { transform: translateY(-2px); }
.sh svg { width: 19px; height: 19px; fill: currentColor; }
.sh-wa { background: #22c55e; } .sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-tg { background: #229ed9; } .sh-copy { background: #334155; }
.sh-copy.done { background: #16a34a; }
#mainDiv h2.dl-name { background: none; color: var(--ink); box-shadow: none; text-align: center; font-size: 17px; padding: 4px 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.dl-info { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; background: var(--card-2); }
.dl-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.dl-row:first-child { border-top: 0; }
.dl-ic { flex: none; width: 22px; text-align: center; }
.dl-label { flex: none; width: 112px; color: var(--ink-soft); font-weight: 600; }
.dl-val { flex: 1; min-width: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.dl-val a { color: #0f9d58; }
.dl-val small { color: var(--ink-soft); font-weight: 600; }
.dl-get { margin-top: 14px; }
#mainDiv a.dl-btn { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--g-orange); color: #fff; font-weight: 800; font-size: 17px; border-radius: 14px; padding: 15px 16px; margin: 10px 0; text-decoration: none; box-shadow: 0 8px 22px rgba(249, 115, 22, .3); }
#mainDiv a.dl-btn:hover { filter: brightness(1.06); }
.dl-btn .ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn small { font-weight: 600; opacity: .9; }
.dl-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.dl-sizes a { padding: 8px 14px; border-radius: 10px; background: var(--brand-1); color: #fff; font-weight: 700; }
.faq details { margin: 0 0 8px; }
.faq details:last-child { margin: 0; }
.faq summary { cursor: pointer; padding: 11px 14px; }
.faq details p { margin: 0; padding: 10px 14px; color: var(--ink-soft); line-height: 1.6; }
/* beat the old inline FAQ style in layout.php (#333 text, #EEE answer box) so it follows light/dark */
.faq summary { color: var(--ink) !important; margin-bottom: 8px !important; }
.faq details[open] summary ~ * { background: var(--card-2) !important; border: 1px solid var(--line); border-radius: 12px; padding: 4px 0 !important; margin-bottom: 8px !important; }
.faq details p { color: var(--ink-soft) !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
@media (max-width: 640px) {
	.dl-label { width: 92px; }
	.dl-row { padding: 10px 12px; font-size: 14px; }
	.sh { width: 33px; height: 33px; }
}

/* search results */
#mainDiv .box-title .search-count { font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px; margin-left: 6px; white-space: nowrap; vertical-align: 2px; }
.search-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 10px; color: var(--ink-soft); }
.search-empty b { font-size: 17px; color: var(--ink); }

/* A-Z singer list */
.az-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; }
.az-bar a { min-width: 34px; height: 34px; padding: 0 8px; box-sizing: border-box; display: grid; place-items: center; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 14px; }
.az-bar a:hover { border-color: var(--brand-1); color: var(--brand-1); }
.az-bar a.on { background: var(--brand-1); border-color: var(--brand-1); color: #fff; }
.az-bar a.az-all { padding: 0 14px; }
.artist-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
a.artist { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: center; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.artist:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
#mainDiv a.artist img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tint); box-shadow: none; padding: 0; }
.artist-name { font-weight: 800; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.artist-count { font-size: 12px; font-weight: 700; color: #15803d; background: #e7f8ee; padding: 2px 9px; border-radius: 8px; }
@media (max-width: 640px) {
	.artist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	#mainDiv a.artist img { width: 80px; height: 80px; }
	.az-bar a { min-width: 30px; height: 30px; font-size: 13px; }
}

/* top downloads: numbered rows */
.rank-row { position: relative; min-width: 0; }
.rank { position: absolute; z-index: 1; left: 4px; top: 4px; min-width: 26px; height: 26px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--brand-1); color: #fff; box-shadow: 0 3px 8px rgba(30, 27, 70, .25); pointer-events: none; }
.rank-row:nth-child(1) .rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-row:nth-child(2) .rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-row:nth-child(3) .rank { background: linear-gradient(135deg, #fdba74, #ea580c); color: #fff; }
.box-body > .dtype { padding-top: 0; }
.empty-note { text-align: center; color: var(--ink-soft); padding: 20px 0; margin: 0; }

/* policy / about / contact pages */
.info-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; margin: 0 0 16px; line-height: 1.7; color: var(--ink); }
#mainDiv .info-page h1 { margin: -4px 0 6px; padding: 0; background: none; color: var(--ink); font-size: 26px; box-shadow: none; border-radius: 0; }
#mainDiv .info-page h2 { margin: 22px 0 8px; padding: 0 0 0 12px; background: none; color: var(--brand-1); font-size: 18px; border-left: 4px solid var(--brand-1); border-radius: 0; box-shadow: none; }
.info-page p, .info-page li { font-size: 15px; color: #3b3850; }
.info-page p { margin: 0 0 12px; }
.info-page ul, .info-page ol { margin: 0 0 12px; padding-left: 22px; }
.info-page li { margin-bottom: 6px; }
.info-updated { color: var(--ink-soft) !important; font-size: 13px !important; margin-bottom: 16px !important; }
.info-social { display: flex; flex-wrap: wrap; gap: 8px; }
.info-social a { padding: 7px 14px; border-radius: 10px; background: var(--tint); font-weight: 700; }
.info-ok, .info-err { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.info-ok { background: #e7f8ee; color: #14532d; border: 1px solid #bbf7d0; }
.info-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-form { display: grid; gap: 12px; max-width: 560px; }
.contact-form label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); color: var(--ink); width: 100%; box-sizing: border-box; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid #c4b5fd; border-color: var(--brand-1); }
.contact-form button { justify-self: start; background: var(--g-blue); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font: inherit; font-weight: 800; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .info-page { padding: 18px 15px 12px; } #mainDiv .info-page h1 { font-size: 22px; } }

/* share this page */
.share-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; margin: 4px 0 14px; text-align: center; }
.share-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.share-head svg { width: 18px; height: 18px; fill: var(--brand-1); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; border: 0; color: #fff !important; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.share-btn[hidden] { display: none; }
.sb-wa { background: #22c55e; } .sb-fb { background: #1877f2; } .sb-x { background: #111; } .sb-tg { background: #229ed9; }
.sb-copy { background: #334155; } .sb-copy.done { background: #16a34a; } .sb-more { background: var(--brand-1); }
@media (max-width: 640px) {
	.share-btns { display: grid; grid-template-columns: repeat(3, 1fr); }
	.share-btn { justify-content: center; padding: 10px 6px; font-size: 13px; }
}

#online { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 8px; }
#online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: 1px; }

/* ---- header nav + phone drawer ---- */
.head-nav { display: none; }
.menu-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; padding: 0 11px; cursor: pointer; }
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--card); width: 22px; }
.menu-btn span:nth-child(2) { width: 15px; }
.menu-btn span:nth-child(3) { width: 19px; }
.menu-btn:hover { background: rgba(255,255,255,.22); }
@media (min-width: 1100px) {
	.head-nav { display: flex; flex: none; gap: 2px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px; }
	.head-nav a { color: #fff; font-weight: 700; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
	.head-nav a:hover { background: rgba(255,255,255,.18); color: #fff; }
	.menu-btn { display: none; }
}
.menu-veil { position: fixed; inset: 0; z-index: 40; background: rgba(10, 8, 30, .55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu-veil.open { opacity: 1; visibility: visible; }
.menu-panel { position: fixed; z-index: 41; top: 12px; bottom: 12px; right: 12px; width: min(340px, calc(100vw - 24px)); box-sizing: border-box; border-radius: 22px; padding: 18px; overflow-y: auto;
	background: linear-gradient(180deg, #3b0f72, #1b1240 55%, #07081a); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.45);
	transform: translateX(calc(100% + 24px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.menu-panel.open { transform: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.menu-top .brand-name { font-size: 19px; }
.menu-close { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.menu-close:hover { background: rgba(255,255,255,.22); }
.menu-title { color: var(--accent); font-weight: 800; font-size: 19px; margin: 22px 0 14px; }
.menu-links { display: flex; flex-direction: column; gap: 10px; }
.menu-links a { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 16px; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.menu-links a span { color: var(--accent); font-size: 20px; line-height: 1; }
.menu-links a:hover { background: rgba(255,255,255,.16); color: #fff; }
@media (prefers-reduced-motion: reduce) { .menu-panel, .menu-veil { transition: none; } }

/* ---- footer ---- */
.site-foot { margin: 18px 0 0; background: linear-gradient(160deg, #4c1d95, #2a1466 45%, #0c0b24); color: #d6d3f0; padding: 34px 0 18px; }
.foot-in { max-width: var(--page-w); box-sizing: border-box; padding: 0 var(--page-pad); margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr; }
.foot-about .brand { margin-bottom: 14px; }
.foot-about p { margin: 0 0 14px; line-height: 1.65; font-size: 14.5px; color: #d6d3f0; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-chips a { font-size: 13px; font-weight: 700; color: #fde68a; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.foot-chips a:hover { background: rgba(255,255,255,.16); color: #fff; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-social a { font-size: 13px; font-weight: 700; color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.foot-social a:hover { background: rgba(255,255,255,.26); color: #fff; }
.brand-logo { display: block; object-fit: contain; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-head { color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.foot-col a { color: #fff; font-weight: 600; font-size: 14.5px; }
.foot-col a::before { content: "\203A"; color: var(--accent); margin-right: 8px; font-weight: 800; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { width: calc(100% - 2 * var(--page-pad)); max-width: calc(var(--page-w) - 2 * var(--page-pad)); box-sizing: border-box; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.foot-copy { color: #c4c0e6; font-size: 13.5px; }
.site-foot #online { color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.45); }
@media (max-width: 760px) {
	.foot-in { grid-template-columns: 1fr; gap: 24px; }
	.foot-bottom { justify-content: center; text-align: center; }
}

/* ---- back to top ---- */
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 25; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--g-blue); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .4);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: #fff; filter: brightness(1.1); }

/* ---- phones ---- */
@media (max-width: 640px) {
	:root { --page-pad: 12px; }
	.site-head-in { flex-wrap: wrap; gap: 10px; padding: 10px var(--page-pad) 12px; }
	.site-head-in > .brand { flex: 1; min-width: 0; }
	.site-head-in > .menu-btn { order: 2; }
	.head-search { order: 3; }
	.brand-name { font-size: 19px; }
	.brand-mark, .brand-logo { height: 40px; }
	.brand-mark { width: 40px; }
	.head-search { flex-basis: 100%; }
	#mainDiv { padding: 12px var(--page-pad) 24px; }
	.box-head { padding: 12px 14px; }
	#mainDiv .box-title { font-size: 15px; }
	.box-body { padding: 10px; }
	.song-thumb { width: 56px; height: 56px; }
}

/* ==========================================================================
   Dark theme: <html data-theme="dark">. Set before the page paints by the
   script in layout.php (auto by time of day, or the visitor's own choice).
   ========================================================================== */
:root { color-scheme: light; }
:root[data-theme="dark"] {
	color-scheme: dark;
	--ink: #ecebf5;
	--ink-soft: #a9a6c2;
	--link: #b8a6ff;
	--bg: #0e0d16;
	--card: #181624;
	--card-2: #1f1c2e;
	--chip: #262338;
	--tint: #2a2347;
	--line: #2b2840;
	--line-strong: #4a4170;
	--shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] a:hover { color: #d4c8ff; }
:root[data-theme="dark"] .site-head { background: linear-gradient(110deg, #3b1a86, #1d3b8f); box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .notice { background: linear-gradient(90deg, #1b1240, #0b0e1d); }
:root[data-theme="dark"] .site-foot { background: linear-gradient(160deg, #24104f, #170b3a 45%, #07060f); }

/* coloured pills keep their meaning, on dark backgrounds */
:root[data-theme="dark"] .pill-size { background: #262338; color: #c3c0dc; }
:root[data-theme="dark"] .pill-dl { background: #3a2312; color: #fdba74; }
:root[data-theme="dark"] .pill-time { background: #2a2347; color: #c4b5fd; }
:root[data-theme="dark"] .cat-count,
:root[data-theme="dark"] .artist-count { background: #12301f; color: #6ee7a0; }
:root[data-theme="dark"] .tag-list a { background: #33142a; color: #f9a8d4; border-color: #5b2148; }
:root[data-theme="dark"] .info-ok { background: #12301f; color: #a7f3c4; border-color: #1f5a37; }
:root[data-theme="dark"] .info-err { background: #3a1416; color: #fecaca; border-color: #6b2226; }
:root[data-theme="dark"] .info-page p, :root[data-theme="dark"] .info-page li { color: #d4d1e8; }
:root[data-theme="dark"] #mainDiv .info-page h2 { color: #b8a6ff; border-left-color: #8b6cff; }
:root[data-theme="dark"] .fhd,
:root[data-theme="dark"] .cat-icon,
:root[data-theme="dark"] .rank { color: #c4b5fd; }
:root[data-theme="dark"] .dl-val a { color: #6ee7a0; }
:root[data-theme="dark"] .song-thumb { background: #262338; }
:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form select,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .pgn input[type="text"] { background: var(--card-2); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .musicplayer audio { filter: invert(.9) hue-rotate(180deg); }

/* older page markup from style.css */
:root[data-theme="dark"] .fl,
:root[data-theme="dark"] .even,
:root[data-theme="dark"] .odd,
:root[data-theme="dark"] .list,
:root[data-theme="dark"] .mb,
:root[data-theme="dark"] .singerinfo,
:root[data-theme="dark"] .labelinfo,
:root[data-theme="dark"] .filedescription,
:root[data-theme="dark"] .info,
:root[data-theme="dark"] .path,
:root[data-theme="dark"] .fshow,
:root[data-theme="dark"] .top21,
:root[data-theme="dark"] .gray, :root[data-theme="dark"] .red, :root[data-theme="dark"] .purple,
:root[data-theme="dark"] .yellow, :root[data-theme="dark"] .orange, :root[data-theme="dark"] .pink,
:root[data-theme="dark"] .az a { background: var(--card); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .fl:hover,
:root[data-theme="dark"] .artistRow:hover,
:root[data-theme="dark"] .catRow:hover,
:root[data-theme="dark"] .catRowHome:hover { background: var(--card-2); }
:root[data-theme="dark"] #mainDiv font[color="black"],
:root[data-theme="dark"] #mainDiv [style*="color:#000"],
:root[data-theme="dark"] #mainDiv [style*="color: #000"],
:root[data-theme="dark"] #mainDiv [style*="background-color: white"],
:root[data-theme="dark"] #mainDiv [style*="background-color:white"] { color: var(--ink) !important; background-color: transparent !important; }

/* ---- theme switch (header button + footer choice) ---- */
.theme-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn:hover { background: rgba(255,255,255,.22); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
.theme-pick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.theme-pick button { border: 0; background: transparent; color: #d6d3f0; font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.theme-pick button[aria-pressed="true"] { background: #fff; color: #2a1466; }
/* keep the footer's last row clear of the round back-to-top button */
@media (min-width: 761px) and (max-width: 1360px) { .foot-bottom { padding-right: 60px; } }
@media (max-width: 640px) {
	.site-head-in > .theme-btn { order: 1; }
	.theme-btn { width: 40px; height: 40px; }
}
/* ==========================================================================
   Upload page (/upload.html): log in / sign up, drag & drop, my uploads
   ========================================================================== */
.up-msg, .up-result { border-radius: 12px; padding: 11px 14px; margin: 0 0 14px; font-weight: 600; }
.up-msg-ok { background: #e7f8ee; color: #14532d; border: 1px solid #bbf7d0; }
.up-msg-err { background: #fdecec; color: #7f1d1d; border: 1px solid #fecaca; }
:root[data-theme="dark"] .up-msg-ok { background: #12301f; color: #a7f3c4; border-color: #1f5a37; }
:root[data-theme="dark"] .up-msg-err { background: #3a1416; color: #fecaca; border-color: #6b2226; }
.up-note { color: var(--ink-soft); margin: 0 0 12px; }
.up-small { font-size: 13px; color: var(--ink-soft); }
.up-soft { color: var(--ink-soft); }
.up-red { color: #dc2626; }
:root[data-theme="dark"] .up-red { color: #fca5a5; }
.up-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 2px 0 12px; }
.up-steps div { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--ink); }
.up-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--g-purple); }
.up-auth { max-width: 480px; margin: 6px auto 4px; }
.up-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--chip); border-radius: 999px; padding: 5px; margin-bottom: 14px; }
.up-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 9px; font: inherit; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.up-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.up-form { display: flex; flex-direction: column; gap: 12px; }
.up-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.up-form label small { font-weight: 500; color: var(--ink-soft); }
.up-form input[type=text], .up-form input[type=email], .up-form input[type=password], .up-form select {
	width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); }
.up-form input[type=file] { font: inherit; font-size: 13.5px; color: var(--ink-soft); }
.up-form input:focus, .up-form select:focus { outline: 0; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.up-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.up-btn { align-self: flex-start; border: 0; border-radius: 12px; padding: 12px 26px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: var(--g-purple); cursor: pointer; box-shadow: 0 6px 16px rgba(124, 58, 237, .28); }
.up-btn:hover { filter: brightness(1.07); }
.up-btn[disabled] { opacity: .7; cursor: wait; }
.up-auth .up-btn { align-self: stretch; }
.up-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--link); cursor: pointer; text-decoration: underline; }
.up-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; color: var(--ink); }
.up-drop { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px !important; text-align: center;
	min-height: 170px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--card-2); cursor: pointer; transition: border-color .15s, background .15s; }
.up-drop:hover, .up-drop.over { border-color: #7c3aed; background: var(--tint); }
.up-drop.has { border-style: solid; border-color: #16a34a; }
.up-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.up-drop-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--g-purple); color: #fff; }
.up-drop-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.up-drop-main { font-weight: 600; font-size: 15px; color: var(--ink); word-break: break-word; }
.up-drop-main u { color: var(--link); }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.up-wide { grid-column: 1 / -1; }
.up-progress { display: flex; align-items: center; gap: 10px; }
.up-progress > div { flex: 1; height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.up-progress span { display: block; height: 100%; width: 0; background: var(--g-purple); transition: width .2s; }
.up-progress b { min-width: 76px; text-align: right; font-size: 13px; color: var(--ink); }
.up-list { display: flex; flex-direction: column; gap: 8px; }
.up-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.up-item-main { min-width: 0; flex: 1 1 260px; }
.up-item-title { font-weight: 800; color: var(--ink); word-break: break-word; }
.up-item-side { display: flex; align-items: center; gap: 10px; }
.up-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.up-b-wait { background: #fff4d6; color: #8a5300; }
.up-b-live { background: #dcfce7; color: #166534; }
.up-b-rej { background: #fdecec; color: #991b1b; }
:root[data-theme="dark"] .up-b-wait { background: #3d2e0b; color: #fcd34d; }
:root[data-theme="dark"] .up-b-live { background: #14532d; color: #bbf7d0; }
:root[data-theme="dark"] .up-b-rej { background: #4c1518; color: #fecaca; }
@media (max-width: 640px) {
	.up-steps { grid-template-columns: 1fr; }
	.up-grid { grid-template-columns: 1fr; }
	.up-btn { align-self: stretch; }
}
.up [hidden] { display: none !important; }

/* ---- theme preview bar (Admin > Themes > Preview) ---- */
.theme-preview-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 24px); box-sizing: border-box;
	background: #111827; color: #fff; border-radius: 999px; padding: 9px 10px 9px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.theme-preview-bar a { color: #111827; background: #fbbf24; border-radius: 999px; padding: 5px 12px; font-weight: 800; }