@font-face {
  font-family: Bricolage;
  src: url("./fonts/Bricolage.woff2") format("woff2");
  font-display: swap;
}

:root {
  --red: #DD141E;
  --red-d: #9e0e16;
  --bg: #0b0b0b;
  --bg2: #111111;
  --card: #161616;
  --line: #2a2a2a;
  --txt: #f5f5f5;
  --mut: #9a9a9a;
  --tab: 64px;
  --hdr: 118px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #050505; color: var(--txt); }
html { height: 100%; }
body {
  font-family: Bricolage, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.phone {
  position: relative;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--tab) + var(--safe-b));
}
.phone.is-onboarding {
  padding-bottom: 0;
}
.phone.is-onboarding .tmz-bar,
.phone.is-onboarding .tmz-nav,
.phone.is-onboarding .tabbar,
.phone.is-onboarding .app { display: none; }

@media (min-width: 720px) {
  body { background: #050505; }
  .phone {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #1c1c1c, 0 24px 80px rgba(221, 20, 30, 0.12);
    min-height: 100dvh;
  }
}

.tmz-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) 52px 12px 16px;
  background: var(--red);
  color: #fff;
  min-height: calc(64px + var(--safe-t));
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.8px;
  white-space: nowrap;
  color: #fff;
}
.tmz-bar .icon-btn {
  position: absolute;
  right: 12px;
  top: calc(14px + var(--safe-t));
}

.icon-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.icon-btn.light { border-color: rgba(255,255,255,.5); }

.tmz-nav {
  position: sticky;
  top: calc(64px + var(--safe-t));
  z-index: 39;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0b0b0b;
  border-bottom: 1px solid #1f1f1f;
}
.tmz-nav a {
  text-align: center;
  padding: 12px 4px 10px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #9a9a9a;
  border-bottom: 3px solid transparent;
}
.tmz-nav a.on {
  color: #fff;
  border-bottom-color: var(--red);
}

