:root {
  --bg: #fff6ee;
  --paper: rgba(255,255,255,0.82);
  --paper-strong: rgba(255,255,255,0.92);
  --ink: #2e1f1a;
  --muted: #765a4b;
  --accent: #f29452;
  --accent-strong: #df6f2e;
  --line: rgba(99, 63, 40, 0.12);
  --shadow: 0 18px 48px rgba(74, 40, 18, 0.12);
  --radius: 28px;
  --shell: min(1200px, calc(100vw - 12px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 168, 0.5), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 196, 143, 0.38), transparent 22%),
    linear-gradient(180deg, #fff7f1 0%, #fff2e8 100%);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
img, video { display: block; width: 100%; height: auto; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(rgba(71,44,28,0.22) 0.6px, transparent 0.6px),
    radial-gradient(rgba(71,44,28,0.14) 0.5px, transparent 0.5px);
  background-size: 18px 18px, 11px 11px;
  background-position: 0 0, 7px 8px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-soft {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(99, 63, 40, 0.1);
  border-radius: calc(var(--radius) - 4px);
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-copy, .lede, .muted, .note-card span, .meta-card p, .about-cards p, .follow-band p, .quote-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 2vw, 28px);
  background: rgba(255, 246, 238, 0.82);
  border-bottom: 1px solid rgba(99, 63, 40, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}

.nav a:hover {
  background: rgba(242, 148, 82, 0.12);
  color: var(--ink);
}

main {
  padding: 12px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(14px, 1.8vw, 22px);
  padding: clamp(14px, 2vw, 24px);
  min-height: 380px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 0.96;
  margin: 0 0 14px;
  max-width: 12ch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-actions,
.form-actions,
.viewer-actions,
.browser-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.browser-btn,
.featured-sound,
.featured-open,
.watch-btn,
.viewer-close,
.viewer-arrow {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.button,
.featured-sound,
.featured-open,
.watch-btn {
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
.watch-btn,
.featured-open,
.browser-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(223, 111, 46, 0.24);
}

.button.ghost,
.featured-sound,
.viewer-actions .button.ghost {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: 1px solid rgba(99,63,40,0.12);
}

.stat-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99,63,40,0.12);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.stat-pill:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
}

.hero-spotlight {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  min-height: 340px;
}

.hero-spotlight .media-frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,235,220,0.9));
}

.hero-spotlight .media-frame img,
.hero-spotlight .media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-spotlight .copy {
  padding: 14px 16px 16px;
}

.featured-section,
.photo-section,
.about-section,
.note-section,
.follow-band {
  padding: clamp(14px, 2vw, 24px);
  margin-top: 14px;
}

.section-head,
.section-banner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.section-head h2,
.section-banner h2,
.about-section h2,
.note-section h2,
.follow-band h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.featured-player-wrap {
  position: relative;
}

.featured-player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(56vw, 500px);
  max-height: 68vh;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(247,221,204,0.94));
  border: 1px solid rgba(99,63,40,0.1);
}

.featured-player img,
.featured-player video {
  width: 100%;
  height: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #1f160f;
}

.featured-controls {
  position: absolute;
  right: 10px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.featured-overlay,
.overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(18,13,9,0), rgba(18,13,9,0.82));
  color: #fff;
}

.featured-overlay h3,
.overlay h3,
.meta-card h3,
.note-card strong {
  margin: 0 0 6px;
}

.meta-card,
.note-card,
.about-cards article,
.compact-panel,
.follow-link,
.reel-card,
.mosaic-tile,
.strip-card,
.browser-card {
  background: var(--paper-strong);
  border: 1px solid rgba(99,63,40,0.1);
  border-radius: 22px;
}

.featured-side {
  display: grid;
  gap: 16px;
}

.meta-card,
.note-card {
  padding: 18px;
}

.browser-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.browser-strip,
.mini-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.browser-card,
.strip-card {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  padding: 0;
}

.preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(18,13,9,0.62);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.browser-card img,
.browser-card video,
.strip-card img,
.strip-card video,
.reel-card img,
.reel-card video,
.mosaic-tile img,
.media-frame .preview-frame,
.media-frame .preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-card .small-copy {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.section-stack,
.split-row {
  margin-top: 20px;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reel-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 9 / 15;
}

.reel-card video,
.reel-card img {
  height: 100%;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18,13,9,0.7);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.watch-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
}

