@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

  h1,
  h2,
  h3,
  h4 {
    text-wrap: balance;
  }

  p,
  li {
    text-wrap: pretty;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  :root {
    --black: #050709;
    --white: #fff;
    --primary: #ea2814;
    --light-primary: #ec8e83;
    --light-gray: #f5f5f5;
    --md-gray: #878787;
    --gray: #676767;
    --dark-gray: #141414;

    --border-radius-1: 1.875rem;
    --border-radius-2: 1.25rem;
    --border-radius-3: 0.938rem;
    --border-radius-4: 3.75rem;
  }

  @view-transition {
    navigation: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }
  body {
    min-block-size: 100vh;
    line-height: normal;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: var(--black);
    background-color: var(--white);
    position: relative;
  }

  h1 {
    font-weight: 700;
    font-size: 5rem;
    text-transform: uppercase;

    span {
      display: block;
      color: var(--primary);
    }

    @media screen and (max-width: 767px) {
      font-size: 3rem;
    }
  }

  h2 {
    font-size: 1.75rem;
    font-weight: 700;

    strong {
      font-size: 6rem;
    }
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  a {
    color: var(--primary);
    text-decoration: underline;
  }

  .btn {
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary);
    transition: transform 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    max-width: 100%;
  }
  p:empty {
    display: none;
  }
}

@layer layout {
  .wrapper {
    width: 100%;
    --wrapper-max-width: 1200px;
    --wrapper-padding: 1rem;

    max-width: var(--wrapper-max-width);
    margin-inline: auto;
    padding-inline: var(--wrapper-padding);

    /* helps to match the Figma file */
    box-sizing: border-box;
  }

  .wrapper[data-width="narrow"] {
    --wrapper-max-width: 800px;
  }
  .wrapper[data-width="narrowXS"] {
    --wrapper-max-width: 400px;
  }

  .wrapper[data-width="wide"] {
    --wrapper-max-width: 1439px;
  }

  .section {
    padding-block: 5rem;

    @media (max-width: 767px) {
      padding-block: 2.5rem;

      &[data-padding="compact"] {
        padding-block: 2.25rem;
      }
    }
  }

  .column-responsive {
    @media screen and (max-width: 767px) {
      flex-direction: column;
      width: 100%;
      box-sizing: border-box;
    }
  }

  .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;

    @media screen and (max-width: 667px) {
      grid-template-columns: 1fr;
    }
  }

  .modal-grid {
    display: grid;
    place-items: center;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    height: 100%;

    @media screen and (max-width: 767px) {
      grid-template-columns: 1fr;
    }
  }
}

