:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A090B;
  --bg-soft: #141116;
  --surface: #1A161C;
  --ink: #F7F2EC;
  --ink-soft: #C9BDB3;
  --ink-faint: #8A7F78;
  --maroon: #c42a56;
  --maroon-deep: #8e1a3a;
  --maroon-soft: rgba(196, 42, 86, 0.16);
  --maroon-line: rgba(196, 42, 86, 0.35);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --phone: #0a0809;
  --phone-meta: #100d10;
  --danger: #ff3b6b;
  --media-bg: #0a0809;
  --tabbar-from: rgba(10, 9, 11, 0.96);
  --tabbar-mid: rgba(10, 9, 11, 0.58);
  --tab-muted: rgba(255, 255, 255, 0.48);
  --tab-active: #ffffff;
  --chip-bg: rgba(255, 255, 255, 0.12);
  --chip-border: rgba(255, 255, 255, 0.22);
  --chip-ink: #ffffff;
  --chip-active-bg: #ffffff;
  --chip-active-ink: #1a1216;
  --input-bg: #141116;
  --card-media-bg: #1a161c;
  --theme-color: #0A090B;
  --tab-h: 4.1rem;
  --chrome-h: 7.85rem;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 1.75rem;
  --r-lg: 1.15rem;
  --r-md: 0.85rem;
  --r-sm: 0.55rem;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F4F5;
  --bg-soft: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #1A1216;
  --ink-soft: #5C5358;
  --ink-faint: #8A8086;
  --maroon: #c42a56;
  --maroon-deep: #8e1a3a;
  --maroon-soft: rgba(196, 42, 86, 0.12);
  --maroon-line: rgba(196, 42, 86, 0.28);
  --line: rgba(26, 18, 22, 0.1);
  --line-strong: rgba(26, 18, 22, 0.16);
  --shadow: 0 14px 40px rgba(26, 18, 22, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 18, 22, 0.12);
  --phone: #F6F4F5;
  --phone-meta: #EDEAEB;
  --danger: #e11d48;
  --media-bg: #0a0809;
  --tabbar-from: rgba(246, 244, 245, 0.97);
  --tabbar-mid: rgba(246, 244, 245, 0.72);
  --tab-muted: rgba(26, 18, 22, 0.42);
  --tab-active: #1A1216;
  --chip-bg: rgba(26, 18, 22, 0.06);
  --chip-border: rgba(26, 18, 22, 0.12);
  --chip-ink: #1A1216;
  --chip-active-bg: #1A1216;
  --chip-active-ink: #FFFFFF;
  --input-bg: #FFFFFF;
  --card-media-bg: #E8E4E6;
  --theme-color: #F6F4F5;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

#app { height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }
.view[hidden], .view-detail[hidden], .state-empty[hidden], .reels-loading[hidden], .overlay[hidden] {
  display: none !important;
}

