/* SURCOGS — estilo SoundCloud: oscuro neutro, tipografía limpia, acento naranja */
:root {
  color-scheme: dark;
  --bg: #121212; --header: #161616; --panel: #1d1d1d; --panel-2: #242424;
  --line: #2e2e2e; --input: #2a2a2a;
  --txt: #ffffff; --dim: #a0a0a0;
  --acc: #ff5500; --acc-hover: #ff7733;
  --ok: #4cd964; --warn: #ffb02e; --err: #ff4d4d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--txt);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--txt); text-decoration: none; }
a:hover { color: var(--acc); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 17px; font-weight: 700; }

/* ============ HEADER ============ */
.hdr {
  display: flex; align-items: center; gap: 4px; height: 48px;
  background: var(--header); border-bottom: 1px solid #000;
  position: sticky; top: 0; z-index: 50; padding: 0 12px;
}
.logo {
  display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px;
  letter-spacing: .5px; padding: 0 8px; white-space: nowrap; color: var(--txt);
}
.logo:hover { color: var(--txt); }
.logo .vinilo {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, var(--acc) 18%, #0d0d0d 19%, #0d0d0d 45%, #333 46%, #181818 100%);
}
.logo .lg-acc { color: var(--acc); }
.hdr nav { display: flex; height: 100%; }
.hdr nav a {
  display: flex; align-items: center; padding: 0 13px; color: var(--dim);
  font-size: 14px; border-bottom: 2px solid transparent; font-weight: 400;
}
.hdr nav a.on { color: #fff; border-color: #fff; font-weight: 600; }
.hdr nav a:hover { color: #fff; }
.search { flex: 1; margin: 0 12px; position: relative; }
.search input {
  width: 100%; background: var(--input); border: 0; border-radius: 5px;
  color: var(--txt); padding: 8px 34px 8px 12px; font-size: 13.5px;
}
.search input::placeholder { color: #8a8a8a; }
.search svg { position: absolute; right: 10px; top: 8px; opacity: .6; pointer-events: none; }
.search-dd {
  position: absolute; top: 38px; left: 0; right: 0; display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.6); z-index: 70; overflow: hidden;
}
.search-dd a {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px;
  font-size: 13px; color: var(--txt);
}
.search-dd a:hover { background: var(--panel-2); color: var(--txt); }
.search-dd img { width: 38px; height: 38px; border-radius: 3px; object-fit: cover; flex: none; }
.search-dd .sd-t { font-weight: 600; line-height: 1.25; }
.search-dd .sd-a { color: var(--dim); font-size: 12px; }
.search-dd .sd-empty { padding: 12px; color: var(--dim); font-size: 12.5px; }
.btn-cta {
  background: transparent; color: var(--acc); border: 1px solid var(--acc);
  border-radius: 5px; font-weight: 600; font-size: 13.5px; padding: 7px 14px;
  cursor: pointer; white-space: nowrap;
}
.btn-cta:hover { background: var(--acc); color: #fff; }
.hdr-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.hdr-links a { padding: 0 9px; color: var(--dim); font-size: 14px; white-space: nowrap; }
.hdr-links a:hover { color: #fff; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 6px;
  background: linear-gradient(135deg, #ff5500, #7a2bd6); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #fff !important; letter-spacing: .5px;
}
.p-old { color: var(--dim); text-decoration: line-through; font-weight: 400; font-size: 12.5px; margin-right: 6px; }

/* acciones del dueño sobre sus discos */
.cover-own { position: relative; }
.own-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px;
  opacity: 0; transition: opacity .15s; }
.card:hover .own-actions { opacity: 1; }
.own-btn { width: 30px; height: 30px; border-radius: 5px; background: rgba(0,0,0,.7);
  border: 0; color: #fff; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.own-btn:hover { background: var(--acc); }
.own-btn.del:hover { background: var(--err); }

/* carrito por vendedor */
.cart-add { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.7);
  border: 0; color: #fff; border-radius: 5px; padding: 6px 10px; font-size: 12px;
  font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; width: auto; }
.card:hover .cart-add { opacity: 1; }
.cart-add:hover { background: var(--acc); }
.cart-add.in { background: var(--acc); opacity: 1; }
.cart-bar { position: fixed; right: 16px; bottom: 16px; background: #fff; color: #111;
  border-radius: 8px; padding: 12px 14px; z-index: 70;
  box-shadow: 0 6px 24px rgba(0,0,0,.5); display: none; align-items: center;
  gap: 10px; font-size: 13.5px; flex-wrap: wrap; max-width: 92vw; }
.cart-bar b { font-size: 14.5px; }
.cart-bar input { width: 190px; background: #f0f0f0; color: #111; border: 1px solid #ddd; }
.cart-bar .btn { padding: 8px 14px; font-size: 13px; }
.avatar-wrap { position: relative; }
.avatar { border: 0; cursor: pointer; }
.avatar-menu {
  position: absolute; top: 36px; right: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6); display: none; z-index: 80;
}
.avatar-menu a { display: block; padding: 10px 14px; font-size: 13.5px; color: var(--txt); }
.avatar-menu a:hover { background: var(--panel-2); color: var(--txt); }
.avatar-menu a.salir { color: var(--err); border-top: 1px solid var(--line); }
.avatar-menu .only-mobile { display: none; }

@media (max-width: 820px) {
  .hdr nav a:nth-child(3) { display: none; }
  .avatar-menu .only-mobile { display: block; }
}

/* ============ LAYOUT ============ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 22px 18px 90px; }
.hero { padding: 24px 0 6px; }
.hero h1 { font-size: 26px; }
.sub { color: var(--dim); margin: 6px 0 18px; font-size: 14px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 12px; }

/* ============ BOTONES ============ */
.btn {
  display: inline-block; background: var(--acc); color: #fff; border: 0;
  border-radius: 5px; font-weight: 600; font-size: 14px; padding: 9px 18px;
  cursor: pointer; text-align: center; font-family: inherit;
}
.btn:hover:not(:disabled) { background: var(--acc-hover); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #444; }
.btn.ghost:hover:not(:disabled) { border-color: #999; background: transparent; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }

/* ============ FILTROS ============ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 20px; }
.filters input, .filters select {
  background: var(--input); border: 1px solid transparent; color: var(--txt);
  padding: 9px 12px; border-radius: 5px; font-size: 13.5px; font-family: inherit;
}
.filters input { flex: 1; min-width: 200px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--acc); }

/* ============ CARDS (estilo Bandcamp: tapa grande, título, artista) ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 26px 22px; }
.card { display: block; color: var(--txt); }
.card:hover { color: var(--txt); }
.card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: 3px; transition: opacity .15s;
}
.card:hover img { opacity: .85; }
.card .info { padding: 10px 0 0; }
.card .t {
  font-size: 15px; font-weight: 700; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card .a {
  color: var(--dim); font-size: 13.5px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .d {
  color: var(--dim); font-size: 12.5px; margin: 2px 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pr-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.card .p { color: var(--acc); font-weight: 700; font-size: 14px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge {
  font-size: 10.5px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 7px;
}
.badge.ok { color: var(--ok); border-color: rgba(76,217,100,.4); }
.badge.res { color: var(--warn); border-color: rgba(255,176,46,.4); }
.badge.sold { color: var(--err); border-color: rgba(255,77,77,.4); }

/* ============ DETALLE ============ */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px; }
@media (max-width: 720px) { .detail { grid-template-columns: 1fr; } }
.detail img.main { width: 100%; border-radius: 6px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 4px; cursor: pointer; }
.thumbs img:hover { outline: 2px solid var(--acc); }
.price-big { color: var(--acc); font-size: 30px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -.5px; }
.meta { color: var(--dim); font-size: 13px; margin-bottom: 4px; }
.meta a { color: var(--txt); }
.meta a:hover { color: var(--acc); }
.yt { margin-top: 18px; aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 6px; }

/* ============ FORMS / PANELES ============ */
form.panel, .panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px; max-width: 640px;
}
label { display: block; font-size: 12px; color: var(--dim); margin: 14px 0 5px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: var(--input); border: 1px solid transparent;
  border-radius: 5px; color: var(--txt); padding: 9px 11px; font-size: 13.5px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
textarea { min-height: 72px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 5px; line-height: 1.5; }

/* ============ CUENTA / LISTAS ============ */
.mis-discos { margin-top: 30px; }
.mis-discos h2 { margin-bottom: 12px; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border-radius: 6px; padding: 12px; margin-bottom: 8px;
}
.list-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.list-item .grow { flex: 1; }
.list-item select { width: auto; }
.notice {
  background: rgba(255,85,0,.08); border: 1px solid rgba(255,85,0,.4);
  border-radius: 6px; padding: 13px 15px; font-size: 13.5px; margin-bottom: 18px;
}

/* ============ MODAL ============ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 19px; }
.divider {
  display: flex; align-items: center; gap: 10px; color: var(--dim);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ REPUTACIÓN ============ */
.stars { color: var(--acc); letter-spacing: 1px; }
.star-btn {
  background: transparent; border: 0; font-size: 32px; color: #3a3a3a;
  cursor: pointer; padding: 0 4px; transition: color .1s, transform .1s; width: auto;
}
.star-btn.on { color: var(--acc); }
.star-btn:hover { transform: scale(1.12); }

/* ============ VARIOS ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #111; font-weight: 600; font-size: 13.5px;
  padding: 11px 20px; border-radius: 6px; z-index: 99; box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.toast.err { background: var(--err); color: #fff; }
.footer {
  color: var(--dim); font-size: 12px; text-align: center; margin-top: 60px;
  line-height: 2; border-top: 1px solid var(--line); padding-top: 22px;
}
.footer a { color: var(--dim); }
.footer a:hover { color: var(--acc); }

/* ===== Header Hard Wax: banner centrado + barra de pestañas ===== */
.hwh-banner { padding: 22px 0 14px; text-align: center; background: var(--bg); }
.hwh-banner a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.vinilo-hw { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #ff5500 16%, #0d0d0d 17%, #0d0d0d 44%, #3a3a3a 45%, #181818 100%); }
.hwh-word { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 26px;
  letter-spacing: 9px; color: #fff; }
.hwh-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-top: 1px solid #333; border-bottom: 1px solid #333;
  position: sticky; top: 0; background: var(--bg); z-index: 40; }
.hwh-tabs { display: flex; gap: 4px; flex: none; }
.hwh-tabs a { color: #bbb; font-weight: 700; font-size: 14px; padding: 6px 10px;
  border-radius: 4px; white-space: nowrap; }
.hwh-tabs a:hover { color: #fff; }
.hwh-tabs a.on { color: #fff; background: #2e2e2e; }
.hwh-bar .search input { background: #3a3a3a; border: 0; border-radius: 4px; }
.hwh-bar .search input:focus { background: #454545; }
@media (max-width: 680px) {
  .hwh-banner { padding: 14px 0 10px; }
  .hwh-word { font-size: 19px; letter-spacing: 6px; }
  .vinilo-hw { width: 26px; height: 26px; }
  .hwh-bar { flex-wrap: wrap; gap: 5px; padding: 8px 10px; }
  .hwh-tabs { gap: 0; }
  .hwh-tabs a { font-size: 12.5px; padding: 5px 8px; }
  .btn-cta { font-size: 11.5px; padding: 6px 9px; margin-left: auto; }
  .btn-ing { font-size: 12px; padding: 5px 5px !important; }
  .btn-reg { font-size: 12px; padding: 6px 10px !important; }
  .hdr-links { margin-left: 0; gap: 0; }
  .hwh-bar .search { order: 5; flex-basis: 100%; margin: 5px 0 0; }
}

/* Avatar con foto */
.avatar { overflow: hidden; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* Deslogueado: Ingresar + Registrarse */
.btn-ing { color: #ddd !important; font-size: 13px; padding: 6px 10px !important; white-space: nowrap; }
.btn-ing:hover { color: #fff !important; text-decoration: underline; }
.btn-reg { background: var(--acc); border-radius: 4px; color: #fff !important; font-weight: 700;
  font-size: 13px; padding: 7px 15px !important; white-space: nowrap; }
.btn-reg:hover { background: #e04b00; }

/* Logo: el vinilo es la O de SURCOGS */
.vinilo-o { width: 26px; height: 26px; border-radius: 50%; flex: none; margin-right: 9px;
  background: radial-gradient(circle, #ff5500 16%, #0d0d0d 17%, #0d0d0d 44%, #3a3a3a 45%, #181818 100%); }
@media (max-width: 680px) { .vinilo-o { width: 19px; height: 19px; margin-right: 6px; } }

/* Mobile estilo Bandcamp: marca en la barra, sin banner ni tabs */
.hwh-brand-m { display: none; align-items: center; font-family: Arial, Helvetica, sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: 4px; color: #fff !important; }
.hwh-brand-m .vinilo-o { width: 15px; height: 15px; margin-right: 3px; }
@media (max-width: 680px) {
  .hwh-banner { display: none; }
  .hwh-tabs { display: none; }
  .hwh-bar .btn-cta { display: none; }
  .hwh-brand-m { display: inline-flex; margin-right: auto; }
}
