/* =========================================================
   Danced Stories – Movie page (Anant)
   Design: Figma "Danced Stories - Anant Movie v1" (1440px)
   Built on Bootstrap 5 (load this file after bootstrap.min.css)
   ========================================================= */

:root {
  --bg-cream: #fef7e7;
  --yellow: #faac03;
  --yellow-line: #ffb500;
  --yellow-link: #ffbf23;
  --yellow-arrow: #f9be2e;
  --orange: #f5821e;

  --font-heading: "Spectral", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
}

/* ---------- Base (on top of Bootstrap reboot) ---------- */

 article{
  background: var(--bg-cream);
  color: #000;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}



.mv-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 60px;
  line-height: 68px;
}

/* =========================================================
   1 - Banner
   ========================================================= */
.mv-banner {
  position: relative;
  padding-top: 80px;
}

.mv-banner-media {
  position: relative;
  aspect-ratio: 1280 / 643;
}

video{
  width: 100%;
}

/* png carries a 12px soft shadow around the 1280x643 frame */
.mv-banner-media img {
  position: absolute;
  top: -0.62%;
  left: -0.94%;
  width: 101.875%;
  max-width: none;
  height: auto;
}

/* =========================================================
   2 - About the movie
   ========================================================= */
.mv-about {
  position: relative;
  padding: 80px 0;
}

.mv-about-inner {
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.mv-about-inner > .row {
  --bs-gutter-x: 60px;
}

.mv-about-poster {
  width: 350px;
}

.mv-about-text {
  gap: 20px;
}

.mv-about-text p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

/* =========================================================
   3 - Dance forms
   ========================================================= */
.mv-dance {
  position: relative;
  padding: 80px 0;
}

.mv-dance-inner {
  gap: 40px;
}

.mv-dance-img img {
  width: 314px;
}

.mv-dance-text {
  max-width: 671px;
  gap: 20px;
}

.mv-dance-text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
}

.mv-dance-text p {
  text-align: left;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

.mv-dance-text p + p {
  margin-top: -8px;
}

/* =========================================================
   4 - Cast & Crew
   ========================================================= */
.mv-cast {
  position: relative;
  padding: 80px 0 40px;
}

.mv-cast-inner {
  max-width: 1063px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

/* Director */
.director-card {
  background: #fff;
  padding: 40px;
}

.director-img {
  width: 269px;
  max-width: 100%;
  background: var(--orange);
}

.director-img img {
  width: 100%;
}

.director-info {
  gap: 20px;
}

.director-info h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
}

.director-role {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

.director-bio {
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
}

/* Cast cards: 3 x 270px with 40px gaps (Figma) */
.cast-wrap {
  max-width: 890px;
}

.cast-row {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 40px;
}

.cast-card {
  gap: 20px;
}

.cast-img {
  width: 100%;
  aspect-ratio: 270 / 340;
  background: var(--orange);
  overflow: hidden;
}

.cast-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.cast-card:hover .cast-img img {
  transform: scale(1.04);
}

.cast-meta h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

.cast-meta p {
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
}

.view-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--yellow-link);
  background: none;
  color: var(--yellow-link);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

.view-more span {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.view-more:hover span {
  transform: translateX(4px);
}

.view-more[aria-expanded="true"] span {
  transform: rotate(90deg);
}

/* Bio panel (inside Bootstrap .collapse) */
.cast-bios {
  --arrow-left: 135px;
  max-width: 854px;
  margin-top: -22px; /* panel sits 18px below the cast row as in Figma */
}

.cast-bio {
  position: relative;
  margin-top: 18px;
  background: #fff;
  border-top: 1px solid var(--yellow-line);
  padding: 40px;
}

.cast-bio-arrow {
  position: absolute;
  top: -1px;
  left: var(--arrow-left);
  width: 26px;
  height: 26px;
  background: #fff;
  border-top: 1px solid var(--yellow-line);
  border-left: 1px solid var(--yellow-line);
  transform: translate(-50%, -50%) rotate(45deg);
}

.cast-bio-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.cast-bio-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #000;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.cast-bio h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  padding-right: 32px;
}

.cast-bio p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  margin-top: 20px;
}