.view-reels {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

/* Brand logo */
.wordmark {
  margin: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 3.55rem;
  width: auto;
  max-width: min(78vw, 18.5rem);
  object-fit: contain;
  object-position: left center;
  background: transparent;
  filter: none;
}

/* Floating chrome over the photo — no grey slab */
.top-chrome {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  pointer-events: none;
}
.top-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem 0.35rem;
  pointer-events: auto;
}
.top-actions { display: flex; gap: 0.4rem; }
.chrome-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
}
.chrome-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }
.chrome-btn:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; }
.chrome-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.22); }
.chrome-btn.has-filters {
  background: var(--maroon);
  border-color: rgba(255,255,255,0.35);
}
.chrome-btn.has-filters:hover { background: var(--maroon); filter: brightness(1.05); }
.chrome-btn svg { width: 1.05rem; height: 1.05rem; }
.top-chrome .chrome-btn svg { fill: #fff; }
.top-chrome .chrome-btn:not(.mute-btn):not(.theme-btn) svg {
  stroke: #fff; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.top-chrome .chrome-btn:not(.mute-btn):not(.theme-btn) svg path:not([fill]) { fill: none; }
.top-chrome .theme-btn { color: #fff; }
.top-chrome .theme-btn svg { stroke: #fff; fill: none; }

.mute-btn { position: relative; flex-shrink: 0; display: none; }
.mute-btn svg {
  position: absolute; inset: 0; margin: auto;
  width: 1.05rem !important; height: 1.05rem !important;
  fill: #fff !important; stroke: none !important; display: block;
}
.mute-btn .ico-vol-on { display: none; }
.mute-btn:not(.is-muted) .ico-vol-off { display: none; }
.mute-btn:not(.is-muted) .ico-vol-on { display: block; }

.theme-btn { position: relative; }
.theme-btn svg {
  position: absolute; inset: 0; margin: auto;
  width: 1.05rem; height: 1.05rem;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-btn .ico-sun,
.theme-btn .ico-moon { display: block; }
html[data-theme="dark"] .theme-btn .ico-moon { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: none; }
.view-detail .theme-btn,
.panel-head .theme-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.view-detail .theme-btn svg,
.panel-head .theme-btn svg {
  stroke: var(--ink);
  fill: none;
}
.panel-head-copy { min-width: 0; flex: 1; }
.detail-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.chip-scroll {
  display: flex; gap: 0.4rem; padding: 0 1rem 0.95rem;
  overflow-x: auto; scrollbar-width: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease);
}
.chip:hover { background: rgba(255,255,255,0.14); }
.chip:active { transform: scale(0.97); }
.chip.is-active {
  background: rgba(247, 242, 236, 0.96);
  color: #1a1216;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.reels-loading {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; text-align: center; gap: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem; font-weight: 500;
  background: #000;
}
.spinner {
  width: 1.85rem; height: 1.85rem; margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reels-feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: #000;
  touch-action: pan-y;
}
.reels-feed::-webkit-scrollbar { display: none; }

.reel {
  height: var(--reel-h, 100dvh);
  min-height: var(--reel-h, 100dvh);
  max-height: var(--reel-h, 100dvh);
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  touch-action: pan-y;
  flex: none;
}

/* Immersive full-bleed picture reel */
.pic-reel {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.pic-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}
.pic-stage .film-grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainShift 0.45s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}
.pic-stage .reel-media-wrap {
  position: absolute;
  inset: 0;
}
.pic-stage .reel-stage {
  position: absolute;
  inset: 0;
}
.pic-stage .reel-media.tour-poster-hold {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: none;
  transform: none;
}
.pic-stage .reel-media.tour-poster-hold + video.reel-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pic-stage .reel-media.kb-animate {
  animation: kenburns 3.6s var(--ease) forwards;
}
.pic-stage .reel-media.is-landscape,
.reel-stage .reel-media.is-landscape {
  object-fit: cover;
  object-position: center center;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 1;
  box-shadow: none;
  animation: landscapeIn 0.45s var(--ease-out) both;
}
.pic-stage .reel-media.is-landscape.kb-animate,
.reel-stage .reel-media.is-landscape.kb-animate,
.pic-stage .reel-media.is-landscape.scene-cut,
.reel-stage .reel-media.is-landscape.scene-cut {
  animation: landscapeIn 0.45s var(--ease-out) both;
}
.reel-stage.is-landscape,
.pic-stage .reel-stage.is-landscape {
  background: #050405;
}
.reel-media-bg {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  object-fit: cover;
  filter: blur(40px) saturate(1.2) brightness(0.42);
  transform: scale(1.25);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@keyframes landscapeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cinematicIn {
  from { transform: scale(1.06); }
  to { transform: scale(1.04); }
}
.pic-stage .rail {
  position: absolute;
  right: 0.55rem;
  bottom: calc(var(--tab-h) + 7.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}
.pic-stage .rail-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
  transition: transform 0.18s var(--ease-out);
}
.pic-stage .rail-btn:active { transform: scale(0.88); }
.pic-stage .rail-btn svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}
.pic-stage .rail-btn.share-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.pic-stage .rail-btn.like-btn.is-liked {
  color: #ff2d55;
}
.pic-stage .rail-btn.like-btn.is-liked svg {
  fill: #ff2d55;
  transform: scale(1.06);
}
.pic-stage .rail-btn.save-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linejoin: round;
}
.pic-stage .rail-btn.save-btn.is-saved {
  color: #ffcc33;
}
.pic-stage .rail-btn.save-btn.is-saved svg {
  fill: #ffcc33;
  stroke: #ffcc33;
  transform: scale(1.06);
}
.pic-stage .reel-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 5rem 4.4rem calc(var(--tab-h) + 1.1rem + env(safe-area-inset-bottom, 0px)) 1.15rem;
  background:
    linear-gradient(to top, rgba(10,9,11,0.96) 0%, rgba(10,9,11,0.62) 42%, rgba(10,9,11,0.12) 72%, transparent 100%);
  color: #fff;
}
.pic-stage .reel-price {
  font-family: var(--display);
  font-size: 1.55rem; font-weight: 500; color: #fff;
  margin: 0 0 0.15rem; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.pic-stage .reel-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.pic-stage .reel-hook {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(247,242,236,0.82);
  font-weight: 400;
}
.pic-stage .reel-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
  padding: 0.6rem 1.05rem; border-radius: 999px;
  background: rgba(247,242,236,0.96); color: #1a1216;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.pic-stage .reel-cta:hover { background: #fff; }
.pic-stage .reel-cta:active { transform: scale(0.97); }
.pic-stage .reel-cta svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }
.pic-stage .like-burst {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}
.pic-stage .story-bars {
  top: calc(env(safe-area-inset-top, 0px) + var(--chrome-h) + 0.35rem);
  left: 0.85rem;
  right: 0.85rem;
}
.pic-stage .scene-label {
  top: calc(env(safe-area-inset-top, 0px) + var(--chrome-h) + 1rem);
  left: 1rem;
  bottom: auto;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}
.pic-stage .reel-vignette {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 28%, transparent 58%, rgba(0,0,0,0.25) 100%);
}

