/* Disney+ Hero Carousel Styles */
/* Based on: public/disney_collection/after_20250916/disney_hero_carousel_example.html */
/* Date: September 26, 2025 */

:root {
  --disney-dark: #0f0f23;
  --disney-darker: #050814;
  --disney-gradient-start: rgba(15, 15, 35, 0.1);
  --disney-gradient-end: rgba(15, 15, 35, 0.9);
  --carousel-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Section Container - Disney+ Structure
   ========================================== */

[data-set-style="hero_carousel"] {
  position: relative;
  width: 100%;
  /* Mobile-first: don't force viewport-height; let items control height via aspect-ratio */
  min-height: 50vh;
  overflow: hidden;
  background: var(--disney-dark);
  color: white;
  /* Position offset handled elsewhere (top:72px / padding previously)
     kept minimal here for mobile stacking */
}

.carousel-track {
  position: relative;
  width: 100%;
  /* Let the track size itself from its children so the carousel section
     contributes to document flow (prevents following content from
     overlapping). */
  height: auto;
  display: block;
}

/* ==========================================
   Carousel Items
   ========================================== */

.carousel-item {
  position: relative; /* participate in layout when using aspect-ratio */
  width: 100%;
  aspect-ratio: 4 / 5; /* mobile-first portrait card */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--carousel-transition),
              visibility 0.6s var(--carousel-transition);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 3.5vw;
  z-index: 2;
}

/* Active State - Disney+ uses data-isactive attribute */
.carousel-item[data-isactive="true"],
.carousel-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

/* Item Gradient Overlay for text readability */
.item-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ==========================================
   Content Wrapper
   ========================================== */

.item-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 600px;
  height: 100%; 
}

/* ==========================================
   Title Treatment
   ========================================== */

/* .item-title-treatment {
  margin-bottom: 1.5rem;
} */