@layer components {
  /* Navigation  */
  .site_header {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    align-items: center;
    position: relative;
    z-index: 999;

    @media screen and (max-width: 650px) {
      padding: 1rem;
    }
    .logo_header {
      max-width: 240px;
      width: 100%;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        max-width: 180px;
      }

      @media screen and (max-width: 767px) {
        max-width: 140px;
      }
    }
    .site_navigation {
      grid-column: 3;
      justify-self: end;

      @media screen and (max-width: 767px) {
        display: none;
      }

      @media screen and (max-width: 767px) {
        position: fixed;
        inset: 0;
        background: var(--dark-gray);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90%;
        z-index: 2;
        right: 0;
        left: auto;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Add for iOS smooth scrolling */
        -webkit-transform: translateX(100%); /* Ensure compatibility with older iOS */

        &.active {
          transform: translateX(0);
          -webkit-transform: translateX(0); /* For iOS compatibility */
        }
      }

      ul {
        display: flex;
        gap: 1.25rem;

        a {
          text-decoration: none;
          font-weight: 700;

          @media screen and (max-width: 767px) {
            font-size: 20px;
          }
        }

        @media screen and (max-width: 767px) {
          flex-direction: column;
          gap: 1.5rem;
          padding: 2rem 0;
        }
      }
    }
    .header-right {
      grid-column: 3;
      position: relative;
      display: flex;
      gap: 0.75rem;
      align-items: center;

      .dropdown-trigger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
      }

      .dropdown-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: var(--dark-gray);
        width: 20%;
        padding: 5rem 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 9;

        &.active {
          right: 0;
        }

        ul {
          display: flex;
          flex-direction: column;
          gap: 1.25rem;

          li a {
            display: block;
            padding: 0.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            transition: color 0.2s;
          }
        }
        @media screen and (max-width: 840px) {
          width: 80%;
        }
      }
      .search-box {
        width: fit-content;
        height: fit-content;
        position: relative;
      }

      .input-search {
        height: 50px;
        width: 50px;
        border-style: none;
        padding: 10px;
        font-size: 18px;
        outline: none;
        border-radius: 5px;
        transition: all 0.5s ease-in-out;
        padding-right: 40px;
        background: #1f1f1f;
        color: #fff;
      }

      .input-search::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-size: 15px;
        font-weight: 100;
      }

      .btn-search {
        width: 50px;
        height: 50px;
        border-style: none;
        font-size: 20px;
        font-weight: bold;
        outline: none;
        cursor: pointer;
        border-radius: 50%;
        position: absolute;
        right: 0px;
        color: #ffffff;
        background-color: transparent;
        pointer-events: painted;
      }

      .btn-search > img {
        width: 20px;
        height: 20px;
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
      }

      .btn-search:focus ~ .input-search,
      .input-search:focus {
        width: 300px;
        transition: all 500ms cubic-bezier(0, 0.11, 0.35, 2);
      }
      .unsubLink {
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--primary);
      }

      @media screen and (max-width: 767px) {
        gap: 0.3rem;
      }
    }

    .desktop-nav {
      display: flex;
      gap: 1.25rem;

      @media screen and (max-width: 767px) {
        display: none;
      }

      a {
        text-decoration: none;
        font-weight: 700;
      }
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      padding: 5px;
      background: none;
      border: none;
      z-index: 10;

      span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary);
        transition: 0.3s ease-in-out;
      }

      &.active {
        position: fixed;
        right: 30px;
        span:first-child {
          transform: translateY(9px) rotate(45deg);
        }
        span:nth-child(2) {
          opacity: 0;
        }
        span:last-child {
          transform: translateY(-9px) rotate(-45deg);
        }
      }
      &[aria-expanded="true"] {
        position: fixed;
        right: 30px;
        span:first-child {
          transform: translateY(9px) rotate(45deg);
        }
        span:nth-child(2) {
          opacity: 0;
        }
        span:last-child {
          transform: translateY(-5px) rotate(-45deg);
        }
      }

      @media screen and (max-width: 767px) {
        display: flex;
        align-items: flex-end;
      }
    }

    @media screen and (min-width: 768px) {
      .mobile-nav {
        display: none;
      }
    }
  }

  /* Hero Section */

  .page_hero {
    position: relative;
    padding-block-start: 6rem;
    padding-block-end: 6rem;
    display: flex;
    flex-direction: column;
    color: var(--white);
    background-image: url(../images/premium/landing-hero-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 620px;

    &.content-page {
      background-image: url(../images/content-hero-background.jpg);
    }

    @media screen and (max-width: 767px) {
      padding-block-start: 4rem;
      padding-block-end: 4rem;
      min-height: auto;
      background-position: right;
    }

    .hero-content {
      max-width: 800px;

      h1 {
        font-size: 3rem;

        @media screen and (max-width: 1199px) {
          font-size: 2.5rem;
        }
        @media screen and (max-width: 767px) {
          font-size: 2.5rem;
        }
        @media screen and (max-width: 414px) {
          font-size: 2rem;
        }
      }

      .btn {
        /* padding: 1.5rem 5rem; */
        font-size: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
        max-width: fit-content;

        @media screen and (max-width: 767px) {
          font-size: 1.5rem;
          padding: 1.5rem 3rem;
          width: 100%;
          max-width: 100%;
        }
      }
      .btn:hover,
      .btn:focus-visible {
        transform: scale(1.05);
      }
    }
  }

  .hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .intro-text {
    font-size: 21px;
  }

  /*Categories selector*/

  .selector-frame {
    display: flex;
    gap: 3px;

    @media screen and (max-width: 767px) {
      flex-direction: column;
    }

    .content-type-btn {
      padding: 4rem 6rem;
      background: var(--md-gray);
      color: var(--white);
      border: none;
      font-size: 16px;
      width: 100%;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 30px;
      text-align: left;
      position: relative;
      z-index: 2;

      @media screen and (max-width: 1439px) {
        padding: 2rem;
      }

      @media screen and (max-width: 767px) {
        align-items: center;
        text-align: center;
      }

      > * {
        position: relative;
        z-index: 1;
      }

      p {
        max-width: 50%;

        @media screen and (max-width: 767px) {
          display: none;
        }

        @media screen and (min-width: 768px) and (max-width: 1199px) {
          max-width: 100%;
        }
      }

      .btn-frame {
        filter: brightness(0.8) contrast(1.5);
        padding: 1rem 2rem;
        width: 100%;
        max-width: 360px;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        background: var(--black);
        color: var(--white);
      }

      &:hover {
        filter: brightness(1.25);
        transform: scale(1.05);
      }

      &.active {
        background: var(--primary);
        cursor: not-allowed;
        transform: none;
        filter: none;
        color: var(--white);
        z-index: 1;

        .btn-frame {
          background: var(--primary);
        }
      }

      &.movies::before {
        content: "";
        background: url(../images/content-type-movies.png) no-repeat;
        background-size: cover;
        background-position: center;
        z-index: 0;
        position: absolute;
        bottom: 0;
        right: 0;
        height: 100%;
        width: 100%;
      }

      &.videos::before {
        content: "";
        background: url(../images/content-type-videos.png) no-repeat;
        background-size: cover;
        background-position: center;
        z-index: 0;
        position: absolute;
        bottom: 0;
        right: 0;
        height: 100%;
        width: 100%;
      }
    }
  }

  /* Hide elements with these classes initially */
  .movie-hidden,
  .video-hidden {
    display: none;
  }

  /* Hero Payment  */

  .hero_payment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Price Cards Payment  */
    .price_cards {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
      padding: 30px 0 60px;

      h1 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 0px;
        text-transform: uppercase;
      }

      .pricing-toggle {
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: hidden;

        .pricing-option {
          background-color: var(--light-gray);
          color: #5c5c5c;
          padding: 30px 50px;
          text-align: center;
          cursor: pointer;
          transition: background-color 0.3s, color 0.3s;
          border-radius: 8px;

          .price {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
          }

          .duration {
            font-size: 18px;
            font-weight: 500;
            margin: 5px 0;
          }
          .details {
            font-size: 14px;
          }
          &.active {
            background-color: var(--primary);
            color: var(--white);
          }

          &:first-child {
            margin-right: 5px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
          }
        }

        @media (max-width: 767px) {
          flex-direction: column;
          gap: 5px;
          width: 100%;
          padding: 20px;
          margin: 0;
          border-radius: 7px;
        }
      }
    }

    .headpart {
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
      background-color: #232323;
      color: var(--md-gray);
      padding: 60px 0;

      h1 {
        color: var(--md-gray);
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 30px;
      }

      .flex-container-col {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      }

      .checkbox-group {
        margin-bottom: 15px;
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;

        .checkbox-group input[type="checkbox"] {
          margin-top: 5px;
        }

        label {
          font-size: 14px;
          line-height: 1.5;
          display: block;
          margin-left: 10px;
          position: relative;
        }
      }

      .btn {
        padding: 18px;
        width: 100%;
        max-width: 320px;
        font-size: 30px;
        font-weight: 700;
        line-height: 30px;
        margin: 30px auto;
        display: block;

        &:disabled {
          background-color: var(--md-gray);
          border-color: var(--md-gray);
          color: #fff;
          cursor: not-allowed;
        }
      }
    }
  }

  /* Swiper   */
  .swiper {
    width: 100%;
    overflow: hidden;
  }

  .swiper-wrapper {
    display: flex;
  }

  .swiper-slide {
    position: relative;
    width: auto !important; /* Override Swiper's default width calculation */
    flex-shrink: 0;
  }

  .swiper-slide:first-child {
    margin-left: 40px;

    .slide-number {
      left: -30px;
    }
  }
  .swiper-slide:last-child {
    .slide-number {
      left: -80px;
    }
  }

  .swiper-slide img {
    width: 100%;
    max-width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-3);
  }

  .slide-number {
    position: absolute;
    bottom: 0px;
    left: -60px;
    font-size: 150px;
    font-weight: 700;
    color: #dcdcdc;
    opacity: 0.5;
    z-index: -1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* Home Apps */

  .homeApps {
    padding: 4.125rem 3.125rem;
    margin-bottom: 3.125rem;
    border-radius: var(--border-radius-2);

    @media (max-width: 767px) {
      padding: 2rem 1.5rem;
      flex-direction: column;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    &.play {
      background: url(../images/playHome_bck.png) center no-repeat;
      background-size: cover;
    }
    &.learn {
      background: url(../images/playHome_bck.png) center no-repeat;
      background-size: cover;
    }
    &.enjoy {
      background: url(../images/playHome_bck.png) center no-repeat;
      background-size: cover;
    }
    &.watch {
      background: url(../images/watchHome_bck.jpg) center no-repeat;
      background-size: cover;

      .homeApps__container {
        h4 {
          font-size: 0.8rem;
          font-weight: 400;
          margin-top: 0.5rem;
          color: var(--white);
        }

        .homeApps__item {
          height: 160px;
        }
      }
    }
    &.fitness {
      background: url(../images/fitnessHome_bck.png) center no-repeat;
      background-size: cover;
    }

    .homeApps_text {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      align-items: flex-start;
      text-align: left;

      @media (max-width: 767px) {
        align-items: center;
        text-align: center;
        gap: 1rem;
      }

      h3 {
        text-transform: capitalize;
        font-size: 1.875rem;

        @media (max-width: 576px) {
          font-size: 1.5rem;
        }
      }

      .btn {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;

        &:hover,
        &:focus-visible {
          transform: scale(1.05);
          color: var(--white);
        }
      }
    }
    .homeApps__container {
      background-color: rgb(221, 162, 222, 0.5);
      padding: 1rem;
      border-radius: var(--border-radius-2);
      gap: 0.625rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;

      &::-webkit-scrollbar {
        display: none;
      }

      @media (max-width: 767px) {
        width: 100%;
        justify-content: flex-start;
      }
    }

    .homeApps__item {
      width: 120px;
      height: 120px;
      flex-shrink: 0;

      @media (max-width: 576px) {
        width: 100px;
        height: 100px;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius-3);
      }
    }
  }

  /* Cards on login page  */

  .card {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    background: var(--black);
    padding: 3rem;

    &:hover,
    &:focus-visible {
      transform: translateY(-0.5rem);
    }

    &:nth-child(1) {
      background: url(../images/premium/popcorns.png);
      background-size: cover;
      background-position: center;
    }
    &:nth-child(2) {
      background: url(../images/premium/movies-background.png);
      background-size: cover;
      background-position: center;

      flex-direction: row-reverse;
    }

    &:last-child {
      background: url(../images/premium/docs-background.png);
      background-size: cover;
      background-position: center;
    }

    .card-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 2rem;
      h3 {
        text-transform: uppercase;
        color: var(--white);
      }

      p {
        color: var(--white);
      }
    }

    @media screen and (max-width: 767px) {
      padding: 1.5rem;
      flex-direction: column;

      &:nth-child(2) {
        flex-direction: column;
      }

      .card-content {
        padding: 1rem;
      }
    }
  }

  .background-diagonal {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
  }

  .background-diagonal::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-image: url("../images/premium/multi_image.png");
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
  }

  .background-diagonal h1,
  .background-diagonal p {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 50%;
  }

  .background-diagonal h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
  }

  @media screen and (max-width: 767px) {
    .background-diagonal::after {
      width: 60%;
      clip-path: polygon(30% 0, 100% 0, 100% 100%, 15% 100%);
    }

    .background-diagonal h1,
    .background-diagonal p {
      max-width: 90%;
    }
  }

  /* Images on login page */

  .card_premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: var(--black);
    border-radius: var(--border-radius-2);
    color: var(--white);
    img {
      width: 60px;
      height: 60px;
    }
  }

  .images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: auto;

    :first-child,
    :last-child {
      grid-row: span 2;
    }

    /* Optional: Specific positioning (optional if order matters) */
    :first-child {
      grid-column: 1;
      grid-row: 1 / span 2;
    }
    :nth-child(2) {
      grid-column: 2;
      grid-row: 1;
    }
    :nth-child(3) {
      grid-column: 1;
      grid-row: 2;
      margin-top: auto;
    }
    :nth-child(4) {
      grid-column: 2;
      grid-row: 2 / span 1;
    }
  }
  /* Category Page */

  .category_hero {
    padding: 7.125rem 2rem;
    background-size: cover;
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius-2);

    h1 {
      font-size: 2.75rem;
      margin-bottom: 1rem;
    }
    p {
      font-size: 1.125rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    &.play {
      background: url(../images/play_bck.png) center no-repeat;
    }
    &.watch {
      background: url(../images/watchHome_bck.jpg) center no-repeat;
    }
    &.fitness {
      background: url(../images/fitnessHome_bck.png) center no-repeat;
      background-size: cover;
    }
  }

  /* Sections */

  /* #section-comedy::before {
    background: url(../images/comedy-bck.png) no-repeat right top/25%;
  }

  #section-thriller::before {
    background: url(../images/thriller-bck.png) no-repeat left top/25%;
  }

  #section-drama::before {
    background: url(../images/drama-bck.png) no-repeat right top/25%;
  }

  #section-kids::before {
    background: url(../images/kids-bck.png) no-repeat left top/25%;
  } */

  /* Category Cards */

  .category-section {
    text-align: center;
    position: relative;

    .wrapper {
      position: relative;
      z-index: 1;
    }

    &::before {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      content: "";
      opacity: 0.35;
      z-index: 0;

      @media screen and (max-width: 767px) {
        background-size: 90% !important;
        filter: brightness(0.25);
      }
    }

    &:nth-of-type(even) {
      background: var(--primary);
      color: var(--white);

      .see-more-btn,
      .see-less-btn {
        color: var(--primary);
        border-color: var(--white);
        background-color: var(--white);
      }
    }

    .apps {
      gap: 15px;
    }

    .section-title {
      margin-bottom: 10px;
    }

    .intro-text {
      max-width: 480px;
      margin: 0 auto;
    }
  }

  .category_card {
    width: 180px;
    height: 220px;
    overflow: hidden;
    border-radius: var(--border-radius-2);
    position: relative;
    transition: transform 0.3s ease-in-out;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1;
    }

    &:hover {
      transform: translateY(-5px);
    }

    img.cardsImage {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease-in-out;
    }
  }

  .category_card:hover img.cardsImage {
    transform: scale(1.05);
  }

  .movie-hidden {
    display: none;
  }

  .see-more-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .see-more-btn,
  .see-less-btn {
    cursor: pointer;
    margin: 0 auto;
    font-size: 1rem;
    border-color: var(--gray);
    padding: 0.75rem 2rem;
  }

  .cardsTitle {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    text-align: left;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
    margin: 0;
    line-height: normal;
  }

  #app-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
    justify-items: center;
  }

  /* Categorie Pills  */

  .features-bar {
    margin: 20px 0;
    flex-wrap: wrap;
  }

  .labels {
    .item-label {
      display: inline-block;
      padding: 5px 10px;
      background: var(--black);
      color: var(--primary);
      font-weight: 600;
      font-family: "Poppins", sans-serif;
      border-radius: 5px;
      max-height: fit-content;
      overflow: hidden;
      white-space: nowrap; /* Don't forget this one */
      text-overflow: ellipsis;
    }
  }

  .rating {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .rating > img {
    width: 15px;
  }

  .categories {
    position: relative;
    overflow-x: auto;
  }

  form.categories-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    width: max-content;
    padding: 0 0 10px 0;
    margin: 0 auto;

    .category-pill {
      padding: 0.5rem 1rem;
      border: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      justify-content: center;
      border-radius: var(--border-radius-3);
      background-color: #232323;
      color: var(--white);
      font-size: 0.875rem;
      cursor: pointer;
      transition: transform 0.3s ease-in-out;

      img {
        width: 20px;
        height: 20px;
        filter: brightness(10) contrast(5);
      }

      &.active {
        background-color: var(--primary);
        color: var(--white);
      }
    }
  }

  /* Search Page  */

  #filter-content {
    position: absolute;
    inset: 0;
    background: var(--black);
    padding: 160px 20px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust columns dynamically */
    gap: 40px 20px; /* Keeps consistent spacing between items */
    justify-content: start; /* Align items to the start */
    justify-items: center;
    align-content: start; /* Align the grid's content to the top */
    z-index: 2;

    p {
      color: var(--white);
    }
  }

  .film-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    max-width: 180px;
    max-height: min-content;
  }

  .film-item img {
    height: 250px;
    width: 100%;
    max-width: 180px;
  }

  .film-item a {
    color: var(--white);
  }

  .film-item h3 {
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
  }

  .hidden {
    display: none;
  }

  /* Scrollbar  */

  /* width */
  ::-webkit-scrollbar {
    width: 15px;
    height: 5px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.329);
    border-radius: 10px;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #2c2c2c;
    border-radius: 10px;
  }

  /* Section Picker */

  .section_picker {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    max-width: 100%;

    button {
      padding: 20px;
      border: 2px solid var(--primary);
      color: var(--primary);
      width: 100%;
      font-size: 24px;
      line-height: 30px;
      font-weight: 700;
      transition: 0.2s;
      background: transparent;
      text-transform: uppercase;
      letter-spacing: 1px;

      &.inactive {
        border: 2px solid var(--gray);
        color: var(--white);
        background: var(--gray);

        &.clicked {
          border: 2px solid var(--primary);
          color: var(--primary);
          background: transparent;
        }
      }
    }
  }

  /* Latest Articles  */
  .latest_articles {
    background: url(../images/header-background.jpg) center no-repeat;
    background-attachment: fixed;
    background-size: cover;

    .btn {
      display: block;
      width: fit-content;
      margin: 1rem auto 0;
      padding: 0.75rem 2rem;
    }
    .d-flex {
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      padding: 0;
    }

    .article_card {
      flex: 1;
      min-width: 280px;
      max-width: 320px;
      overflow: hidden;
      transition: transform 0.3s ease;
      cursor: pointer;

      &:hover {
        transform: translateY(-5px);
      }

      picture {
        width: 100%;
        height: 200px;
        overflow: hidden;
        border-radius: var(--border-radius-2);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;

          &:hover {
            transform: scale(1.05);
          }
        }
      }

      .article-content {
        padding: 0.5rem;

        h5 {
          font-size: 1.125rem;
          margin-bottom: 1rem;
          color: var(--white);
        }

        .excerp p {
          font-size: 0.875rem;
          color: var(--white);
          line-height: 1.6;
        }
      }
    }
  }

  /* Support pages  */
  .contact__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 60%;

    h2,
    h3 {
      margin-top: 1.5rem;
      margin-bottom: 0.5rem;
    }

    h2 strong {
      font-size: 1.75rem;
    }

    p {
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
    }

    a {
      margin-bottom: 1.25rem;
      font-size: 1rem;
      font-weight: 600;
    }

    @media screen and (max-width: 767px) {
      width: 100%;
      margin-top: 0;
      gap: 0.5rem;

      &label {
        font-size: 0.75rem;
      }
    }
  }

  #title-section {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;

    p {
      font-size: 0.875rem;
      text-align: center;
    }

    a {
      color: var(--primary);
    }

    label {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      color: var(--gray);
    }

    input,
    textarea {
      padding: 0.5rem;
      border: 1px solid var(--gray);
      border-radius: var(--border-radius-1);
      background: var(--gray);
    }

    @media screen and (max-width: 767px) {
      &label {
        font-size: 0.75rem;
      }
    }
  }

  /* Single Items  */
  .single-item,
  .single-movie {
    h1 {
      font-size: 30px;
      line-height: 36px;
      font-weight: 600;
      margin-bottom: 20px;
      text-align: left;
    }
    h2 {
      font-size: 19px;
      line-height: 20px;
      font-weight: 700;
      margin-bottom: 20px;
      text-transform: uppercase;
    }

    .img-radial {
      width: 100%;
      max-width: 180px;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;

      @media screen and (max-width: 767px) {
        overflow: hidden;
        max-width: 180px;
      }

      img {
        width: auto;
        max-height: 360px;
        min-width: 100%;
        border-radius: var(--border-radius-3);
        object-fit: cover;
      }
    }

    .single-item-info {
      width: 50%;

      p,
      ul li,
      ol li {
        line-height: 24px;
        margin: 20px 0 !important;
        background: none !important;
        font-size: 16px !important;
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        background: none !important;
      }

      video {
        width: 100%;
        height: auto;
        object-fit: cover;
      }
    }
  }

  .single-movie .single-item-info {
    width: 100%;
  }

  /* Footer  */
  .backToTopBtn {
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px var(--primary);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed;
  }

  #backToTop {
    opacity: 0;
    visibility: hidden;

    &.visible {
      opacity: 1;
      visibility: visible;
    }
  }

  .svgIcon {
    width: 12px;
    transition-duration: 0.3s;
  }

  .svgIcon path {
    fill: white;
  }

  .backToTopBtn:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: var(--light-primary);
    align-items: center;
  }

  .backToTopBtn:hover .svgIcon {
    /* width: 20px; */
    transition-duration: 0.3s;
    transform: translateY(-200%);
  }

  .backToTopBtn::before {
    position: absolute;
    bottom: -20px;
    content: "Back to Top";
    color: var(--black);
    /* transition-duration: .3s; */
    font-size: 0px;
  }

  .backToTopBtn:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    /* transform: translateY(-30px); */
    transition-duration: 0.3s;
  }
  .site_footer {
    padding-block: 3.125rem;

    a {
      color: var(--black);
      font-weight: 600;
      text-decoration: none;

      &:hover,
      &:focus-visible {
        color: var(--light-primary);
      }
    }

    p {
      font-size: 13px;
      line-height: 16px;
      color: var(--md-gray);
      text-align: center;
      margin-bottom: 1rem;
    }

    .logos img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }
    @media screen and (max-width: 767px) {
      ul {
        flex-direction: column;
        gap: 1.25rem;
      }
      .copyrights {
        font-size: 0.875rem;
      }
    }
  }

  /* Modals  */
  .otp-modal,
  .login-modal,
  .unsub-modal,
  .sign-up-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;

    .close {
      position: absolute;
      right: 1.25rem;
      top: 1rem;
      font-size: 2rem;
      cursor: pointer;
      color: var(--black);

      @media screen and (max-width: 767px) {
        right: 1rem;
        top: 0.2rem;
      }
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 2rem;

      p {
        font-size: 0.875rem;
        text-align: center;
        color: var(--gray);
      }

      a {
        color: var(--primary);
      }

      @media screen and (max-width: 767px) {
        margin-top: 0;
        gap: 0.5rem;
        padding: 1rem;
        max-width: fit-content;

        &label {
          font-size: 0.75rem;
        }
      }
    }

    .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 6px;

      label {
        color: var(--gray);
        font-size: 0.875rem;
      }

      input[type="checkbox"] {
        accent-color: var(--primary);
      }
    }

    .checkbox-group {
      label {
        color: var(--gray);
        display: inline;
        font-size: 0.875rem;

        @media screen and (max-width: 767px) {
          font-size: 0.75rem;
        }
      }
    }

    input {
      padding: 0.5rem;
      border: 1px solid var(--gray);
      border-radius: var(--border-radius-3);
    }

    .btn {
      width: 100%;
      margin-top: 1rem;
      padding: 0.75rem;
    }

    @media screen and (max-width: 767px) {
      h2 {
        font-size: 1.25rem;
        text-align: center;
      }
      input {
        padding: 0.5rem;
      }
    }

    @media screen and (max-width: 767px) {
      padding: 0.75rem;
    }
    .modal-content {
      background: var(--white);
      border-radius: var(--border-radius-2);
      width: 80%;
      max-width: 960px;
      height: fit-content;
      overflow: auto;
      position: relative;

      @media screen and (max-width: 767px) {
        width: 95%;
        margin-top: 2rem;
      }

      .form-group {
        padding-block: 5rem;

        @media screen and (max-width: 767px) {
          padding-block: 3rem;
        }

        input {
          background: var(--light-gray);
          padding: 0.625rem 1.25rem;

          &:focus-visible {
            outline: none;
            border: 1px solid var(--light-primary);
          }

          &::placeholder {
            color: var(--gray);
          }

          @media screen and (max-width: 767px) {
            padding: 0.5rem;
          }
        }
      }
    }
    .modal-bck {
      background: url(../images/premium/modal-image.jpg) center no-repeat;
      background-size: cover;
      height: 100%;
      width: 100%;

      @media screen and (max-width: 767px) {
        display: none;
      }
    }
  }

  /* Payment modal  */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--dark-gray);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 30px 0;
  }
  #paymentModal .modal-content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 540px;
    width: 90%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;

    @media screen and (max-width: 479px) {
      padding: 30px 20px;
      height: 90%;
      overflow-y: auto;
    }

    h2 {
      font-size: 24px;
      color: var(--primary);
      margin-bottom: 30px;
      text-align: center;
    }

    .form-group {
      margin-bottom: 20px;

      @media screen and (max-width: 479px) {
        gap: 3px;
      }
    }

    label {
      display: block;
      margin-bottom: 8px;
      color: var(--gray);
      font-size: 14px;
      font-weight: 500;
    }

    input {
      width: 100%;
      padding: 7px 15px;
      border: 2px solid #eee;
      border-radius: 10px;
      font-size: 16px;
      transition: border-color 0.3s ease;
      background: #f8f9fa;

      &:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(163, 26, 138, 0.1);
      }

      &:hover {
        border-color: var(--light-primary);
      }

      /* Input placeholder styling */
      &::placeholder {
        color: var(--gray);
      }

      /* Error state */
      &.error {
        border-color: #dc3545;
      }

      /* Success state */
      &.success {
        border-color: #28a745;
      }
    }

    .d-flex {
      display: flex;
      gap: 15px;

      .form-group {
        flex: 1;
      }
    }

    button[type="submit"] {
      width: 100%;
      margin-top: 10px;
    }

    .close {
      position: absolute;
      right: 20px;
      top: 20px;
      font-size: 24px;
      color: var(--primary);
      cursor: pointer;
      transition: color 0.3s ease;

      @media screen and (max-width: 479px) {
        right: 10px;
        top: 5px;
      }
    }
  }

  /* Custom Audio Player Styling */
  audio {
    width: 100%;
    height: 50px;
    border-radius: var(--border-radius-3);
  }

  /* Webkit (Chrome, Safari, newer versions of Opera) */
  audio::-webkit-media-controls-panel {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-3);
  }

  audio::-webkit-media-controls-play-button {
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--white);
  }

  audio::-webkit-media-controls-play-button:hover {
    background-color: var(--light-primary);
  }

  audio::-webkit-media-controls-current-time-display,
  audio::-webkit-media-controls-time-remaining-display {
    color: var(--black);
    font-family: "Poppins", sans-serif;
  }

  audio::-webkit-media-controls-timeline {
    background-color: var(--gray);
    border-radius: 25px;
    margin: 0 10px;
  }

  audio::-webkit-media-controls-timeline:hover {
    background-color: var(--primary);
  }

  audio::-webkit-media-controls-volume-slider {
    background-color: var(--gray);
    border-radius: 25px;
    padding: 0 5px;
  }

  audio::-webkit-media-controls-volume-slider:hover {
    background-color: var(--primary);
  }

  /* Audio player container - for additional styling */
  .audio-player-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #dda2de40 100%);
    padding: 1.25rem;
    border-radius: var(--border-radius-2);
    box-shadow: 0px 0px 1rem rgba(221, 162, 222, 0.4);
    margin: 1rem 0;
    width: 100%;
  }

  #player img {
    background-size: cover;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* Title Row and Section Subtitle  */
  .title-row {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    text-align: center;

    h2 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--black) 80%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      /* text-fill-color is not a standard property, only use the prefixed version */
      letter-spacing: -0.5px;
      text-transform: uppercase;

      @media (max-width: 767px) {
        font-size: 2rem;
      }
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: linear-gradient(90deg, var(--primary) 0%, var(--light-primary) 100%);
      border-radius: 2px;
    }
  }

  .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    position: relative;
    text-align: center;

    &.highlighted {
      padding: 0.5rem 1rem;
      background-color: rgba(221, 162, 222, 0.1);
      border-left: 3px solid var(--primary);
      font-style: italic;
      border-radius: 0 var(--border-radius-3) var(--border-radius-3) 0;
    }

    @media (max-width: 767px) {
      font-size: 0.95rem;
    }
  }

  /* Legals Pages  */

  .legals {
    h2 {
      font-size: 2rem;
      margin: 2.5rem 0 0.5rem;
    }
    h3 {
      font-size: 1.5rem;
      margin: 2rem 0 0.5rem;
    }
    h4 {
      font-size: 1.5rem;
      margin: 1.5rem 0 0.5rem;
    }
    p {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
    ul {
      list-style: disc;
      padding-left: 20px;

      li {
        margin-bottom: 0.5rem;
      }
    }
  }
}