.app { padding: 0 0 24px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 10px;
  scrollbar-width: none;
  position: sticky;
  top: calc(108px + var(--safe-t));
  z-index: 30;
  background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid #333;
  background: #141414;
  color: #ddd;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }

.hero { display: block; position: relative; margin: 0 0 8px; }
.hero img {
  width: 100%;
  height: 46vh;
  min-height: 42vh;
  max-height: 52vh;
  object-fit: cover;
  background: #1a1a1a;
}
@media (min-height: 780px) {
  .hero img {
    height: 50vh;
    min-height: 46vh;
  }
}
@media (min-width: 390px) and (min-height: 740px) {
  .hero img {
    height: 48vh;
  }
}
.hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.92) 100%);
}
.hero .meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
}
.tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.4px;
  font-weight: 800;
}
@media (min-width: 390px) {
  .hero h1 { font-size: 30px; }
}
.hero .dek { margin: 8px 0 0; color: #e6e6e6; font-size: 14px; line-height: 1.35; }
.when { color: var(--mut); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-top: 8px; }

.stack { padding: 0 14px; display: flex; flex-direction: column; gap: 14px; }
.card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid #1f1f1f;
  overflow: hidden;
}
.card img { width: 100%; height: 180px; object-fit: cover; background: #1a1a1a; }
.card .info { padding: 12px 12px 14px; }
.card h2 { margin: 6px 0 6px; font-size: 20px; line-height: 1.18; font-weight: 800; letter-spacing: -.2px; }
.card .dek { margin: 0; color: #bdbdbd; font-size: 13.5px; line-height: 1.4; }

.ad-slot {
  border: 1px dashed #444;
  background: repeating-linear-gradient(-45deg, #101010, #101010 8px, #161616 8px, #161616 16px);
  padding: 10px 12px 14px;
  text-align: center;
}
.ad-slot .ad-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #444;
  padding: 2px 6px;
  margin-bottom: 8px;
}
.ad-box {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 13px;
  font-weight: 700;
}
.ad-note { display: block; margin-top: 4px; font-size: 10px; color: #555; letter-spacing: .4px; }

.story { padding-bottom: 32px; }
.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 0;
}
.back { color: #fff; font-weight: 800; font-size: 14px; }
.story img.lead {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin-top: 10px;
  background: #1a1a1a;
}
.story .pad { padding: 14px 16px 0; }
.story h1 { margin: 8px 0 10px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.story .dek-lg { color: #cfcfcf; font-size: 16px; line-height: 1.4; margin: 0 0 12px; }
.byline { color: var(--mut); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.body {
  padding: 8px 16px 0;
  font-size: 17px;
  line-height: 1.55;
  color: #ececec;
}
.body p { margin: 0 0 14px; }
.body h2, .body h3 { color: #fff; font-size: 20px; line-height: 1.25; margin: 22px 0 10px; }
.body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.actions { display: flex; gap: 8px; padding: 16px; flex-wrap: wrap; }
.btn {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
}
.btn.ghost {
  background: transparent;
  border: 1px solid #444;
  color: #fff;
}
.yt-wrap {
  position: relative;
  padding-top: 56.25%;
  margin: 8px 0 16px;
  background: #000;
}
.yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.page-head { padding: 16px 16px 8px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.4px; }
.page-head p { margin: 0; color: var(--mut); font-size: 14px; }
.page-head a.ext { color: var(--red); font-weight: 800; }

.vgrid { display: flex; flex-direction: column; gap: 14px; padding: 8px 14px 20px; }
.vcard { background: var(--card); }
.vcard img { width: 100%; height: 196px; object-fit: cover; }
.vcard .cap { padding: 10px 12px 14px; }
.vcard h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.25; }
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 6px;
}

.track {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #1c1c1c;
  width: 100%;
  background: transparent;
  color: inherit;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.track img { width: 72px; height: 48px; object-fit: cover; background: #222; flex: 0 0 auto; }
.track b { display: block; font-size: 15px; line-height: 1.25; }
.track span { color: var(--mut); font-size: 12px; }
.track.on { background: #1a0a0b; }

.shop-hero {
  padding: 28px 18px 22px;
  background: radial-gradient(circle at top right, rgba(221,20,30,.35), transparent 55%), #120808;
}
.shop-hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.5px; }
.shop-hero p { margin: 0 0 16px; color: #ccc; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.prod { background: var(--card); min-height: 180px; }
.prod img { width: 100%; height: 140px; object-fit: cover; background: #1a1a1a; }
.prod .cap { padding: 10px; }
.prod h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.3; }
.prod .price { color: var(--red); font-weight: 800; font-size: 13px; }

.empty { padding: 40px 20px; text-align: center; color: var(--mut); }
.loading { padding: 40px 20px; text-align: center; color: #888; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding-bottom: var(--safe-b);
  max-width: 430px;
  margin: 0 auto;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 7px;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.tabbar svg { width: 22px; height: 22px; fill: currentColor; }
.tabbar a.on, .tabbar a:hover { color: var(--red); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab) + var(--safe-b) + 16px);
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  z-index: 80;
}

.updated {
  color: #666;
  font-size: 11px;
  text-align: center;
  padding: 18px 12px 6px;
  letter-spacing: .3px;
}

.onboard {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: calc(28px + var(--safe-t)) 24px calc(28px + var(--safe-b));
  overflow-y: auto;
}
.onboard[hidden] { display: none !important; }
.onboard-top { text-align: center; }
.onboard-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  margin: 12px auto 22px;
  box-shadow: 0 0 0 1px #222;
}
.onboard-banner {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 13px;
  padding: 8px 18px;
  margin: 0 0 16px;
}
.onboard h1 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -.3px;
  line-height: 1.15;
}
.onboard .lead {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 28px;
}
.onboard .grow { flex: 1; }
.onboard-actions { margin-top: auto; padding-top: 18px; }
.onboard .cta {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 16px 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.onboard .skip {
  display: block;
  width: 100%;
  background: transparent;
  color: #aaa;
  border: 0;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
}
.bell {
  width: 84px;
  height: 84px;
  margin: 8px auto 18px;
  border: 3px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bell svg { width: 40px; height: 40px; fill: var(--red); }

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #222;
  width: 100%;
  background: transparent;
  color: inherit;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
}
.feed-row b { display: block; font-size: 16px; }
.switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #333;
  flex: 0 0 auto;
}
.switch.on { background: var(--red); }
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s ease;
}
.switch.on i { transform: translateX(20px); }

.tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid #1c1c1c;
}
.tip .n {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.tip b { display: block; margin-bottom: 2px; }
.tip span { color: #b5b5b5; font-size: 14px; line-height: 1.35; }
