
:root {
  --bg: #f7f6f3; --surface: #ffffff; --surface-2: #f0eee9; --text: #1d1b18; --muted: #6b665d; --border: #e3dfd6;
  --accent: #6a4cdb; --accent-soft: #efeafd; --accent-text: #ffffff; --hl: #6a4cdb; --ok: #2f7d3a; --warn: #a3620a; --err: #b42318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --surface: #1b1b1f; --surface-2: #24242a; --text: #ecebe8; --muted: #a29e96; --border: #2f2f36;
    --accent: #9d86ff; --accent-soft: #2a2540; --accent-text: #121214; --hl: #b3a2ff; --ok: #79d18a; --warn: #f1b45f; --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --surface: #1b1b1f; --surface-2: #24242a; --text: #ecebe8; --muted: #a29e96; --border: #2f2f36;
  --accent: #9d86ff; --accent-soft: #2a2540; --accent-text: #121214; --hl: #b3a2ff; --ok: #79d18a; --warn: #f1b45f; --err: #ff8a80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
h1 { margin: 0; font-size: 26px; letter-spacing: -0.015em; }
.top p { margin: 2px 0 0; font-size: 14px; }
.tech { color: var(--muted); font-size: 14px; text-decoration: none; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.tech:hover { color: var(--text); }
.top-links { display: flex; gap: 8px; flex-wrap: wrap; }
main { padding-top: 22px; padding-bottom: 48px; }
.intro { max-width: 760px; margin: 0 0 18px; color: var(--muted); }
.intro strong { color: var(--text); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; text-align: left; padding: 0; font: inherit; color: inherit; display: block; width: 100%; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); outline: none; }
.frame { background: #2a2a2e; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.pending { color: #d8d4cc; text-align: center; padding: 18px; font-size: 14px; }
.card-body { padding: 12px 14px 14px; }
.card h2 { font-size: 17px; margin: 0 0 4px; }
.card p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.fmt { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
/* detalle */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.back:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 28px; align-items: start; }
.player { position: sticky; top: 16px; }
.player .frame { border-radius: 14px; }
.player .now { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.player .now strong { color: var(--text); }
.d-head h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.015em; }
.d-head p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 22px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact .v { font-size: 16px; font-weight: 600; margin-top: 2px; }
.fact .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.block h3 { margin: 0 0 4px; font-size: 18px; }
.block > p.lead { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.fields { width: 100%; border-collapse: collapse; font-size: 15px; }
.fields th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 10px 8px 0; border-bottom: 1px solid var(--border); }
.fields td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.fields tr:last-child td { border-bottom: 0; }
.fields td.f { font-weight: 600; width: 22%; }
.fields td.v { white-space: pre-line; width: 38%; }
.fields td.u { color: var(--muted); }
.fields tr.unused td { opacity: .5; }
.scenes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scene { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.scene:hover, .scene:focus-visible { border-color: var(--accent); outline: none; }
.scene.playing { border-color: var(--accent); background: var(--accent-soft); }
.scene .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.scene .nm { font-weight: 700; }
.scene .tm { font-size: 13px; color: var(--muted); }
.scene .txt { margin: 6px 0 0; padding: 0; list-style: none; }
.scene .txt li { margin: 2px 0; }
.scene .why { font-size: 13px; color: var(--muted); margin-top: 6px; }
.scene img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.hl { color: var(--hl); font-weight: 700; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photos figure { margin: 0; font-size: 12px; color: var(--muted); }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 4px; }
.photos a { color: inherit; }
.notice { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 15px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.notice.err { background: color-mix(in srgb, var(--err) 12%, transparent); }
/* marca */
.brand { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; scroll-margin-top: 16px; }
.brand-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.brand-logo { border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; min-width: 120px; min-height: 64px; border: 1px solid var(--border); }
.brand-logo img { max-height: 40px; max-width: 180px; display: block; }
.brand-logo.icon { min-width: 64px; padding: 12px; }
.brand-logo.icon img { max-height: 36px; }
.block .brand-logo { display: inline-flex; }
.brand h2 { margin: 0; font-size: 20px; }
.brand .lead { margin: 4px 0 16px; color: var(--muted); font-size: 15px; max-width: 760px; }
.brand h4 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.brand .note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.brand .music { margin: 0; font-size: 15px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.swatch { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.swatch .dot { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.swatch .nm { font-weight: 600; font-size: 15px; }
.swatch .hex { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin-left: 6px; }
.swatch .use { font-size: 13px; color: var(--muted); }
.gradient { height: 14px; border-radius: 999px; border: 1px solid var(--border); max-width: 420px; }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.font { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.font .sample { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 4px 0; padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.font .meta { font-size: 13px; color: var(--muted); }
.brand-mini { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.brand-mini .dot { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
  .player { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
  .fields td.f { width: auto; }
  .fields thead { display: none; }
  .fields tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .fields td { display: block; border: 0; padding: 2px 0; width: auto !important; }
}
