/* =========================================================================
   RobloxMap — design system
   Light theme · no gradients · light glassmorphism · social-first
   ========================================================================= */

:root {
  --bg:            #f3f4f6;
  --bg-soft:       #eef0f3;
  --surface:       #ffffff;
  --surface-2:     #f8f9fb;
  --border:        #e4e7ec;
  --border-strong: #d6dae1;

  --text:          #101418;
  --text-2:        #3f4854;
  --text-3:        #6b7480;
  --text-faint:    #98a1ad;

  --accent:        #e8392b;   /* used sparingly */
  --accent-ink:    #b81f14;
  --accent-soft:   #fdecea;
  --star:          #f5a623;

  --ok:            #18996b;
  --ok-soft:       #e6f6ee;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 24, .05);
  --shadow:    0 2px 8px rgba(16, 20, 24, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 20, 24, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 20, 24, .25);

  --glass-bg:     rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .55);

  --maxw: 1240px;
  --ff-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text);
  transition: background .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); }

.btn--ghost { border-color: var(--border-strong); color: var(--text-2); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-3); color: var(--text); }

.btn--subtle { color: var(--text-2); }
.btn--subtle:hover { background: var(--bg-soft); color: var(--text); }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* ----------------------------------------------------------- header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--text); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand .logo svg { width: 20px; height: 20px; }
.brand b { color: var(--accent); }

.nav-search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px;
  color: var(--text-3); transition: border-color .16s ease, box-shadow .16s ease;
}
.nav-search:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(16,20,24,.04); }
.nav-search svg { width: 18px; height: 18px; flex: none; }
.nav-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 14.5px; color: var(--text); font-family: inherit;
}
.nav-search kbd {
  font-family: var(--ff-body); font-size: 11px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; background: var(--surface-2);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  padding: 8px 12px; border-radius: var(--radius-sm); transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle { display: none; }

/* ----------------------------------------------------------- hero */
.hero { padding: 56px 0 28px; }
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 20px 0 14px;
}
.hero p { font-size: 18px; color: var(--text-2); max-width: 580px; margin: 0; }

.hero-search {
  margin-top: 26px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-md); max-width: 620px;
}
.hero-search svg.search-ic { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.hero-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; font-family: inherit; color: var(--text); }

.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-tags .label { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.hero-tags a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px; transition: border-color .15s, color .15s;
}
.hero-tags a:hover { border-color: var(--text-3); color: var(--text); }

.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--ff-display); font-weight: 800; font-size: 26px; }
.hero-stats .stat .l { font-size: 13.5px; color: var(--text-3); }

