:root {
  color-scheme: light;
  --ink: #1c1c22;
  --ink-2: #4f505a;
  --line: rgba(255, 255, 255, 0.6);
  --red: #ff3b30;
  --red-deep: #e02b20;
  --radius: 24px;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.66);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 34px rgba(31, 38, 90, 0.10), 0 2px 6px rgba(31, 38, 90, 0.05);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --blur: saturate(180%) blur(26px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); scrollbar-gutter: stable; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #eef0f6;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(84px + env(safe-area-inset-top, 0px));
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(94, 130, 255, 0.75);
  outline-offset: 2px;
  border-radius: 10px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(28, 28, 34, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(28, 28, 34, 0.35);
  transform: translateY(-80px);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 750px at 88% -8%, rgba(186, 154, 255, 0.42), transparent 62%),
    radial-gradient(950px 700px at -8% 24%, rgba(120, 158, 255, 0.40), transparent 58%),
    radial-gradient(900px 850px at 108% 78%, rgba(255, 140, 190, 0.34), transparent 60%),
    radial-gradient(820px 780px at 18% 108%, rgba(96, 224, 208, 0.30), transparent 56%),
    #eef0f6;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

.blob.b1 { width: 44vw; height: 44vw; left: -10vw; top: 6vh; background: radial-gradient(circle at 32% 32%, #7a9bff, transparent 70%); }
.blob.b2 { width: 38vw; height: 38vw; right: -8vw; top: 44vh; background: radial-gradient(circle at 60% 40%, #ff7ab8, transparent 70%); animation-duration: 32s; animation-delay: -9s; }
.blob.b3 { width: 30vw; height: 30vw; left: 34vw; top: -12vh; background: radial-gradient(circle at 50% 50%, #9be8dd, transparent 70%); animation-delay: -17s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5vw, 4vh, 0) scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  * { transition: none !important; }
}

/* ---------- Fixed glass navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(247, 248, 255, 0.64));
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(34, 40, 65, 0.05), inset 0 -1px 0 rgba(34, 40, 65, 0.035);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 84px;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-height: 44px;
}

.nav .brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.nav .tabs {
  position: relative;
  order: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(211, 217, 235, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(86, 99, 143, 0.09), 0 4px 16px rgba(42, 50, 76, 0.045);
}

/* The lens resizes to the hovered pill; JS drives its size and position. */
.tab-lens {
  position: absolute;
  top: 0;
  left: 0;
  height: 44px;
  width: 100px;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 48%, rgba(220, 228, 252, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 12px rgba(57, 65, 101, 0.13), inset 0 1px 1px #fff, inset 0 -1px 2px rgba(112, 125, 177, 0.19);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform-origin: left center;
  transition: opacity 0.18s ease;
}

.tab-lens.show { opacity: 1; }

.nav .tabs a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav .tabs a span {
  display: block;
}

.nav .tabs a.active { color: var(--ink); }
.nav .tabs a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: var(--red-deep);
  border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1041px) {
  .nav .tabs a:hover, .nav .tabs a.lens-target { color: var(--ink); }
}

/* Mobile menu button (hidden on desktop) */
.nav .menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: var(--glass-border);
  background: var(--glass);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  order: 1;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav .menu-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.88); }
.nav .menu-btn:active { transform: scale(0.95); }

.nav .menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  html { scroll-padding-top: calc(200px + env(safe-area-inset-top, 0px)); }
  body { padding-top: 0; }
  /* The glass tab bar stays visible and simply wraps; no hamburger menu. */
  .site-header { position: sticky; }
  .nav { min-height: 0; padding: 12px 16px; row-gap: 10px; }
  .nav .menu-btn { display: none; }

  .nav .tabs {
    order: 4;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(211, 217, 235, 0.3));
    border: var(--glass-border);
    border-radius: 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(86, 99, 143, 0.09), 0 4px 16px rgba(42, 50, 76, 0.045);
  }

  .nav .tabs a {
    flex: 0 1 auto;
    justify-content: center;
    padding: 9px 13px;
    min-height: 44px;
    font-size: 13.5px;
    border-radius: 999px;
    text-align: center;
  }

  .nav .tabs a:active { color: var(--ink); }
  .nav .tabs a.active { color: var(--ink); }
  .nav .tabs a.active::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.96); }