/* Legacy phone frame kept for any leftover refs */
.phone-shell {
  width: min(100%, 360px);
  filter: drop-shadow(0 18px 48px rgba(26, 18, 20, 0.18));
}
.phone-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - var(--chrome-h) - var(--tab-h) - 1.6rem);
  padding: 2.15rem 0.7rem 1.05rem;
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--phone);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-bezel { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }
.phone-notch {
  position: absolute; top: 0.6rem; left: 50%; z-index: 25;
  width: 24%; height: 0.26rem; margin-left: -12%;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  pointer-events: none;
}
.phone-home-bar {
  position: absolute; bottom: 0.42rem; left: 50%; z-index: 25;
  width: 28%; height: 0.22rem; margin-left: -14%;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  pointer-events: none;
}

.viewport-16x9 {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background:
    var(--poster, none) center / cover no-repeat,
    #0d0b0c;
}
.phone-meta {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 0.65rem;
  padding-bottom: 0.15rem;
  color: #fff;
}
.phone-meta-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.reel-media-wrap { width: 100%; height: 100%; position: relative; overflow: hidden; }
.reel-stage { position: absolute; inset: 0; overflow: hidden; background: #0d0b0c; }
.reel-stage .reel-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center center;
  transform: translateZ(0);
  z-index: 1;
}
.reel-stage .reel-media.is-landscape {
  object-fit: cover;
  object-position: center center;
  transform: none;
}
.reel-stage .reel-media.is-broken { opacity: 0; background: #1a1418; }
.scene-cut { animation: sceneIn 0.2s var(--ease-out) forwards; }
.reel-stage .reel-media.kb-animate { animation: kenburns 2.2s var(--ease) forwards; }
.reel-stage .reel-media.is-landscape.kb-animate,
.reel-stage .reel-media.is-landscape.scene-cut {
  animation: landscapeIn 0.45s var(--ease-out) both;
}
@keyframes sceneIn {
  from { opacity: 0.55; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07) translate(-1%, -0.6%); }
}

.reel-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 35%, rgba(0,0,0,0.12) 100%);
}

