/* ==========================================================================
   COMPONENTS: HEADER, NAV, AUDIO CONTROLLER, PROGRESS, BADGES, FOOTER
   ========================================================================== */

/* --------------------------------------------------------------------------
   SITE HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-medium), padding var(--transition-medium), backdrop-filter var(--transition-medium);
}

.site-header.scrolled {
  background-color: rgba(23, 26, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 2.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-natural-fiber);
}

.brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rice-gold);
  font-weight: 400;
  display: none;
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline-block;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 450;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(233, 223, 201, 0.75);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-rice-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-rice-gold);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   AMBIENT SOUND ENGINE TOGGLE
   -------------------------------------------------------------------------- */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  background-color: rgba(233, 223, 201, 0.06);
  border: 1px solid var(--color-border-subtle);
  border-radius: 2px;
  color: var(--color-natural-fiber);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  background-color: rgba(233, 223, 201, 0.12);
  border-color: var(--color-rice-gold);
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-wave-bar {
  width: 2px;
  height: 4px;
  background-color: var(--color-natural-fiber);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-toggle-btn.playing .sound-wave-bar:nth-child(1) {
  animation: soundBar 0.8s ease-in-out infinite alternate;
  background-color: var(--color-rice-gold);
}

.sound-toggle-btn.playing .sound-wave-bar:nth-child(2) {
  animation: soundBar 1.2s ease-in-out infinite alternate 0.2s;
  background-color: var(--color-rice-gold);
}

.sound-toggle-btn.playing .sound-wave-bar:nth-child(3) {
  animation: soundBar 0.6s ease-in-out infinite alternate 0.4s;
  background-color: var(--color-rice-gold);
}

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-natural-fiber);
  transition: transform var(--transition-fast);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--color-deep-night);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
  transform: translateY(-100%);
  transition: transform var(--transition-medium);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-nav-links .nav-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   SIDE CHAPTER PROGRESS INDICATOR (VERTICAL SPINE)
   -------------------------------------------------------------------------- */
.chapter-tracker {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

@media (min-width: 1200px) {
  .chapter-tracker {
    display: flex;
  }
}

.chapter-track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(233, 223, 201, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0;
}

.chapter-track-name {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  font-weight: 500;
}

.chapter-track-pip {
  width: 24px;
  height: 1px;
  background-color: rgba(233, 223, 201, 0.3);
  transition: width var(--transition-medium), background-color var(--transition-fast);
}

.chapter-track-item:hover,
.chapter-track-item.active {
  color: var(--color-rice-gold);
}

.chapter-track-item:hover .chapter-track-name,
.chapter-track-item.active .chapter-track-name {
  opacity: 1;
  transform: translateX(0);
}

.chapter-track-item.active .chapter-track-pip {
  width: 48px;
  background-color: var(--color-rice-gold);
  height: 2px;
}

/* --------------------------------------------------------------------------
   ETHICAL & VERIFICATION STATUS BADGES
   -------------------------------------------------------------------------- */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  width: fit-content;
}

.badge-verified {
  background-color: var(--color-badge-verified-bg);
  color: var(--color-badge-verified-text);
  border: 1px solid rgba(163, 199, 175, 0.3);
}

.badge-pending {
  background-color: var(--color-badge-pending-bg);
  color: var(--color-badge-pending-text);
  border: 1px solid rgba(201, 154, 61, 0.3);
}

.badge-field {
  background-color: var(--color-badge-field-bg);
  color: var(--color-badge-field-text);
  border: 1px solid rgba(224, 133, 110, 0.3);
}

/* --------------------------------------------------------------------------
   EDITORIAL PLACEHOLDER FOR PENDING MEDIA
   -------------------------------------------------------------------------- */
.editorial-placeholder {
  background-color: rgba(49, 72, 58, 0.15);
  border: 1px dashed rgba(233, 223, 201, 0.25);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  min-height: 280px;
}

