/* ==========================================================================
   deeperdub store — layout de loja de música eletrônica
   (cabeçalho com gêneros, carrossel, Top 10, tabelas de faixas, player com waveform)
   ========================================================================== */
:root {
    --bg: #000;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --surface-3: #262626;
    --line: #262626;
    --line-2: #333;
    --text: #fff;
    --text-2: #c7c7c7;
    --muted: #8c8c8c;
    --muted-2: #5e5e5e;
    --accent: #ffffff;     /* destaque: branco */
    --accent-2: #d9d9d9;   /* hover */
    --accent-ink: #000;
    --danger: #b3b3b3;     /* erros em cinza claro, com borda */
    --radius: 4px;
    --wrap: 1320px;
    --player-h: 80px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
html.has-player body { padding-bottom: var(--player-h); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(28px, 3.6vw, 44px); }
h2 { font-size: 20px; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.muted-strong { color: var(--muted); font-weight: 500; }
.small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 36px; }
.narrow { max-width: 780px; }
.page-head { padding-top: 32px; }
.page-head h1 { margin-bottom: 4px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { text-transform: uppercase; font-size: 16px; letter-spacing: .04em; }
.section-head .count { color: var(--muted); font-weight: 500; margin-left: 6px; }
.link-arrow { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.link-arrow:hover { color: var(--accent); }
.h-small { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.hc-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em;
    background: var(--surface-3); transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn .i-pause, .art-play .i-pause, .card-btn .i-pause, .art-big-play .i-pause { display: none; }
.is-playing .i-play { display: none !important; }
.is-playing .i-pause { display: inline !important; }

/* botão de preço: preço + carrinho */
.btn-price {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
    min-width: 92px; height: 30px; padding: 0 10px; border-radius: var(--radius); border: 0; cursor: pointer;
    background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.btn-price:hover { background: var(--accent-2); }
.btn-price svg { font-size: 15px; }
.btn-price.btn-incart { background: var(--surface-3); color: var(--text-2); justify-content: center; font-weight: 600; }
.btn-price.btn-owned { background: transparent; color: var(--accent); border: 1px solid var(--accent); justify-content: center; }
.btn-price.btn-owned:hover { background: var(--accent); color: var(--accent-ink); }
.btn-price.btn-disabled { background: var(--surface-2); color: var(--muted); cursor: default; justify-content: center; }
.btn-price.is-loading, .btn.is-loading { opacity: .5; pointer-events: none; }
.track-actions { display: flex; justify-content: flex-end; }
.track-actions form { margin: 0; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; font-size: 15px; }
.icon-btn:hover { color: var(--text); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 104px; height: auto; }
.header-search {
    flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 14px; height: 40px;
}
.header-search svg { color: var(--muted); font-size: 18px; }
.header-search input { flex: 1; background: none; border: 0; outline: none; min-width: 0; }
.header-search:focus-within { border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.mobile-search { display: none; font-size: 22px; padding: 6px; }
.header-login { font-weight: 600; color: var(--text-2); }
.header-login:hover { color: var(--text); }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius); background: var(--surface-2); font-weight: 700; }
.cart-link svg { font-size: 20px; }
.cart-link:hover { background: var(--surface-3); }
.cart-count {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-name { font-weight: 600; color: var(--text-2); }
.user-menu-panel, .genre-panel {
    position: absolute; top: calc(100% + 8px); min-width: 200px; padding: 6px; z-index: 60;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.user-menu-panel { right: 0; }
.user-menu-panel a, .user-menu-panel button, .genre-panel a { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 3px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.user-menu-panel a:hover, .user-menu-panel button:hover, .genre-panel a:hover { background: var(--surface-3); color: var(--accent); }

.header-nav { background: var(--surface); }
.nav-inner { display: flex; align-items: center; gap: 4px; height: 44px; }
.nav-inner > a, .genre-menu summary {
    display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; white-space: nowrap;
    font-weight: 600; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer;
}
.nav-inner > a:hover, .genre-menu summary:hover { color: var(--text); }
.nav-inner > a.is-active { color: var(--text); border-color: var(--accent); }
.nav-genre { color: var(--muted) !important; font-weight: 500 !important; }
.genre-menu { position: relative; }
.genre-menu summary { list-style: none; color: var(--text); }
.genre-menu summary::-webkit-details-marker { display: none; }
.genre-panel { left: 0; top: 100%; columns: 2; min-width: 380px; }

.nav-loader { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; opacity: 0; }
.nav-loader.is-active { opacity: 1; width: 70%; transition: width 2s cubic-bezier(.1, .7, .1, 1); }
.nav-loader.is-done { width: 100%; opacity: 0; transition: width .2s, opacity .3s .1s; }

/* ---------------------------------------------------------------- flashes / toasts */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--line-2); font-size: 14px; transition: opacity .4s; }
.flash-success { border-color: var(--accent); }
.flash-danger { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.flash-info { border-color: var(--muted); }
.flash.is-hidden { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
.toasts { position: fixed; right: 20px; bottom: calc(var(--player-h) + 16px); z-index: 90; display: grid; gap: 8px; }
html:not(.has-player) .toasts { bottom: 20px; }
.toast { padding: 12px 16px; border-radius: var(--radius); background: var(--surface-2); border-left: 3px solid var(--accent); font-size: 14px; font-weight: 600;
    transform: translateY(10px); opacity: 0; transition: all .25s; max-width: 340px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.toast.is-in { transform: none; opacity: 1; }
.toast-danger { border-color: var(--muted); background: var(--surface-3); }

/* ---------------------------------------------------------------- hero carousel */
.hero-carousel { position: relative; overflow: hidden; height: 400px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hc-slide.is-active { opacity: 1; visibility: visible; }
.hc-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.4) brightness(.55); transform: scale(1.1); }
.hero-carousel .hc-slide::after, .release-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.55) 100%); }
.hc-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: 40px; }
.hc-cover img { width: 320px; height: 320px; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.hc-text { max-width: 560px; }
.hc-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; margin-bottom: 6px; }
.hc-title a:hover { color: var(--accent); }
.hc-artists { font-size: 20px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.hc-meta { color: var(--muted); font-size: 14px; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hc-actions form { margin: 0; }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 64px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 32px; cursor: pointer; }
.hc-arrow:hover { background: rgba(0,0,0,.75); color: var(--accent); }
.hc-prev { left: 0; } .hc-next { right: 0; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hc-dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.hc-dots button.is-active { background: var(--accent); }

/* ---------------------------------------------------------------- release cards */
.release-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.release-row::-webkit-scrollbar { display: none; }
.release-row > * { scroll-snap-align: start; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 16px; }
.row-nav { display: flex; align-items: center; gap: 6px; }
.row-nav .link-arrow { margin-right: 6px; }
.row-btn { width: 30px; height: 30px; border-radius: var(--radius); border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; }
.row-btn:hover { border-color: var(--accent); color: var(--accent); }
.release-card { min-width: 0; }
.release-media { position: relative; }
.release-cover { display: block; overflow: hidden; background: var(--surface); }
.release-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: filter .2s; }
.release-card:hover .release-cover img { filter: brightness(.7); }
.card-actions { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: all .18s; }
.release-card:hover .card-actions, .card-actions:focus-within, .card-actions:has(.is-current) { opacity: 1; transform: none; }
.card-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.card-btn > * { grid-area: 1/1; }
.card-btn.is-loading { opacity: .6; }
.release-info { display: flex; flex-direction: column; padding-top: 8px; min-width: 0; }
.release-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-title:hover { color: var(--accent); }
.release-artists { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-label { color: var(--muted); font-size: 12px; }
.badge { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge-soon { background: var(--accent); color: var(--accent-ink); }
td .badge { position: static; }

/* ---------------------------------------------------------------- top 10 */
.top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.top-box { background: var(--surface); padding: 18px 18px 8px; border-radius: var(--radius); min-width: 0; }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-item { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.top-item:first-child { border-top: 0; }
.top-item.is-current .t-name { color: var(--accent); }
.top-n { font-size: 20px; font-weight: 800; color: var(--muted); text-align: center; }
.top-meta { display: flex; flex-direction: column; min-width: 0; }
.top-meta > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name { font-weight: 700; }
.t-name:hover { color: var(--accent); }
.t-mix { font-weight: 400; color: var(--muted); }
.t-artists { color: var(--text-2); font-size: 13px; }
.t-artists a:hover { color: var(--accent); }
.t-label { color: var(--muted); font-size: 12px; }

/* capa com play por cima */
.art-play { position: relative; display: block; padding: 0; border: 0; background: var(--surface-3); cursor: pointer; width: 48px; height: 48px; color: #fff; }
.top-item .art-play { width: 56px; height: 56px; }
.art-play img { width: 100%; height: 100%; object-fit: cover; }
.art-overlay { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.art-overlay > * { grid-area: 1/1; }
.art-play:hover .art-overlay, .art-play.is-current .art-overlay { opacity: 1; }
.art-play.is-current .art-overlay { color: var(--accent); }

/* ---------------------------------------------------------------- tabela de faixas */
.ttable { --cols: 48px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px 110px; }
.ttable-num { --cols: 36px 48px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px 110px; }
.ttable-noart.ttable-num { --cols: 36px 36px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px 110px; }
.ttable-head, .trow { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 14px; }
.ttable-head { padding: 0 12px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.ttable-body { list-style: none; margin: 0; padding: 0; }
.trow { padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--bg); transition: background .12s; }
.trow:nth-child(odd) { background: #0a0a0a; }
.trow:hover { background: var(--surface-2); }
.trow.is-current { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--accent); }
.trow.is-current .t-name { color: var(--accent); }
.c-num { color: var(--muted); font-weight: 700; text-align: center; }
.c-title { display: flex; flex-direction: column; min-width: 0; }
.c-title > *, .c-label, .c-genre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-label, .c-genre { color: var(--muted); font-size: 13px; }
.c-genre a:hover { color: var(--accent); }
.c-date { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.c-buy { display: flex; justify-content: flex-end; }
.ttable-noart .art-play { width: 32px; height: 32px; background: none; border-radius: 50%; border: 1px solid var(--line-2); }
.ttable-noart .art-overlay { opacity: 1; background: none; font-size: 14px; }
.ttable-noart .art-play:hover { border-color: var(--accent); color: var(--accent); }
.ttable-noart .art-play.is-current { background: var(--accent); border-color: var(--accent); }
.ttable-noart .art-play.is-current .art-overlay { color: var(--accent-ink); }

/* ---------------------------------------------------------------- filtros */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--text); border-color: var(--accent); }
.filter-form { display: flex; gap: 8px; flex: 1; justify-content: flex-end; padding-bottom: 8px; flex-wrap: wrap; }
.filter-form input, .filter-form select, .admin-filter input, .admin-filter select {
    height: 34px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 12px; outline: none; min-width: 0;
}
.filter-form input { width: 280px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.chip:hover { background: var(--surface-3); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); }
.chart-hero { background: linear-gradient(135deg, #2a2a2a 0%, var(--surface) 55%); border-bottom: 1px solid var(--line); padding: 40px 0 30px; }
.chart-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.genre-hero { background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 60%); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); display: grid; gap: 14px; justify-items: center; }
.empty-page { padding: 100px 24px; text-align: center; }
.empty-page h1 { font-size: 96px; color: var(--accent); }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 28px; }
.pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); color: var(--text-2); font-weight: 600; font-size: 13px; }
.pagination a:hover { background: var(--surface-3); }
.pagination a.is-current { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- página do release */
.release-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.release-head { position: relative; z-index: 1; display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: end; padding-top: 40px; padding-bottom: 36px; }
.release-art { position: relative; }
.release-art img { width: 320px; height: 320px; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.art-big-play { position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 24px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.art-big-play > * { grid-area: 1/1; }
.release-details h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; }
.release-artist-links { font-size: 18px; font-weight: 600; color: var(--text-2); margin: 8px 0 18px; }
.release-artist-links a:hover { color: var(--accent); }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px 36px; margin: 0; }
.meta-grid dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.meta-grid dd { margin: 2px 0 0; font-weight: 600; }
.notice { margin-top: 14px; color: var(--accent); font-size: 14px; }
.about { max-width: 820px; background: var(--surface); padding: 20px 22px; border-radius: var(--radius); }
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose strong { color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 20px; }
.facts-col { flex-direction: column; gap: 8px; }
.facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; }

/* ---------------------------------------------------------------- carrinho / pedido */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-list, .order-items { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); }
.cart-item, .order-items li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cart-item:last-child, .order-items li:last-child { border-bottom: 0; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; }
.cart-item .play-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.cart-item .play-btn > * { grid-area: 1/1; }
.cart-item .play-btn .i-pause, .cart-item .play-btn .eq { display: none; }
.cart-item .play-btn.is-current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cart-item .track-main, .order-items .track-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.track-title { font-weight: 700; }
.track-artist { color: var(--muted); font-size: 13px; }
.track-artist a:hover { color: var(--accent); }
.cart-price { font-weight: 700; }
.cart-summary { position: sticky; top: 130px; background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; color: var(--muted); }
.summary-total { color: var(--text); font-size: 22px; font-weight: 800; padding: 12px 0; border-top: 1px solid var(--line); }
.summary-total small { font-size: 12px; color: var(--muted); font-weight: 500; }
#paypal-checkout { min-height: 50px; transition: opacity .2s; }
#paypal-checkout.is-processing { opacity: .4; pointer-events: none; }
.secure { margin: 0; }
.order-items .order-total { justify-content: space-between; font-weight: 800; font-size: 18px; }
.order-ok { text-align: center; padding: 20px 0 30px; }
.order-ok .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.order-ok h1 { margin-bottom: 10px; }
.order-page .btn { margin-top: 24px; }

/* ---------------------------------------------------------------- formulários */
.auth { display: grid; place-items: center; padding-bottom: 40px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.form input[type=text], .form input[type=email], .form input[type=password], .input-sm {
    height: 44px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 14px; color: var(--text); outline: none; font-size: 15px; text-transform: none; letter-spacing: 0;
}
.form input:focus { border-color: var(--accent); }
.form input:disabled { opacity: .5; }
.form small { font-weight: 400; color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.form fieldset { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; }
.form legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.check-label { grid-template-columns: 18px 1fr; align-items: start; font-weight: 400 !important; line-height: 1.4; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }
.check-label input { margin-top: 2px; accent-color: var(--accent); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.settings-form { max-width: 460px; }
.input-sm { height: 34px; width: 110px; }
.segmented { display: inline-flex; margin-top: 12px; border-bottom: 1px solid var(--line); }
.segmented a { padding: 10px 14px; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.segmented a.is-active { color: var(--text); border-color: var(--accent); }

/* ---------------------------------------------------------------- tabelas / admin */
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius); }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table a { color: var(--accent); }
.thumb { width: 40px; height: 40px; object-fit: cover; }
.status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--surface-3); }
.status-completed { background: #fff; color: #000; }
.status-pending { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.status-failed, .status-refunded { background: var(--surface-3); color: var(--muted); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.stat strong { font-size: 26px; font-weight: 800; }
.admin-filter { display: flex; gap: 10px; margin-bottom: 16px; max-width: 640px; }
.admin-filter input { flex: 1; }

/* ---------------------------------------------------------------- rodapé */
.site-footer { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.footer-inner img { margin-bottom: 10px; }
.footer-links { display: flex; gap: 22px; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-social a { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .15s, border-color .15s; }
.footer-social a:hover { color: var(--text); border-color: var(--muted); }
.fine { grid-column: 1 / -1; font-size: 12px; color: var(--muted-2); margin: 0; }

/* ---------------------------------------------------------------- player */
.player {
    --wave-played: #ffffff; --wave-rest: #3d3d3d; --wave-hover: #7a7a7a;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: var(--player-h);
    background: #0f0f0f; border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px rgba(0,0,0,.5);
    transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
html.has-player .player { transform: none; }
.player-inner { height: 100%; display: grid; grid-template-columns: minmax(200px, 300px) auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 0 20px; }
.player-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-meta img { width: 56px; height: 56px; object-fit: cover; }
.player-text { display: flex; flex-direction: column; min-width: 0; }
.player-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title { font-weight: 700; }
.player-meta:hover .player-title { color: var(--accent); }
.player-artist { color: var(--text-2); font-size: 13px; }
.player-label { color: var(--muted); font-size: 12px; }
.player-controls { display: flex; align-items: center; gap: 6px; }
.pbtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.pbtn > * { grid-area: 1 / 1; }
.pbtn:hover { color: var(--accent); }
.pbtn:disabled { opacity: .3; cursor: default; color: var(--text); }
.pbtn-main { width: 44px; height: 44px; background: var(--accent); color: var(--accent-ink); font-size: 20px; }
.pbtn-main:hover { background: var(--accent-2); color: var(--accent-ink); }
.pbtn-sm { width: 30px; height: 30px; font-size: 18px; color: var(--muted); }
.pbtn-main .i-pause, .player .spinner { display: none; }
.player[data-state="playing"] .pbtn-main .i-play { display: none; }
.player[data-state="playing"] .pbtn-main .i-pause { display: inline; }
.player[data-state="loading"] .pbtn-main svg { display: none; }
.player[data-state="loading"] .spinner { display: block; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-wave { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ptime { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 38px; text-align: center; flex: none; }
.wave { position: relative; flex: 1; height: 48px; cursor: pointer; min-width: 0; }
.wave canvas { width: 100%; height: 100%; display: block; }
.player-extra { display: flex; align-items: center; gap: 14px; }
.player-volume { display: flex; align-items: center; gap: 4px; }
.player .i-mute, .player.is-muted .i-vol { display: none; }
.player.is-muted .i-mute { display: inline; }
#player-volume { width: 84px; accent-color: var(--accent); }


/* ---------------------------------------------------------------- home: charts à esquerda, banners à direita */
.home-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-areas: "side main"; gap: 28px; padding-top: 24px; align-items: start; }
.home-main { grid-area: main; min-width: 0; }
.home-side { grid-area: side; display: grid; gap: 20px; min-width: 0; }
.home-main > .section:first-of-type { padding-top: 28px; }

/* mosaico: banner quadrado grande (carrossel) + 4 quadrados */
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sq-carousel { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.sq-slide { display: block; }
.sq-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.sq-slide.is-active img { transform: scale(1.04); }
.sq-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 34px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); display: flex; flex-direction: column; gap: 2px; }
.sq-caption strong { font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; line-height: 1.1; }
.sq-caption > span:not(.hc-tag) { color: var(--text-2); font-weight: 600; }
.sq-carousel .hc-arrow { width: 34px; height: 54px; font-size: 26px; opacity: 0; transition: opacity .2s; }
.sq-carousel:hover .hc-arrow { opacity: 1; }
.sq-carousel .hc-dots { bottom: 12px; justify-content: flex-start; left: 22px; }
.sq-carousel .hc-dots button { width: 18px; }
.mosaic-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.tile { position: relative; overflow: hidden; background: var(--surface); min-width: 0; }
.tile-link { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s, filter .2s; }
.tile:hover img { transform: scale(1.05); filter: brightness(.75); }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); display: flex; flex-direction: column; }
.tile-caption strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-caption span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-play { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; font-size: 15px; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-play, .tile-play.is-current { opacity: 1; }

.bar-head { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.release-grid-home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; }
.home-main .ttable { --cols: 48px minmax(0, 2.2fr) minmax(0, 1fr) 96px 110px; }
.home-main .c-label { display: none; }

/* caixas laterais (charts) */
.side-box { background: var(--surface); border-radius: var(--radius); padding: 14px 14px 6px; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; margin-bottom: 4px; }
.side-head h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-item { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.side-item:first-child { border-top: 0; }
.side-release { grid-template-columns: 22px 44px minmax(0, 1fr); }
.side-n { font-weight: 800; color: var(--muted); text-align: center; font-size: 15px; }
.side-item .art-play { width: 44px; height: 44px; }
.side-item .t-name { font-size: 13px; }
.side-item .t-artists { font-size: 12px; }
.side-item .btn-price { min-width: 0; height: 26px; padding: 0 8px; font-size: 12px; gap: 5px; }
.side-item .btn-price svg { font-size: 13px; }
.side-genres { list-style: none; margin: 0; padding: 4px 0 8px; }
.side-genres a { display: flex; justify-content: space-between; padding: 7px 2px; color: var(--text-2); font-weight: 600; border-top: 1px solid var(--line); }
.side-genres li:first-child a { border-top: 0; }
.side-genres a:hover { color: var(--accent); }
.side-genres span { color: var(--muted-2); font-family: var(--mono); font-size: 12px; }

/* admin banners */
.admin-cols { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-card { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.admin-card.form { margin-top: 0; }
.admin-card select, .banner-admin input[type=text], .banner-admin select { height: 36px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 10px; color: var(--text); width: 100%; }
.banner-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.banner-admin { display: grid; gap: 10px; }
.banner-admin.is-off img { opacity: .35; }
.banner-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.banner-admin .form { margin-top: 0; gap: 8px; }
.banner-admin .row { display: flex; gap: 12px; align-items: end; }
.btn-danger { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn-danger:hover { border-color: var(--text); color: var(--text); }

@media (max-width: 1200px) {
    .home-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 20px; }
    .release-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-main .ttable { --cols: 48px minmax(0, 2fr) 96px; }
    .home-main .c-genre, .home-main .c-date { display: none; }
}
@media (max-width: 1000px) {
    .home-layout { grid-template-columns: 1fr; grid-template-areas: "main" "side"; }
    .home-side { grid-template-columns: 1fr 1fr; }
    .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .mosaic { grid-template-columns: 1fr; }
    .release-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-side { grid-template-columns: 1fr; }
    .home-main .ttable { --cols: 44px minmax(0, 1fr) auto; }
    .tile-play { opacity: 1; }
}

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
    .release-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
    .ttable { --cols: 48px minmax(0, 2fr) minmax(0, 1fr) 110px; }
    .ttable-num { --cols: 32px 48px minmax(0, 2fr) minmax(0, 1fr) 110px; }
    .ttable-noart.ttable-num { --cols: 32px 36px minmax(0, 2fr) minmax(0, 1fr) 110px; }
    .c-label, .c-date { display: none; }
    .player-volume { display: none; }
    .nav-genre { display: none !important; }
}
@media (max-width: 900px) {
    .top-grid { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .player-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
    .player-wave { display: none; }
    .release-head { grid-template-columns: 220px 1fr; }
    .release-art img { width: 220px; height: 220px; }
    .meta-grid { grid-template-columns: repeat(2, minmax(0, max-content)); }
}
@media (max-width: 700px) {
    .wrap { padding: 0 14px; }
    .header-inner { gap: 12px; height: 56px; }
    .brand img { width: 84px; }
    .header-search { display: none; }
    .mobile-search { display: flex; }
    .user-name, .header-login, .cart-total { display: none; }
    .nav-inner { overflow-x: auto; scrollbar-width: none; }
    .hero-carousel { height: 560px; }
    .hc-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-bottom: 40px; }
    .hc-cover img { width: 220px; height: 220px; }
    .hc-arrow { display: none; }
    .release-row { grid-auto-columns: 44%; }
    .release-grid { grid-template-columns: repeat(2, 1fr); }
    .ttable-head { display: none; }
    .ttable { --cols: 44px minmax(0, 1fr) auto; }
    .ttable-num { --cols: 24px 44px minmax(0, 1fr) auto; }
    .ttable-noart.ttable-num { --cols: 24px 32px minmax(0, 1fr) auto; }
    .c-genre { display: none; }
    .trow { padding: 6px 4px; gap: 10px; }
    .art-play { width: 44px; height: 44px; }
    .release-head { grid-template-columns: 1fr; }
    .release-art img { width: 100%; height: auto; max-width: 340px; }
    .card-actions { opacity: 1; transform: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .player-extra { display: none; }
    .player-controls .pbtn:not(.pbtn-main) { display: none; }
    .player-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
    .table { display: block; overflow-x: auto; }
    .admin-filter { flex-wrap: wrap; }
    .filter-form input { width: 100%; }
    .genre-panel { position: fixed; left: 14px; right: 14px; top: 110px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* monocromático: hovers de texto viram sublinhado (o destaque agora é branco) */
.t-name:hover, .release-title:hover, .hc-title a:hover, .t-artists a:hover, .release-artist-links a:hover,
.track-artist a:hover, .c-genre a:hover, .side-genres a:hover, .footer-links a:hover, a.player-title:hover {
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.trow.is-current .t-name, .top-item.is-current .t-name { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.user-menu-panel a:hover, .user-menu-panel button:hover, .genre-panel a:hover { color: var(--text); }

/* descrição do release acima dos botões */
.release-head { align-items: center; }
.release-desc { margin-top: 20px; max-width: 760px; }
.release-desc .prose { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.release-desc .clamp-body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.release-desc.is-open .clamp-body { display: block; -webkit-line-clamp: unset; overflow: visible; }
.clamp-toggle { background: none; border: 0; padding: 6px 0 0; color: var(--text); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.release-desc + .hc-actions { margin-top: 18px; }

/* labels clicáveis */
.c-label a, .label-link, .hc-tag a, .section-head h2 a { color: inherit; }
.c-label a:hover, a.t-label:hover, a.release-label:hover, .label-link:hover, .hc-tag a:hover, .section-head h2 a:hover, a.player-label:hover {
    color: var(--text); text-decoration: underline; text-underline-offset: 3px;
}
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.label-card { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; border: 1px solid var(--line); }
.label-card strong { font-size: 20px; }
.label-card span { color: var(--muted); font-size: 13px; }
.label-card:hover { border-color: var(--muted); }

/* player: capa e título linkam o release; label linka a página da label */
.player-cover-link img { width: 56px; height: 56px; object-fit: cover; }
a.player-title:hover { text-decoration: underline; text-underline-offset: 3px; }