.story-bars {
  position: absolute; top: 0.45rem; left: 0.45rem; right: 0.45rem; z-index: 10;
  display: flex; gap: 3px;
}
.story-seg {
  flex: 1; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,0.32); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.story-seg i {
  display: block; height: 100%; width: 0%;
  background: #fff; border-radius: 2px;
  will-change: width;
}
.story-seg.done i { width: 100%; }
.story-seg.active i { background: #fff; }
.scene-label {
  position: absolute; left: 0.45rem; bottom: 0.45rem; z-index: 12;
  padding: 0.25rem 0.55rem; border-radius: 999px;
  font-size: 0.65rem; font-weight: 600;
  background: rgba(20,16,20,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.reel-tour-badge {
  position: absolute; top: 0.45rem; right: 0.45rem; z-index: 11;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: #fff; color: var(--maroon);
}

.rail {
  position: absolute; right: 0; bottom: 0; z-index: 12;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
}
.rail-btn {
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: rgba(12,10,12,0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center;
  color: #fff;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.rail-btn:active { transform: scale(0.9); }
.rail-btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.rail-btn.share-btn svg { fill: none; stroke: currentColor; }
.rail-btn.is-liked { color: var(--danger); }
.rail-btn.is-liked svg { fill: currentColor; }
.rail-btn.save-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linejoin: round;
}
.rail-btn.save-btn.is-saved {
  color: #ffcc33;
}
.rail-btn.save-btn.is-saved svg {
  fill: currentColor;
  stroke: currentColor;
}

.reel-foot {
  position: relative; flex: 1;
  padding: 0 3.4rem 0 0.1rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.reel-price {
  font-family: var(--display);
  font-size: 1.45rem; font-weight: 600; color: #fff;
  margin: 0 0 0.1rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.reel-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.reel-hook {
  font-size: 0.72rem; line-height: 1.4; color: rgba(255,255,255,0.78);
  margin: 0 0 0.4rem;
}
.reel-pills { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-bottom: 0.35rem; }
.pill-tag {
  padding: 0.18rem 0.5rem; border-radius: 999px;
  font-size: 0.58rem; font-weight: 560; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
.pill-hot { background: rgba(255,255,255,0.95); color: var(--maroon); border-color: transparent; }
.reel-caption {
  font-size: 0.72rem; line-height: 1.4; color: rgba(255,255,255,0.78);
  margin: 0 0 0.55rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reel-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  align-self: flex-start;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: #fff; color: var(--maroon);
  font-size: 0.72rem; font-weight: 650;
  transition: transform 0.2s var(--ease-out);
}
.reel-cta:active { transform: scale(0.97); }
.reel-cta svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }

.like-burst {
  position: absolute; left: 50%; top: 36%; z-index: 20;
  width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem;
  pointer-events: none; opacity: 0;
}
.like-burst svg { width: 100%; height: 100%; fill: var(--danger); }
.like-burst.show { animation: burst 0.65s var(--ease-out) forwards; }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.2); }
  40% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.2); }
}

.state-empty {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; text-align: center; gap: 1rem;
  color: var(--ink-soft); padding: 2rem;
  font-size: 0.95rem; font-weight: 500;
  background: var(--bg);
}
.panel-empty { position: static; min-height: 40vh; }

/* Tab bar */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(2, 1fr);
  align-items: end;
  min-height: var(--tab-h);
  padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--tabbar-from) 0%, var(--tabbar-mid) 65%, transparent 100%);
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.35rem; color: var(--tab-muted);
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  min-height: 44px;
  transition: color 0.2s;
}
.tab:focus-visible { outline: 2px solid var(--maroon); outline-offset: 2px; border-radius: 8px; }
.tab svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.tab.is-active { color: var(--tab-active); }
.tab.is-active span { color: var(--tab-active); }

/* Over photo feed, keep dark chrome even in light theme */
html[data-theme="light"][data-view="reels"] {
  --tabbar-from: rgba(10, 9, 11, 0.96);
  --tabbar-mid: rgba(10, 9, 11, 0.58);
  --tab-muted: rgba(255, 255, 255, 0.48);
  --tab-active: #ffffff;
}

/* Panels */
.view-panel {
  position: absolute; inset: 0; overflow-y: auto;
  background: var(--bg);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.25rem 1rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.panel-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 36rem;
}

