:root {
  --bg: #FFFFFF; --panel: #FFFFFF; --soft: #F5F6F8; --fg: #16181D; --muted: #6B7280; --line: #E4E6EB;
  --hero1: #FAFBFD; --hero2: #F2F4F7; --row: #FFFFFF; --toast: #16181D; --toastFg: #FFFFFF;
  --bz1: #F2F4F8; --bz2: #CFD4DC; --bz3: #AEB4BE;
  --padSh: rgba(16,20,30,.16); --padSh2: rgba(16,20,30,.24);
  --favOn: #FFF6DC; --favTx: #8A6100; --favLine: #F0CE72; --loopOn: #FFF0F2; --loopTx: #B81C33;
  --accent: #E5334D; --accent-dark: #C4243C;
}
:root[data-mvi="dark"] {
  --bg: #0F1116; --panel: #191C23; --soft: #15181E; --fg: #ECEFF5; --muted: #97A0B2; --line: #262A33;
  --hero1: #1A1E26; --hero2: #12151B; --row: #21252E; --toast: #ECEFF5; --toastFg: #14161A;
  --bz1: #6E7480; --bz2: #4A4F5A; --bz3: #33373F;
  --padSh: rgba(0,0,0,.55); --padSh2: rgba(0,0,0,.7);
  --favOn: #3A2F12; --favTx: #F2CE72; --favLine: #6A5620; --loopOn: #3A1A22; --loopTx: #FF9AA8;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Outfit, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
input, button { font: inherit; }
input[type=range] { accent-color: var(--accent); }
h1, h2, h3, p { margin: 0; }

@keyframes mviPop { 0% { transform: scale(1); } 35% { transform: scale(.93); } 100% { transform: scale(1); } }
@keyframes mviRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.3); opacity: 0; } }

.mvi-root { min-height: 100vh; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; }

