/* ===========================================================================
   bestdjsites.com — "After Hours Chart"
   A dark, editorial best-of directory. Deliberately unlike wedj.com.
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   =========================================================================== */

:root {
  --ink:    #100E15;   /* page bg, warm near-black */
  --ink-2:  #17131F;   /* raised surface */
  --ink-3:  #1E1928;   /* cards */
  --ink-4:  #271F33;   /* card hover */
  --line:   rgba(244, 238, 230, 0.10);
  --line-2: rgba(244, 238, 230, 0.18);
  --paper:  #F4EEE4;   /* primary text */
  --muted:  #A89FB6;   /* secondary text */
  --faint:  #8E84A2;   /* tertiary / labels (WCAG AA ≥4.5:1 on --ink) */
  --lime:   #C7F23F;   /* the accent — energy */
  --lime-d: #9ECB1E;
  --gold:   #F2B53C;   /* medal — top 3 only */
  --heat:   #FF4D6D;   /* live pulse only */
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --r:      14px;
  --maxw:   1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: a single warm stage-light glow + faint grain. No gradients on UI. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 70vh;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(199, 242, 63, 0.10), transparent 60%),
    radial-gradient(40% 60% at 80% 0%, rgba(242, 181, 60, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* Keyboard focus — visible branded ring, never removed for mouse users only */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 14, 21, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brandmark { display: inline-flex; align-items: center; gap: 11px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.brandmark .eq { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 18px; }
.brandmark .eq i { width: 3px; background: var(--lime); border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.brandmark .eq i:nth-child(1){ height: 7px; animation-delay: -.2s }
.brandmark .eq i:nth-child(2){ height: 16px; animation-delay: -.5s }
.brandmark .eq i:nth-child(3){ height: 10px; animation-delay: -.1s }
.brandmark .eq i:nth-child(4){ height: 14px; animation-delay: -.35s }
@keyframes eq { 0%,100% { transform: scaleY(.45) } 50% { transform: scaleY(1) } }
.brandmark b { color: var(--paper); }
.brandmark span { color: var(--lime); }
.topstat { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topstat .live { width: 7px; height: 7px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(255,77,109,.55) } 70%{ box-shadow: 0 0 0 7px rgba(255,77,109,0) } 100%{ box-shadow: 0 0 0 0 rgba(255,77,109,0) } }
.topstat b { color: var(--paper); font-weight: 700; }
@media (max-width: 640px){ .topstat .hide-sm { display: none; } }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--faint); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs a:hover { color: var(--lime); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--muted); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 30px; }
.hero .eyebrow { animation: rise .7s both; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 86px);
  margin: 16px 0 0;
}
.hero h1 .hl { color: var(--lime); }
.hero .deck { margin: 22px 0 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); }
.hero .meta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); background: var(--ink-2);
  padding: 9px 15px; border-radius: 100px;
}
.chip b { color: var(--paper); font-weight: 700; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* staggered entrance for hero pieces */
.hero h1 { animation: rise .8s .05s both; }
.hero .deck { animation: rise .8s .16s both; }
.hero .meta-row { animation: rise .8s .26s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Section header ──────────────────────────────────────────────────────── */
.sec { padding: 30px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-top: 1px solid var(--line); padding-top: 26px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 31px); }
.sec-head .note { font-size: 13.5px; color: var(--faint); }

/* ── State grid ──────────────────────────────────────────────────────────── */
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.statecard {
  display: block; position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 16px 15px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.statecard:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--ink-3); }
.statecard .nm { font-weight: 600; font-size: 16px; }
.statecard .ct { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-top: 8px; color: var(--paper); }
.statecard .ct small { font-family: "Hanken Grotesk", sans-serif; font-weight: 500; font-size: 12.5px; color: var(--faint); letter-spacing: 0; margin-left: 5px; }
.statecard .bar { margin-top: 11px; height: 4px; border-radius: 4px; background: rgba(244,238,230,.07); overflow: hidden; }
.statecard .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-d), var(--lime)); border-radius: 4px; }
.statecard .go { position: absolute; top: 14px; right: 14px; color: var(--faint); transition: color .18s, transform .18s; }
.statecard:hover .go { color: var(--lime); transform: translateX(2px); }
.statecard.empty { opacity: .5; }
.statecard.empty .ct { color: var(--faint); }