.title-logo {
  max-height: 120px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.title-text {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.02em;
}
/* dice_plus styles */
/* image container */
.r3t2ih24b {
  justify-content: center;
}

.r3t2ih20z {
  display: flex;
}
._15e386m1 {
  max-height: 30%;
}

._15e386m0 {

}

.r3t2ih20z {
  display: flex;
} 

.r3t2ih24b {
  justify-content: center;
}

.r3t2ih23u {}

._1bbqasx2 {}

/* title logo image */
._15e386m3 {
  max-height: 104px;
  max-width: 240px;
  object-position: left;
}

._1u4dsc6 {
  animation: _1u4dsc3 .6s cubic-bezier(.25,.1,.25,1) 0ms forwards,_1u4dsc1 .5s cubic-bezier(.42,0,.58,1) 0ms forwards;
}

.r3t2ih99 {
  opacity: 0;
}
.r3t2ih8r {
  object-fit: contain;
}
img {
  border-style: none;
}
/* image container */
.r3t2ih24b {
  justify-content: center;
}
.r3t2ih20z {
  display: flex;
}

/* ==========================================
   Metadata Row
   ========================================== */

.item-metadata {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}

/* Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.rating-image {
  height: 1.25rem;
  width: auto;
  display: block;
}

.rating-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

/* Year */
.metadata-year {
  color: rgba(255, 255, 255, 0.9);
}

/* Genres */
.metadata-genres {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   Promotional Text
   ========================================== */

.promo-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem 0;
  max-width: 90%;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   Network Badge
   ========================================== */

.network-badge {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
}

.network-logo {
  height: 2rem;
  width: auto;
  display: block;
}

.network-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================
   Navigation Dots - Disney+ Style
   ========================================== */

.carousel-navigation {
  position: absolute;
  bottom: 2rem;
  right: 3.5vw;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.nav-dot {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.nav-dot:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.nav-dot.active,
.nav-dot[aria-current="true"] {
  color: rgba(255, 255, 255, 1);
}

.nav-dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
  border-radius: 50%;
}

/* ==========================================
   Previous/Next Buttons
   ========================================== */

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 42, 42, 0.8);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(42, 42, 42, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev:focus-visible,
.carousel-next:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

.carousel-prev svg,
.carousel-next svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ==========================================
   Screen Reader Only
   ========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   Responsive Design (mobile-first)
   ========================================== */

/* Mobile defaults: these rules apply to small viewports by default. Use
   the @media (min-width: 768px) block later to override for larger
   screens. */

[data-set-style="hero_carousel"] {
  /* Reduce vertical space on small screens so the hero feels less tall */
  min-height: 50vh;
  top: 36px;
}

.carousel-item {
  padding: 2rem 5vw;
  align-items: center;
}

.item-content-wrapper {
  max-width: 100%;
  /* Make the content wrapper a positioning context so we can
     absolutely position the title/logo on mobile without affecting
     desktop layout. Keeps the logo anchored toward the lower-left. */
  position: relative;
  padding-left: 0;
  /* Ensure the wrapper fills the carousel item so absolute-positioned
     children are measured against the full slide height. */
  height: 100%;
}

.title-logo {
  max-height: 80px;
}

/* Reposition the title treatment (logo or text) so it sits over the
   lower-left of the hero image on mobile. This pulls the logo out of
   the normal document flow and keeps the promo text readable. */
/* .item-title-treatment {
  position: absolute;
  left: 5vw;
  right: 5vw;
  /* Place the title/logo at the vertical center of the bottom quarter
     (bottom quarter spans 75%->100% so its center is at 87.5%). */
  bottom: 12.5%;
  transform: translateY(-50%);
  margin-bottom: 0;
  text-align: left;
  z-index: 3;
} */

.title-logo {
  /* Slightly smaller logo on mobile and ensure it doesn't overflow */
  max-height: 64px;
  width: auto;
  display: block;
}

.title-text {
  font-size: 2rem;
}

.item-metadata {
  font-size: 0.85rem;
}

.promo-text {
  font-size: 1rem;
  max-width: 100%;
}

.carousel-navigation {
  bottom: 1.5rem; /* nudge up a bit to avoid overlapping brand buttons */
  right: 5vw;
}

/* medium sized screens */
/* title logo image */
@media (min-width: 480px) {
  ._15e386m1 {
    max-height: 30%;
  }
}
/* Desktop / larger screens: restore full-bleed hero with taller height and
   absolute-positioned slides (original Disney+ behavior). These rules override
   the mobile-first aspect-ratio rules above. */
@media (min-width: 768px) {
  [data-set-style="hero_carousel"] {
    min-height: 70vh;
    max-height: 90vh;
  }

  .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 4rem 3.5vw;
    align-items: flex-end;
  }

  /* Title treatment returns to normal flow on desktop */
  /* .item-title-treatment {
    position: static;
    margin-bottom: 1.5rem;
  }
  .basj101 {
    --basj100: 56px;
  } */


}

/* ==========================================
   Accessibility - Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-item,
  .nav-dot,
  .carousel-prev,
  .carousel-next {
    transition: none !important;
  }
  
  .carousel-item[data-isactive="true"] {
    transition: none !important;
  }
}
/* additional rules */
/* -- mobile */
@media (min-width: 480px)
._1bbqasx1 {
width: 100%;
max-width: 100%;
}
._1bbqasx1 {
flex: 1;
height: 100%;
max-width: 80%;
width: 330px;
}
@media (min-width: 1024px)
.r3t2ihxr {
padding-right: 76px;
}
@media (min-width: 1024px)
.r3t2iht3 {
padding-left: 76px;
}
@media (min-width: 768px)
.r3t2ih141 {
margin-bottom: 0;
}
@media (min-width: 768px)
.r3t2ihzd {
margin-top: 0;
}
@media (min-width: 768px)
.r3t2ihx7 {
padding-right: 60px;
}
@media (min-width: 768px)
.r3t2ihsj {
padding-left: 60px;
}
@media (min-width: 480px)
.r3t2ih24c {
justify-content: center;
}
@media (min-width: 480px)
.r3t2ih23c {
align-items: flex-start;
}
@media (min-width: 480px)
.r3t2ih1dc {
margin-right: 0;
}
@media (min-width: 480px)
.r3t2ih18o {
margin-left: 0;
}
@media (min-width: 480px)
.r3t2ih13u {
margin-bottom: auto;
}
@media (min-width: 480px)
.r3t2ihz6 {
margin-top: auto;
}
@media (min-width: 480px)
.r3t2ihw6 {
padding-right: 36px;
}
@media (min-width: 480px)
.r3t2ihri {
padding-left: 36px;
}
.r3t2ih23z {
justify-content: end;
}
.r3t2ih23h {
align-items: center;
}
.r3t2ih21n {
flex-direction: column;
}
.r3t2ih20z {
display: flex;
}
.r3t2ih1d5 {
margin-right: auto;
}
.r3t2ih18h {
margin-left: auto;
}
.r3t2ih14t {
margin-bottom: 20px;
}
.r3t2ihzb {
margin-top: 0;
}
.r3t2ihuh {
padding-right: auto;
}
.r3t2ihpt {
padding-left: auto;
}

/* container title logo image container and badges */
@media (min-width: 480px)
._15e386m1 {
max-height: 30%;
}
@media (min-width: 1024px)
._1bbqasx2 {
width: 410px;
}
@media (min-width: 768px)
._1bbqasx2 {
width: 287px;
}
@media (min-width: 480px)
._1bbqasx2 {
max-width: 100%;
width: 210px;
}
@media (min-width: 480px)
.r3t2ih23u {
justify-content: start;
}
.r3t2ih24b {
justify-content: center;
}
.r3t2ih20z {
display: flex;
}
/* -- desktop */
/* content container for title logo image container and badges */
@media (min-width: 480px) {
  ._1bbqasx1 {
    width: 100%;
    max-width: 100%;
  }
}
._1bbqasx1 {
  flex: 1;
  height: 100%;
  max-width: 80%;
  width: 330px;
}
@media (min-width: 1024px) {
  .r3t2ihxr {
    padding-right: 76px;
  }
}
@media (min-width: 1024px) {
  .r3t2iht3 {
    padding-left: 76px;
  }
}
@media (min-width: 768px) {
  .r3t2ih141 {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) {
  .r3t2ihzd {
    margin-top: 0;
  }
}
@media (min-width: 768px) {
  .r3t2ihx7 {
    padding-right: 60px;
  }
}
@media (min-width: 768px) {
  .r3t2ihsj {
    padding-left: 60px;
  }
}
@media (min-width: 480px) {
  .r3t2ih24c {
    justify-content: center;
  }
}
@media (min-width: 480px) {
  .r3t2ih23c {
    align-items: flex-start;
  }
}
@media (min-width: 480px) {
  .r3t2ih1dc {
    margin-right: 0;
  }
}
@media (min-width: 480px) {
  .r3t2ih18o {
    margin-left: 0;
  }
}
@media (min-width: 480px) {
  .r3t2ih13u {
    margin-bottom: auto;
  }
}
@media (min-width: 480px) {
  .r3t2ihz6 {
    margin-top: auto;
  }
}
@media (min-width: 480px) {
  .r3t2ihw6 {
    padding-right: 36px;
  }
}
@media (min-width: 480px) {
  .r3t2ihri {
    padding-left: 36px;
  }
}
.r3t2ih23z {
  justify-content: end;
}
.r3t2ih23h {
  align-items: center;
}
.r3t2ih21n {
  flex-direction: column;
}
.r3t2ih20z {
  display: flex;
}
.r3t2ih1d5 {
  margin-right: auto;
}
.r3t2ih18h {
  margin-left: auto;
}
.r3t2ih14t {
  margin-bottom: 20px;
}
.r3t2ihzb {
  margin-top: 0;
}
.r3t2ihuh {
  padding-right: auto;
}
.r3t2ihpt {
  padding-left: auto;
}

/* title logo image container and badges */
@media (min-width: 480px) {
  ._1bbqasx1 {
    width: 100%;
    max-width: 100%;
  }
}
._1bbqasx1 {
  flex: 1;
  height: 100%;
  max-width: 80%;
  width: 330px;
}
@media (min-width: 1024px) {
  .r3t2ihxr {
    padding-right: 76px;
  }
}
@media (min-width: 1024px) {
  .r3t2iht3 {
    padding-left: 76px;
  }
}
@media (min-width: 768px) {
  .r3t2ih141 {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) {
  .r3t2ihzd {
    margin-top: 0;
  }
}
@media (min-width: 768px) {
  .r3t2ihx7 {
    padding-right: 60px;
  }
}
@media (min-width: 768px) {
  .r3t2ihsj {
    padding-left: 60px;
  }
}
@media (min-width: 480px) {
  .r3t2ih24c {
    justify-content: center;
  }
}
@media (min-width: 480px) {
  .r3t2ih23c {
    align-items: flex-start;
  }
}
@media (min-width: 480px) {
  .r3t2ih1dc {
    margin-right: 0;
  }
}
@media (min-width: 480px) {
  .r3t2ih18o {
    margin-left: 0;
  }
}
@media (min-width: 480px) {
  .r3t2ih13u {
    margin-bottom: auto;
  }
}
@media (min-width: 480px) {
  .r3t2ihz6 {
    margin-top: auto;
  }
}
@media (min-width: 480px) {
  .r3t2ihw6 {
    padding-right: 36px;
  }
}
@media (min-width: 480px) {
  .r3t2ihri {
    padding-left: 36px;
  }
}
.r3t2ih23z {
  justify-content: end;
}
.r3t2ih23h {
  align-items: center;
}
.r3t2ih21n {
  flex-direction: column;
}
.r3t2ih20z {
  display: flex;
}
.r3t2ih1d5 {
  margin-right: auto;
}
.r3t2ih18h {
  margin-left: auto;
}
.r3t2ih14t {
  margin-bottom: 20px;
}
.r3t2ihzb {
  margin-top: 0;
}
.r3t2ihuh {
  padding-right: auto;
}
.r3t2ihpt {
  padding-left: auto;
}
/* title logo image container and badges */
@media (min-width: 480px) {
  ._15e386m1 {
    max-height: 30%;
  }
}
@media (min-width: 1024px) {
  ._1bbqasx2 {
    width: 410px;
  }
}
@media (min-width: 768px) {
  ._1bbqasx2 {
    width: 287px;
  }
}
@media (min-width: 480px) {
  ._1bbqasx2 {
    max-width: 100%;
    width: 210px;
  }
}
@media (min-width: 480px) {
  .r3t2ih23u {
    justify-content: start;
  }
}
.r3t2ih24b {
  justify-content: center;
}
.r3t2ih20z {
  display: flex;
}
/* image */
@media (min-width: 480px) {
  ._15e386m3 {
    max-height: 100%;
    max-width: 100%;
  }
}
._15e386m3 {
  max-height: 104px;
  max-width: 240px;
  object-position: left;
}
._1u4dsc6 {
  animation: _1u4dsc3 .6s cubic-bezier(.25,.1,.25,1) 0ms forwards,_1u4dsc1 .5s cubic-bezier(.42,0,.58,1) 0ms forwards;
}
.r3t2ih99 {
  opacity: 0;
}
.r3t2ih8r {
  object-fit: contain;
}
img {
  border-style: none;
}