.editorial-placeholder .icon-symbol {
  width: 32px;
  height: 32px;
  color: var(--color-rice-gold);
  opacity: 0.6;
}

.editorial-placeholder p {
  font-size: 0.875rem;
  color: rgba(233, 223, 201, 0.7);
  max-width: 36ch;
}

/* --------------------------------------------------------------------------
   FOOTER (EDITORIAL & DIGNIFIED)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-deep-night);
  border-top: 1px solid var(--color-border-subtle);
  padding: 5rem var(--gutter) 3rem;
  color: rgba(233, 223, 201, 0.75);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col-main .footer-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-natural-fiber);
  margin-bottom: 0.75rem;
}

.footer-col-main p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted-stone);
  max-width: 44ch;
}

.footer-col h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rice-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(233, 223, 201, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-rice-gold);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(233, 223, 201, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted-stone);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   TOP EXHIBITION SCROLL PROGRESS BAR & FILM GRAIN TEXTURE
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-earth-red) 0%, var(--color-rice-gold) 65%, #fff3d1 100%);
  z-index: 2500;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(201, 154, 61, 0.5);
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   FLOATING AMBIENT SOUNDSCAPE MINI-DOCK
   -------------------------------------------------------------------------- */
.ambient-sound-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1500;
  background: rgba(15, 18, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 154, 61, 0.35);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  transform: translateY(130%);
  opacity: 0;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  max-width: calc(100vw - 3rem);
}

.ambient-sound-dock.visible {
  transform: translateY(0);
  opacity: 1;
}