.btn-dark {
  background: rgba(28, 28, 34, 0.8);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(28, 28, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn-dark:hover { background: rgba(28, 28, 34, 0.95); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 28, 34, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.btn-neon {
  background: linear-gradient(180deg, #46ff9a, #12d66c);
  color: #05270f;
  border-color: rgba(120, 255, 170, 0.8);
  box-shadow: 0 0 14px rgba(57, 255, 140, 0.6), 0 0 36px rgba(57, 255, 140, 0.28), 0 8px 22px rgba(18, 214, 108, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.btn-neon:hover { background: linear-gradient(180deg, #59ffad, #23e87c); transform: translateY(-2px); box-shadow: 0 0 22px rgba(57, 255, 140, 0.9), 0 0 52px rgba(57, 255, 140, 0.42), 0 14px 30px rgba(18, 214, 108, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn-red {
  background: linear-gradient(180deg, #ff4b40, var(--red-deep));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 22px rgba(224, 43, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-red:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224, 43, 32, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 76px 0 40px; }

.hero .avatar-link { display: inline-block; cursor: pointer; }

.hero .avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 26px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 44px rgba(31, 38, 90, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.18);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero .avatar-link:hover .avatar {
  transform: scale(1.06);
  box-shadow: 0 24px 54px rgba(31, 38, 90, 0.34), 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero p.sub {
  margin: 16px auto 0;
  max-width: 580px;
  font-size: 19px;
  color: var(--ink-2);
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- Community milestone ---------- */
.channel-stats { margin: 44px 0 6px; text-align: left; }
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 18px;
}
.community-goal, .community-details {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.community-goal { padding: 28px 30px 18px; }
.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.community-heading h2 { font-size: 25px; letter-spacing: -0.035em; line-height: 1.2; }
.goal-badge { padding: 4px 10px; border: 1px solid rgba(224, 43, 32, 0.2); border-radius: 999px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.community-intro { margin-top: 10px; color: var(--ink-2); font-size: 14px; max-width: 350px; }
.community-numbers { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 18px; }
.community-count { display: block; font-size: clamp(38px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.community-label { display: block; color: var(--ink-2); font-size: 12px; margin-top: 5px; }
.community-target { text-align: right; }
.community-target strong { font-size: 24px; line-height: 1.2; letter-spacing: -0.035em; }
.goal-track { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(128, 132, 158, 0.2); }
.goal-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ed3027, #ff7166); transition: width 0.7s ease; }
.community-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.community-bottom a { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-size: 13px; font-weight: 650; color: var(--ink); }
.community-bottom a:hover { text-decoration: underline; }
.community-details { display: grid; padding: 4px 26px; }
.community-detail { display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.community-detail + .community-detail { border-top: 1px solid rgba(128, 132, 158, 0.22); }
.community-detail .community-label { margin: 0 0 2px; }
.community-detail strong { font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.community-caption { margin-top: 5px; color: var(--ink-2); font-size: 12px; }
.community-status { display: flex; align-items: center; justify-content: space-between; gap: 0 16px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.community-status p { padding: 8px 0; }
.community-status a { text-decoration: underline; }
.community-status button { min-height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.community-status button:disabled { cursor: wait; opacity: 0.65; }

@media (max-width: 640px) {
  .community-grid { grid-template-columns: 1fr; gap: 14px; }
  .community-goal { padding: 24px 22px 16px; }
  .community-details { grid-template-columns: 1fr 1fr; padding: 0; }
  .community-detail { padding: 20px; justify-content: flex-start; }
  .community-detail + .community-detail { border-top: 0; border-left: 1px solid rgba(128, 132, 158, 0.22); }
}

/* ---------- Sections ---------- */
.section { margin: 54px 0; }

.section > h2 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section > h2 .more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--red); }
.section > h2 .more:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 58px 0 6px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 660px; }

/* ---------- Sync pill ---------- */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--glass);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.sync-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb340;
  box-shadow: 0 0 0 3px rgba(255, 179, 64, 0.2);
}

.sync-pill.live .dot { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22), 0 0 10px rgba(52, 199, 89, 0.7); }
.sync-pill.saved .dot { background: #98989d; box-shadow: 0 0 0 3px rgba(152, 152, 157, 0.2); }

/* ---------- Grids ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Video cards ---------- */
.video-card {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 44px rgba(31, 38, 90, 0.16), 0 4px 10px rgba(31, 38, 90, 0.06), var(--glass-inset);
}

.video-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #14141a;
  overflow: hidden;
}

.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-card .thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 26, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .thumb .play, .video-card:focus-visible .thumb .play { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .video-card .thumb .play { opacity: 1; }
}

.video-card .thumb .play::after {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.video-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.video-card .title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .meta { font-size: 13.5px; color: var(--ink-2); margin-top: auto; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 11px;
  border-radius: 999px;
}

.chip-new {
  background: linear-gradient(180deg, #ff9a3d, #ff4b40);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 75, 64, 0.4);
}

.chip-short {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(31, 38, 90, 0.08);
}

/* ---------- Featured (latest) video ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(31, 38, 90, 0.18), var(--glass-inset); }

@media (max-width: 780px) { .featured { grid-template-columns: 1fr; } }

.featured .thumb { position: relative; aspect-ratio: 16 / 9; background: #14141a; min-height: 240px; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 780px) {
  .featured .thumb { min-height: 0; }
}

.featured .thumb .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(180deg, #ff4b40, var(--red-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(224, 43, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.featured .info { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

.featured .info .kicker { text-transform: uppercase; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--red); }
.featured .info h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.featured .info .meta { color: var(--ink-2); font-size: 14.5px; }
.featured .info .btn { align-self: flex-start; margin-top: 10px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 28px; }

.filters button {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--glass);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: all 0.15s ease;
}

.filters button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.72); }
.filters button.active { background: rgba(28, 28, 34, 0.82); border-color: rgba(28, 28, 34, 0.82); color: #fff; box-shadow: 0 8px 20px rgba(28, 28, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* ---------- Generic cards ---------- */
.card {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(31, 38, 90, 0.16), var(--glass-inset);
}

.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card p strong { color: var(--ink); }

.card .card-img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe2ec;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.card .actions .btn { padding: 9px 18px; font-size: 13.5px; }
.home-gear .card .actions .btn { justify-content: center; width: 100%; border-radius: 10px; padding: 12px; font-size: 13px; gap: 10px; box-shadow: none; }
.home-gear .card .actions .btn-amz span { font-size: 15px; }

/* ---------- Shortcut cards ---------- */
.shortcut-preview { display: block; border-radius: 16px; overflow: hidden; }
.shortcut-preview img { width: 100%; height: auto; }
.shortcuts-page, .home-loves { --face-green: #b1ff54; }
.home-loves .card .actions { padding-top: 16px; }
.home-loves .gear-img { background: transparent; border: 0; padding: 0; aspect-ratio: auto; width: auto; max-height: 220px; margin: 0 auto; }
.home-loves .card { align-items: center; text-align: center; }
.home-loves .card .actions { width: 100%; }

/* Home watch face cards — identical to the Watch Faces page */
.home-faces .watchface-card { padding: 20px; border-radius: 26px; gap: 12px; }
.home-faces .watchface-preview { display: flex; align-items: center; justify-content: center; height: 290px; padding: 30px; background: radial-gradient(ellipse at 50% 90%, #20251e, #080a09 70%); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px; margin-bottom: 8px; overflow: hidden; }
.home-faces .watchface-preview img { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 20%; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.53); transition: transform 0.25s; }
.home-faces .watchface-preview:hover img { transform: scale(1.04); }
.home-faces .watchface-card h3 { font-size: 22px; letter-spacing: -0.035em; }
.home-faces .watchface-card p { font-size: 13px; line-height: 1.65; }
.home-faces .watchface-card .actions { padding-top: 16px; padding-bottom: 6px; }
.home-faces .card .actions .face-download { padding: 12px; font-size: 13px; gap: 10px; }
.home-faces .card .actions .face-download span { font-size: 15px; }
.shortcuts-page .face-download, .home-loves .face-download { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid #caff94; background: var(--face-green); color: #142106; font-weight: 750; border-radius: 12px; padding: 14px 21px; box-shadow: 0 0 12px #9aff5360, 0 0 30px #8eff4638, inset 0 1px 0 #e1ffc3; transition: box-shadow .2s, transform .2s; }
.shortcuts-page .face-download:hover, .home-loves .face-download:hover { background: #c5ff83; transform: translateY(-2px); box-shadow: 0 0 18px #a5ff65a0, 0 0 42px #8eff4660; }
.shortcuts-page .face-download:focus-visible, .home-loves .face-download:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.face-download span { font-size: 20px; line-height: 1; }
.shortcuts-page .face-download span, .home-loves .face-download span { font-size: 15px; }
.shortcuts-page .card .actions .face-download, .home-loves .card .actions .face-download { width: 100%; justify-content: center; padding: 12px; font-size: 13px; gap: 10px; }

/* ---------- Watchface cards ---------- */
.watchface-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #fff;
}
.watchface-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Gear catalogue ---------- */
.gear-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px;
}

.btn-amz {
  background: linear-gradient(180deg, #ffd374, #ffb340);
  color: #232f3e;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(255, 179, 64, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-amz:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 179, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55); background: linear-gradient(180deg, #ffdb8f, #ffbc4d); }

.btn-amz span { font-size: 16px; line-height: 1; }

.affiliate-note {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  margin-top: 26px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ---------- Dark glass CTA banner ---------- */
.cta-banner {
  background: rgba(22, 22, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 30px;
  padding: 58px 32px;
  text-align: center;
  margin: 64px 0;
  box-shadow: 0 24px 60px rgba(22, 22, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.cta-banner h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.cta-banner p { color: rgba(255, 255, 255, 0.74); margin: 12px auto 26px; max-width: 520px; font-size: 16px; }

/* ---------- Embedded video ---------- */
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 50px rgba(31, 38, 90, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 560px) {
  .embed { min-height: 202px; border-radius: 12px; }
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.contact-hero { padding-bottom: 20px; }
.contact-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2); }
.contact-hero h1 { max-width: 720px; margin: 14px auto 0; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.1; }
.contact-card { padding: 32px; gap: 12px; }
.contact-card:hover { transform: none; }
.contact-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.contact-icon { width: 34px; height: 34px; flex-shrink: 0; }
.contact-card h2 { font-size: clamp(23px, 3vw, 28px); letter-spacing: -0.03em; line-height: 1.2; }
.contact-handle { font-size: 14px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.contact-card p { font-size: 15px; max-width: 380px; }
.contact-card .actions { padding-top: 16px; }
.contact-card .actions .btn { padding: 12px 22px; font-size: 14px; }
.contact-instagram { background: linear-gradient(135deg, rgba(192, 106, 228, 0.12), rgba(243, 123, 133, 0.09)), var(--glass); }
.btn-instagram { background: linear-gradient(115deg, #7137b8, #a52d69); color: #fff; border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 8px 22px rgba(122, 44, 120, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-instagram:hover { transform: translateY(-2px); filter: brightness(1.1); }
.contact-business { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; padding: 40px; margin: 28px 0 64px; }
.contact-business > div { max-width: 580px; }
.contact-business .contact-eyebrow { margin: 0 0 12px; font-size: 11px; }
.contact-business h2 { font-size: clamp(25px, 3.5vw, 32px); line-height: 1.2; }
.contact-business p { margin: 14px 0 0; font-size: 15px; }
.contact-business > .btn { flex-shrink: 0; }
@media (max-width: 780px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-hero { padding-top: 44px; }
  .contact-card { padding: 26px; }
  .contact-business { flex-direction: column; align-items: flex-start; padding: 28px; gap: 24px; }
}

/* ---------- Footer: glass panel ---------- */
footer { margin: 70px auto 44px; max-width: 1080px; padding: 0 24px; }

footer .wrap {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 28px;
  padding: 30px 34px 26px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
footer .f-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.85); }

footer .f-links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); align-items: center; }
footer .f-links a, footer .yt-link { display: inline-flex; align-items: center; min-height: 44px; }
footer .f-links a:hover { color: var(--ink); text-decoration: underline; }

footer .f-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 28, 34, 0.08);
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer .yt-link { color: var(--red); font-weight: 600; }
footer .f-socials { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
footer .instagram-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
footer .f-socials a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Appearance control stays available outside the mobile menu. */
.theme-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--glass-inset);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--glass-strong); }
.theme-icon { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset -6px -2px 0 currentColor; }
[data-theme="dark"] .theme-icon { box-shadow: none; width: 14px; height: 14px; outline: 2px dotted currentColor; outline-offset: 4px; }
@media (max-width: 1040px) {
  .nav { gap: 10px; }
  .nav .brand { margin-right: auto; }
  .theme-toggle { order: 0; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f3fa;
  --ink-2: #b9bed1;
  --line: rgba(255, 255, 255, 0.14);
  --red: #ff827b;
  --glass: rgba(31, 35, 51, 0.75);
  --glass-strong: rgba(51, 57, 78, 0.9);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.14);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] body { background: #10121b; }
[data-theme="dark"] .bg {
  background:
    radial-gradient(1100px 750px at 88% -8%, rgba(111, 73, 182, 0.22), transparent 62%),
    radial-gradient(950px 700px at -8% 24%, rgba(49, 87, 172, 0.22), transparent 58%),
    radial-gradient(900px 850px at 108% 78%, rgba(147, 53, 97, 0.16), transparent 60%),
    radial-gradient(820px 780px at 18% 108%, rgba(43, 129, 119, 0.14), transparent 56%),
    #10121b;
}
[data-theme="dark"] .site-header { background: rgba(19, 22, 34, 0.86); border-bottom: var(--glass-border); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2); }
[data-theme="dark"] .nav .tabs { background: rgba(255, 255, 255, 0.04); box-shadow: var(--glass-inset); }
[data-theme="dark"] .tab-lens { background: linear-gradient(155deg, #454b65, #30354a); border: var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); }
[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .video-card:hover,
[data-theme="dark"] .filters button:hover,
[data-theme="dark"] .nav .menu-btn[aria-expanded="true"] { background: var(--glass-strong); }
[data-theme="dark"] .filters button.active { background: #e5e8f5; color: #202431; border-color: #e5e8f5; }
[data-theme="dark"] .btn-dark { background: #e5e8f5; color: #202431; }
[data-theme="dark"] .btn-dark:hover { background: #fff; }
[data-theme="dark"] .chip-short { background: var(--glass); border: var(--glass-border); }
[data-theme="dark"] .card .card-img { background: #252a3b; border: var(--glass-border); }
[data-theme="dark"] footer .f-bottom { border-color: var(--line); }
@media (max-width: 1040px) {
  [data-theme="dark"] .nav .tabs { background: rgba(255, 255, 255, 0.04); }
  [data-theme="dark"] .nav .tabs a:focus-visible { background: var(--glass-strong); box-shadow: var(--glass-inset); }
}

/* ---------- Gold glass support link ---------- */
.nav .tabs a.coffee-link {
  gap: 8px;
  color: #4a2c07;
  font-weight: 650;
  background:
    radial-gradient(120% 140% at 12% 8%, rgba(255, 143, 178, 0.55), transparent 52%),
    radial-gradient(120% 140% at 88% 20%, rgba(255, 122, 82, 0.5), transparent 56%),
    linear-gradient(155deg, rgba(255, 235, 130, 0.9), rgba(255, 171, 66, 0.62) 52%, rgba(255, 122, 133, 0.5));
  border: 1px solid rgba(255, 226, 150, 0.9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(166, 82, 16, 0.2), 0 3px 14px rgba(234, 116, 66, 0.22);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}
.nav .tabs a.coffee-link:hover {
  filter: brightness(1.06) saturate(1.15);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px rgba(166, 82, 16, 0.22), 0 5px 18px rgba(234, 116, 66, 0.32);
}
.nav .tabs a.coffee-link:active { filter: brightness(0.98) saturate(1.1); }
.nav .tabs a.coffee-link:focus-visible { outline-color: #c96a17; }
[data-theme="dark"] .nav .tabs a.coffee-link {
  color: #ffe9b0;
  background:
    radial-gradient(120% 140% at 12% 8%, rgba(255, 105, 142, 0.34), transparent 52%),
    radial-gradient(120% 140% at 88% 20%, rgba(255, 116, 88, 0.3), transparent 56%),
    linear-gradient(155deg, rgba(255, 214, 107, 0.4), rgba(224, 128, 60, 0.3) 52%, rgba(214, 92, 130, 0.28));
  border-color: rgba(255, 205, 130, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 242, 208, 0.4), inset 0 -1px 2px rgba(94, 62, 16, 0.3), 0 3px 14px rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] .nav .tabs a.coffee-link:focus-visible { outline-color: #ffe8a6; }