.compact-panel {
  padding: 18px;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  cursor: pointer;
  transition: opacity 420ms ease, transform 420ms ease;
}

.mosaic-tile.wide { grid-column: span 2; }
.mosaic-tile.tall { grid-row: span 2; min-height: 392px; }
.mosaic-tile .overlay { opacity: 0; transition: opacity 180ms ease; }
.mosaic-tile:hover .overlay,
.reel-card:hover .overlay,
.browser-card:hover .small-copy { opacity: 1; }

.about-cards,
.follow-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.about-cards article,
.follow-link {
  padding: 18px;
}

.follow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
}

.follow-link.prominent,
.social-rail a.prominent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.note-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.note-form input,
.note-form textarea {
  width: 100%;
  border: 1px solid rgba(99,63,40,0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  padding: 14px 15px;
  color: var(--ink);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 28px;
  text-align: center;
}

.social-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: grid;
  gap: 12px;
}

.social-rail a {
  min-width: 170px;
  padding: 18px 24px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(99,63,40,0.12);
  box-shadow: 0 14px 32px rgba(74,40,18,0.16);
}

.viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 18, 11, 0.72);
  backdrop-filter: blur(8px);
}

.viewer-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 22px));
  max-height: calc(100vh - 26px);
  margin: 13px auto;
  background: rgba(255,250,247,0.98);
  border-radius: 28px;
  border: 1px solid rgba(99,63,40,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  overflow: hidden;
}

.viewer-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.viewer-media {
  min-height: min(78vh, 720px);
  background: #1f160f;
}

.viewer-media img,
.viewer-media video {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: contain;
}

.viewer-copy {
  padding: 28px 24px 24px;
  overflow: auto;
}

.viewer-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
}

.viewer-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  font-size: 1.55rem;
  z-index: 3;
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  font-size: 1.9rem;
  z-index: 3;
}

.viewer-arrow-left { left: 12px; }
.viewer-arrow-right { right: 12px; }

