/* Visual Guide detail — cinema carousel + glass meta rail (v1.2.2.5) */

.vg-detail-shell {
  background: linear-gradient(180deg, #06070c 0%, #0f172a 38%, #f1f5f9 38%, #f8fafc 100%);
  min-height: 100vh;
  padding-top: clamp(5rem, 11vw, 6.5rem);
  padding-bottom: 4rem;
}

.vg-detail-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 1.5rem;
}

.vg-detail-eyebrow {
  font-family: var(--ff-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.65rem;
}

.vg-detail-title {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(1.55rem, 4.5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 0.65rem;
  max-width: 22ch;
}

.vg-detail-desc {
  margin: 0;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 56ch;
}

.visual-guide-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.carousel-master-wrapper {
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vg-progress-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 100;
}

#carousel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  width: 0%;
  transition: width 0.2s ease;
}

#carousel-deck {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  background: #050508;
}

#carousel-deck::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050508;
  aspect-ratio: 1 / 1;
  max-height: min(78vh, 920px);
}

.carousel-slide__skeleton {
  position: absolute;
  color: #333;
  z-index: 0;
  opacity: 0.45;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 920px);
  object-fit: contain;
  z-index: 10;
  opacity: 0;
  transform: scale(0.985);
  filter: blur(3px);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
  user-select: none;
  pointer-events: none;
}

.carousel-slide.active img,
.carousel-slide img.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
  border: none;
  background: none;
  padding: 0;
}

#carousel-prev { left: 18px; opacity: 0; pointer-events: none; }
#carousel-next { right: 18px; }

.carousel-master-wrapper:hover #carousel-prev,
.carousel-master-wrapper:focus-within #carousel-prev {
  opacity: 1;
  pointer-events: auto;
}

.carousel-nav-btn__inner {
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav-btn:hover .carousel-nav-btn__inner {
  background: #6366f1;
  transform: scale(1.06);
}

.slide-counter-wrapper {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.slide-counter-inner {
  background: rgba(8, 10, 18, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vg-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 0.55rem;
  z-index: 105;
}

.vg-control-btn {
  background: rgba(8, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  padding: 0.5rem 0.9rem;
  backdrop-filter: blur(10px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vg-thumb-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 0.15rem 0.25rem;
  scrollbar-width: thin;
}

.vg-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  background: #111;
}

.vg-thumb.is-active {
  border-color: #6366f1;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.vg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vg-metadata {
  margin-top: 1.75rem;
}

.vg-metadata__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .vg-metadata__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
  }
}

.vg-action-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.meta-sidebar-sticky {
  position: sticky;
  top: calc(5.5rem + 12px);
}

.vg-meta-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.vg-meta-card h3 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6366f1;
  margin: 0 0 1rem;
  font-weight: 900;
}

.vg-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.vg-meta-row:last-child { border-bottom: none; }

.vg-meta-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}

.meta-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.meta-value {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .vg-detail-title { max-width: none; }
  .carousel-nav-btn__inner { width: 44px; height: 44px; }
  #carousel-prev { left: 10px; }
  #carousel-next { right: 10px; }
  #carousel-autoplay .vg-autoplay-label { display: none; }
  .action-btn-group { flex-direction: column; }
  .luxury-btn { width: 100%; justify-content: center; }
  .meta-sidebar-sticky { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide img { transition: none; filter: none; opacity: 1; transform: none; }
  #carousel-deck { scroll-behavior: auto; }
}