.dock-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-earth-red);
  border: 1px solid var(--color-rice-gold);
  color: var(--color-natural-fiber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.dock-play-btn:hover {
  transform: scale(1.08);
  background: #b54f35;
}

.dock-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dock-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-rice-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dock-track-select {
  background: transparent;
  border: none;
  color: var(--color-natural-fiber);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  padding: 0;
  text-overflow: ellipsis;
}

.dock-track-select option {
  background: #171A16;
  color: #E9DFC9;
}

.dock-close-btn {
  background: none;
  border: none;
  color: var(--color-muted-stone);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.dock-close-btn:hover {
  color: var(--color-natural-fiber);
}

/* --------------------------------------------------------------------------
   RESPONSIVE FLEX / GRID HELPERS (FIXING INLINE BREAKPOINTS)
   -------------------------------------------------------------------------- */
.editorial-split-detail {
  background: rgba(15, 18, 14, 0.92);
  border-left: 3px solid var(--color-rice-gold);
  padding: 2rem;
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .editorial-split-detail {
    grid-template-columns: 1.25fr 1fr;
  }
}

.responsive-banner-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .responsive-banner-flex {
    flex-direction: row;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   AI CLAYMATION CINEMA & 15-SCENE STORYBOARD THEATER
   -------------------------------------------------------------------------- */
.cinema-theater-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 8, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 2rem);
  overflow-y: auto;
}

.cinema-theater-modal.open {
  display: flex;
}

.cinema-theater-shell {
  width: 100%;
  max-width: 1340px;
  background: #121511;
  border: 1px solid rgba(201, 154, 61, 0.35);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
}

.cinema-theater-topbar {
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(153, 69, 46, 0.25) 0%, rgba(23, 26, 22, 0.95) 100%);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cinema-version-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cinema-ver-btn {
  background: rgba(233, 223, 201, 0.06);
  border: 1px solid rgba(233, 223, 201, 0.18);
  color: rgba(233, 223, 201, 0.85);
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.cinema-ver-btn:hover {
  border-color: var(--color-rice-gold);
  color: #fff;
}

.cinema-ver-btn.active {
  background: var(--color-earth-red);
  border-color: var(--color-rice-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(153, 69, 46, 0.45);
}

.cinema-theater-body {
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .cinema-theater-body {
    grid-template-columns: 1.55fr 1fr;
    overflow: hidden;
  }
}

.cinema-stage-col {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #0a0c09;
  border-right: 1px solid var(--color-border-subtle);
  overflow-y: auto;
}

.cinema-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 154, 61, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.cinema-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cinema-live-caption {
  background: rgba(23, 26, 22, 0.92);
  border-left: 3px solid var(--color-rice-gold);
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cinema-caption-scene-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-rice-gold);
  font-weight: 600;
}

.cinema-caption-voiceover {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-natural-fiber);
  line-height: 1.45;
}

.cinema-caption-meta {
  font-size: 0.78rem;
  color: var(--color-muted-stone);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cinema-storyboard-col {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #121511;
  max-height: 75vh;
  overflow-y: auto;
}

.storyboard-card {
  background: rgba(23, 28, 22, 0.75);
  border: 1px solid rgba(233, 223, 201, 0.12);
  padding: 0.85rem;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-items: center;
}

.storyboard-card:hover {
  border-color: rgba(201, 154, 61, 0.45);
  background: rgba(32, 39, 31, 0.9);
  transform: translateX(3px);
}

.storyboard-card.active {
  background: rgba(153, 69, 46, 0.24);
  border-color: var(--color-rice-gold);
  border-left: 3px solid var(--color-rice-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.storyboard-thumb {
  width: 92px;
  height: 62px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid rgba(233, 223, 201, 0.15);
}

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

.storyboard-time-pill {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--color-rice-gold);
  font-size: 0.62rem;
  font-family: monospace;
  padding: 1px 4px;
  border-radius: 2px;
}

.storyboard-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.storyboard-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-natural-fiber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storyboard-sub {
  font-size: 0.78rem;
  color: rgba(233, 223, 201, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}


/* ==========================================================================
   PINNED SCROLLYTELLING STAGE (CHAPTER 03 — THEO DẤU HẠT LÚA)
   ========================================================================== */
.scrolly-pinned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}

@media (min-width: 1024px) {
  .scrolly-pinned-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
  }
}

.scrolly-sticky-stage {
  position: relative;
  background: #0d100c;
  border: 1px solid rgba(201, 154, 61, 0.32);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1024px) {
  .scrolly-sticky-stage {
    position: sticky;
    top: 6.2rem;
  }
}

.scrolly-stage-progress {
  height: 3px;
  width: 100%;
  background: rgba(233, 223, 201, 0.12);
}

.scrolly-stage-progress-fill {
  height: 100%;
  width: 33.3%;
  background: linear-gradient(90deg, var(--color-earth-red), var(--color-rice-gold));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-visual-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080a08;
}

.scrolly-visual-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.scrolly-visual-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scrolly-stage-overlay-bar {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 18, 14, 0.96);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scrolly-steps-column {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.scrolly-step-card {
  background: rgba(18, 22, 17, 0.72);
  border: 1px solid rgba(233, 223, 201, 0.14);
  border-left: 3px solid rgba(201, 154, 61, 0.3);
  padding: 2rem 1.85rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.scrolly-step-card:hover,
.scrolly-step-card.active {
  background: rgba(25, 31, 24, 0.96);
  border-color: rgba(201, 154, 61, 0.45);
  border-left: 4px solid var(--color-rice-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transform: translateX(4px);
}

/* ==========================================================================
   CHƠ RO REELS — 9:16 DISCOVERY SHELF & TIKTOK FULLSCREEN SNAP VIEWER
   ========================================================================== */
.reels-discovery-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border-subtle);
}

.reels-shelf-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.25rem;
  scrollbar-width: thin;
}

.reel-shelf-card {
  position: relative;
  flex: 0 0 245px;
  width: 245px;
  height: 435px;
  aspect-ratio: 9 / 16;
  background: #0a0c09;
  border: 1px solid rgba(201, 154, 61, 0.28);
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.reel-shelf-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-rice-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.reel-shelf-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.reel-shelf-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-rice-gold);
  transition: width 0.15s linear;
}

.reel-shelf-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-shelf-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(8, 10, 8, 0.95) 100%
  );
  z-index: 2;
}