.empty-message,
.featured-error,
.featured-loading {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 20px;
  color: var(--muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 10px;
}

.fade-in { animation: fadeIn 450ms ease; }
.fade-out { animation: fadeIn 450ms ease reverse; }
.soft-fade-in { animation: softFadeIn 700ms ease; }
.soft-fade-out { animation: softFadeOut 240ms ease forwards; }
.swap-in { animation: fadeIn 700ms ease; }
.swap-out { animation: softFadeOut 280ms ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px) scale(0.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes softFadeIn { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes softFadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 1100px) {
  .hero,
  .featured-grid,
  .viewer-main,
  .split-row { grid-template-columns: 1fr; }
  .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-cards,
  .follow-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-rail { right: 10px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100vw - 6px, 1160px); }
  .site-header { padding-inline: 8px; }
  .nav { gap: 6px; }
  .nav a { padding: 8px 10px; font-size: 0.92rem; }
  main { padding-top: 8px; }
  .section-head,
  .section-banner,
  .browser-head,
  .form-actions,
  .hero-actions { align-items: start; flex-direction: column; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic-tile.wide,
  .mosaic-tile.tall { grid-column: span 1; grid-row: span 1; min-height: 200px; }
  .field-grid,
  .about-cards,
  .follow-links { grid-template-columns: 1fr; }
  .social-rail {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 12px;
    transform: none;
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .social-rail a {
    min-width: 136px;
    flex: 0 0 auto;
    padding: 14px 16px;
  }
  .viewer-arrow {
    top: auto;
    bottom: 12px;
    transform: none;
  }
  .viewer-arrow-left { left: 12px; }
  .viewer-arrow-right { right: 12px; }
}

/* v9 overrides */
.hero { gap: clamp(1rem, 2vw, 1.6rem); }
.hero-copy { max-width: 52rem; }
.compact-gap { align-items: end; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.hero-spotlight-card { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 0.8rem; }
.hero-spotlight-card .media-shell { aspect-ratio: 5/4; border-radius: 1.4rem; overflow: hidden; }
.hero-spotlight-copy h3 { margin: 0.2rem 0 0.4rem; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.hero-spotlight-copy p:last-child { margin: 0; color: rgba(36,25,18,0.76); }
.sticky-featured-grid { align-items: start; }
.sticky-panel { position: sticky; top: 5.6rem; }
.fade-shell, .fade-tile { transition: opacity 500ms ease; }
.fade-tile.is-fading { opacity: 0.12; }
.browser-strip { overflow-x: auto; scrollbar-width: thin; }
.thumb-card { background: transparent; border: 0; padding: 0; display: grid; gap: 0.5rem; cursor: pointer; }
.thumb-card .media-shell { border-radius: 1.1rem; overflow: hidden; box-shadow: 0 10px 22px rgba(0,0,0,0.14); background: rgba(255,255,255,0.5); }
.browser-item { min-width: 14rem; }
.reel-card { display: grid; gap: 0.7rem; }
.reel-thumb .media-shell { aspect-ratio: 9/16; }
.browser-item .media-shell, .mini-item .media-shell, .photo-thumb .media-shell { aspect-ratio: 4/5; }
.photo-thumb .media-shell { min-height: 0; }
.card-actions { display: flex; justify-content: flex-end; }
.button.micro { padding: 0.52rem 0.9rem; font-size: 0.84rem; }
.media-shell { position: relative; width: 100%; }
.media-shell img, .media-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-badge { position: absolute; right: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: rgba(18, 18, 18, 0.7); color: #fff; font-size: 1rem; backdrop-filter: blur(6px); }
.play-badge { font-size: 0.88rem; }
.is-selected .media-shell { outline: 3px solid rgba(255,183,102,0.9); outline-offset: 2px; }
.chat-shell { display: grid; gap: 1rem; }
.chat-log { display: grid; gap: 0.9rem; min-height: 12rem; max-height: 28rem; overflow: auto; padding: 0.5rem 0.2rem 0.5rem 0; }
.chat-bubble { max-width: 48rem; padding: 0.95rem 1rem; border-radius: 1rem; background: rgba(255,255,255,0.6); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.chat-bubble.user { margin-left: auto; background: rgba(255,183,102,0.23); }
.chat-bubble strong { display: block; margin-bottom: 0.32rem; }
.chat-bubble p { margin: 0; }
.chat-form textarea { width: 100%; min-height: 5rem; resize: vertical; }
.social-rail { gap: 0.8rem; }
.social-chip { min-width: 5rem; padding: 0.95rem 1rem; font-size: 0.95rem; font-weight: 700; }
.social-chip.prominent { transform: scale(1.04); }
.note-section .section-copy { display: none; }
.featured-side .note-card { display: none; }
@media (max-width: 920px) {
  .sticky-panel { position: static; }
  .hero { grid-template-columns: 1fr; }
  .site-header { padding-inline: 0.8rem; }
  .shell { padding-inline: 0.85rem !important; }
}
@media (max-width: 640px) {
  .nav { gap: 0.65rem; font-size: 0.92rem; flex-wrap: wrap; }
  .social-rail { right: 0.45rem; top: 6rem; }
  .social-chip { min-width: 4.5rem; padding: 0.8rem 0.85rem; font-size: 0.88rem; }
}


/* v10 admin + calmer motion overrides */
.hidden { display: none !important; }
.fade-shell { transition: opacity 700ms ease, transform 700ms ease; }
.fade-shell.fading-out { opacity: 0.08; transform: translateY(8px) scale(0.992); }
.fade-shell.fading-in { opacity: 1; transform: translateY(0) scale(1); }
.soft-swap { opacity: 0.12; transition: opacity 260ms ease; }
.browser-card,
.mini-card,
.photo-tile,
.hero-spotlight-card {
  cursor: pointer;
}
.browser-card {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.7rem;
  min-width: 15rem;
}
.browser-card .media-shell {
  aspect-ratio: 4 / 5;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.browser-card .card-text {
  display: grid;
  gap: 0.28rem;
}
.browser-card .card-text strong {
  font-size: 0.98rem;
}
.browser-card .card-text p {
  margin: 0;
  color: rgba(36,25,18,0.78);
  font-size: 0.92rem;
}
.browser-card.is-active .media-shell {
  outline: 3px solid rgba(255, 183, 102, 0.92);
  outline-offset: 2px;
}
.mini-card {
  border: 0;
  background: transparent;
  padding: 0;
}
.mini-card .media-shell {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  min-width: 6.5rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.featured-player .media-shell {
  border-radius: 1.4rem;
  overflow: hidden;
  min-height: 22rem;
  background: rgba(255,255,255,0.45);
}
.featured-player video {
  width: 100%;
  max-height: 70vh;
}
.featured-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}
.featured-sound {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(36,25,18,0.88);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.meta-card h3 {
  margin-top: 0;
}
.browser-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 18rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-behavior: smooth;
}
.browser-nav {
  display: flex;
  gap: 0.6rem;
}
.browser-btn {
  appearance: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-size: 1.3rem;
  cursor: pointer;
}
.photo-mosaic .photo-tile {
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  min-height: 16rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.photo-mosaic .photo-tile .media-shell {
  width: 100%;
  height: 100%;
}
.photo-mosaic .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.55rem 0.72rem;
  border-radius: 0.8rem;
  background: rgba(20, 15, 12, 0.62);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.25;
}
.social-link-large {
  display: grid;
  gap: 0.14rem;
  min-width: 9.5rem;
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}
.social-link-large span:first-child {
  font-size: 1.25rem;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.86rem 1rem;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}
.note-form.is-disabled,
.chat-form.is-disabled {
  opacity: 0.6;
}
.admin-body {
  min-height: 100vh;
}
.admin-shell {
  padding-top: 2.2rem;
  padding-bottom: 4rem;
}
.admin-login-panel,
.admin-app {
  max-width: 72rem;
  margin: 0 auto;
}
.admin-login-form,
.feature-form {
  display: grid;
  gap: 1rem;
}
.admin-login-form input,
.feature-form input {
  width: 100%;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-list {
  display: grid;
  gap: 0.9rem;
}
.admin-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.admin-card-meta,
.admin-empty {
  color: rgba(36,25,18,0.72);
  font-size: 0.92rem;
}
.chat-bubble-user {
  margin-left: auto;
  background: rgba(255,183,102,0.23);
}
.chat-bubble-girls {
  background: rgba(255,255,255,0.66);
}
@media (max-width: 960px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .browser-strip { grid-auto-columns: minmax(12rem, 14rem); }
  .featured-player .media-shell { min-height: 16rem; }
  .social-link-large { min-width: 8rem; }
}


/* v11 additions */
.page-hero { padding: clamp(18px, 2vw, 28px); margin-top: 12px; }
.page-content { padding: clamp(18px, 2vw, 28px); margin-top: 12px; }
.info-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.info-list article, .friend-card, .merch-card, .place-card { background: var(--paper-strong); border: 1px solid rgba(99,63,40,0.1); border-radius: 22px; padding: 18px; }
.footer-links, .inline-links { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:10px; }
.footer-links a { color: var(--muted); text-decoration:none; font-weight:700; }
.compact-links { justify-content:flex-start; }
.places-grid { display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 14px; }
.map-shell, .map-list { padding: 12px; }
.map-list { display:grid; gap:10px; align-content:start; }
.places-map { width:100%; height:auto; display:block; border-radius: 22px; overflow:hidden; }
.friend-grid, .merch-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.friend-card, .merch-card { text-decoration:none; color:inherit; display:grid; gap:0.5rem; }
.friend-card strong, .merch-card strong { font-size:1.02rem; }
.merch-card span { font-weight:800; color: var(--accent-strong); }
.places-section, .friends-section, .merch-section { padding: clamp(14px, 2vw, 24px); margin-top: 14px; }
.ad-shell { width: min(900px, calc(100vw - 16px)); margin: 18px auto 0; padding: 12px 16px 18px; background: rgba(255,255,255,0.58); border-radius: 24px; border: 1px solid rgba(99,63,40,0.09); }
.ad-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ad-placeholder { min-height: 110px; display:grid; place-items:center; border-radius: 18px; border:1px dashed rgba(99,63,40,0.16); color: var(--muted); background: rgba(255,255,255,0.66); }
.feature-form, .location-controls, .location-rows { display:grid; gap: 12px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.toggle-row input { width: 22px; height: 22px; }
.location-row { display:grid; grid-template-columns: 1fr 1fr 1fr auto; gap:10px; }
.admin-map-preview-wrap { display:grid; gap:10px; margin-top:12px; }
.admin-map-note { color: var(--muted); font-size:0.95rem; }
.admin-list { display:grid; gap:12px; }
.admin-card { background: rgba(255,255,255,0.82); border:1px solid rgba(99,63,40,0.1); border-radius:18px; padding:14px; }
.admin-card-meta { color: var(--muted); font-size:0.9rem; margin: 4px 0 8px; }
.admin-empty { color: var(--muted); margin:0; }
.admin-shell { padding-top: 12px; padding-bottom: 28px; }
.admin-login-panel, .admin-app { padding: 20px; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 16px; }
.admin-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.chat-section, .note-section { margin-top: 14px; }
.chat-shell { background: rgba(255,255,255,0.35); border-radius: 18px; padding: 8px; }
.chat-bubble.reply { background: rgba(255,255,255,0.74); }
.chat-bubble.user { background: rgba(255,183,102,0.22); }
.place-card p, .friend-card p, .merch-card p { margin: 0; color: var(--muted); }
@media (max-width: 960px) {
  .places-grid, .friend-grid, .merch-grid, .info-list, .admin-grid { grid-template-columns: 1fr; }
  .location-row { grid-template-columns: 1fr; }
}


.merch-card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display:block; }
.merch-badge { display:inline-flex; align-self:start; font-size:0.78rem; font-weight:800; padding:0.3rem 0.55rem; border-radius:999px; background: rgba(223,111,46,0.12); color: var(--accent-strong); }
.merch-price { font-weight: 800; color: var(--ink-strong); }
.merch-rows { display:grid; gap: 14px; margin-top: 14px; }
.merch-row { display:grid; gap: 10px; padding: 14px; border:1px solid rgba(99,63,40,0.12); border-radius: 18px; background: rgba(255,250,245,0.72); }
.merch-row-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.merch-row-actions { display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.merch-preview-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.toggle-row.compact { margin: 0; }
@media (max-width: 760px) { .merch-row-grid, .merch-preview-grid { grid-template-columns: 1fr; } }

.games-teaser-section,
.game-section,
.game-hero {
  padding: clamp(14px, 2vw, 24px);
  margin-top: 18px;
}
.games-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.game-teaser-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(99,63,40,0.12);
  box-shadow: var(--shadow);
}
.game-teaser-card:hover { transform: translateY(-2px); }
.game-icon { font-size: 2rem; }
.game-shell.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.game-canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(99,63,40,0.12);
  background: rgba(255,255,255,0.72);
}
.game-side { display: grid; align-content: start; gap: 14px; }
.game-status { min-height: 4.5rem; color: var(--muted); }
.game-list { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .games-teaser-grid, .game-shell.two-col { grid-template-columns: 1fr; }
}

.blog-preview-grid,
.blog-list,
.media-picker-grid,
.section-settings-rows {
  display: grid;
  gap: 14px;
}
.blog-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-preview-card,
.blog-list-card,
.media-picker-item,
.user-card,
.section-setting-row {
  border: 1px solid rgba(99,63,40,0.12);
  border-radius: 22px;
  background: rgba(255,250,245,0.78);
  box-shadow: var(--shadow);
}
.blog-preview-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.blog-preview-card h3 { margin: 0; }
.blog-preview-image,
.blog-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.blog-preview-video-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(223,111,46,0.12);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
}
.page-shell { display: grid; gap: 20px; }
.page-hero { margin-top: 18px; }
.blog-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 18px;
  align-items: start;
}
.blog-sidebar { position: sticky; top: 96px; }
.blog-list-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  text-align: left;
}
.blog-list-card.is-active { outline: 3px solid rgba(223,111,46,0.22); }
.blog-article { min-height: 480px; }
.rich-article-body,
.rich-article { line-height: 1.7; }
.rich-article-body img,
.rich-article-body video { max-width: 100%; border-radius: 18px; display: block; margin: 14px 0; }
.rich-article-body figure { margin: 0 0 18px; }
.rich-article-body figcaption { color: var(--muted); font-size: 0.92rem; }
.editor-shell { margin-top: 18px; margin-bottom: 26px; }
.editor-layout { grid-template-columns: 0.8fr 1.2fr; }
.editor-panel { min-width: 0; }
.editor-form { display: grid; gap: 14px; }
.compact-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.compact-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.left-actions { justify-content: flex-start; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.editor-toolbar button,
.editor-toolbar select,
.editor-toolbar input {
  border-radius: 12px;
  border: 1px solid rgba(99,63,40,0.15);
  background: rgba(255,255,255,0.84);
  padding: 0.55rem 0.75rem;
}
.toolbar-color,
.toolbar-font { display: inline-flex; align-items: center; gap: 8px; padding: 0.2rem 0.2rem 0.2rem 0.55rem; border-radius: 12px; background: rgba(255,255,255,0.84); border:1px solid rgba(99,63,40,0.15); }
.rich-editor {
  min-height: 380px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(99,63,40,0.12);
  background: rgba(255,255,255,0.86);
  line-height: 1.7;
}
.rich-editor:focus { outline: 3px solid rgba(223,111,46,0.18); }
.media-picker-shell { display: grid; gap: 12px; }

.upload-form { display: grid; gap: 10px; }
.upload-field { display: grid; gap: 8px; }
.upload-field input[type="file"] {
  border-radius: 16px;
  border: 1px dashed rgba(99,63,40,0.26);
  background: rgba(255,255,255,0.78);
  padding: 0.85rem 1rem;
}
.compact-upload-actions { align-items: center; }
.media-picker-grid { grid-template-columns: repeat(4, minmax(0,1fr)); max-height: 380px; overflow: auto; }
.media-picker-item { padding: 10px; display: grid; gap: 8px; text-align: left; }
.media-picker-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.permission-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.stack-form { display: grid; gap: 14px; }
.user-card { padding: 14px; display: grid; gap: 12px; }
.section-setting-row {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr auto 120px;
  gap: 14px;
  align-items: end;
}
.quick-browse-wrap.hidden,
.blog-preview-section.hidden,
#highlightsSection.hidden,
#reels.hidden,
#photos.hidden,
#featured.hidden { display: none !important; }
@media (max-width: 1024px) {
  .blog-preview-grid,
  .media-picker-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blog-layout,
  .editor-layout,
  .compact-grid-3,
  .compact-grid-2,
  .section-setting-row { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 760px) {
  .blog-preview-grid,
  .media-picker-grid { grid-template-columns: 1fr; }
}

.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.85); }
.motto-line { margin: .85rem 0 0; font-weight: 700; color: var(--ink-strong, #2c2218); }
.homepage-tools-section { display: grid; gap: 1rem; }
.homepage-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .8rem; align-items: center; }
.homepage-search-form input { width: 100%; min-width: 0; }
.small-copy { font-size: .98rem; opacity: .9; }
.home-helper-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.home-helper-backdrop { position: absolute; inset: 0; background: rgba(24,18,14,.58); backdrop-filter: blur(2px); }
.home-helper-card { position: relative; z-index: 1; width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.home-helper-steps { display: grid; gap: .8rem; }
.helper-step-card { padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.8); }
.helper-step-card strong { display: block; margin-bottom: .35rem; }
.media-item-head { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.media-item-thumb { width: 132px; height: 132px; border-radius: 1rem; overflow: hidden; background: rgba(0,0,0,.08); }
.media-item-thumb img, .media-item-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-search { width: 100%; margin: .25rem 0 1rem; }
.media-admin-list { display: grid; gap: 1rem; }
#featuredStoryCard, #featuredAboutCard { margin-top: .85rem; }
@media (max-width: 900px) {
  .homepage-search-form { grid-template-columns: 1fr; }
  .media-item-head { grid-template-columns: 1fr; }
  .media-item-thumb { width: 100%; height: 220px; }
}

/* v18 performance + breathing-room patch */
:root {
  --shell: min(1160px, calc(100vw - 28px));
  --bubble-pad: clamp(1rem, 1.6vw, 1.45rem);
}

/* Let the browser skip rendering below-the-fold sections until needed. */
main > section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.hero,
.site-header,
.home-helper-modal {
  content-visibility: visible;
}

/* Remove costly backdrop/filter work from the frequently repeated cards. */
.panel,
.site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.grain {
  opacity: 0.06;
}

.panel,
.compact-panel,
.meta-card,
.about-cards article,
.friend-card,
.merch-card,
.place-card,
.game-teaser-card,
.blog-preview-card,
.helper-step-card,
.chat-bubble,
.note-form label,
.chat-shell,
.homepage-search-form,
.ad-placeholder {
  padding: var(--bubble-pad);
}

.section-head,
.browser-head,
.form-actions,
.field-grid,
.about-section,
.follow-band,
.featured-grid,
.places-grid,
.games-teaser-grid,
.friend-grid,
.merch-grid,
.blog-preview-grid {
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.section-copy,
.lede,
.meta-card p,
.chat-bubble p,
.note-form span,
.helper-step-card p,
.friend-card p,
.merch-card p,
.game-teaser-card p,
.blog-preview-card p {
  margin-inline: 0;
  max-width: 70ch;
}

.media-shell {
  background: rgba(255,255,255,0.58);
  overflow: hidden;
  transform: translateZ(0);
}
.preview-image,
.media-shell img,
.media-shell video {
  backface-visibility: hidden;
}

.featured-player .media-shell {
  min-height: clamp(14rem, 40vw, 26rem);
}

.watch-overlay-button {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: rgba(36,25,18,0.86);
  color: #fffaf5;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  cursor: pointer;
}

.browser-strip {
  grid-auto-columns: minmax(11.5rem, 14rem);
}
.reel-grid {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.photo-mosaic .photo-tile {
  min-height: clamp(10rem, 24vw, 15rem);
}

/* Keep text from kissing card edges on narrow screens. */
@media (max-width: 760px) {
  :root { --shell: min(100vw - 18px, 100%); --bubble-pad: 1rem; }
  main { padding-top: 8px; }
  .hero,
  .featured-section,
  .photo-section,
  .about-section,
  .note-section,
  .chat-section,
  .homepage-tools-section,
  .games-teaser-section,
  .merch-section,
  .friends-section,
  .places-section,
  .blog-preview-section,
  .follow-band {
    padding: 1rem;
  }
  .section-head { align-items: start; }
  .browser-strip { grid-auto-columns: minmax(10.75rem, 12.5rem); }
  .featured-player .media-shell { min-height: 13.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------
   v19 editorial polish + performance-safe rendering overrides
   ------------------------------------------------------------------------- */
:root {
  --bhd-cream: #fff7ea;
  --bhd-paper: #fffdf8;
  --bhd-ink: #312419;
  --bhd-muted: #6f5b49;
  --bhd-line: rgba(65, 43, 25, 0.13);
  --bhd-soft: rgba(255, 255, 255, 0.76);
  --bhd-shadow-soft: 0 20px 55px rgba(74, 45, 18, 0.10);
  --bhd-radius-lg: 30px;
  --bhd-radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 195, 112, 0.34), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(136, 192, 170, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff8ed 0%, #fbefe1 48%, #f6eadf 100%);
  color: var(--bhd-ink);
  text-rendering: optimizeLegibility;
}

.grain { display: none !important; }
.shell { width: min(1120px, calc(100vw - 40px)); }
.panel,
.panel-soft,
.compact-panel,
.meta-card,
.friend-card,
.merch-card,
.blog-preview-card,
.homepage-tools-section,
.note-card,
.chat-card {
  border: 1px solid var(--bhd-line) !important;
  border-radius: var(--bhd-radius-lg) !important;
  box-shadow: var(--bhd-shadow-soft) !important;
  background: rgba(255, 253, 248, 0.88) !important;
  backdrop-filter: none !important;
}

.panel,
.homepage-tools-section,
.featured-section,
.photo-section,
.blog-preview-section,
.about-section,
.friends-section,
.note-card,
.chat-card {
  padding: clamp(1.4rem, 3.2vw, 3rem) !important;
}

.meta-card,
.compact-panel,
.blog-preview-card,
.friend-card,
.merch-card,
.card-text,
.overlay,
.hero-spotlight-copy,
.map-list,
.map-shell {
  padding: clamp(1rem, 2.4vw, 1.45rem) !important;
}

.site-header {
  width: min(1160px, calc(100vw - 32px));
  margin: 16px auto 8px;
  border: 1px solid var(--bhd-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 14px 38px rgba(59, 38, 20, 0.09);
  backdrop-filter: blur(8px);
}
.brand { gap: 0.7rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.nav { gap: 0.18rem; }
.nav a {
  border-radius: 999px;
  padding: 0.56rem 0.78rem;
  color: rgba(49, 36, 25, 0.72);
}
.nav a:hover { background: rgba(255, 183, 102, 0.16); color: var(--bhd-ink); }

.hero {
  min-height: auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  margin-top: 1.1rem;
}
.hero-copy { padding: clamp(0.2rem, 1vw, 0.6rem); }
.hero h1 {
  font-size: clamp(2.55rem, 7vw, 5.8rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.07em;
  max-width: 760px;
}
.lede,
.section-copy,
#aboutBody,
.meta-card p,
.card-text p {
  color: var(--bhd-muted);
  line-height: 1.65;
}
.hero .lede { max-width: 680px; font-size: clamp(1.05rem, 1.65vw, 1.33rem); }
.eyebrow { letter-spacing: 0.13em; color: #9f6330; }
.motto-line {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.64rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 183, 102, 0.18);
  border: 1px solid rgba(127, 76, 31, 0.12);
}

.button,
.browser-btn,
.featured-sound,
.watch-overlay-button {
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(83, 48, 22, 0.12) !important;
}
.button.primary { background: #2f2016 !important; color: #fffaf1 !important; }
.button.ghost { background: rgba(255, 255, 255, 0.72) !important; }

.featured-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(1rem, 2.5vw, 2rem); }
.featured-player,
.media-shell,
.hero-spotlight-card .media-shell {
  overflow: hidden;
  border-radius: var(--bhd-radius-md) !important;
  background: #2d2019;
}
.featured-player { min-height: clamp(260px, 46vw, 560px); }
.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.watch-overlay-button {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  padding: 0.82rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(36, 25, 18, 0.86);
  color: #fffdf7;
  cursor: pointer;
}

.browser-strip,
.reel-grid,
.photo-mosaic,
.blog-preview-grid,
.friend-grid,
.merch-grid {
  gap: clamp(0.8rem, 2vw, 1.25rem) !important;
}
.browser-card,
.reel-card,
.photo-thumb,
.mini-card,
.blog-preview-card {
  border-radius: var(--bhd-radius-md) !important;
  border: 1px solid var(--bhd-line) !important;
  background: rgba(255, 253, 248, 0.84) !important;
  box-shadow: 0 12px 34px rgba(66, 40, 19, 0.09) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.browser-card:hover,
.reel-card:hover,
.photo-thumb:hover,
.blog-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(66, 40, 19, 0.13) !important;
}

.card-text strong { font-size: 0.98rem; line-height: 1.2; display: block; }
.card-text p { margin: 0.35rem 0 0; font-size: 0.9rem; }
.overlay {
  left: 0.72rem !important;
  right: 0.72rem !important;
  bottom: 0.72rem !important;
  border-radius: 18px !important;
  background: rgba(39, 28, 20, 0.64) !important;
  color: #fff7ec;
}

.section-stack,
.split-row,
.photo-section,
.blog-preview-section,
.about-section,
.friends-section,
.places-section,
.games-teaser-section,
.shop-section,
.notes-chat-grid,
.follow-section {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.social-rail a {
  min-width: 52px;
  min-height: 52px;
  border-radius: 999px !important;
  box-shadow: 0 14px 34px rgba(37, 24, 17, 0.16);
}

@media (max-width: 860px) {
  .shell { width: min(100% - 24px, 1120px); }
  .site-header { width: calc(100vw - 18px); border-radius: 26px; align-items: flex-start; }
  .nav { max-width: 100%; overflow-x: auto; padding-bottom: 0.18rem; }
  .hero,
  .featured-grid,
  .places-grid,
  .notes-chat-grid,
  .about-section,
  .split-row {
    grid-template-columns: 1fr !important;
  }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 4.2rem) !important; }
  .panel,
  .homepage-tools-section,
  .featured-section,
  .photo-section,
  .blog-preview-section,
  .about-section,
  .friends-section,
  .note-card,
  .chat-card {
    padding: 1.15rem !important;
    border-radius: 24px !important;
  }
  .featured-player { min-height: 310px; }
  .social-rail { transform: scale(0.88); transform-origin: right center; }
}

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