/* ==========================================================================
   MP3Nest - public site stylesheet
   Colours come from CSS variables printed in the layout head (Admin > Appearance).
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
    --primary: #6C4DF6;
    --primary-rgb: 108, 77, 246;
    --secondary: #3B82F6;
    --secondary-rgb: 59, 130, 246;
    --grad: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 130%);
    --grad-text: linear-gradient(90deg, #8b6cff 0%, #5b8cff 100%);
    --bg: #050a22;
    --bg-2: #08102e;
    --surface: #0b1338;
    --surface-2: #0f1945;
    --surface-3: #131f52;
    --line: rgba(84, 110, 255, .22);
    --line-strong: rgba(98, 126, 255, .42);
    --text: #ffffff;
    --text-2: #c9cfee;
    --muted: #8e97c4;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --glow: 0 0 0 1px rgba(var(--primary-rgb), .25), 0 8px 28px rgba(var(--primary-rgb), .18);
    --header-h: 74px;
    --container: 1320px;
}

html[data-theme="light"] {
    --bg: #f3f5fc;
    --bg-2: #eaeefb;
    --surface: #ffffff;
    --surface-2: #f6f7ff;
    --surface-3: #eceffd;
    --line: rgba(60, 72, 140, .14);
    --line-strong: rgba(60, 72, 140, .26);
    --text: #121735;
    --text-2: #39406a;
    --muted: #6a7299;
    --shadow: 0 10px 30px rgba(30, 40, 90, .08);
}

html[data-theme="neon"] {
    --bg: #07021a;
    --bg-2: #0d0526;
    --surface: #140a35;
    --surface-2: #1a0d45;
    --surface-3: #22105a;
    --line: rgba(217, 70, 239, .28);
    --line-strong: rgba(217, 70, 239, .5);
}

html[data-theme="minimal"] {
    --bg: #0b0d12;
    --bg-2: #10131a;
    --surface: #151922;
    --surface-2: #1a1f2a;
    --surface-3: #212736;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --glow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 85% -10%, rgba(var(--primary-rgb), .10), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(var(--secondary-rgb), .07), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-sep::before { content: "•"; margin: 0 6px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(var(--primary-rgb), .38); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(var(--primary-rgb), .55); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--text); }
html[data-theme="light"] .btn-outline { border-color: var(--line-strong); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-primary { border-color: rgba(var(--secondary-rgb), .9); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--secondary-rgb), .25); }
html[data-theme="light"] .btn-outline-primary { color: var(--primary); }
.btn-outline-primary:hover { background: rgba(var(--secondary-rgb), .12); }
.btn-soft { background: rgba(var(--primary-rgb), .14); color: #b9a8ff; border-color: rgba(var(--primary-rgb), .35); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: #2b1b8f; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 17px;
    transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(var(--primary-rgb), .18); border-color: rgba(var(--primary-rgb), .7); }
.view-all {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px;
    background: rgba(var(--secondary-rgb), .12); border: 1px solid rgba(var(--secondary-rgb), .25);
    color: #c7d3ff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
html[data-theme="light"] .view-all { color: var(--primary); }
.view-all:hover { background: rgba(var(--secondary-rgb), .22); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60; height: var(--header-h);
    background: rgba(5, 10, 34, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(84, 110, 255, .14);
}
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .9); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1400px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand-name b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { display: block; font-size: 11px; font-weight: 500; color: var(--text-2); margin-top: 4px; letter-spacing: .01em; }
.brand img.brand-logo { height: 42px; width: auto; }

.header-search { flex: 1 1 auto; max-width: 400px; position: relative; }
.search-pill {
    display: flex; align-items: center; height: 40px; border-radius: 999px; background: #fff; padding: 0 4px 0 16px;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .45), 0 0 22px rgba(var(--primary-rgb), .45);
}
.search-pill > i.bi-search { color: #5a5f7d; font-size: 14px; }
.search-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1b1f3b; font-size: 13.5px; padding: 0 10px; }
.search-pill input::placeholder { color: #6c7090; }
.search-pill button {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 15px;
    display: grid; place-items: center; flex-shrink: 0;
}
.search-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; display: none;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
    max-height: 420px; overflow: auto;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.search-suggest a:hover, .search-suggest a.active { background: var(--surface-2); }
.search-suggest img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.search-suggest small { display: block; color: var(--muted); font-size: 12px; }
.search-suggest .type { margin-left: auto; font-size: 11px; color: #b9a8ff; text-transform: uppercase; letter-spacing: .05em; }

.main-nav { display: flex; align-items: stretch; height: 100%; gap: 6px; margin-left: auto; }
.main-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 70px; padding: 0 12px; color: var(--text-2); font-size: 12.5px; font-weight: 500;
}
.main-nav a i { font-size: 18px; color: var(--text); }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: #b9a8ff; background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), .12)); }
.main-nav a.active i { color: #a58bff; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }

.main-nav.text-nav { gap: 22px; margin-left: 30px; margin-right: auto; }
.main-nav.text-nav a { flex-direction: row; min-width: 0; padding: 0 4px; font-size: 14.5px; color: #e9ecff; font-weight: 500; }
.main-nav.text-nav a.active { background: none; color: #a58bff; }
.main-nav.text-nav a.active::after { left: 2px; right: 2px; bottom: 18px; height: 2px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .btn { height: 40px; }
.user-menu { position: relative; }
.user-menu > button { padding: 0; }
.user-menu img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(var(--primary-rgb), .7); }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 90; display: none;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); background: none; border: 0; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 28px; padding: 0; line-height: 1; }
.mobile-only { display: none !important; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 99; background: var(--bg-2);
    border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .28s ease; padding: 20px; overflow-y: auto;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.drawer nav a i { font-size: 18px; width: 22px; text-align: center; }
.drawer nav a.active, .drawer nav a:hover { background: rgba(var(--primary-rgb), .14); color: var(--text); }
.drawer .drawer-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 10px 6px; }
.drawer .drawer-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }

/* ---------- Generic card ---------- */
.card {
    background: linear-gradient(180deg, rgba(17, 27, 74, .78), rgba(10, 17, 52, .9));
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0, 0, 0, .25);
}
html[data-theme="light"] .card { background: var(--surface); }
html[data-theme="minimal"] .card, html[data-theme="neon"] .card { background: var(--surface); }
.card-pad { padding: 20px; }
.card-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-title i { color: #a58bff; }

/* ---------- Sections ---------- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-title h2 { font-size: 22px; font-weight: 700; }
.section-title p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.sec-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; color: #fff; }
.sec-ico.flame { background: none; font-size: 28px; color: #ff6b8a; width: 30px; }
.sec-ico.flame i { background: linear-gradient(180deg, #ffb36b, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-ico.teal { background: linear-gradient(135deg, #22d3ee, #14b8a6); }
.sec-ico.purple { background: linear-gradient(135deg, #e879f9, #8b5cf6); }
.sec-ico.star { background: none; font-size: 30px; width: 30px; }
.sec-ico.star i { color: #fbbf24; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .45)); }
.sec-ico.wave { background: none; font-size: 26px; width: 28px; }
.sec-ico.wave i { background: linear-gradient(180deg, #22d3ee, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-ico.orange { background: linear-gradient(135deg, #fb923c, #ef4444); }

/* ---------- Hero slider (classic home) ---------- */
.hero-slider { position: relative; margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); height: clamp(300px, calc((100vw - 48px) * .2625), 334px); background: #0a0f2c; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(6, 12, 40, .55) 55%, rgba(6, 12, 40, .2) 100%); }
.hero-content { position: absolute; z-index: 2; left: 49%; top: 50%; transform: translateY(-50%); max-width: 46%; }
.hero-content h1 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.25; }
.hero-tags { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.tag {
    display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), .75); background: rgba(var(--primary-rgb), .14); color: #e7e3ff;
}
html[data-theme="light"] .tag { color: var(--primary); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-content p { margin-top: 18px; color: #e8ebff; font-size: 14.5px; line-height: 1.6; max-width: 440px; }
.badge-new { position: absolute; z-index: 3; top: 16px; left: 16px; background: #ef2b4f; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; letter-spacing: .03em; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(5, 10, 34, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; display: grid; place-items: center; font-size: 16px; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow:hover { background: rgba(var(--primary-rgb), .6); }
.slider-dots { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 7px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); }
.slider-dots button.active { background: #fff; }
.slider-dots button:nth-child(2).active ~ button, .slider-dots button.active + button { background: rgba(165, 139, 255, .6); }

/* ---------- Category tiles (classic) ---------- */
.cat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(19, 30, 80, .75), rgba(12, 19, 56, .9)); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
html[data-theme="light"] .cat-tile { background: var(--surface); }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.cat-tile strong { display: block; font-size: 15px; font-weight: 600; }
.cat-tile div > span { font-size: 12.5px; color: var(--text-2); }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.g-purple { background: linear-gradient(135deg, #d946ef, #7c3aed); }
.g-blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.g-red { background: linear-gradient(135deg, #fb7185, #e11d48); }
.g-teal { background: linear-gradient(135deg, #5eead4, #0d9488); }
.g-sky { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.g-orange { background: linear-gradient(135deg, #fdba74, #f43f5e); }
.g-green { background: linear-gradient(135deg, #4ade80, #059669); }
.g-amber { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.g-pink { background: linear-gradient(135deg, #f9a8d4, #ec4899); }

/* ---------- Media cards ---------- */
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.media-card {
    position: relative; display: block; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #0f1a4d, #0a1238);
    border: 1px solid rgba(90, 120, 255, .45); box-shadow: 0 0 0 1px rgba(90, 120, 255, .08), 0 10px 26px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s;
}
html[data-theme="light"] .media-card { background: var(--surface); border-color: var(--line); }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .55), 0 16px 34px rgba(var(--primary-rgb), .25); }
.media-thumb { position: relative; aspect-ratio: 1 / .72; overflow: hidden; background: #0a0f2c; }
.media-thumb.square { aspect-ratio: 1 / 1; }
.media-thumb.wide { aspect-ratio: 16 / 7.4; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover .media-thumb img { transform: scale(1.05); }
.media-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(5, 10, 34, .55)); pointer-events: none; }
.play-dot {
    position: absolute; z-index: 2; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #10163a; display: grid; place-items: center; font-size: 15px; border: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .2s, background .2s;
}
.play-dot i { margin-left: 2px; }
.play-dot.ghost { background: rgba(10, 15, 44, .45); color: #fff; border: 1.5px solid rgba(255, 255, 255, .8); width: 26px; height: 26px; font-size: 12px; }
.play-dot:hover { transform: scale(1.1); background: #fff; color: var(--primary); }
.media-body { padding: 10px 12px 12px; }
.media-body h3 { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-body .sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-body .meta { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(90, 130, 255, .5); background: rgba(40, 70, 200, .18); font-size: 11px; color: #d5dcff; white-space: nowrap; }
html[data-theme="light"] .chip { color: var(--text-2); }
.chip .div { width: 1px; height: 12px; background: rgba(150, 170, 255, .45); }
.type-badge { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; }
.type-badge.song { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.type-badge.album { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.type-badge.movie { background: linear-gradient(90deg, #22c55e, #16a34a); }
.dl-dot { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 14px rgba(var(--primary-rgb), .5); }

/* ---------- Genre pills (classic) ---------- */
.genre-pills { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.genre-pill { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 10px; border-radius: 999px; background: linear-gradient(180deg, rgba(23, 36, 96, .9), rgba(14, 22, 64, .9)); border: 1px solid var(--line); font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; transition: border-color .2s, transform .2s; }
html[data-theme="light"] .genre-pill { background: var(--surface); }
.genre-pill:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.genre-pill .gi { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; flex-shrink: 0; }

/* ---------- Genre tiles (spotlight) ---------- */
.genre-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.genre-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 88px; border-radius: 12px; font-weight: 600; font-size: 13.5px; border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s; }
.genre-tile:hover { transform: translateY(-3px); }
.genre-tile .gi { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }

/* ---------- CTA banner ---------- */
.cta-banner {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; margin-top: 34px; padding: 18px 30px 18px 34px; border-radius: 14px;
    background: linear-gradient(90deg, #6d28d9 0%, #5b21b6 18%, #4338ca 60%, #4f46e5 100%); box-shadow: 0 14px 40px rgba(79, 70, 229, .35);
}
.cta-banner::before { content: ""; position: absolute; left: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.cta-art { position: relative; width: 110px; height: 70px; flex-shrink: 0; display: grid; place-items: center; }
.cta-art .cloud { width: 82px; height: 58px; border-radius: 40px; background: linear-gradient(180deg, #a78bfa, #7c3aed); display: grid; place-items: center; font-size: 26px; color: #fff; box-shadow: 0 0 28px rgba(196, 181, 253, .8), inset 0 2px 0 rgba(255, 255, 255, .35); }
.cta-banner h3 { font-size: 18px; font-weight: 700; color: #fff; }
.cta-banner p { font-size: 13px; color: #e6e1ff; margin-top: 4px; max-width: 520px; }
.cta-banner .btn { margin-left: auto; border-color: rgba(255, 255, 255, .85); color: #fff; height: 44px; border-radius: 999px; padding: 0 24px; }
.cta-banner .btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 26px; padding: 18px 0 22px; border-top: 1px solid rgba(84, 110, 255, .12); }
.footer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--text-2); padding: 0 16px; border-left: 1px solid rgba(150, 160, 220, .3); }
.footer-links a:first-child { border-left: 0; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; justify-content: flex-end; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--secondary-rgb), .14); color: var(--text); font-size: 14px; transition: background .2s; }
.footer-social a:hover { background: var(--grad); }
.footer-copy { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.footer-copy .heart { color: #ef4444; }
.footer-brand .brand-name { font-size: 19px; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-brand .brand-tag { font-size: 10px; margin-top: 2px; }
.newsletter { display: flex; gap: 8px; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 14px; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { display: none; }
.m-dl { display: none; }
.mini-player { display: none; }

/* ---------- Spotlight hero (home layout 2) ---------- */
.spot-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(84, 110, 255, .14); min-height: 410px; }
.spot-hero-bg { position: absolute; inset: 0; }
.spot-hero-bg img { position: absolute; right: 0; top: 0; height: 100%; width: 70%; object-fit: cover; object-position: center 25%; }
.spot-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050a22 30%, rgba(5, 10, 34, .7) 48%, rgba(5, 10, 34, .05) 75%, rgba(5, 10, 34, .35) 100%), linear-gradient(0deg, rgba(5, 10, 34, .7), transparent 30%); }
html[data-theme="light"] .spot-hero-bg::after { background: linear-gradient(90deg, #f3f5fc 30%, rgba(243, 245, 252, .7) 48%, transparent 75%); }
.spot-hero .container { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 40px; display: flex; align-items: center; }
.spot-copy { max-width: 640px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #dfe3ff; }
.kicker b { color: #a58bff; font-weight: 600; }
.spot-copy h1 { font-size: clamp(32px, 3.5vw, 50px); font-weight: 800; line-height: 1.12; margin-top: 14px; letter-spacing: -.02em; }
.spot-copy p { color: #e3e6fb; margin-top: 18px; font-size: 15px; max-width: 520px; }
.hero-search { margin-top: 24px; display: flex; align-items: center; height: 52px; background: #fff; border-radius: 999px; padding: 0 6px 0 20px; max-width: 500px; box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .5), 0 0 30px rgba(var(--primary-rgb), .4); }
.hero-search > i.bi-search { color: #555a78; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #1b1f3b; padding: 0 12px; font-size: 14px; }
.hero-search select { border: 0; border-left: 1px solid #e3e5f0; background: none; outline: 0; color: #4c5170; padding: 0 30px 0 14px; height: 30px; font-size: 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.hero-search button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.trending-searches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.trending-searches a { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: 12px; font-weight: 500; color: #eef0ff; }
.trending-searches a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero-points { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1400px) / 2 + 24px)); top: 50%; transform: translateY(-50%); display: grid; gap: 22px; }
.hero-point { display: flex; align-items: center; gap: 14px; }
.hero-point .ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; border: 1.5px solid rgba(165, 139, 255, .75); background: rgba(16, 12, 60, .55); color: #fff; box-shadow: 0 0 18px rgba(var(--primary-rgb), .35); }
.hero-point strong { display: block; font-size: 14px; }
.hero-point span { font-size: 12.5px; color: #d6daf5; }

.big-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.big-cat { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 22px; min-height: 106px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s; }
.big-cat:hover { transform: translateY(-3px); }
.big-cat .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; flex-shrink: 0; align-self: flex-start; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.big-cat strong { display: block; font-size: 19px; font-weight: 700; margin-top: 14px; }
.big-cat span { font-size: 12px; color: #e3e6fb; }
.big-cat .arrow { position: absolute; right: 16px; bottom: 14px; font-size: 16px; }
.bc-purple { background: linear-gradient(135deg, #4c1d95 0%, #3b1a7a 50%, #2a1560 100%); }
.bc-purple .ico { background: linear-gradient(135deg, #d946ef, #a855f7); }
.bc-blue { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 60%, #172a6d 100%); }
.bc-blue .ico { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.bc-green { background: linear-gradient(135deg, #065f46 0%, #064e3b 60%, #053a2d 100%); }
.bc-green .ico { background: linear-gradient(135deg, #4ade80, #16a34a); }
.bc-orange { background: linear-gradient(135deg, #9a3412 0%, #7c2d12 50%, #5c210d 100%); }
.bc-orange .ico { background: linear-gradient(135deg, #fbbf24, #f97316); }

.spot-cards .media-thumb { aspect-ratio: 1 / .86; }
.spot-cards .media-body h3 { font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-2); margin: 16px 0; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: 10px; color: var(--muted); }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ---------- Song page (classic) ---------- */
.song-top { display: grid; grid-template-columns: 280px minmax(0, 1fr) 312px; gap: 26px; align-items: start; }
.cover-box { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 1 / .76; box-shadow: var(--shadow); }
.cover-box img { width: 100%; height: 100%; object-fit: cover; }
.lang-badge { position: absolute; top: 10px; left: 10px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; z-index: 2; }
.cover-play { position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: rgba(5, 10, 34, .55); color: #fff; font-size: 20px; display: grid; place-items: center; z-index: 2; }
.cover-play i { margin-left: 3px; }
.kind { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; background: var(--grad); padding: 2px 7px; border-radius: 4px; text-transform: uppercase; color: #fff; }
.song-info h1 { font-size: 34px; font-weight: 700; margin-top: 6px; }
.song-info h2 { font-size: 20px; font-weight: 500; color: #e6e9ff; margin-top: 4px; }
.credits { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.credits span { padding: 0 14px; border-left: 1px solid rgba(150, 160, 220, .35); }
.credits span:first-child { padding-left: 0; border-left: 0; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.meta-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 13px; color: #e6e9ff; background: rgba(255, 255, 255, .02); }
html[data-theme="light"] .meta-chip { color: var(--text-2); }
.song-info .desc { margin-top: 16px; font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 640px; }

.album-mini { display: flex; gap: 16px; align-items: center; }
.album-mini img { width: 104px; height: 104px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-strong); }
.album-mini h4 { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.album-mini .btn { margin-top: 12px; height: 34px; border-radius: 8px; }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.share-row strong { font-size: 14px; margin-right: 6px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); font-size: 15px; transition: transform .2s; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.fb { background: #1877f2; border-color: #1877f2; }
.share-btn.x { background: #0b0b14; }
.share-btn.wa { background: #22c55e; border-color: #22c55e; }
.share-btn.tg { background: #2aa3e0; border-color: #2aa3e0; }
.share-btn.cp { background: rgba(255, 255, 255, .06); }

.download-box { padding: 18px 22px; border-color: rgba(var(--primary-rgb), .45); background: linear-gradient(135deg, rgba(42, 30, 120, .55), rgba(14, 22, 70, .9) 55%); }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--grad); color: #fff; box-shadow: 0 0 22px rgba(var(--primary-rgb), .55); flex-shrink: 0; }
.dl-ico.square { border-radius: 12px; }
.dl-head h3 { font-size: 20px; font-weight: 700; }
.dl-head p { font-size: 13px; color: var(--text-2); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; }
.quality-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.quality {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--line-strong); background: rgba(10, 16, 52, .7); transition: border-color .2s, background .2s;
}
html[data-theme="light"] .quality { background: var(--surface-2); }
.quality input { position: absolute; opacity: 0; pointer-events: none; }
.quality strong { font-size: 14px; font-weight: 600; }
.quality small { font-size: 11.5px; color: var(--text-2); }
.quality:hover { border-color: rgba(var(--primary-rgb), .8); }
.quality.selected { border: 1.5px solid #8b6cff; background: linear-gradient(180deg, rgba(var(--primary-rgb), .55), rgba(var(--primary-rgb), .25)); box-shadow: 0 0 18px rgba(var(--primary-rgb), .4); }
.quality.selected::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; color: #fff; font-size: 13px; display: grid; place-items: center; border: 2px solid #0b1338; }
.dl-actions { display: grid; gap: 14px; }
.dl-actions .btn { height: 48px; font-size: 15px; border-radius: 10px; }
.player-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.round-play { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #8b6cff; background: rgba(var(--primary-rgb), .2); color: #fff; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.round-play.solid { background: var(--grad); border: 0; width: 40px; height: 40px; box-shadow: 0 0 20px rgba(var(--primary-rgb), .55); }
.time { font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress { position: relative; flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); cursor: pointer; }
.progress > span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--grad); }
.volume { display: flex; align-items: center; gap: 10px; width: 120px; }
.volume .progress { height: 5px; }
.volume .progress > span::after { content: ""; position: absolute; right: -6px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: #c8bbff; }

.tabs { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 34px; padding: 0 16px; border-radius: 8px; border: 0; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.lyrics-card { position: relative; overflow: hidden; min-height: 280px; }
.lyrics-art { position: absolute; right: 0; top: 0; bottom: 0; width: 56%; pointer-events: none; }
.lyrics-art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
.lyrics-art .script { position: absolute; right: 70px; bottom: 50px; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 40px; color: #f0abfc; text-shadow: 0 0 18px rgba(240, 171, 252, .8); transform: rotate(-8deg); }
.lyrics-text { position: relative; z-index: 1; font-size: 14.5px; line-height: 1.6; color: #e9ecff; }
.lyrics-text p { margin-bottom: 14px; }
.lyrics-quote { position: absolute; right: 22px; bottom: 16px; z-index: 1; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #d9dcf5; max-width: 140px; }
.copy-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.copy-btn:hover { color: var(--text); border-color: #8b6cff; }

.detail-list { display: grid; gap: 10px; }
.detail-list li { display: grid; grid-template-columns: 20px 92px 12px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.detail-list li i { color: #c7ccf0; font-size: 15px; }
.detail-list li b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.detail-list.sm li { font-size: 12.5px; grid-template-columns: 18px 82px 10px minmax(0, 1fr); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.list-item + .list-item { border-top: 1px solid rgba(84, 110, 255, .1); }
.list-item img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.list-item.sm img { width: 52px; height: 52px; }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item h4 { font-size: 14px; font-weight: 600; line-height: 1.35; }
.list-item .li-sub { font-size: 12.5px; color: var(--text-2); }
.list-item .li-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.circle-dl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #b9a8ff; background: rgba(var(--primary-rgb), .14); border: 1px solid rgba(var(--primary-rgb), .3); font-size: 14px; flex-shrink: 0; }
.circle-dl:hover { background: var(--grad); color: #fff; }

.mini-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mini-card { display: block; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.mini-card .media-thumb { aspect-ratio: 1 / .78; }
.mini-card .mc-body { padding: 7px 8px 9px; }
.mini-card h5 { font-size: 12px; font-weight: 600; }
.mini-card small { display: block; font-size: 11px; color: var(--text-2); }
.mini-tag { position: absolute; right: 6px; bottom: 6px; z-index: 2; background: #8b5cf6; color: #fff; font-size: 9.5px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Song page (wave layout) ---------- */
.wave-hero { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); padding: 22px; }
.wave-hero-bg { position: absolute; inset: 0; z-index: 0; }
.wave-hero-bg img { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); }
.wave-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; }
.wave-hero .cover-box { aspect-ratio: 1 / 1.18; }
.waveform { display: flex; align-items: center; gap: 2px; height: 38px; flex: 1; cursor: pointer; min-width: 0; overflow: hidden; }
.waveform span { flex: 1 0 2px; max-width: 3px; border-radius: 2px; background: rgba(150, 140, 255, .35); }
.waveform span.on { background: linear-gradient(180deg, #a78bfa, #6366f1); }
.wave-actions { display: flex; gap: 24px; align-items: flex-start; }
.wave-actions a, .wave-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; font-size: 12px; color: var(--text-2); }
.wave-actions .icon-btn { width: 44px; height: 44px; }

/* ---------- Album page with sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.side-nav { border-right: 1px solid rgba(84, 110, 255, .14); padding: 18px 12px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; display: flex; flex-direction: column; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.side-nav a i { font-size: 17px; color: var(--text); width: 20px; }
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); }
.side-nav .side-label { font-size: 13.5px; color: var(--text-2); margin: 18px 12px 6px; padding-top: 14px; border-top: 1px solid rgba(84, 110, 255, .14); }
.app-card { margin-top: auto; padding: 18px 14px; border-radius: 12px; text-align: center; background: linear-gradient(160deg, #6d28d9, #4338ca); border: 1px solid rgba(255, 255, 255, .15); }
.app-card strong { display: block; font-size: 14px; line-height: 1.35; }
.app-card .stores { display: flex; justify-content: center; gap: 14px; font-size: 26px; margin: 12px 0; }
.app-card .stores .bi-android2 { color: #4ade80; }
.side-nav .app-card a.btn { display: inline-flex; color: #2b1b8f; padding: 0 18px; font-weight: 600; }
.side-nav .app-card a.btn:hover { background: #fff; }
.side-foot .brand { padding: 0; }
.side-foot { margin-top: 28px; font-size: 11px; color: var(--muted); }
.side-foot .brand-name { font-size: 15px; }
.side-foot .brand-mark { width: 26px; height: 26px; }
.side-foot .brand-tag { font-size: 9px; margin-top: 1px; }
.page-main { padding: 18px 22px 30px; min-width: 0; }

.album-hero { position: relative; display: grid; grid-template-columns: 258px minmax(0, 1fr) 250px; gap: 30px; align-items: center; padding: 6px 0 18px; }
.album-hero-bg { position: absolute; inset: -18px -22px 0 30%; z-index: 0; pointer-events: none; }
.album-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); }
.album-hero > :not(.album-hero-bg) { position: relative; z-index: 1; }
.album-cover { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 1 / .98; box-shadow: var(--shadow); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-hero h1 { font-size: 30px; font-weight: 700; }
.album-hero h2 { font-size: 17px; font-weight: 400; color: #e6e9ff; margin-top: 4px; }
.album-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--text-2); margin-top: 10px; }
.album-meta span + span::before { content: "•"; margin: 0 10px; }
.album-hero .desc { font-size: 13.5px; color: var(--text-2); margin-top: 12px; line-height: 1.6; max-width: 560px; }
.album-hero .actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.heart-btn { width: 44px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #c4b5fd; font-size: 18px; background: none; }
.heart-btn.on { color: #f472b6; border-color: #f472b6; }
.title-track { display: flex; align-items: center; gap: 14px; }
.title-track .round-play { width: 52px; height: 52px; font-size: 22px; border: 2px solid #c4b5fd; background: rgba(10, 15, 44, .55); }
.title-track strong { display: block; font-size: 14.5px; font-weight: 600; }
.title-track .waveform { height: 26px; margin-top: 8px; }

.track-table { width: 100%; border-collapse: collapse; }
.track-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-2); padding: 10px 10px; border-bottom: 1px solid var(--line); }
.track-table td { padding: 7px 10px; font-size: 13.5px; border-bottom: 1px solid rgba(84, 110, 255, .1); vertical-align: middle; }
.track-table tr:last-child td { border-bottom: 0; }
.track-table tbody tr:hover { background: rgba(var(--primary-rgb), .06); }
.track-table .num { font-size: 15px; font-weight: 500; width: 40px; }
.track-title { display: flex; align-items: center; gap: 12px; }
.track-title img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.track-title small { display: block; font-size: 11.5px; color: var(--text-2); }
.q-badge { display: inline-flex; height: 22px; padding: 0 10px; border-radius: 999px; align-items: center; background: rgba(var(--secondary-rgb), .2); color: #c7d3ff; font-size: 11.5px; }
.sq-dl { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .4); }
.icon-list { display: grid; gap: 12px; }
.icon-list li { display: flex; gap: 14px; align-items: center; }
.icon-list .il-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 16px; flex-shrink: 0; }
.icon-list small { display: block; font-size: 12px; color: var(--text-2); }
.icon-list b { font-weight: 500; font-size: 14px; }
.count-pill { margin-left: auto; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }

/* ---------- Listing pages ---------- */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--text-2); margin-top: 6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.filters select, .filters input { height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 12px; color: var(--text); min-width: 0; }
.pill-filter { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; font-size: 13px; color: var(--text-2); }
.pill-filter.active { background: var(--grad); color: #fff; border-color: transparent; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state i { font-size: 42px; color: #8b6cff; display: block; margin-bottom: 10px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 6px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; color: var(--text-2); }
.pagination a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.pagination .current { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .4); }

/* ---------- Forms / auth ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.form-control {
    width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(5, 10, 34, .55); padding: 0 14px; color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s;
}
html[data-theme="light"] .form-control { background: #fff; }
textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.form-control:focus { border-color: #8b6cff; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2); }
.form-error { color: #fca5a5; font-size: 12.5px; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card h1 { font-size: 26px; font-weight: 800; }
.auth-card .sub { color: var(--text-2); margin: 6px 0 22px; font-size: 14px; }
.social-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.social-btn { height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .03); }
.social-btn:hover { background: rgba(255, 255, 255, .07); }
.social-btn .bi-google { color: #f87171; }
.social-btn .bi-facebook { color: #60a5fa; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { margin-top: 18px; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(var(--primary-rgb), .6); font-size: 13px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.alert { padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
html[data-theme="light"] .alert-success { color: #166534; }
html[data-theme="light"] .alert-error { color: #991b1b; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--surface-2); border: 1px solid var(--line-strong); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Content pages ---------- */
.page-hero { position: relative; padding: 46px 0 34px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 700px; height: 340px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--primary-rgb), .35), transparent); }
.page-hero .ph-ico { position: relative; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--grad); box-shadow: 0 0 30px rgba(var(--primary-rgb), .55); }
.page-hero h1 { position: relative; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.page-hero p { position: relative; color: var(--text-2); margin-top: 8px; }
.prose { font-size: 15.5px; line-height: 1.8; color: var(--text-2); overflow-wrap: anywhere; }
.prose h2 { font-size: 22px; color: var(--text); margin: 28px 0 10px; }
.prose h3 { font-size: 18px; color: var(--text); margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose ul { list-style: disc; }
.prose a { color: #b9a8ff; text-decoration: underline; }
.prose img { border-radius: 12px; margin: 10px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-card { text-align: center; padding: 22px 16px; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid rgba(var(--primary-rgb), .6); }
.team-card h4 { font-size: 16px; }
.team-card small { color: var(--text-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 22px; }
.feature-card .cat-ico { margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::after { content: "\F282"; font-family: "bootstrap-icons"; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding-bottom: 16px; color: var(--text-2); }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: center; }
.stat-band strong { display: block; font-size: 30px; font-weight: 800; }
.stat-band span { color: var(--text-2); font-size: 13px; }

/* Download page */
.dl-page { max-width: 760px; margin: 30px auto; text-align: center; padding: 34px; }
.dl-page img { width: 140px; height: 140px; border-radius: 14px; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--shadow); }
.countdown { width: 92px; height: 92px; border-radius: 50%; margin: 20px auto; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: conic-gradient(var(--primary) var(--p, 100%), rgba(255, 255, 255, .08) 0); position: relative; }
.countdown::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.countdown span { position: relative; }

/* Donation */
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amount-opt { height: 52px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; cursor: pointer; position: relative; }
.amount-opt input { position: absolute; opacity: 0; }
.amount-opt.selected { background: var(--grad); border-color: transparent; }
.gateway-list { display: grid; gap: 10px; }
.gateway-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; }
.gateway-opt.selected { border-color: #8b6cff; background: rgba(var(--primary-rgb), .12); }
.gateway-opt input { accent-color: var(--primary); }

/* Ads */
.ad-slot { margin: 22px auto; text-align: center; overflow: hidden; max-width: 100%; }
.ad-slot .ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }

/* Cookie bar */
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 150; max-width: 420px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); display: none; }
.cookie-bar.show { display: block; }
.cookie-bar .btn { margin-top: 10px; }

/* Sticky player (desktop) */
.dock-player {
    position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 70; width: min(760px, calc(100vw - 32px));
    display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(13, 20, 60, .94); backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: transform .3s ease, visibility .3s; visibility: hidden;
}
html[data-theme="light"] .dock-player { background: rgba(255, 255, 255, .96); }
.dock-player.show { transform: translate(-50%, 0); visibility: visible; }
.dock-player img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.dock-player .dp-info { min-width: 0; width: 170px; }
.dock-player .dp-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-player .dp-info small { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-player .progress { min-width: 60px; }
.dock-close { background: none; border: 0; color: var(--muted); font-size: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
    .main-nav a { min-width: 60px; padding: 0 8px; }
    .header-search { max-width: 300px; }
    .song-top { grid-template-columns: 240px minmax(0, 1fr); }
    .song-top > .song-side { grid-column: 1 / -1; }
    .album-hero { grid-template-columns: 220px minmax(0, 1fr); }
    .album-hero .title-track { grid-column: 2; }
    .hero-points { display: none; }
}

@media (max-width: 1100px) {
    .cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .genre-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .big-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-nav.text-nav { gap: 12px; margin-left: 10px; }
    .with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .with-sidebar > .side-nav { display: none; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    :root { --header-h: 64px; }
    .main-nav, .header-search, .header-actions .desk { display: none !important; }
    .nav-toggle { display: block; }
    .mobile-only { display: flex !important; }
    .site-header .container { gap: 12px; }
    .header-actions { margin-left: auto; }
    .brand-name { font-size: 22px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-tag { font-size: 10px; }
    .mobile-search { margin-top: 14px; }
    .mobile-search .search-pill { height: 44px; }
    body { padding-bottom: 76px; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: 66px;
        background: rgba(8, 13, 42, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
    }
    html[data-theme="light"] .bottom-nav { background: rgba(255, 255, 255, .96); }
    .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--text-2); background: none; border: 0; }
    .bottom-nav i { font-size: 20px; color: var(--text); }
    .bottom-nav .active { color: #a58bff; }
    .bottom-nav .active i { color: #8b6cff; }
    .song-top { grid-template-columns: minmax(0, 1fr); }
    .dl-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-row { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
    .footer-social { justify-content: center; }
    .footer-links a { padding: 4px 10px; }
    .dock-player { bottom: 76px; }
    .cta-banner { flex-wrap: wrap; }
    .cta-banner .btn { margin-left: 0; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-hero { grid-template-columns: minmax(0, 1fr); }
    .album-hero .title-track { grid-column: auto; }
    .album-hero-bg { display: none; }
    .wave-hero-in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .hide-sm { display: none; }
    .container { padding: 0 16px; }
    .section { margin-top: 26px; }
    .section-title h2 { font-size: 18px; }
    .section-title p { display: none; }
    .sec-ico.flame, .sec-ico.star { font-size: 22px; }
    .sec-ico { width: 28px; height: 28px; font-size: 15px; border-radius: 7px; }

    .hero-slider { aspect-ratio: auto; height: 236px; min-height: 0; margin-top: 14px; border-radius: 14px; }
    .hero-slide img { object-position: 22% center; }
    .hero-slide::after { background: linear-gradient(0deg, rgba(6, 12, 40, .88) 5%, rgba(6, 12, 40, .25) 60%, transparent); }
    .hero-content { left: 16px; right: 16px; max-width: none; top: auto; bottom: 18px; transform: none; }
    .hero-content h1 { font-size: 19px; }
    .hero-content p, .slider-arrow, .badge-new { display: none; }
    .hero-tags { margin: 8px 0 12px; }
    .tag { height: 22px; font-size: 11px; padding: 0 8px; }
    .hero-actions .btn { height: 36px; font-size: 13px; padding: 0 14px; border-radius: 999px; }
    .hero-actions .btn-outline { border-color: transparent; padding: 0 6px; }
    .slider-dots { right: 14px; bottom: 30px; }
    .slider-dots button { width: 8px; height: 8px; }

    .cat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .cat-row .cat-tile:nth-child(n+5) { display: none; }
    .cat-tile { flex-direction: column; gap: 6px; padding: 12px 4px; text-align: center; }
    .cat-tile div > span { display: none; }
    .cat-tile strong { font-size: 12px; font-weight: 500; }
    .cat-ico { width: 42px; height: 42px; font-size: 20px; }

    .m-list .media-card { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; border-color: var(--line); }
    .m-list { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
    .m-list .media-card:nth-child(n+5) { display: none; }
    .m-list .media-thumb { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 8px; flex-shrink: 0; }
    .m-list .media-thumb::after { display: none; }
    .m-list .play-dot { width: 20px; height: 20px; font-size: 9px; left: 4px; bottom: 4px; }
    .m-list .type-badge, .m-list .dl-dot { display: none; }
    .m-list .media-body { flex: 1; min-width: 0; padding: 0; }
    .m-list .chips { margin-top: 3px; }
    .m-list .chip { border: 0; background: none; padding: 0; height: auto; font-size: 11.5px; color: var(--text-2); }
    .m-list .chip .div { display: none; }
    .m-list .m-dl { display: grid; }
    .m-dl { width: 30px; height: 30px; border-radius: 50%; place-items: center; background: rgba(var(--primary-rgb), .18); color: #c4b5fd; flex-shrink: 0; margin-right: 6px; }

    .m-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 31.5%; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px !important; padding-bottom: 4px; scrollbar-width: none; }
    .m-scroll::-webkit-scrollbar { display: none; }
    .m-scroll > * { scroll-snap-align: start; }
    .m-scroll .media-body { padding: 8px; }
    .m-scroll .media-body .sub:not(.keep), .m-scroll .media-body .meta.hide-m { display: none; }
    .m-scroll .media-body h3 { font-size: 12.5px; }
    .m-scroll .media-body .meta { margin-top: 2px; font-size: 11px; }

    .grid-6, .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .genre-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .genre-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .genre-tiles .genre-tile { height: auto; background: none !important; border: 0; font-size: 12px; font-weight: 500; }
    .genre-tiles .genre-tile:nth-child(n+5) { display: none; }
    .cta-banner { padding: 18px; gap: 14px; }
    .cta-art { display: none; }

    .spot-hero { min-height: 0; }
    .spot-hero-bg img { width: 100%; height: 62%; object-position: center 20%; }
    .spot-hero-bg::after { background: linear-gradient(0deg, #050a22 42%, rgba(5, 10, 34, .3) 70%, rgba(5, 10, 34, .1)); }
    .spot-hero .container { padding-top: 130px; padding-bottom: 18px; }
    .spot-copy h1 { font-size: 27px; margin-top: 0; }
    .spot-copy .kicker { order: 2; font-size: 10.5px; }
    .spot-copy { display: flex; flex-direction: column; gap: 8px; }
    .spot-copy > p:not(.kicker), .trending-searches, .hero-search select { display: none; }
    .hero-search { height: 44px; margin-top: 6px; order: 3; }
    .big-cats { gap: 10px; margin-top: 16px; }
    .big-cat { min-height: 60px; padding: 10px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
    .big-cat .ico { width: 30px; height: 30px; font-size: 15px; align-self: center; }
    .big-cat strong { font-size: 13.5px; margin-top: 0; }
    .big-cat span, .big-cat .arrow { display: none; }

    .song-info h1 { font-size: 26px; }
    .song-info h2 { font-size: 15px; }
    .credits span { padding: 0 8px; font-size: 13px; }
    .quality-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .quality { height: 48px; }
    .quality strong { font-size: 12px; }
    .quality small { font-size: 10.5px; }
    .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .volume { display: none; }
    .track-table th:nth-child(3), .track-table td:nth-child(3), .track-table th:nth-child(4), .track-table td:nth-child(4), .track-table th:nth-child(5), .track-table td:nth-child(5) { display: none; }
    .track-table td { padding: 7px 4px; }
    .lyrics-art { display: none; }
    .page-main { padding: 14px 16px 24px; }
    .auth-card { padding: 22px; }
    .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl-page { padding: 22px; }
    .team-grid { grid-template-columns: minmax(0, 1fr); }
    .dock-player .dp-info { width: 110px; }
    .dock-player .time { display: none; }
    .toast-wrap { left: 16px; right: 16px; bottom: 84px; }
    .cookie-bar { left: 12px; right: 12px; bottom: 80px; }
}

/* Spotlight CTA */
.cta-banner.cta-spot { background: linear-gradient(90deg, #5b21b6 0%, #6d28d9 25%, #4f46e5 70%, #4338ca 100%); padding: 22px 34px 22px 180px; min-height: 104px; overflow: visible; }
.cta-spot::before { display: none; }
.cta-phone { position: absolute; left: 50px; top: -18px; width: 92px; height: 130px; border-radius: 18px; transform: rotate(-16deg); background: linear-gradient(160deg, #a78bfa, #6d28d9 60%, #4c1d95); box-shadow: 0 16px 36px rgba(30, 10, 90, .55), inset 0 0 0 3px rgba(255, 255, 255, .25); display: grid; place-items: center; }
.cta-phone::before { content: ""; position: absolute; left: -36px; top: 18px; width: 100px; height: 100px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: radial-gradient(circle, rgba(196, 181, 253, .35), transparent 70%); z-index: -1; }
.cta-phone span { font-size: 26px; font-weight: 800; color: #fff; transform: rotate(-10deg); letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.cta-spot .btn-white { margin-left: auto; height: 42px; border-radius: 999px; padding: 0 22px; font-size: 13.5px; color: #3b1fa8; border: 0; }
@media (max-width: 640px) {
    .cta-banner.cta-spot { padding: 18px; }
    .cta-phone { display: none; }
    .cta-spot .btn-white { margin-left: 0; }
}

/* ---------- Song page layout (classic) ---------- */
.song-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 22px; align-items: start; }
.song-main, .song-side, .lower-main, .lower-side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.song-head { display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 26px; align-items: start; }
.song-head .cover-box { aspect-ratio: 1 / .755; }
.song-lower { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 14px; align-items: start; }
.lyrics-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lyrics-head .card-title { font-size: 17px; }
.also-like { padding: 14px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0 0; }
.song-side .share-row { margin-top: 14px; }
.lower-side .card-pad { padding: 14px; }
.lower-side .btn { white-space: normal; font-size: 12.5px; padding: 0 8px; }
.lower-side .detail-list.sm li { grid-template-columns: 16px 72px 8px minmax(0, 1fr); gap: 6px; }
.credits em { font-style: normal; }
.copy-btn { background: rgba(10, 16, 52, .75); }
.lower-side .list-item img { width: 46px; height: 46px; }
.lower-side .list-item h4 { font-size: 12.5px; }
.lower-side .li-sub, .lower-side .li-meta { font-size: 11px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment p { color: var(--text-2); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.comment-form { margin-bottom: 8px; }

/* Modal */
.modal { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 16px; padding: 20px; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { font-size: 18px; }
.modal-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.modal-list button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; }
.modal-list button:hover { border-color: #8b6cff; }
.modal-new { display: flex; gap: 8px; }
.modal-new .form-control { height: 42px; }

/* Mobile sticky mini player (song pages) */
.mini-player { position: fixed; left: 10px; right: 10px; bottom: 74px; z-index: 64; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(13, 20, 60, .97); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html[data-theme="light"] .mini-player { background: rgba(255, 255, 255, .97); }
.mini-player img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.mini-player .mp-info { flex: 1; min-width: 0; }
.mini-player strong { display: block; font-size: 14px; }
.mini-player small { display: block; font-size: 12px; color: var(--text-2); }
.mini-player .round-play.solid { width: 42px; height: 42px; font-size: 20px; }
.mp-list { font-size: 24px; padding: 0 4px; }

@media (max-width: 1280px) {
    .song-layout { grid-template-columns: minmax(0, 1fr) 280px; }
    .song-lower { grid-template-columns: minmax(0, 1fr); }
    .lower-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .song-layout { grid-template-columns: minmax(0, 1fr); }
    .song-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .song-page { padding-bottom: 70px; }
    .song-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .song-head .cover-box { max-width: 520px; margin: 0 auto; width: 100%; }
    .song-side, .lower-side { grid-template-columns: minmax(0, 1fr); }
    .dock-player { display: none; }
}
@media (max-width: 640px) {
    .song-page .breadcrumb { font-size: 12px; margin: 10px 0; }
    .song-page .kind, .song-page .desc, .song-page .player-row { display: none; }
    .song-page .credits span { border-left: 0; padding: 0; }
    .song-page .credits span + span::before { content: "•"; margin: 0 8px; color: var(--text-2); }
    .song-page .credits span { font-size: 13px; color: var(--text); }
    .song-page .credits .lbl { display: none; }
    .song-head .cover-box { aspect-ratio: 1 / .62; }
    .song-page .meta-chips { gap: 6px; margin-top: 10px; }
    .song-page .meta-chip { height: 24px; font-size: 11.5px; padding: 0 8px; gap: 5px; }
    .download-box { padding: 14px; }
    .dl-head h3 { font-size: 16px; }
    .dl-head p { font-size: 12px; }
    .dl-ico { width: 44px; height: 44px; font-size: 18px; }
    .dl-actions { gap: 10px; margin-top: 4px; }
    .dl-actions .btn { height: 42px; font-size: 14px; }
    .song-page .tabs { display: none; }
    .song-page .lyrics-card { min-height: 0; padding: 14px; }
    .song-page .lyrics-text { max-height: 92px; overflow: hidden; font-size: 13.5px; }
    .song-page .lyrics-text.expanded { max-height: none; }
    .song-page .lyrics-quote { display: none; }
    .song-page .copy-btn { font-size: 0; gap: 0; }
    .song-page .copy-btn::after { content: "Copy"; font-size: 13px; margin-left: 6px; }
    .song-page .lyrics-head .card-title { font-size: 0; }
    .song-page .lyrics-head .card-title::after { content: "Lyrics"; font-size: 16px; }
    .song-page .lyrics-head .card-title i { font-size: 20px !important; }
}
.read-more { justify-content: center; font-size: 12.5px; color: #a58bff; margin-top: 8px; }

/* ---------- Song page (wave layout) ---------- */
.wave-hero { background: linear-gradient(90deg, rgba(12, 18, 58, .95), rgba(14, 18, 62, .7)); padding: 20px 22px; }
.wave-hero .cover-box { aspect-ratio: 1 / 1.06; }
.wave-hero-bg img { width: 52%; opacity: .55; filter: saturate(1.15); }
.wave-hero .song-info h1 { font-size: 30px; margin-top: 4px; }
.wave-hero .song-info h2 { font-size: 18px; }
.credits.sm { font-size: 12.5px; margin-top: 8px; }
.credits.sm em { color: var(--text-2); }
.credits.sm span { color: var(--text); }
.wave-hero .meta-chips { margin-top: 12px; gap: 8px; }
.wave-hero .meta-chip { height: 28px; font-size: 12.5px; border-radius: 999px; }
.wave-hero .desc { font-size: 13px; margin-top: 12px; max-width: 560px; }
.wave-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.round-play.solid.big { width: 44px; height: 44px; font-size: 22px; flex-shrink: 0; }
.wave-row .waveform { max-width: 520px; }
.wave-actions { margin-left: auto; gap: 18px; }
.wave-actions .icon-btn { width: 44px; height: 44px; background: rgba(5, 10, 34, .5); border-color: rgba(255, 255, 255, .35); color: #fff; }
.wave-actions > button, .wave-actions .user-menu > button { padding: 0; }
.wave-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 18px; align-items: start; }
.wave-main, .wave-side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.wave-dl { background: linear-gradient(135deg, rgba(76, 50, 200, .55), rgba(30, 30, 110, .85)); }
.wave-dl .dl-grid { grid-template-columns: minmax(0, 1fr) 190px; }
.wave-dl .dl-head h3 { font-size: 19px; }
.wave-dl .quality { height: 52px; }
.wave-dl .quality.selected { background: var(--grad); border-color: transparent; }
.wave-dl .quality.selected::after { display: none; }
.wave-dl .dl-actions .btn { height: 44px; }
.wave-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.artist-card .artist-row { display: flex; align-items: center; gap: 18px; margin: 16px 0; }
.artist-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(var(--primary-rgb), .7); box-shadow: 0 0 24px rgba(var(--primary-rgb), .45); }
.artist-card strong { display: block; font-size: 16px; }
.artist-card span { font-size: 12.5px; color: var(--text-2); }
.artist-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.artist-card .btn { border-radius: 999px; }
.more-grid { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; }
.more-album { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; border-right: 1px solid var(--line); }
.more-album img { width: 100%; aspect-ratio: 1 / .8; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.more-album strong { font-size: 13.5px; }
.more-album small { font-size: 11px; color: var(--text-2); }
.more-album .btn { margin-top: 8px; border-radius: 999px; font-size: 11.5px; padding: 0 10px; }
.more-songs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.more-songs .mini-card .media-thumb { aspect-ratio: 1 / .86; }
.more-songs .q-badge { font-size: 10.5px; height: 20px; padding: 0 8px; }
.wave-li { border-top: 0 !important; padding: 6px 0; }
.wave-li h4 { font-size: 13px; }
.wave-side .btn-soft { color: #c7d3ff; background: rgba(var(--secondary-rgb), .12); border-color: transparent; border-radius: 10px; font-size: 13px; }
.cta-wave { padding: 16px 30px 16px 40px; }
.cta-disc { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: radial-gradient(circle at 35% 30%, #a78bfa, #6d28d9 70%); box-shadow: 0 0 0 10px rgba(167, 139, 250, .18), 0 0 40px rgba(196, 181, 253, .6); flex-shrink: 0; position: relative; }
.cta-wave h3 { font-size: 21px; }
@media (max-width: 1280px) {
    .wave-row { flex-wrap: wrap; }
    .wave-actions { margin-left: 0; }
    .more-songs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .wave-layout { grid-template-columns: minmax(0, 1fr); }
    .wave-hero-in { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 920px) {
    .wave-hero-in { grid-template-columns: minmax(0, 1fr); }
    .wave-hero .cover-box { max-width: 260px; aspect-ratio: 1 / .92; }
    .wave-dl .dl-grid { grid-template-columns: minmax(0, 1fr); }
    .wave-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .wave-hero { padding: 14px; }
    .wave-hero-bg { display: none; }
    .wave-hero .cover-box { max-width: 210px; margin: 0; }
    .wave-hero .song-info h1 { font-size: 20px; }
    .wave-hero .song-info h2 { font-size: 13px; }
    .wave-page .kind { display: inline-block; font-size: 9px; margin-top: 6px; }
    .wave-page .player-row { display: flex; }
    .wave-row { gap: 8px; margin-top: 10px; }
    .wave-row .waveform { height: 26px; }
    .wave-row .round-play.solid.big { width: 34px; height: 34px; font-size: 16px; }
    .wave-row .time { font-size: 11px; }
    .wave-actions { width: 100%; justify-content: center; gap: 22px; }
    .wave-actions > button, .wave-actions .user-menu { font-size: 0; }
    .wave-actions .icon-btn { width: 34px; height: 34px; font-size: 14px; }
    .wave-actions .user-menu { display: none; }
    .more-grid { grid-template-columns: minmax(0, 1fr); }
    .more-album { border-right: 0; padding-right: 0; }
    .more-songs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-disc { display: none; }
    .wave-page .tabs { display: flex; }
}
.wave-page .lyrics-text { max-height: 260px; overflow-y: auto; padding-right: 8px; }

/* ---------- Album page ---------- */
.has-sidebar .site-header .container { max-width: none; padding: 0 26px; }
.album-info .breadcrumb { margin: 0 0 10px; font-size: 12.5px; }
.album-info .breadcrumb a { color: #a58bff; }
.album-hero .actions .btn-lg { height: 46px; font-size: 14.5px; }
.album-hero .heart-btn { width: 46px; height: 46px; border-radius: 50%; }
.title-track strong + strong { font-weight: 500; }
.album-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 18px; align-items: start; }
.album-main, .album-side { display: grid; gap: 14px; min-width: 0; align-content: start; }
.pill-tabs { border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 22, 64, .6); gap: 20px; padding: 6px; }
.pill-tabs .tab { height: 40px; padding: 0 22px; border-radius: 10px; }
.muted-2 { color: var(--text-2); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.side-head .card-title { font-size: 16px; }
.side-head .view-all { height: 26px; padding: 0 10px; font-size: 11.5px; border-color: var(--line-strong); }
.album-side .card-pad { padding: 16px; }
.album-side .list-item img { width: 50px; height: 50px; }
@media (max-width: 1280px) {
    .album-layout { grid-template-columns: minmax(0, 1fr); }
    .album-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .album-side { grid-template-columns: minmax(0, 1fr); }
    .album-hero .album-cover { max-width: 520px; aspect-ratio: 1 / .6; }
    .album-hero .title-track { display: none; }
}
@media (max-width: 640px) {
    .album-info .breadcrumb { display: none; }
    .album-hero { gap: 12px; padding-top: 0; }
    .album-hero h1 { font-size: 22px; }
    .album-hero h2 { font-size: 14px; }
    .album-hero .desc { display: none; }
    .album-meta { font-size: 12.5px; }
    .album-meta span + span::before { margin: 0 6px; }
    .album-hero .actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; }
    .album-hero .actions .btn-primary { grid-column: 1 / -1; }
    .album-hero .actions .btn-lg { height: 42px; }
    .pill-tabs { gap: 4px; }
    .pill-tabs .tab { padding: 0 12px; height: 34px; }
    .track-table .track-title img { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
    .track-table { table-layout: fixed; }
    .track-table th:first-child { width: 34px; }
    .track-table th:nth-child(2) { width: auto; }
    .track-table th:last-child, .track-table td:last-child { width: 46px; }
    .track-title span { white-space: normal; }
}

/* ---------- Listing extras ---------- */
.artist-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; gap: 4px; transition: transform .2s, border-color .2s; }
.artist-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.artist-tile img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(var(--primary-rgb), .6); margin-bottom: 10px; box-shadow: 0 0 22px rgba(var(--primary-rgb), .3); }
.artist-tile strong { font-size: 15px; }
.artist-tile span { font-size: 12.5px; color: var(--text-2); }
.artist-tile small { font-size: 11.5px; color: var(--muted); }
.artist-hero { display: flex; gap: 28px; align-items: center; padding: 26px; background: linear-gradient(120deg, rgba(var(--primary-rgb), .22), rgba(10, 17, 52, .9) 60%); }
.artist-hero img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(var(--primary-rgb), .7); box-shadow: 0 0 40px rgba(var(--primary-rgb), .45); flex-shrink: 0; }
.artist-hero h1 { font-size: 36px; margin-top: 6px; }
.artist-hero .desc { color: var(--text-2); margin-top: 10px; max-width: 720px; }
.genre-tiles.big { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.genre-tiles.big .genre-tile { height: 130px; gap: 6px; }
.genre-tiles.big small { font-weight: 400; font-size: 11.5px; }
.movie-poster { aspect-ratio: 16 / 10 !important; }
.movie-hero { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 1100px) { .genre-tiles.big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .m-list.m-all .media-card { display: flex !important; }
    .artist-hero { flex-direction: column; text-align: center; padding: 20px; }
    .artist-hero img { width: 130px; height: 130px; }
    .artist-hero h1 { font-size: 26px; }
    .artist-hero .album-meta { justify-content: center; }
    .genre-tiles.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .genre-tiles.big .genre-tile { background-color: var(--surface) !important; border: 1px solid var(--line); height: 110px; }
    .genre-tiles.big .genre-tile:nth-child(n+5) { display: flex; }
    .movie-hero { grid-template-columns: minmax(0, 1fr); }
    .page-head h1 { font-size: 24px; }
}

/* ---------- Forms, auth, errors ---------- */
.form-wrap { padding-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aab' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select.form-control option { background: #0b1338; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 980px; overflow: hidden; padding: 0; }
.auth-split .auth-card { max-width: none; padding: 40px; }
.auth-art { position: relative; min-height: 560px; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 34, .95) 15%, rgba(5, 10, 34, .25) 60%, rgba(5, 10, 34, .1)); }
.auth-art-copy { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 32px; }
.auth-art-copy .kicker { font-size: 11px; }
.auth-art-copy h2 { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.auth-art-copy li { display: flex; gap: 10px; align-items: center; color: #e3e6fb; font-size: 14px; margin-top: 8px; }
.auth-art-copy li i { color: #a58bff; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 16px; gap: 10px; }
.error-code { font-size: 110px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.error-page h1 { font-size: 28px; }
.error-page p { color: var(--text-2); max-width: 460px; margin-bottom: 14px; }
.info-col .icon-list b { font-size: 14px; }
@media (max-width: 920px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
    .auth-art { display: none; }
    .auth-split .auth-card { padding: 26px; }
}
@media (max-width: 640px) {
    .two-col { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .error-code { font-size: 80px; }
}
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.footer-lang { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12.5px; } .footer-lang select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; }

/* ==========================================================================
   1.1.0: language switcher (flags), "Install app" banner, button and iPhone hint
   ========================================================================== */
.inst-btn[hidden], .pwa-tip[hidden] { display: none !important; }
img.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; border: 0; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.user-menu.lang-menu > button img.flag { width: 24px; height: 18px; border: 0; border-radius: 3px; }
.user-menu.lang-menu .dropdown img.flag { width: 22px; height: 16px; border: 0; border-radius: 3px; }
.user-menu.lang-menu .dropdown { min-width: 180px; max-height: 70vh; overflow-y: auto; }
.dropdown a.active { background: rgba(var(--primary-rgb), .14); color: var(--text); }
.drawer nav a img.flag { width: 22px; height: 16px; margin: 0 0 0 0; }
.drawer .drawer-install { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border-radius: 10px; border: 0; background: rgba(var(--primary-rgb), .14); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; }
.drawer .drawer-install i { font-size: 18px; width: 22px; text-align: center; }
.footer-install { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; margin: 14px auto 0; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.footer-install:hover { color: var(--text); border-color: rgba(var(--primary-rgb), .7); }
.footer-lang img.flag { margin-right: 2px; }
.pwa-tip {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 160; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
    padding: 10px 8px 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    color: var(--text-2); font-size: 13.5px;
}
.pwa-tip .pwa-ic { flex: none; line-height: 0; }
.pwa-tip .pwa-ic img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.pwa-tip .pwa-tx { flex: 1; min-width: 0; line-height: 1.4; }
.pwa-tip .pwa-tx b { display: block; color: var(--text); font-size: 14.5px; }
.pwa-tip .pwa-tx small { display: block; font-size: 13px; }
.pwa-tip .btn { flex: none; }
.pwa-share { color: var(--primary); font-size: 15px; vertical-align: -2px; }
.pwa-x { flex: none; width: 36px; height: 36px; border: 0; padding: 0; background: none; border-radius: 9px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pwa-x:hover { background: var(--surface-3); color: var(--text); }
@media (max-width: 920px) { .pwa-tip { bottom: 84px; } }
@media (max-width: 400px) { .pwa-tip .pwa-ic { display: none; } .pwa-tip { gap: 8px; } }
html[dir="rtl"] .dropdown { right: auto; left: 0; }
html[dir="rtl"] .dropdown a, html[dir="rtl"] .dropdown button { text-align: right; }
/* Header between phone and wide screens: the search field becomes an icon below 1360 px and the Login / Sign Up
   text buttons give way to the account icon below 1100 px, so the header never runs off the screen. */
.hdr-search-ico { display: none; }
@media (max-width: 1359px) {
    .site-header .container { gap: 18px; }
    .header-search { display: none; }
    .header-actions .hdr-search-ico { display: inline-grid; }
}
@media (max-width: 1100px) {
    .header-actions .btn.desk { display: none; }
    .main-nav.text-nav { gap: 10px; margin-left: 6px; }
}
