/* Brand: orange #FF7A00, black #0D0D0D, white */
:root {
    --orange: #FF7A00;
    --orange-dark: #D96500;
    --black: #0D0D0D;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --surface: #F6F6F6;
    --text: #141414;
    --muted: #666;
    --line: #E6E6E6;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #0D0D0D; --surface: #171717; --text: #F4F4F4; --muted: #A3A3A3; --line: #262626; --shadow: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); padding-bottom: 90px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--orange); } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding-block: 28px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--orange); margin: 0 0 .4em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--orange); color: #fff; border: 2px solid var(--orange); padding: .6em 1.2em; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }
.btn.small { padding: .3em .8em; font-size: .85rem; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--orange); background: var(--surface); text-decoration: none; }
.chip { display: inline-block; padding: .3em .9em; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--bg); font-size: .9rem; cursor: pointer; }
.chip:hover { border-color: var(--orange); text-decoration: none; }
.chip.active { background: var(--black); color: #fff; border-color: var(--black); }
@media (prefers-color-scheme: dark) { .chip.active { background: var(--orange); border-color: var(--orange); } }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; text-decoration: none; color: var(--muted); vertical-align: middle; }

/* Header */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .8rem; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: #ddd; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; background: #1f1f1f; text-decoration: none; }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--orange); }
.main-nav .nav-support { color: var(--orange); }
.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search input { width: 100%; padding: 9px 14px; border-radius: 999px; border: 1px solid #333; background: #1a1a1a; color: #fff; }
.search input::placeholder { color: #999; }
.search.big { display: flex; gap: 8px; max-width: 640px; margin: 16px 0 24px; }
.search.big input { background: var(--bg); color: var(--text); border-color: var(--line); padding: 12px 18px; }
.center .search.big { margin-inline: auto; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); }
.suggest a:hover, .suggest a.active { background: var(--surface); text-decoration: none; }
.suggest img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.suggest small { margin-left: auto; color: var(--muted); }
.cart-link { position: relative; color: #fff; display: grid; place-items: center; width: 40px; height: 40px; }
.cart-count:not(:empty) { position: absolute; top: 2px; right: 0; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-top: 16px; font-weight: 600; }
.flash-success { background: #E9F8EE; color: #13652F; }
.flash-error { background: #FDECEC; color: #8F1D1D; }

/* Hero */
.hero { background: radial-gradient(circle at 80% 20%, rgba(255, 122, 0, .35), transparent 50%), var(--black); color: #fff; }
.hero-inner { display: flex; align-items: center; gap: 40px; padding-block: 48px; }
.hero-photo { width: 260px; height: 260px; object-fit: cover; border-radius: 50%; border: 4px solid var(--orange); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); margin-bottom: .1em; }
.hero .muted { color: #bbb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .btn-ghost { color: #fff; border-color: #444; }
.hero .btn-ghost:hover { background: #1f1f1f; color: #fff; }

.featured { display: flex; gap: 24px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 28px; }
.featured img { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.page-head { margin-bottom: 18px; }
.page-head.with-side { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Song list */
.song-list { list-style: none; margin: 12px 0; padding: 0; }
.song-row { display: grid; grid-template-columns: 44px 1fr auto auto auto; align-items: center; gap: 14px; padding: 8px; border-radius: 10px; }
.song-row:hover, .song-row.is-current { background: var(--surface); }
.song-row.is-current .song-title { color: var(--orange); }
.play-btn { position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: var(--surface); border-radius: 8px; cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.play-btn img { width: 44px; height: 44px; object-fit: cover; }
.play-btn .num { color: var(--muted); font-weight: 700; }
.play-icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 13, 13, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.song-row:hover .play-icon, .song-row.is-current .play-icon, .play-btn:focus-visible .play-icon { opacity: 1; }
.song-row.is-playing .play-icon::before { content: "❚❚"; font-size: .8rem; }
.song-row.is-playing .play-icon { font-size: 0; }
.song-meta { min-width: 0; display: flex; flex-direction: column; }
.song-title { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta .muted { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plays, .dur { font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Cards / grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.card:hover { text-decoration: none; }
.card img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover img { transform: translateY(-3px); }
.book-card img { aspect-ratio: 2 / 3; }
.card .muted { font-size: .85rem; }
.price { color: var(--orange-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .price { color: var(--orange); } }

/* Song page */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.song-hero { display: flex; gap: 32px; align-items: flex-end; margin-bottom: 32px; }
.song-hero > img { width: 300px; height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); flex-shrink: 0; }
.meta-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; font-size: .9rem; }
.song-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.lyrics { font-size: 1.1rem; line-height: 1.8; }
.lyrics p { margin: 0 0 1.4em; }
.song-side section { margin-bottom: 28px; }
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.embed-code { width: 100%; font: .8rem monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.btn[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }

/* Lyrics index */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; position: sticky; top: 64px; background: var(--bg); padding: 8px 0; z-index: 5; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 700; }
.az a:hover { background: var(--orange); color: #fff; text-decoration: none; }
.az-group { scroll-margin-top: 130px; }
.lyrics-index { columns: 2 280px; padding-left: 1.2em; }

/* About / bio */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 40px; margin-bottom: 32px; }
.about img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.stats { list-style: none; padding: 0; display: flex; gap: 24px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--orange); }
.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-block; padding: 4px 12px; border: 1px solid #333; border-radius: 999px; color: inherit; font-size: .85rem; }
.socials.big a { border-color: var(--line); padding: 8px 16px; }
.socials a:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }
.bio { max-width: 820px; }
.support-band { text-align: center; background: var(--black); color: #fff; border-radius: var(--radius); padding: 40px 24px; margin-block: 28px; }

/* Books */
.book-page { display: grid; grid-template-columns: 360px 1fr; gap: 40px; }
.book-cover { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; }
.buy-box { background: var(--surface); padding: 18px; border-radius: var(--radius); margin: 16px 0; }
.buy-box fieldset, .form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 700; margin-bottom: 8px; }
.format-option { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: var(--bg); }
.format-option:has(input:checked) { border-color: var(--orange); }
.format-option.disabled { opacity: .5; cursor: not-allowed; }
.format-option > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.currency-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.prose { max-width: 70ch; }

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table th, .cart-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-book { display: flex; gap: 12px; align-items: center; }
.cart-book img { width: 48px; height: 72px; object-fit: cover; border-radius: 4px; }
.qty { width: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.totals { background: var(--surface); padding: 18px; border-radius: var(--radius); margin-top: 16px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.totals .grand { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.totals .btn { margin-top: 12px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface); }
.status-paid, .status-processing, .status-delivered, .status-shipped { background: #E9F8EE; color: #13652F; }
.status-pending { background: #FFF4E5; color: #8A4B00; }
.status-cancelled, .status-refunded { background: #FDECEC; color: #8F1D1D; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form input:not([type="radio"]):not([type="checkbox"]), .form textarea, .form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 400; }
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 0, .2); }
.form small { font-weight: 400; }
.support-head { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.support-head img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; text-align: center; padding: 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.amount input:checked + span { border-color: var(--orange); background: rgba(255, 122, 0, .1); }
.amount input:focus-visible + span { outline: 3px solid var(--orange); }
.bank { background: var(--surface); padding: 16px; border-radius: var(--radius); font-family: monospace; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 24px 0; }

/* Footer */
.site-footer { background: var(--black); color: #ccc; margin-top: 48px; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.site-footer nav a { display: block; color: #bbb; padding: 3px 0; }
.site-footer nav a:hover { color: var(--orange); }
.site-footer .muted { color: #999; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; margin-top: 24px; border-top: 1px solid #222; font-size: .85rem; }
.footer-bottom a { color: #bbb; }

/* Player */
.player { position: fixed; left: 0; right: 0; bottom: 0; background: var(--black); color: #fff; z-index: 70; box-shadow: 0 -4px 20px rgba(0, 0, 0, .3); border-top: 2px solid var(--orange); }
.player-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) 100px; align-items: center; gap: 16px; padding: 10px 16px; max-width: 1400px; margin: 0 auto; }
.pl-track { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.pl-track:hover { text-decoration: none; }
.pl-track img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.pl-track span { display: flex; flex-direction: column; min-width: 0; }
.pl-track strong, .pl-track small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-track small { color: #aaa; }
.pl-controls { display: flex; align-items: center; gap: 6px; }
.pl-btn { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; width: 38px; height: 38px; border-radius: 50%; }
.pl-btn:hover { background: #222; }
.pl-btn.big { background: var(--orange); width: 46px; height: 46px; font-size: 1.1rem; }
.pl-btn.big:hover { background: var(--orange-dark); }
.pl-btn.small { font-size: .95rem; color: #888; }
.pl-btn[aria-pressed="true"] { color: var(--orange); }
.pl-progress { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #aaa; font-variant-numeric: tabular-nums; }
.pl-progress input { flex: 1; }
input[type="range"] { accent-color: var(--orange); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 28px; max-width: 420px; text-align: center; border-top: 4px solid var(--orange); }
.modal-box .btn { margin: 6px 4px 0; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
    .two-col, .song-body, .checkout-grid { grid-template-columns: 1fr; }
    .about, .book-page { grid-template-columns: 1fr; }
    .about img, .book-cover { max-width: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .player-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .pl-progress { grid-column: 1 / -1; order: 3; }
    .pl-vol { display: none; }
}
@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 8px 16px 16px; }
    .main-nav.open { display: flex; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .search { order: 5; flex-basis: 100%; margin: 0 0 10px; }
    .cart-link { margin-left: auto; }
    .hero-inner, .song-hero, .featured, .support-head { flex-direction: column; align-items: flex-start; }
    .hero-photo { width: 180px; height: 180px; }
    .song-hero > img { width: 100%; height: auto; max-width: 340px; }
    .song-row { grid-template-columns: 44px 1fr auto; }
    .song-row .plays, .song-row .dur { display: none; }
    .pl-btn.small { display: none; }
    .az { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Accounts, playlists, comments, reviews, offline ---------- */
/* Song rows: any number of trailing buttons sit on one line. */
.song-row { grid-template-columns: 44px minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.row-actions form { display: inline-flex; }
.icon-btn[disabled] { opacity: .3; cursor: default; }

.account-link { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; }
.account-link:hover { text-decoration: none; color: var(--orange); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 1.4rem; }

.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.notice { background: rgba(255, 122, 0, .1); border-left: 4px solid var(--orange); border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
.notice p { margin: 0 0 8px; }
.danger-box { border: 1px solid #e5484d55; }
.btn-danger { background: #d93036; border-color: #d93036; }
.link, .link-btn { background: none; border: 0; padding: 0; color: var(--orange-dark); cursor: pointer; font: inherit; }
.link:hover, .link-btn:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .link, .link-btn { color: var(--orange); } }
.site-footer .link-btn { color: inherit; opacity: .8; }

.auth-page { max-width: 440px; }
.perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.account-head h1 { margin: 0; }
.account-head p { margin: 0; }
.account-head form { margin-left: auto; }
.account-nav { margin: 6px 0 22px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.form .check, .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.inline-form .grow { flex: 1 1 240px; }

.playlist-card { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.playlist-card:hover { text-decoration: none; outline: 2px solid var(--orange); }
.playlist-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--black)); color: #fff; font-size: 3rem; margin-bottom: 8px; }
.edit-box { margin-top: 24px; }
.edit-box summary { cursor: pointer; font-weight: 700; }
.edit-box form { margin-top: 12px; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.dropdown-menu p { margin: 6px; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu-item:hover { background: var(--surface); color: var(--orange-dark); }
.new-playlist { display: flex; gap: 6px; padding: 8px 4px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.new-playlist input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }

.comments { max-width: 820px; }
.comment-form { display: grid; grid-template-columns: 34px 1fr; gap: 10px 12px; align-items: start; margin-bottom: 24px; }
.comment-form .btn { grid-column: 2; justify-self: start; }
.form textarea { width: 100%; }
.thread { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.comment { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.comment header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.comment-body p { margin: 4px 0; overflow-wrap: anywhere; }
.comment.is-pending { opacity: .7; }
.comment.by-artist .avatar { background: var(--black); outline: 2px solid var(--orange); }
.comment-actions { display: flex; gap: 14px; align-items: flex-start; }
.comment-actions form { display: inline; }
.reply-box summary { list-style: none; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box .form { margin-top: 8px; min-width: min(520px, 70vw); }
.replies { margin: 12px 0 0 46px; display: grid; gap: 12px; }

.stars { color: var(--orange); letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: var(--line); }
.rating-summary { margin: 0; }
.rating-link { color: inherit; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.review p.muted { margin: 4px 0; }
.verified { color: #1a7f37; font-weight: 600; }
.review-form summary { cursor: pointer; font-weight: 700; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0 0 8px; }
.star-input legend { float: left; width: 100%; margin-bottom: 4px; font-weight: 600; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .star-input label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; font-weight: 400; }
.star-input input:checked ~ label, .form .star-input label:hover, .form .star-input label:hover ~ label { color: var(--orange); }
.star-input input:focus-visible + label { outline: 3px solid var(--orange); border-radius: 4px; }

.offline-banner { background: var(--black); color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border-left: 4px solid var(--orange); }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 90; background: var(--black); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); text-align: center; border: 1px solid var(--orange); }
.toast[hidden] { display: none; }

@media (max-width: 760px) {
    .cart-link { margin-left: 0; }
    .account-link { margin-left: auto; }
    .dropdown-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 100px; }
    .replies { margin-left: 20px; }
    .reply-box .form { min-width: 0; }
    .account-head form { margin-left: 0; }
}