/* Header */
.mvi-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.mvi-header-inner { max-width: 1300px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.mvi-logo { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.mvi-logo .accent { color: var(--accent); }
.mvi-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.mvi-nav a { background: transparent; color: var(--muted); border-radius: 8px; padding: 8px 13px; font-size: 14.5px; font-weight: 500; }
.mvi-nav a.active, .mvi-nav a:hover { background: var(--soft); color: var(--fg); }
.mvi-search { display: flex; align-items: center; gap: 9px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.mvi-search input { border: none; outline: none; background: transparent; color: var(--fg); font-size: 14.5px; width: 100%; }
.mvi-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.mvi-vol input { width: 84px; }
.mvi-theme-toggle { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
.mvi-theme-toggle:hover { background: var(--soft); }

/* Layout */
.mvi-main { flex: 1; width: 100%; max-width: 1300px; margin: 0 auto; padding: 26px 22px 56px; }
.mvi-page { display: flex; flex-direction: column; gap: 26px; }

/* Hero */
.mvi-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; background: linear-gradient(180deg, var(--hero1), var(--hero2)); }
.mvi-hero-copy { display: flex; flex-direction: column; gap: 14px; flex: 1 1 380px; min-width: 0; }
.mvi-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.mvi-hero h1 { font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.mvi-hero p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.mvi-hero-search { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; max-width: 420px; box-shadow: 0 1px 2px rgba(16,20,30,.05); }
.mvi-hero-search input { border: none; outline: none; background: transparent; color: var(--fg); font-size: 15px; width: 100%; }
.mvi-featured { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.mvi-featured-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.mvi-featured-name { font-size: 15px; font-weight: 600; }
.mvi-featured-name:hover { color: var(--accent); }

/* Category chips */
.mvi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mvi-chip { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.mvi-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Two column */
.mvi-cols { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; }
.mvi-col-main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mvi-section { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.mvi-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.mvi-section-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.mvi-section-head span { color: var(--muted); font-size: 13.5px; }

/* Pad grid */
.mvi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(78px, 26vw), 1fr)); gap: 20px 12px; }
.mvi-pad { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mvi-pad-btn { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: none; padding: 3%; cursor: pointer; background: radial-gradient(circle at 50% 32%, var(--bz1), var(--bz2) 62%, var(--bz3) 100%); box-shadow: 0 5px 10px var(--padSh), inset 0 -1px 2px rgba(255,255,255,.14); transition: transform .09s ease, box-shadow .15s ease, filter .15s ease; }
.mvi-pad-btn:hover { filter: brightness(1.05); box-shadow: 0 7px 14px var(--padSh2), inset 0 -1px 2px rgba(255,255,255,.14); }
.mvi-pad-btn:active, .mvi-pad-btn.playing { transform: scale(.955); }
.mvi-pad-btn .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
.mvi-pad-btn.playing .ring { animation: mviRing .6s ease-out; }
.mvi-pad-gem { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; padding: 11%; background: conic-gradient(from 132deg, var(--lo), var(--hi) 10%, var(--base) 26%, var(--lo) 46%, var(--hi) 60%, var(--base) 76%, var(--lo)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.mvi-pad-core { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 28%, var(--hi), var(--base) 46%, var(--lo) 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.18), inset 0 -6px 12px rgba(0,0,0,.42), inset 0 5px 10px rgba(255,255,255,.26); position: relative; overflow: hidden; }
.mvi-pad-shine { position: absolute; top: 6%; left: 12%; width: 76%; height: 38%; border-radius: 50% 50% 45% 45%; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.04)); pointer-events: none; }
.mvi-pad-label { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.mvi-pad-label a { font-size: 14px; font-weight: 500; color: var(--fg); line-height: 1.25; }
.mvi-pad-label a:hover { color: var(--accent); }
.mvi-pad-label .plays { font-size: 11.5px; color: var(--muted); }

/* Featured / hero big button */
.mvi-featured .mvi-pad-btn { width: 132px; height: 132px; box-shadow: 0 8px 16px var(--padSh2), inset 0 -1px 2px rgba(255,255,255,.14); }

/* Sidebar */
.mvi-sidebar { flex: 1 1 260px; max-width: 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; background: var(--soft); }
.mvi-sidebar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mvi-sidebar-head h2 { font-size: 16px; font-weight: 700; }
.mvi-sidebar-head span { font-size: 12px; color: var(--muted); }
.mvi-sidebar-list { display: flex; flex-direction: column; gap: 4px; }
.mvi-sidebar-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; }
.mvi-sidebar-row:hover { background: var(--row); }
.mvi-sidebar-rank { font-size: 12.5px; font-weight: 600; color: var(--muted); width: 16px; flex: none; text-align: right; }
.mvi-sidebar-row .mvi-pad-btn { width: 44px; height: 44px; flex: none; box-shadow: 0 3px 6px var(--padSh), inset 0 -1px 2px rgba(255,255,255,.14); }
.mvi-sidebar-row .mvi-pad-btn:active { transform: scale(.94); }
.mvi-sidebar-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mvi-sidebar-meta a { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvi-sidebar-meta a:hover { color: var(--accent); }
.mvi-sidebar-meta .plays { font-size: 11.5px; color: var(--muted); }
.mvi-sidebar-dl { flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.mvi-sidebar-dl:hover { background: var(--row); color: var(--accent); }

/* Sound detail page */
.mvi-breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.mvi-breadcrumb a:hover { color: var(--accent); }
.mvi-breadcrumb .current { color: var(--fg); }
.mvi-sound-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 34px; background: var(--soft); }
.mvi-sound-hero .mvi-pad-btn { width: 190px; height: 190px; flex: none; box-shadow: 0 10px 20px var(--padSh2), inset 0 -1px 3px rgba(255,255,255,.14); }
.mvi-sound-hero .mvi-pad-btn .ring { border-width: 4px; }
.mvi-play-triangle { position: relative; width: 0; height: 0; border-left: 28px solid rgba(255,255,255,.9); border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.mvi-pad-core.mvi-with-play { display: flex; align-items: center; justify-content: center; }
.mvi-sound-info { display: flex; flex-direction: column; gap: 16px; flex: 1 1 320px; }
.mvi-sound-title { display: flex; flex-direction: column; gap: 6px; }
.mvi-sound-title h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.mvi-sound-sub { color: var(--muted); font-size: 14.5px; }
.mvi-sound-sub b { color: var(--fg); font-weight: 600; }
.mvi-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mvi-btn { border: none; border-radius: 10px; padding: 12px 20px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mvi-btn-primary { background: var(--accent); color: #fff; }
.mvi-btn-primary:hover { background: var(--accent-dark); color: #fff; }
.mvi-btn-outline { background: var(--panel); color: var(--fg); border: 1px solid var(--line); }
.mvi-btn-outline:hover { border-color: #B9BEC7; color: var(--fg); }
.mvi-btn-fav { background: var(--panel); color: var(--fg); border: 1px solid var(--line); }
.mvi-btn-fav.on { background: var(--favOn); color: var(--favTx); border-color: var(--favLine); }
.mvi-btn-loop { background: var(--panel); color: var(--fg); border: 1px solid var(--line); }
.mvi-btn-loop.on { background: var(--loopOn); color: var(--loopTx); }
.mvi-link-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-width: 460px; }
.mvi-link-box span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mvi-link-box button { background: var(--soft); color: var(--fg); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mvi-sound-desc { font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 70ch; }

.mvi-empty { text-align: center; padding: 70px 20px; color: var(--muted); font-size: 15px; }

/* Pagination */
.mvi-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 10px; }
.mvi-pagination a, .mvi-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; color: var(--fg); }
.mvi-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.mvi-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Footer */
.mvi-footer { border-top: 1px solid var(--line); background: var(--soft); }
.mvi-footer-inner { max-width: 1300px; margin: 0 auto; padding: 34px 22px 26px; display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.mvi-footer-col { display: flex; flex-direction: column; gap: 9px; }
.mvi-footer-brand { max-width: 300px; }
.mvi-footer-logo { font-size: 17px; font-weight: 700; }
.mvi-footer-brand p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.mvi-footer-heading { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.mvi-footer-col a { font-size: 14px; color: var(--fg); }
.mvi-footer-col a:hover { color: var(--accent); }
.mvi-footer-bottom { border-top: 1px solid var(--line); }
.mvi-footer-bottom-inner { padding: 15px 22px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Toast */
.mvi-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--toast); color: var(--toastFg); padding: 11px 20px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.25); pointer-events: none; transition: opacity .2s ease; opacity: 0; }
.mvi-toast.show { opacity: 1; }

/* Responsive */
@media (max-width: 780px) {
  .mvi-header-inner { padding: 11px 14px; }
  .mvi-logo { font-size: 17px; }
  .mvi-nav { display: none; }
  .mvi-vol { display: none; }
  .mvi-search { flex-basis: 100%; max-width: none; order: 3; }
  .mvi-main { padding: 16px 14px 44px; }
  .mvi-hero { padding: 22px 18px; gap: 22px; align-items: flex-start; }
  .mvi-hero h1 { font-size: 27px; }
  .mvi-hero p { font-size: 14.5px; }
  .mvi-featured .mvi-pad-btn { width: 104px; height: 104px; }
  .mvi-cols { gap: 24px; }
  .mvi-grid { grid-template-columns: repeat(auto-fill, minmax(min(70px, 28vw), 1fr)); }
  .mvi-sidebar { flex-basis: 100%; max-width: none; padding: 14px 12px; }
  .mvi-sidebar-row .mvi-pad-btn { width: 58px; height: 58px; }
  .mvi-sound-hero { padding: 20px 18px; gap: 24px; }
  .mvi-sound-hero .mvi-pad-btn { width: 138px; height: 138px; }
  .mvi-sound-title h1 { font-size: 26px; }
}