.cast-bio .cast-bio-role {
  text-transform: uppercase;
}

.cast-bio-social {
  gap: 20px;
  margin-top: 20px;
}

.cast-bio-social a {
  display: flex;
  width: 20px;
  height: 20px;
}

.cast-bio-social svg {
  width: 100%;
  height: 100%;
  fill: var(--yellow-link);
  transition: fill 0.2s;
}

.cast-bio-social a:hover svg {
  fill: var(--yellow);
}

/* =========================================================
   5 - Gallery
   ========================================================= */
.mv-gallery {
  position: relative;
  padding: 40px 0 80px;
}

.mv-gallery .mv-title {
  margin-bottom: 40px;
}

.gallery-slider {
  --per-view: 3;
  --gap: 20px;
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-track {
  gap: var(--gap);
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  aspect-ratio: 413 / 300;
  background: #d9d9d9;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--yellow-arrow);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
  z-index: 2;
}

.gallery-arrow svg {
  width: 6px;
  height: 10px;
  fill: none;
  stroke: var(--yellow-arrow);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--yellow-arrow);
}

.gallery-arrow:hover svg,
.gallery-arrow:focus-visible svg {
  stroke: #fff;
}

.gallery-prev { left: -46px; }
.gallery-next { right: -46px; }

/* =========================================================
   Responsive (Bootstrap breakpoints: xxl 1400, xl 1200, lg 992, md 768, sm 576)
   ========================================================= */
@media (max-width: 1399.98px) {
  .mv-title {
    font-size: 52px;
    line-height: 60px;
  }

  .gallery-slider {
    padding: 0 40px;
  }

  .gallery-prev { left: 0; }
  .gallery-next { right: 0; }
}

@media (max-width: 1199.98px) {
  .director-bio {
    font-size: 18px;
    line-height: 26px;
  }
}

@media (max-width: 991.98px) {
  .mv-title {
    font-size: 44px;
    line-height: 52px;
  }

  .mv-banner {
    padding-top: 40px;
  }

  .mv-about,
  .mv-dance {
    padding: 60px 0;
  }

  .mv-cast {
    padding: 60px 0 32px;
  }

  .mv-gallery {
    padding: 32px 0 60px;
  }

  .mv-about-inner > .row {
    --bs-gutter-x: 36px;
  }

  .mv-about-poster {
    width: 200px;
  }

  .cast-row {
    --bs-gutter-x: 24px;
  }

  .cast-meta h4 { font-size: 20px; line-height: 28px; }
  .cast-meta p,
  .view-more { font-size: 17px; }

  .gallery-slider {
    --per-view: 2;
  }
}

@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 32px;
  }

  .mv-title {
    font-size: 34px;
    line-height: 42px;
  }

  .mv-banner {
    padding-top: 24px;
  }

  .mv-about,
  .mv-dance {
    padding: 48px 0;
  }

  .mv-dance-inner {
    gap: 28px;
  }

  .mv-dance-text h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .mv-cast {
    padding: 48px 0 24px;
  }

  .mv-cast-inner {
    gap: 28px;
  }

  .director-card {
    padding: 20px;
  }

  .director-img {
    width: 100%;
  }

  .director-info {
    gap: 12px;
  }

  .director-info h3 { font-size: 24px; line-height: 32px; }
  .director-bio { font-size: 16px; line-height: 24px; }

  .cast-row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 28px;
  }

  .cast-card {
    gap: 12px;
  }

  .cast-meta h4 { font-size: 18px; line-height: 24px; }
  .cast-meta p { font-size: 15px; line-height: 22px; }
  .view-more { font-size: 15px; gap: 8px; }
  .view-more span { font-size: 20px; }

  .cast-bios {
    margin-top: -10px;
  }

  .cast-bio {
    padding: 28px 20px 24px;
  }

  .cast-bio h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .cast-bio p {
    margin-top: 12px;
    font-size: 15px;
  }

  .mv-gallery {
    padding: 24px 0 48px;
  }

  .mv-gallery .mv-title {
    margin-bottom: 24px;
  }

  .gallery-slider {
    --per-view: 1;
    padding: 0 36px;
  }
}