/* feature (top) states — larger */
.states.feature { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 34px; }
.states.feature .statecard { padding: 20px; }
.states.feature .statecard .ct { font-size: 34px; }
.states.feature .statecard .rank { position: absolute; top: 16px; right: 16px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 13px; color: var(--faint); }

/* ── City list (state page) ──────────────────────────────────────────────── */
.citylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cityrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 17px; transition: transform .16s, border-color .16s, background .16s;
}
.cityrow:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--ink-3); }
.cityrow .cn { font-weight: 600; font-size: 16px; }
.cityrow .cc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.cityrow .cc b { color: var(--lime); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 15px; }

/* ── Ranked vendor list (city page) — the signature ──────────────────────── */
.ranklist { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.vrow {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.vrow:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--ink-3); }
.vrow .rank {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: -.03em; color: var(--faint);
  text-align: center; font-variant-numeric: tabular-nums;
}
.vrow.top .rank { color: var(--gold); }
.vrow.top1 { border-color: rgba(242,181,60,.34); background: linear-gradient(180deg, rgba(242,181,60,.06), transparent 70%), var(--ink-2); }
.vrow .body { min-width: 0; }
.vrow .vn { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -.01em; color: var(--paper); display: inline-flex; align-items: center; gap: 10px; }
.vrow .vn:hover { color: var(--lime); }
.vrow .vn .ext { color: var(--faint); font-size: 14px; transition: transform .16s, color .16s; }
.vrow .vn:hover .ext { color: var(--lime); transform: translate(2px,-2px); }
.vrow .sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.vrow .loc { color: var(--faint); }
.rating { display: inline-flex; align-items: center; gap: 7px; }
.rating .num { color: var(--paper); font-weight: 700; }
.stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; }
.stars .s.f { color: var(--gold); }
.stars .s.h { color: var(--gold); opacity: .55; }
.stars .s.e { color: rgba(244,238,230,.20); }
.rev { color: var(--faint); }
.vrow .cta {
  white-space: nowrap; font-size: 14px; font-weight: 600;
  color: var(--paper); border: 1px solid var(--line-2); border-radius: 100px;
  padding: 9px 17px; transition: background .16s, color .16s, border-color .16s;
}
.vrow .cta:hover { background: var(--lime); color: #14160b; border-color: var(--lime); }
.tierpill { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.tierpill.gold   { color: var(--gold); background: rgba(242,181,60,.12); }
.tierpill.silver { color: #cbd2dd; background: rgba(203,210,221,.10); }
.tierpill.bronze { color: #d8a07a; background: rgba(216,160,122,.12); }

@media (max-width: 560px){
  .vrow { grid-template-columns: 44px 1fr; gap: 12px; padding: 15px 16px; }
  .vrow .rank { font-size: 23px; }
  .vrow .cta { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ── Big city CTA ────────────────────────────────────────────────────────── */
.bigcta {
  margin: 34px 0 8px; padding: 28px 30px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.bigcta .t { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(19px, 2.6vw, 26px); letter-spacing: -.01em; }
.bigcta .d { color: var(--muted); font-size: 14.5px; margin-top: 5px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--lime); color: #14160b; font-weight: 700; font-size: 15.5px;
  padding: 14px 24px; border-radius: 100px;
  transition: transform .16s, box-shadow .16s;
  box-shadow: 0 10px 30px -10px rgba(199,242,63,.5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(199,242,63,.6); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ── Editorial prose block ───────────────────────────────────────────────── */
.prose { max-width: 64ch; color: var(--muted); }
.prose p { margin: 0 0 14px; }
.prose b, .prose strong { color: var(--paper); font-weight: 600; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-note { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; color: var(--muted); text-align: center; }
.empty-note a { color: var(--lime); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.foot .wrap { padding: 40px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot .col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; }
.foot .col a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.foot .col a:hover { color: var(--lime); }
.foot .blurb { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot .blurb .lead { color: var(--paper); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.foot .legal { border-top: 1px solid var(--line); }
.foot .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 24px; font-size: 12.5px; color: var(--faint); }
.foot .legal a { color: var(--muted); }
.foot .legal a:hover { color: var(--lime); }
@media (max-width: 720px){ .foot .wrap { grid-template-columns: 1fr; gap: 24px; } }

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