/* I Need Hooks — store + phone app  [Cal, 2026-11-12] */
:root {
  --bg: #0e0c0b; --panel: #171412; --panel2: #201b18; --line: #332c27; --ink: #f7efe7; --dim: #ab9c8f; --dimmer: #6d6159;
  --hot: #ff5a1f; --gold: #ffb020; --ok: #3ddc84; --bad: #ff4d6d;
  --sans: 'Archivo', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 18px;
  padding-top: max(12px, env(safe-area-inset-top)); background: rgba(14,12,11,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.bar nav a { color: var(--dim); text-decoration: none; padding: 6px 11px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.bar nav a.on, .bar nav a:hover { color: var(--ink); background: var(--panel2); }
.tabs { display: none; }

main { max-width: 1100px; margin: 0 auto; padding: 22px 18px 140px; }
h1 { font-size: 30px; line-height: 1.1; margin: 0 0 6px; letter-spacing: -.03em; font-weight: 900; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 26px 0 10px; }
.lede { color: var(--dim); margin: 0 0 18px; font-size: 16px; }
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); }
.hero h1 em { font-style: normal; color: var(--gold); }

.search { display: flex; gap: 8px; margin: 18px 0 12px; }
.search input { flex: 1; font-size: 17px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); outline: none; }
.search input:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.chip { text-decoration: none; display: inline-block; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); color: var(--dim); }
.tag.free { color: var(--ok); border-color: rgba(61,220,132,.45); } .tag.own { color: var(--gold); border-color: rgba(255,176,32,.5); }
.tag.emb { color: var(--bad); border-color: rgba(255,77,109,.45); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card .art { aspect-ratio: 1; background: var(--panel2) center/cover; position: relative; cursor: pointer; }
.card .art.none { background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,90,31,.12) 9px 13px); }
.play { position: absolute; right: 10px; bottom: 10px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--hot); color: #140b06;
  font-size: 19px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.45); display: grid; place-items: center; }
.play.on { background: var(--gold); }
.card .meta { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; cursor: pointer; }
.card .t { font-weight: 800; font-size: 16px; line-height: 1.25; }
.card .a { color: var(--dim); font-size: 14px; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 6px; }
.num { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 700; }
.price { font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--hot); background: var(--hot); color: #140b06;
  font-weight: 800; border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; font-size: 15px; }
.btn:hover { filter: brightness(1.08); } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

.detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 26px; align-items: start; }
.detail .art { aspect-ratio: 1; border-radius: 16px; background: var(--panel2) center/cover; border: 1px solid var(--line); position: relative; }
.detail .art .play { width: 64px; height: 64px; font-size: 24px; right: 14px; bottom: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 14px; margin: 10px 0 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; }
.box.hot { border-color: rgba(255,90,31,.5); background: linear-gradient(160deg, rgba(255,90,31,.10), var(--panel)); }
.box p { margin: 6px 0; }
.promo dt { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.promo dd { margin: 2px 0 0; }

form.f { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
label.l { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--dim); font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=number], textarea, select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 16px; outline: none; width: 100%; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--hot); }
textarea { font: inherit; resize: vertical; }
input[type=date] { color-scheme: dark; }
.ad-pick { cursor: pointer; display: block; }
.ad-pick:has(input:checked) { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot) inset; }
.ad-pick input { accent-color: var(--hot); margin-right: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { accent-color: var(--hot); width: 18px; height: 18px; }
.fmtlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fmt { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fmt.sub { border-color: var(--gold); }
.fmt b { font-size: 16px; }
.keybox { font-family: var(--mono); background: var(--bg); border: 1px dashed var(--hot); padding: 12px; border-radius: 10px; word-break: break-all; color: var(--gold); margin: 8px 0; font-size: 13px; }
.muted { color: var(--dim); } .small { font-size: 13px; }
.empty { color: var(--dim); padding: 40px 0; text-align: center; }
.more { display: flex; justify-content: center; margin-top: 18px; }

.player { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 20; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; background: rgba(32,27,24,.96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
.player img { width: 44px; height: 44px; border-radius: 8px; background: var(--panel2); object-fit: cover; }
.pl-t { flex: 1; min-width: 0; } .pl-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.pl-t span { color: var(--dim); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; } .pl-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; }
.icon { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--hot); color: #140b06; font-weight: 900; cursor: pointer; }

#toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px;
  border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; z-index: 30; max-width: 90vw; }
#toast.on { opacity: 1; } #toast.bad { border-color: var(--bad); }

@media (max-width: 720px) {
  .bar nav { display: none; }
  main { padding: 14px 14px calc(150px + var(--safe-b)); }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(14,12,11,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--dimmer); text-decoration: none; font-size: 11px; font-weight: 700; padding: 4px 0; }
  .tabs a span { font-size: 19px; line-height: 1; }
  .tabs a.on { color: var(--gold); }
  .player { bottom: calc(68px + var(--safe-b)); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .t { font-size: 14px; } .card .a { font-size: 12px; } .card .meta { padding: 9px 10px 11px; }
  .play { width: 42px; height: 42px; font-size: 15px; right: 8px; bottom: 8px; }
  .detail { grid-template-columns: 1fr; gap: 16px; }
  .detail .art { max-width: 420px; }
}
.mono { font-family: var(--mono); font-size: 12px; }

/* front page, news, tools, research  [Cal, 2026-11-13] */
.lb { display: block; margin: 0 0 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); }
.lb img { display: block; width: 100%; max-height: 120px; object-fit: cover; }
.lb .txt, .sp .txt { padding: 12px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sp-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); }
.front { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.front aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.sp { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); text-decoration: none; color: var(--ink); }
.sp img { display: block; width: 100%; }
.hero2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: end; padding: 8px 0 4px; }
.hero2 h1 { font-size: clamp(30px, 5vw, 50px); } .hero2 h1 em { font-style: normal; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stats b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.02em; } .stats span { font-size: 12px; color: var(--dim); }
.hl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.hl .h { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 110px 1fr; }
.hl .h .art { background: var(--panel2) center/cover; position: relative; min-height: 110px; cursor: pointer; }
.hl .h .art .play { width: 40px; height: 40px; font-size: 14px; right: 8px; bottom: 8px; }
.hl .h .m { padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.hl .h .k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--hot); font-weight: 800; }
.mod { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 12px; margin: 14px 0; }
.mod > h2 { margin: 12px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.mod > h2 a { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.crow { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow .rk { width: 26px; text-align: center; font-weight: 900; font-size: 17px; }
.crow .mv { width: 30px; font-size: 11px; text-align: center; }
.crow .th { width: 38px; height: 38px; border-radius: 6px; background: var(--panel2) center/cover; flex: none; }
.crow .tx { flex: 1; min-width: 0; } .crow .tx b, .crow .tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .tx span { color: var(--dim); font-size: 13px; }
.up { color: var(--ok); } .dn { color: var(--bad); }
.news-i { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-i:last-child { border-bottom: 0; } .news-i b { font-size: 15px; line-height: 1.3; } .news-i .s { color: var(--dim); font-size: 12px; grid-column: 1 / -1; }
.news-i img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; grid-row: 1 / span 2; grid-column: 2; }
.tool { background: linear-gradient(160deg, rgba(255,176,32,.08), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); display: block; }
.tool b { display: block; font-size: 16px; margin-bottom: 3px; } .tool span { color: var(--dim); font-size: 13px; }
.strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 26px; }
.strip a { display: flex; align-items: center; height: 46px; padding: 0 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--dim); font-weight: 700; }
.strip img { max-height: 34px; max-width: 140px; filter: grayscale(.4); }
.res { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.res div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.res b { display: block; font-size: 22px; font-weight: 900; } .res span { color: var(--dim); font-size: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; } table.t th { text-align: left; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.rate button { padding: 14px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 800; cursor: pointer; font-size: 14px; }
.rate button span { display: block; font-size: 26px; }
.rate button.on { border-color: var(--gold); background: rgba(255,176,32,.15); }
.seg { display: flex; gap: 8px; margin: 10px 0; } .seg button { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 700; cursor: pointer; }
.seg button.on { border-color: var(--hot); background: rgba(255,90,31,.15); }
.prog { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 18px; } .prog i { display: block; height: 100%; background: var(--hot); }
body.testing .tabs, body.testing .bar nav { display: none !important; }
@media (max-width: 900px) { .front { grid-template-columns: 1fr; } .front aside { position: static; } .hero2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .hl { grid-auto-columns: 86%; } }
.scroll { overflow-x: auto; }