.reel-shelf-topbar {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.reel-shelf-badge {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
}

.reel-shelf-badge.is-field {
  background: rgba(49, 72, 58, 0.92);
  color: #d7f3e0;
  border: 1px solid rgba(163, 199, 175, 0.4);
}

.reel-shelf-badge.is-clay {
  background: rgba(153, 69, 46, 0.92);
  color: #fff;
  border: 1px solid rgba(201, 154, 61, 0.5);
}

.reel-shelf-play-pill {
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-rice-gold);
  font-size: 0.65rem;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  font-weight: 600;
}

.reel-shelf-bottom {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reel-shelf-vocab-pill {
  background: rgba(201, 154, 61, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 154, 61, 0.5);
  color: var(--color-warm-ivory);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  transition: background 0.2s ease;
}

.reel-shelf-vocab-pill:hover {
  background: var(--color-earth-red);
}

.reel-shelf-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.reel-shelf-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(233, 223, 201, 0.72);
}

/* Fullscreen TikTok Vertical Snap Modal */
.tiktok-reels-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  background: rgba(6, 8, 6, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 3200;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.tiktok-reels-modal.open {
  display: flex;
}

.tiktok-modal-topbar {
  padding: 0.85rem 1.5rem;
  background: rgba(15, 18, 14, 0.95);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.tiktok-nav-pill {
  background: rgba(233, 223, 201, 0.08);
  border: 1px solid rgba(233, 223, 201, 0.22);
  color: var(--color-natural-fiber);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
}

.tiktok-nav-pill:hover {
  border-color: var(--color-rice-gold);
  color: var(--color-rice-gold);
}

.tiktok-vertical-feed {
  flex: 1;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.tiktok-slide {
  width: 100%;
  height: calc(100vh - 64px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.tiktok-phone-frame {
  position: relative;
  height: 100%;
  max-height: 820px;
  aspect-ratio: 9 / 16;
  max-width: 94vw;
  background: #000;
  border: 1px solid rgba(201, 154, 61, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
}

.tiktok-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 8;
}

.tiktok-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-earth-red), var(--color-rice-gold));
}

.tiktok-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.tiktok-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 25%,
    transparent 55%,
    rgba(8, 10, 8, 0.94) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.tiktok-frame-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.tiktok-frame-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1rem;
  right: 4.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tiktok-vocab-chip {
  background: rgba(201, 154, 61, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-rice-gold);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease;
}

.tiktok-vocab-chip:hover {
  background: var(--color-earth-red);
}

.tiktok-slide-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.tiktok-slide-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: rgba(233, 223, 201, 0.88);
  margin: 0;
}

.tiktok-action-rail {
  position: absolute;
  bottom: 1.5rem;
  right: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: center;
}

.tiktok-rail-btn {
  background: rgba(15, 18, 14, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 223, 201, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tiktok-rail-btn:hover,
.tiktok-rail-btn.liked {
  background: var(--color-earth-red);
  border-color: var(--color-rice-gold);
  transform: scale(1.08);
}

.rail-icon {
  font-size: 1rem;
  line-height: 1;
}

.rail-label {
  font-size: 0.58rem;
  margin-top: 2px;
  color: var(--color-natural-fiber);
}

/* Header Reels Quick Launch Button */
.reels-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(153, 69, 46, 0.28);
  border: 1px solid rgba(201, 154, 61, 0.5);
  border-radius: 2px;
  color: var(--color-warm-ivory);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.reels-launch-btn:hover {
  background: var(--color-earth-red);
  border-color: var(--color-rice-gold);
  transform: translateY(-1px);
}

/* Desktop Interactive Context Cursor Pill */
.museum-cursor-pill {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  background: rgba(153, 69, 46, 0.94);
  border: 1px solid var(--color-rice-gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.museum-cursor-pill.active {
  opacity: 1;
}