/* Cards (saved) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.1rem calc(var(--tab-h) + 1.25rem);
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1.15rem 1.35rem calc(var(--tab-h) + 1.5rem);
  }
}
@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 72rem;
  }
}

.card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(26,18,20,0.04);
  cursor: pointer;
  min-width: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card:active { transform: scale(0.985); }
.card-media { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--card-media-bg); }
@media (min-width: 768px) {
  .card-media { aspect-ratio: 3 / 4; }
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  font-size: 0.6rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.92); color: var(--ink);
}
.card-video {
  left: auto; right: 0.5rem;
  background: var(--maroon); color: #fff;
}
.card-body { padding: 0.75rem 0.8rem 0.85rem; }
.card-price {
  font-size: 0.95rem; font-weight: 700; color: var(--maroon);
  margin: 0 0 0.15rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.card-title { font-family: var(--display); font-size: 0.85rem; font-weight: 700; margin: 0 0 0.2rem; line-height: 1.3; color: var(--ink); }
.card-meta { font-size: 0.68rem; color: var(--ink-soft); font-weight: 450; }

/* Detail */
.view-detail {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column;
}
.detail-bar {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.85rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.view-detail .chrome-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.view-detail .chrome-btn svg,
.view-detail .chrome-btn:not(.mute-btn):not(.theme-btn) svg,
.panel-head .chrome-btn svg,
.panel-head .chrome-btn:not(.mute-btn):not(.theme-btn) svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ink);
}
.view-detail .chrome-btn:active { background: var(--bg-soft); transform: scale(0.94); }
.detail-bar-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.detail-hero {
  position: relative;
  width: 100%;
  height: min(48vh, 380px);
  max-height: 48vh;
  background: var(--media-bg);
  overflow: hidden;
  flex-shrink: 0;
}
.detail-hero img, .detail-hero video, .detail-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  background: var(--media-bg);
}
.detail-hero-video {
  z-index: 1;
  object-fit: cover;
}
.detail-hero-poster {
  z-index: 2;
  pointer-events: none;
  object-fit: cover;
}
.detail-hero-video.is-playing {
  z-index: 3;
}
.detail-tour-loading {
  z-index: 4;
}
.detail-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.detail-play[hidden] { display: none !important; }
.detail-play svg { width: 1.05rem; height: 1.05rem; fill: #fff; }
.detail-play:active { transform: translate(-50%, -50%) scale(0.96); }
.detail-youtube { display: block; background: #000; }

.pic-stage .reel-youtube,
.reel-stage .reel-youtube {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 7;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.yt-play svg { width: 1.05rem; height: 1.05rem; fill: #fff; }
.yt-play:active { transform: translate(-50%, -50%) scale(0.96); }
.tour-loading {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.tour-loading span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: tourspin 0.7s linear infinite;
}
@keyframes tourspin { to { transform: rotate(360deg); } }
.detail-no-media { height: 100%; display: grid; place-items: center; color: var(--ink-faint); }
.detail-thumbs {
  display: flex; gap: 0.45rem; padding: 0.55rem 1rem 0.35rem; overflow-x: auto;
  scrollbar-width: none; background: var(--bg);
}
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
  flex-shrink: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden;
  position: relative; cursor: pointer; opacity: 0.55;
  border: 2px solid transparent; background: var(--media-bg); width: 88px;
  transition: opacity 0.2s, border-color 0.2s;
}
.detail-thumb img { width: 88px; height: 58px; object-fit: cover; display: block; }
.detail-thumb .thumb-cap { display: none; }
.detail-thumb.active { opacity: 1; border-color: var(--maroon); }
.thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.25); pointer-events: none;
}
.thumb-play svg { width: 1.15rem; height: 1.15rem; fill: #fff; }
.detail-body { padding: 0.35rem 1.15rem 1rem; }
.detail-body h1 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.detail-price {
  font-family: var(--display);
  font-size: 1.55rem; font-weight: 600; color: var(--maroon);
  margin: 0 0 0.35rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.detail-price.is-enquire {
  font-size: 1.25rem;
  letter-spacing: 0;
}
.detail-hook {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.45;
}
.detail-meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1rem; font-weight: 450; }
.detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem;
  padding: 0.9rem 0; margin-bottom: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-stats div { text-align: center; }
.detail-stats strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.detail-stats span {
  font-size: 0.6rem; color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 560;
}
.detail-desc { line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap; font-size: 0.95rem; }

.brochure-block { margin: 1.15rem 0 0.35rem; }
.brochure-block h3 {
  margin: 0 0 0.65rem; font-family: var(--display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.brochure-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  margin-bottom: 1rem;
}
.brochure-fact {
  padding: 0.75rem 0.8rem; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.brochure-fact span {
  display: block; font-size: 0.58rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 0.2rem;
}
.brochure-fact strong {
  display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.25;
}
.brochure-section {
  margin: 0 0 0.85rem; padding: 0.85rem 0.9rem;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.brochure-section h4 {
  margin: 0 0 0.45rem; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--maroon);
}
.brochure-section ul {
  margin: 0; padding: 0 0 0 1.05rem; color: var(--ink-soft);
  font-size: 0.9rem; line-height: 1.55;
}
.brochure-section li { margin: 0.2rem 0; }
.brochure-map { margin: 0.35rem 0 0; }
.brochure-map a {
  color: var(--maroon); font-weight: 700; font-size: 0.92rem;
  text-decoration: underline; text-underline-offset: 0.15em;
}

.insights-panel { margin: 1.1rem 0; }
.insights-panel h3 { margin: 0 0 0.65rem; font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.insight-card {
  padding: 0.8rem 0.85rem; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.insight-card span {
  display: block; font-size: 0.6rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-weight: 560;
}
.insight-card strong { font-size: 0.9rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.insight-card strong.good { color: #15803d; }
.insight-card strong.warn { color: var(--maroon); }

.detail-contact {
  padding: 0.25rem 1.15rem 0.35rem;
  display: grid;
  gap: 0.55rem;
}
.detail-contact-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.4;
}
.inquiry-form { padding: 0.85rem 1.15rem 1.5rem; display: grid; gap: 0.6rem; }
.inquiry-form h3 {
  margin: 0 0 0.15rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  min-height: 48px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s, background 0.2s, box-shadow 0.2s;
}
.cta-primary:active, .cta-secondary:active { transform: scale(0.98); opacity: 0.92; }
.cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid var(--maroon); outline-offset: 2px;
}
.cta-primary.full, .cta-secondary.full { width: 100%; }
.cta-primary {
  background: var(--maroon); color: #fff;
  box-shadow: 0 8px 22px rgba(138, 21, 54, 0.35);
}
.cta-primary:hover { background: var(--maroon-deep); }
.cta-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.cta-secondary:hover { border-color: var(--maroon-line); color: var(--maroon); }

.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26, 18, 20, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; align-items: end;
}
.overlay[hidden] { display: none; }
.sheet {
  background: var(--bg-soft);
  border-radius: 1.35rem 1.35rem 0 0;
  padding: 1.25rem 1.15rem 1.5rem;
  border-top: 1px solid var(--line);
  max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.35s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.sheet-x { font-size: 1.5rem; color: var(--ink-faint); width: 2.2rem; height: 2.2rem; line-height: 1; }

.sheet-form { display: grid; gap: 0.6rem; }
.sheet-form input, .sheet-form select, .sheet-form textarea,
.inquiry-form input, .inquiry-form textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); outline: none; color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sheet-form input:focus, .inquiry-form input:focus, .inquiry-form textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-soft);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.triple { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 0.5rem; }
.upload-label { font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.upload-label input { margin-top: 0.35rem; font-size: 0.75rem; }

.dialog { border: none; padding: 0; background: transparent; max-width: none; }
.dialog::backdrop {
  background: rgba(26, 18, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dialog-inner {
  width: min(400px, calc(100vw - 2rem)); margin: auto;
  background: var(--bg-soft); border-radius: 1.25rem;
  padding: 1.4rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.dialog-inner.wide { width: min(520px, calc(100vw - 2rem)); }
.dialog-brand {
  margin: 0 0 0.45rem;
  line-height: 0;
}
.dialog-logo {
  height: 3.35rem;
  max-width: 17rem;
}
.dialog-sub { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.9rem; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin: 1rem 0 0.75rem; }
.seg-tab {
  padding: 0.6rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem;
  background: var(--bg); color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.seg-tab.is-active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.form-msg { font-size: 0.85rem; margin: 0.5rem 0 0; font-weight: 500; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: var(--danger); }
.hint { font-size: 0.8rem; color: var(--ink-soft); }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--maroon); outline-offset: 2px;
}

@media (max-width: 380px) {
  .triple, .pair { grid-template-columns: 1fr; }
}

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