@media (max-width: 575.98px) {
  .mv-about-text {
    text-align: center;
  }

  .mv-about-text p {
    text-align: left;
  }

  .mv-about-poster {
    width: 220px;
  }
}

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

/* =========================================================
   Background vectors (Figma px positions @1440)
   - one element per vector, so shapes that cross two
     sections (lotus, leaves, dots) stay continuous
   - left-side vectors anchor to the left edge, right-side to
     the right edge, dots tied to content use the 1440 frame
     centre (50% - 720px + Figma x)
   ========================================================= */
main {
  position: relative;
  overflow: hidden;
}

main > section > .container {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  z-index: 0;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* 8px dots, 32px pitch, #f9be2e (Figma "Group 30") */
.deco-dots {
  background-image: radial-gradient(circle, #f9be2e 4px, transparent 4.5px);
  background-size: 32px 32px;
  background-position: -12px -12px;
}

/* About → Dance – dots: Figma x12 y358 (About), 11 x 6 dots */
.deco-about-dots {
  top: 456px;
    left: -8px;
    width: 328px;
    height: 168px;
}

/* Dance → Cast – line-art lotus: Figma x760 y289 (Dance), 799 x 678 */
.deco-dance-lotus {
  top: 289px;
  right: -119px;
  width: 799px;
}

/* Cast – vertical dots: Figma x67 y499, 6 x 11 dots */
.deco-cast-dots {
  top: 499px;
  left: max(0px, calc(50% - 653px));
  width: 168px;
  height: 328px;
}

/* Cast → Gallery – leaves: Figma x932 y986 (Cast), 517 x 803 */
.deco-cast-leaves {
  top: 986px;
  right: -9px;
  width: 517px;
}

/* Gallery – dots under the images: Figma x340 y334, 11 x 6 dots */
.deco-gallery-dots {
  top: 334px;
  left: calc(50% - 380px);
  width: 328px;
  height: 168px;
}

@media (max-width: 1199.98px) {
  .deco-dance-lotus {
    width: 680px;
    right: -110px;
  }

  .deco-cast-leaves {
    width: 440px;
  }

  .deco-cast-dots {
    left: 0;
  }
}

@media (max-width: 991.98px) {
  /* stacked layout: keep dots behind the poster corner, clear of headings */
  .deco-about-dots {
    top: 36px;
    left: 0;
    width: 168px;
    height: 104px;
  }

  .deco-dance-lotus {
    top: 240px;
    width: 560px;
    right: -120px;
  }

  .deco-cast-leaves {
    top: auto;
    bottom: -200px;
    width: 380px;
  }

  .deco-gallery-dots {
    left: 40px;
    top: auto;
    bottom: 10px;
  }
}

@media (max-width: 767.98px) {
  .deco-about-dots {
    top: 24px;
  }

  .deco-dance-lotus {
    top: 300px;
    width: 400px;
    right: -110px;
  }

  .deco-cast-dots {
    top: 380px;
    width: 104px;   /* 4 x 6 dots */
    height: 168px;
  }

  .deco-cast-leaves {
    bottom: -160px;
    right: -20px;
    width: 280px;
  }

  .deco-gallery-dots {
    left: 8px;
    bottom: 8px;
    width: 168px;
    height: 104px;
  }
}



/*new css*/

.video-box {
    width: 100%;
}

.video-box summary {
    position: relative;
    cursor: pointer;
    list-style: none;
}

.video-box summary::-webkit-details-marker {
    display: none;
}

.video-box summary img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.video-box iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
}

.video-box[open] summary {
    display: none;
}
.video-box > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}