@layer pages {
  /* div:empty {display: none;} */

  .page-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
    background: url(../images/premium/bck-pattern.png) center no-repeat;
    background-size: cover;

    h1 {
      font-size: 2rem;
      text-transform: uppercase;
      font-weight: 600;
      color: var(--white);
    }
  }

  .page {
    p {
      font-size: 14px;
      margin: 10px 0;
    }

    .info-frame {
      background: var(--primary);
      padding: 30px;
      border-radius: 20px;
      color: var(--white);

      p {
        margin-bottom: 0;
      }

      .text-xl {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: normal;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        @media screen and (max-width: 991px) {
          font-size: 1.2rem;
        }
      }
    }
    ul,
    ol {
      li {
        margin: 15px;
        list-style: disc;
      }
    }
  }
  .btn.primary {
    padding: 12px 40px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: 0.25s ease-out;

    &:hover {
      transform: scale(1.1);
    }
  }

  .account_page {
    @media screen and (max-width: 750px) {
      flex-direction: column;
    }
  }
}
@layer utilites {
  .background-primary {
    background-color: var(--primary);
  }
  .background-dark {
    background-color: var(--dark-gray);
  }

  .background-light {
    background-color: var(--light-gray);
  }

  .background-pattern {
    background: url("../images/premium/bck-pattern.jpg") center no-repeat;
    background-size: cover;
  }

  .d-none {
    display: none;
  }
  .d-flex {
    display: flex;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .flex-column {
    flex-direction: column;
  }
  .d-flex .column {
    flex-basis: 50%;
    flex-grow: 1;
  }

  .justify-center {
    justify-content: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .align-center {
    align-items: center;
  }
  .text-center {
    text-align: center;
  }
  .text-white {
    color: var(--white);
  }
  .text-black {
    color: var(--black);
  }
  .text-light-primary {
    color: var(--light-primary);
  }

  .col-4 {
    width: 32%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .col-6 {
    width: 50%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }
  .col-7 {
    width: 60%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }
  .gap-2 {
    gap: 0.625rem;
  }
  .gap-3 {
    gap: 1rem;
  }
  .gap-20 {
    gap: 20px;
  }
  .gap-30 {
    gap: 30px;
  }
  .gap-50 {
    gap: 50px;
  }
  .mt-0 {
    margin-top: 0 !important;
  }
  .mt-1 {
    margin-top: 0.625rem !important;
  }
  .mt-2 {
    margin-top: 1rem !important;
  }
  .mt-3 {
    margin-top: 1.5rem !important;
  }
  .mt-4 {
    margin-top: 2rem !important;
  }
  .mt-5 {
    margin-top: 2.5rem !important;
  }
  .mb-0 {
    margin-bottom: 0 !important;
  }
  .mb-1 {
    margin-bottom: 0.625rem !important;
  }
  .mb-2 {
    margin-bottom: 1rem !important;
  }
  .mb-3 {
    margin-bottom: 1.5rem !important;
  }
  .mb-4 {
    margin-bottom: 2rem !important;
  }
  .mb-5 {
    margin-bottom: 2.5rem !important;
  }
  .pt-0 {
    padding-top: 0 !important;
  }
  .pt-1 {
    padding-top: 0.625rem !important;
  }
  .pt-2 {
    padding-top: 1rem !important;
  }
  .pt-3 {
    padding-top: 1.5rem !important;
  }
  .pt-4 {
    padding-top: 2rem !important;
  }
  .pt-5 {
    padding-top: 2.5rem !important;
  }
  .pb-0 {
    padding-bottom: 0 !important;
  }
  .pb-1 {
    padding-bottom: 0.625rem !important;
  }
  .pb-2 {
    padding-bottom: 1rem !important;
  }
  .pb-3 {
    padding-bottom: 1.5rem !important;
  }
  .pb-4 {
    padding-bottom: 2rem !important;
  }
  .pb-5 {
    padding-bottom: 2.5rem !important;
  }

  .p-big {
    font-size: 1.875rem;

    @media screen and (max-width: 767px) {
      font-size: 1.5rem;
    }
  }

  .p-large {
    font-size: 1.25rem;

    @media screen and (max-width: 767px) {
      font-size: 1rem;
    }
  }

  @media screen and (max-width: 767px) {
    .mobile-column {
      flex-direction: column;
    }
  }
  .reverse-mobile {
    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
    }
  }
}