/* ----------------------------------------------------------- category rail */
.cat-rail-wrap { padding: 8px 0 4px; }
.cat-rail {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 14px;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  flex: none;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 16px 10px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s, transform .12s;
}
.cat-chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.cat-chip.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.cat-chip .ic {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text-2);
}
.cat-chip.is-active .ic { background: rgba(255,255,255,.16); color: #fff; }
.cat-chip .ic svg { width: 16px; height: 16px; }
.cat-chip .ct { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.cat-chip.is-active .ct { color: rgba(255,255,255,.7); }

/* ----------------------------------------------------------- layout grid */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px;
  padding: 18px 0 64px;
}

/* ----------------------------------------------------------- section heads */
.section { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.section-head .title-wrap { display: flex; flex-direction: column; gap: 3px; }
.section-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.section-head h2 .badge-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.section-head h2 .badge-ic svg { width: 16px; height: 16px; }
.section-head .sub { font-size: 14px; color: var(--text-3); }
.section-head .see-all { font-size: 13.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.section-head .see-all:hover { color: var(--accent); }
.section-head .see-all svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------- map cards */
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.map-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.map-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
}
.thumb .art { position: absolute; inset: 0; }
.thumb .studs { position: absolute; inset: 0; opacity: .5; }
.thumb-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); color: var(--text);
  padding: 4px 10px; border-radius: 999px;
}
.flag {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--text);
}
.flag--featured { background: var(--accent); }
.flag--trending { background: #b9721a; }
.flag--new { background: var(--ok); }

.play-fab {
  position: absolute; right: 12px; bottom: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, background .15s;
}
.play-fab svg { width: 18px; height: 18px; margin-left: 2px; }
.map-card:hover .play-fab { opacity: 1; transform: translateY(0); }
.play-fab:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.thumb .plays {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text);
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); padding: 4px 9px; border-radius: 999px;
}
.thumb .plays svg { width: 13px; height: 13px; }

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { font-family: var(--ff-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; }
.card-title:hover { color: var(--accent); }
.card-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.creator-row { display: flex; align-items: center; gap: 8px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.creator-row .name { font-size: 13px; color: var(--text-2); font-weight: 500; }
.creator-row .verified { width: 14px; height: 14px; color: var(--accent); }

.card-foot {
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.rating-row { display: flex; align-items: center; gap: 7px; }
.rating-row .score { font-size: 13.5px; font-weight: 700; }
.rating-row .votes { font-size: 12px; color: var(--text-faint); }
.likes { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.likes svg { width: 15px; height: 15px; }

.stars { display: inline-flex; gap: 1px; color: var(--star); align-items: center; }
.star--empty { color: var(--border-strong); }
.star--full, .star--half { color: var(--star); }

/* ----------------------------------------------------------- spotlight */
.spotlight {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.spotlight .art-pane { position: relative; min-height: 320px; }
.spotlight .art-pane .art { position: absolute; inset: 0; }
.spotlight .art-pane .studs { position: absolute; inset: 0; opacity: .55; }
.spotlight .art-pane .flag { position: absolute; top: 16px; left: 16px; }
.spotlight .info-pane { padding: 34px 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.spotlight .cat-tag { position: static; align-self: flex-start; background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.spotlight h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.spotlight .lede { font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
.spotlight .meta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.spotlight .meta-row .m { display: flex; flex-direction: column; }
.spotlight .meta-row .m .v { font-family: var(--ff-display); font-weight: 800; font-size: 19px; }
.spotlight .meta-row .m .k { font-size: 12.5px; color: var(--text-3); }
.spotlight .cta-row { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ----------------------------------------------------------- sidebar */
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; align-self: start; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.panel-head { padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.panel-head h3 svg { width: 17px; height: 17px; color: var(--text-3); }
.panel-head .link { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.panel-head .link:hover { color: var(--accent); }

.creator-list { display: flex; flex-direction: column; }
.creator-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; transition: background .14s; }
.creator-item:hover { background: var(--surface-2); }
.creator-item .rank { font-family: var(--ff-display); font-weight: 800; font-size: 14px; color: var(--text-faint); width: 16px; text-align: center; flex: none; }
.creator-item .avatar { width: 38px; height: 38px; font-size: 13px; }
.creator-item .meta { min-width: 0; }
.creator-item .meta .nm { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.creator-item .meta .nm svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.creator-item .meta .sub { font-size: 12.5px; color: var(--text-3); }
.creator-item .follow { margin-left: auto; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 11px; padding: 11px 18px; border-top: 1px solid var(--border); }
.activity-item:first-child { border-top: 0; }
.activity-item .avatar { width: 30px; height: 30px; font-size: 11px; }
.activity-item .txt { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.activity-item .txt b { color: var(--text); font-weight: 600; }
.activity-item .txt .tgt { color: var(--text); font-weight: 600; }
.activity-item .txt .tm { color: var(--text-faint); font-size: 12px; }
.activity-item .txt .mt { color: var(--star); font-weight: 600; }

.cta-panel { padding: 22px 20px; text-align: center; }
.cta-panel .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.cta-panel .ic svg { width: 24px; height: 24px; }
.cta-panel h3 { font-size: 16px; margin-bottom: 6px; }
.cta-panel p { font-size: 13.5px; color: var(--text-3); margin: 0 0 14px; }

/* ----------------------------------------------------------- SEO copy */
.seo-band { background: var(--surface); border-top: 1px solid var(--border); padding: 52px 0; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.seo-grid h2 { font-size: 24px; grid-column: 1 / -1; margin-bottom: 4px; }
.seo-grid .col h3 { font-size: 16px; margin-bottom: 8px; }
.seo-grid .col p { font-size: 14px; color: var(--text-2); margin: 0 0 12px; line-height: 1.65; }

/* ----------------------------------------------------------- footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid .about p { font-size: 13.5px; color: var(--text-3); margin: 12px 0 0; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 12px; font-family: var(--ff-body); }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); background: var(--surface); transition: border-color .15s, color .15s; }
.footer-bottom .socials a:hover { border-color: var(--text-3); color: var(--text); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* =========================================================================
   DETAIL / LISTING / SEARCH pages
   ========================================================================= */

.btn--lg { padding: 13px 20px; font-size: 15px; }

/* breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); padding: 22px 0 4px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-faint); }
.breadcrumb .current { color: var(--text-2); font-weight: 500; }

/* ---------------- detail hero ---------------- */
.detail-hero { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; padding: 14px 0 36px; align-items: start; }

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-main .art { position: absolute; inset: 0; }
.gallery-main .studs { position: absolute; inset: 0; opacity: .5; }
.gallery-main .flag { position: absolute; top: 16px; left: 16px; }
.play-overlay { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background .15s, color .15s, transform .15s; }
.play-overlay svg { width: 26px; height: 26px; margin-left: 3px; }
.play-overlay:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.05); }

.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gthumb { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); cursor: pointer; padding: 0; background: none; transition: border-color .15s, transform .12s; }
.gthumb .art { position: absolute; inset: 0; }
.gthumb .studs { position: absolute; inset: 0; opacity: .5; }
.gthumb.is-active { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.gthumb:hover { transform: translateY(-2px); }

/* info card */
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.cat-pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.cat-pill svg { width: 15px; height: 15px; }
.info-card h1 { font-size: 28px; line-height: 1.12; }
.creator-line { display: flex; align-items: center; gap: 9px; }
.creator-line .by { font-size: 14px; color: var(--text-2); }
.creator-line .verified { width: 15px; height: 15px; color: var(--accent); }
.creator-line:hover .by b { color: var(--accent); }

.rating-summary { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rating-summary .big { font-family: var(--ff-display); font-weight: 800; font-size: 40px; line-height: 1; }
.rating-summary .rs-meta { display: flex; flex-direction: column; gap: 4px; }
.rating-summary .rs-votes { font-size: 13px; color: var(--text-3); }

.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.cta-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-list > div { background: var(--surface); padding: 11px 14px; }
.stat-list dt { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.stat-list dd { margin: 0; font-family: var(--ff-display); font-weight: 700; font-size: 16px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }

/* ---------------- detail body ---------------- */
.detail-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; padding-bottom: 24px; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 24px; }
.block h2 { font-size: 21px; margin-bottom: 14px; }
.block p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.feature-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* rating breakdown */
.rating-breakdown { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 4px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.rb-score { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rb-big { font-family: var(--ff-display); font-weight: 800; font-size: 52px; line-height: 1; }
.rb-count { font-size: 13px; color: var(--text-3); }
.rb-bars { display: flex; flex-direction: column; gap: 8px; }
.rb-row { display: flex; align-items: center; gap: 12px; }
.rb-label { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--text-2); width: 34px; font-weight: 600; }
.rb-label .mini-star { width: 12px; height: 12px; color: var(--star); }
.rb-track { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.rb-fill { display: block; height: 100%; background: var(--star); border-radius: 999px; }
.rb-pct { font-size: 12.5px; color: var(--text-3); width: 38px; text-align: right; }

/* write review */
.review-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.rf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-form .avatar { width: 34px; height: 34px; font-size: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: var(--border-strong); cursor: pointer; line-height: 0; }
.star-input label svg { width: 26px; height: 26px; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--star); }
.review-form textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: 14.5px; color: var(--text); resize: vertical; outline: none; background: var(--surface); }
.review-form textarea:focus { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(16,20,24,.04); }
.rf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.rf-hint { font-size: 12.5px; color: var(--text-3); }

/* review list */
.review-list { display: flex; flex-direction: column; }
.review { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.review .avatar { width: 40px; height: 40px; font-size: 13px; flex: none; }
.rv-body { min-width: 0; flex: 1; }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-user { font-weight: 600; font-size: 14px; }
.rv-date { font-size: 12.5px; color: var(--text-faint); }
.rv-title { font-family: var(--ff-display); font-size: 15.5px; margin: 8px 0 5px; }
.rv-text { font-size: 14.5px; color: var(--text-2); line-height: 1.65; margin: 0; }
.rv-actions { display: flex; gap: 16px; margin-top: 12px; }
.rv-actions button { background: none; border: 0; color: var(--text-3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.rv-actions button svg { width: 15px; height: 15px; }
.rv-actions button:hover { color: var(--accent); }
.load-more { text-align: center; margin-top: 18px; }

/* detail sidebar */
.detail-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; align-self: start; }
.creator-card { padding: 18px; }
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.creator-card .avatar { width: 44px; height: 44px; font-size: 15px; }
.cc-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.cc-name .verified { width: 15px; height: 15px; color: var(--accent); }
.cc-sub { font-size: 12.5px; color: var(--text-3); }

.related-list { display: flex; flex-direction: column; padding: 6px; }
.related-item { display: flex; gap: 12px; padding: 8px; border-radius: var(--radius-sm); transition: background .14s; align-items: center; }
.related-item:hover { background: var(--surface-2); }
.ri-thumb { position: relative; width: 72px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; border: 1px solid var(--border); }
.ri-thumb .art { position: absolute; inset: 0; }
.ri-thumb .studs { position: absolute; inset: 0; opacity: .5; }
.ri-meta { min-width: 0; }
.ri-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item:hover .ri-title { color: var(--accent); }
.ri-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.report-panel { padding: 16px 18px; text-align: center; }
.report-panel p { font-size: 13px; color: var(--text-3); margin: 0 0 6px; }
.report-link { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.report-link:hover { color: var(--accent); }

.related-section { padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }

/* ---------------- listing head ---------------- */
.listing-head { display: flex; align-items: center; gap: 18px; padding: 12px 0 24px; }
.lh-icon { width: 60px; height: 60px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); flex: none; box-shadow: var(--shadow-sm); }
.lh-icon svg { width: 28px; height: 28px; }
.lh-kicker { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.listing-head h1 { font-size: clamp(26px, 4vw, 36px); margin: 2px 0 4px; }
.listing-head p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 640px; }
.lh-count { margin-left: auto; font-size: 14px; color: var(--text-3); font-weight: 600; white-space: nowrap; align-self: flex-start; padding-top: 8px; }

/* toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.tb-results { font-size: 14px; color: var(--text-3); }
.tb-results b { color: var(--text); }
.tb-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb-sort > span { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.sort-chip { font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; transition: border-color .15s, color .15s; }
.sort-chip:hover { border-color: var(--border-strong); color: var(--text); }
.sort-chip.is-active { background: var(--text); color: #fff; border-color: var(--text); }

.grid-wide { padding-bottom: 56px; }
@media (min-width: 1100px) { .grid-wide { grid-template-columns: repeat(4, 1fr); } }

/* empty state */
.empty-state { text-align: center; padding: 70px 20px 90px; }
.es-ic { width: 64px; height: 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-3); margin: 0 auto 18px; }
.es-ic svg { width: 30px; height: 30px; }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin: 0 0 20px; }

/* search head */
.search-head { padding: 26px 0 20px; }
.search-head h1 { font-size: 30px; margin-bottom: 16px; }
.search-head .hero-search { margin-top: 0; max-width: 680px; }
.search-meta { font-size: 14px; color: var(--text-3); margin: 6px 0 18px; }
.search-meta b { color: var(--text); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .panel { flex: 1; min-width: 280px; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight .art-pane { min-height: 220px; }

  .detail-hero { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side .panel { flex: 1; min-width: 280px; }
}
@media (max-width: 860px) {
  .nav-search, .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
  .nav-toggle svg { width: 20px; height: 20px; }
  .seo-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rating-breakdown { grid-template-columns: 1fr; gap: 18px; }
  .listing-head { flex-wrap: wrap; }
  .lh-count { margin-left: 0; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .map-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
