/* R&R Sportscards: red neon on charcoal, from the stream logo. */
:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --surface: #15151a;
  --surface-2: #1d1d24;
  --line: #2b2b34;
  --text: #f5f5f7;
  --muted: #a6a6b0;
  --faint: #6d6d78;
  --red: #ff2b36;
  --red-hot: #ff4d57;
  --red-deep: #b80f1a;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9de 45%, #9c9ca6 55%, #f0f0f2 100%);
  --glow: 0 0 6px rgba(255, 43, 54, 0.9), 0 0 22px rgba(255, 43, 54, 0.55), 0 0 48px rgba(255, 43, 54, 0.25);
  --glow-soft: 0 0 18px rgba(255, 43, 54, 0.35);
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 50% -200px, rgba(255, 43, 54, 0.16), transparent 70%),
    radial-gradient(800px 400px at 100% 30%, rgba(255, 43, 54, 0.05), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--red-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; margin: 0 0 0.4em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.neon { color: #fff; text-shadow: var(--glow); }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 700 0.78rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 10px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 12, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 43, 54, 0.45)); }
.brand span { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; display: none; }
@media (min-width: 420px) { .brand span { display: inline; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .nav-cta { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---- Live banner ---- */
.live-banner { display: none; background: linear-gradient(90deg, var(--red-deep), var(--red)); color: #fff; text-align: center; font-weight: 700; padding: 9px 16px; }
.live-banner.on { display: block; }
.live-banner a { color: #fff; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 0.95rem/1 var(--body); padding: 13px 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--glow-soft); }
.btn-red:hover { background: var(--red-hot); color: #fff; box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: #fff; border-color: #3a3a44; }
.btn-ghost:hover { border-color: var(--red); color: #fff; box-shadow: var(--glow-soft); }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0.6; border: 0; margin: 0; box-shadow: var(--glow-soft); }
.page-head { padding: 48px 0 8px; }
.page-head p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }

/* ---- Hero ---- */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-logo { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 43, 54, 0.35), 0 0 60px rgba(255, 43, 54, 0.28); }
.hero h1 { margin-bottom: 14px; }
.hero .lede { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin-bottom: 26px; }
.next-show { margin-top: 26px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 560px; }
.next-show .when { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.next-show:empty { display: none; }

/* ---- Tiles and grids ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.grid.wide { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; text-align: left; font: inherit; padding: 0; cursor: pointer; width: 100%; }
.tile:hover { border-color: rgba(255, 43, 54, 0.7); box-shadow: var(--glow-soft); transform: translateY(-2px); color: inherit; }
.tile .photo { aspect-ratio: 5 / 7; background: #0d0d10; display: grid; place-items: center; overflow: hidden; position: relative; }
.tile .photo img { width: 100%; height: 100%; object-fit: contain; }
.tile .photo.square { aspect-ratio: 1; }
.tile .photo .ph { padding: 16px; text-align: center; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; color: var(--faint); line-height: 1.1; }
.tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .title { font-weight: 700; font-size: 0.93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .sub { color: var(--muted); font-size: 0.82rem; }
.tile .price { margin-top: auto; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.02em; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 800 0.68rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; box-shadow: var(--glow-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font: 700 0.68rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag.hot { color: #fff; background: rgba(255, 43, 54, 0.16); border-color: rgba(255, 43, 54, 0.55); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin-bottom: 10px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); }
.empty strong { color: var(--text); display: block; font-size: 1.05rem; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Platform cards ---- */
.platforms { display: grid; gap: 18px; }
@media (min-width: 800px) { .platforms { grid-template-columns: 1fr 1fr; } }
.platform { position: relative; overflow: hidden; }
.platform::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 43, 54, 0.22), transparent 70%); pointer-events: none; }
.platform h3 { font-size: 1.8rem; }
.platform ul { padding-left: 18px; color: var(--muted); margin: 0 0 18px; }

/* ---- Schedule & events ---- */
.list { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.datebox { flex-shrink: 0; width: 64px; text-align: center; border-radius: 10px; background: var(--bg-2); border: 1px solid rgba(255, 43, 54, 0.45); padding: 8px 4px; box-shadow: var(--glow-soft); }
.datebox .m { font: 800 0.7rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-hot); }
.datebox .d { font-family: var(--display); font-size: 1.9rem; line-height: 1; margin-top: 4px; }
.row .info { flex: 1; min-width: 0; }
.row .info strong { display: block; font-size: 1.05rem; }
.row .info .muted { font-size: 0.9rem; }
.row .actions { flex-shrink: 0; }
@media (max-width: 560px) { .row { flex-wrap: wrap; } .row .actions { width: 100%; } .row .actions .btn { width: 100%; } }
.badge-live { display: inline-flex; align-items: center; background: var(--red); color: #fff; font: 800 0.72rem/1 var(--body); letter-spacing: 0.1em; padding: 6px 9px; border-radius: 6px; text-transform: uppercase; }

/* ---- Show themes ---- */
.themes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.themes figure { margin: 0; scroll-snap-align: start; }
.themes img { aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.themes figcaption { margin-top: 8px; font-weight: 700; font-size: 0.9rem; }

/* ---- Forms & filters ---- */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 43, 54, 0.22); }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.5); }
.form-msg.err { display: block; background: rgba(255, 43, 54, 0.12); border: 1px solid rgba(255, 43, 54, 0.5); }

.searchbar { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 760px) { .searchbar { grid-template-columns: 1fr 180px 160px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font: 600 0.85rem/1 var(--body); padding: 9px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--red); background: rgba(255, 43, 54, 0.14); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--muted); font: 700 1rem/1 var(--body); padding: 14px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--red); }
.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* ---- Card dialog ---- */
dialog.card-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 0 80px rgba(255, 43, 54, 0.25); }
dialog.card-dialog::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.dlg { display: grid; gap: 0; }
@media (min-width: 760px) { .dlg { grid-template-columns: 1fr 1fr; } }
.dlg-photos { background: #0b0b0e; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dlg-photos img { max-height: 60vh; width: auto; border-radius: 8px; }
.flip { display: flex; gap: 8px; }
.dlg-info { padding: 22px; overflow-y: auto; }
.dlg-info h3 { font-family: var(--body); text-transform: none; font-weight: 800; font-size: 1.3rem; letter-spacing: 0; line-height: 1.3; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 20px; font-size: 0.93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.dlg-close { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line); color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; z-index: 2; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font: 800 0.78rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--red-hot); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.social:hover { border-color: var(--red); box-shadow: var(--glow-soft); color: #fff; }
.social svg { width: 16px; height: 16px; }
.legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small helpers (no inline styles: the security policy blocks them). */
.price-note { font: 600 0.75rem var(--body); color: var(--faint); }
.row.past { opacity: 0.7; }
.note { margin-top: 4px; }
.tags.mb { margin-bottom: 10px; }
.empty.full { width: 100%; }
.fine { margin-top: 16px; font-size: 0.85rem; color: var(--faint); }
.center { text-align: center; }
.mt { margin-top: 24px; }
.stack { display: grid; gap: 18px; }
@media (min-width: 900px) { .two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; } }
