:root {
  --bg: #0c0d10; --s1: #15171c; --s2: #1e2128; --line: rgba(255, 255, 255, .08);
  --muted: #9aa0ab; --accent: #1ed760; --accent-d: #17b04d;
}
body { background: var(--bg); color: #f4f5f7; font-family: 'Outfit', system-ui, sans-serif; padding: 68px 0 96px; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.min-w-0 { min-width: 0; }

/* navbar */
.wv-nav { background: rgba(12, 13, 16, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wv-brand { color: var(--accent) !important; font-weight: 800; font-size: 1.5rem; letter-spacing: -.5px; }
.wv-nav .nav-link { color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.wv-nav .nav-link:hover, .wv-nav .nav-link.active { color: #fff; border-bottom-color: var(--accent); }
.wv-search { max-width: 330px; background: var(--s2); border: 0; color: #fff; border-radius: 50px; padding-inline: 18px; }
.wv-search:focus { background: #292d37; color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.btn-accent { background: var(--accent); color: #000; font-weight: 700; border: 0; border-radius: 50px; }
.btn-accent:hover { background: var(--accent-d); color: #000; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(900px 400px at 85% 0%, rgba(30, 215, 96, .16), transparent 60%); }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero-card { max-width: 340px; margin-inline: auto; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; transition: transform .2s; }
.hero-card:hover { transform: translateY(-4px); }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* sections */
.block { padding-block: 28px; }
.page-title { font-weight: 800; letter-spacing: -.02em; }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.see-all { color: var(--muted); font-weight: 600; font-size: .9rem; }
.see-all:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--s2); color: #fff; border: 0; border-radius: 50px; padding: 6px 16px; font-size: .88rem; font-weight: 500; }
.chip:hover { background: #2a2e38; }
.chip.active { background: var(--accent); color: #000; font-weight: 700; }

/* cards */
.song-card, .artist-card { background: var(--s1); border-radius: 12px; padding: 12px; height: 100%; transition: background .2s; }
.song-card { cursor: pointer; }
.song-card:hover, .song-card.playing { background: var(--s2); }
.song-card h3, .artist-card h3 { font-size: 1rem; font-weight: 600; margin: 12px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-card.playing h3 { color: var(--accent); }
.song-card p, .artist-card p { color: var(--muted); font-size: .85rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover { position: relative; }
.cover img, .artist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.play-fab { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #000; opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.song-card:hover .play-fab, .song-card:focus-within .play-fab, .song-card.playing .play-fab { opacity: 1; transform: none; }
.artist-card { text-align: center; }
.artist-card img { border-radius: 50%; }
.artist-card p { margin-bottom: 12px; }
.icon-btn { background: none; border: 0; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; padding: 6px; }
.icon-btn:hover { color: #fff; }
.icon-btn.on, .heart.on { color: var(--accent); }
.cover .heart { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; padding: 0; }
.cover .heart.on { color: var(--accent); }
.genre-tile { width: 100%; min-height: 110px; border: 0; border-radius: 12px; padding: 16px; text-align: left; color: #fff; background: var(--c); display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: 1.3rem; transition: transform .2s; }
.genre-tile:hover { transform: translateY(-3px); }
.genre-tile small { font-weight: 400; font-size: .8rem; opacity: .85; }

/* song table */
.song-table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255, 255, 255, .05); --bs-table-hover-color: #fff; --bs-table-border-color: var(--line); }
.song-table th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.song-table tbody tr { cursor: pointer; }
.song-table td { padding-block: 10px; }
.song-table img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.song-table .num { width: 44px; text-align: center; color: var(--muted); }
.song-table .t { font-weight: 600; }
.song-table small { color: var(--muted); }
.song-table tr.playing .t { color: var(--accent); }
.song-table .dur { color: var(--muted); font-size: .9rem; margin-left: 8px; }
.empty-state { color: var(--muted); text-align: center; padding: 40px 12px !important; }

/* tabs, plans, cta */
.lib-tabs .nav-link { color: #fff; background: var(--s2); border-radius: 50px; margin-right: 8px; }
.lib-tabs .nav-link.active { background: var(--accent); color: #000; font-weight: 700; }
.plan { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { font-size: 1.2rem; font-weight: 700; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 16px; }
.plan .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--muted); min-height: 96px; }
.cta { background: linear-gradient(135deg, #0f2a1a, var(--s1)); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }

/* footer */
.wv-footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px; }
.wv-footer h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.wv-footer a:not(.wv-brand) { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.wv-footer a:hover { color: #fff; }

/* player */
.player { position: fixed; inset: auto 0 0 0; height: 84px; z-index: 1030; background: #08090b; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 16px; padding: 0 16px; }
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-now img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.pl-now .t { font-weight: 600; }
.pl-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pl-btns { display: flex; align-items: center; gap: 10px; }
.pl-btns .main { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; }
.pl-time { width: 100%; max-width: 560px; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); }
.pl-time input { flex: 1; }
.pl-vol { justify-content: flex-end; align-items: center; gap: 8px; }
.pl-vol input { width: 110px; }
input[type=range] { accent-color: var(--accent); }
.wv-toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(10px); background: #fff; color: #000; font-weight: 600; font-size: .9rem; padding: 10px 20px; border-radius: 50px; opacity: 0; pointer-events: none; transition: .25s; z-index: 1100; }
.wv-toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 991px) { .player { grid-template-columns: 1fr auto; } .pl-vol { display: none !important; } }

/* skeleton loading */
.sk { background: linear-gradient(100deg, #15171c 30%, #242832 50%, #15171c 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
.sk-card { aspect-ratio: 3 / 4; }
.sk-tile { height: 110px; }
.sk-row { height: 56px; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* login / signup */
.wv-auth-page { padding: 0; }
.wv-auth-wrapper { min-height: calc(100vh - 72px); background: radial-gradient(circle at 50% 10%, rgba(30, 215, 96, .14), transparent 55%); }
.wv-auth-box { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 40px; max-width: 440px; width: 100%; }
.wv-auth-box .form-control { background: var(--s2); border: 1px solid transparent; color: #fff; height: 48px; }
.wv-auth-box .form-control:focus { background: #292d37; box-shadow: 0 0 0 2px var(--accent); }
.wv-auth-box .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
@media (max-width: 480px) { .wv-auth-box { padding: 28px 22px; } }
.hero-card img { background: var(--s2); min-height: 120px; }
