.watch-and-read-list__wrapper {
  padding: var(--sizing-xl) var(--sizing-l);
  overflow: hidden;
  position: relative;

  @media (width >=768px) and (width < 1024px) {
    padding-bottom: var(--sizing-l);
  }

  @media (width >= 1024px) {
    margin: auto;
    padding: var(--spacing-xbig) 56px;
  }

  .watch-and-read-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sizing-m);

    @media (width >= 1024px) {
      margin-bottom: var(--sizing-xl);
    }

    .watch-and-read-list__title {
      color: var(--neutrals-sub-texts-paragraphs);
      font: var(--heading-regular);
      line-height: 24px;

      @media (width >= 1024px) {
        color: var(--neutrals-headings);
        font-size: var(--fs-xxlarge);
        line-height: var(--lh-xlarge);
      }
    }

    .watch-and-read-list__nav-wrapper {
      display: none !important;

      @media (width >= 1024px) {
        display: flex !important;
      }
    }
  }

  .watch-and-read-list__tabs-wrapper {
    margin-bottom: var(--sizing-l);
    width: fit-content;

    @media (width >= 1024px) {
      margin-bottom: var(--spacing-l);
      position: relative;
      z-index: 2;
    }

    .watch-and-read-list__tabs {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      position: relative;
      gap: var(--sizing-s);

      @media (width >=768px) and (width < 1024px) {
        gap: 14.5px;
      }

      @media (width >= 1024px) {
        gap: var(--spacing-xsmall);
      }

      .watch-and-read-list__tab {
        background: none;
        border: none;
        color: var(--neutrals-sub-texts-paragraphs);
        font: var(--text-medium-regular);
        cursor: pointer;
        padding: var(--spacing-xsmall) var(--spacing-none) var(--sizing-s);
        word-break: keep-all;
        white-space: nowrap;
        min-width: 108px;

        @media (width >=768px) and (width < 1024px) {
          min-width: 140px;
        }

        @media (width >= 1024px) {
          padding: var(--spacing-xsmall) var(--sizing-l) var(--sizing-s);
          min-width: 148px;
          font-size: var(--fs-small);
        }
      }

      .watch-and-read-list__tab--active {
        font-weight: var(--fw-700);
        color: var(--primary-color);
        line-height: var(--lh-small);
        border-bottom: 2px solid var(--primary-color);
        text-transform: uppercase;
        z-index: 1;
        position: relative;
      }
    }
  }

  .watch-and-read-list__content-wrapper {
    @media (width >= 1024px) {
      position: relative;
    }

    .splide__arrows {
      display: none;
    }

    .splide__list {
      display: flex;
      flex-direction: row;
      list-style: none;
      padding-bottom: var(--sizing-m);
    }

    .watch-and-read-list__card {
      position: relative;
      width: 100%;
      height: auto;
      aspect-ratio: 320 / 171;
      flex: 0 0 auto;

      @media (width >=768px) and (width < 1024px) {
        aspect-ratio: 356 / 190;
      }

      @media (width >= 1024px) {
        aspect-ratio: 402 / 214;
      }
    }

    .splide__pagination {
      top: 0;
    }
  }
}

.watch-and-read-list__card-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--neutrals-sub-texts-paragraphs);

  .watch-and-read-list__card-details {
    height: 100%;

    .watch-and-read-list__card-image {
      width: 100%;
      height: 100%;

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

    .watch-and-read-list__card-content {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: end;
      font: var(--text-small-medium);
      padding: var(--sizing-m) var(--sizing-m) 17px;
      color: var(--tertiary-color);
      background: var(--card-content);
      gap: var(--spacing-xsmall);

      @media (width >=768px) and (width < 1024px) {
        padding: 19px 18px;
        gap: 9px;
      }

      @media (width >= 1024px) {
        padding: var(--sizing-m);
      }

      .watch-and-read-list__card-type {
        display: flex;
        align-items: center;
        gap: var(--sizing-2xs);
        font-size: var(--fs-xsmall);
        line-height: 11.393px; /* 94.943% */
        letter-spacing: 0.326px;

        @media (width >=768px) and (width < 1024px) {
          font-size: 13px;
          line-height: 12.675px;
          gap: 5px;
          color: var(--gradient-text-black-80);
        }

        @media (width >= 1024px) {
          line-height: 14.284px; /* 119.03% */
          letter-spacing: 0.408px;
        }
      }

      .watch-and-read-list__card-type.video-icon::before {
        content: '';
        display: inline-block;
        width: 12.8px;
        height: 12.8px;
        vertical-align: middle;
        background: center / contain no-repeat url('/genuine-accessories/icons/smart_display.svg');

        @media (width >=768px) and (width < 1024px) {
          width: 11.867px;
          height: 9.493px;
        }

        @media (width >= 1024px) {
          width: 17.88px;
          height: 17.88px;
        }
      }

      .watch-and-read-list__card-title {
        font-size: var(--fs-small);
        font-weight: var(--fw-700);
        line-height: 16.276px;

        @media (width >=768px) and (width < 1024px) {
          font-size: 15.575px;
          line-height: 18.107px;
        }

        @media (width >= 1024px) {
          font-size: var(--fs-medium);
          line-height: 20.405px;
        }
      }

      .watch-and-read-list__card-description {
        font-size: var(--fs-xsmall);
        line-height: 11.393px;
        letter-spacing: 0.326px;
        color: var(--static-interactive-dots);

        @media (width >=768px) and (width < 1024px) {
          line-height: 12.675px;
          font-size: 13.35px;
        }

        @media (width >= 1024px) {
          font-size: var(--fs-small);
          line-height: 14.284px;
          letter-spacing: 0.408px;
        }
      }
    }
  }

  .watch-and-read-list__play-icon,
  .watch-and-read-list__modal-play-icon {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 32px;
    height: 32px;

    @media (width >=768px) and (width < 1024px) {
      width: 36px;
      height: 36px;
    }

    @media (width >= 1024px) {
      width: 48px;
      height: 48px;
    }

    .play-icon {
      width: 32px;
      height: 32px;

      @media (width >=768px) and (width < 1024px) {
        width: 36px;
        height: 36px;
      }

      @media (width >= 1024px) {
        width: 48px;
        height: 48px;
      }
    }
  }
}

.modal dialog {
  background-color: var(--ui-scrim-default);

  .modal-container.modal-container--watch-and-read-list {
    background: transparent;
    padding: 20px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);

    @media (width >=768px) and (width < 1024px) {
      width: 623px;
      padding: 0;
    }

    @media (width >= 1024px) {
      width: 830px;
      padding: 0;
    }

    .modal-header {
      margin-bottom: 7px;

      @media (width >= 1024px) {
        position: absolute;
        right: 8px;
        top: 8px;
        left: unset;
        z-index: 3;
      }

      .close-button-container {
        justify-content: flex-end;

        .close-button {
          transform: none;
          position: unset;

          @media (width >=768px) {
            width: 48px;
            height: 48px;
          }

          .icon.icon-close {
            background-image: url('/genuine-accessories/icons/close-light.svg');
          }
        }
      }
    }

    .modal-content {
      width: 100%;
      overflow-y: hidden;

      .watch-and-read-list__modal-content {
        position: relative;
        height: 168px;

        @media (width >=768px) and (width < 1024px) {
          height: 327px;
        }

        @media (width >= 1024px) {
          height: 436px;
        }

        .watch-and-read-list__card-content-wrapper {
          position: relative;
          z-index: 2;
          transition: opacity 0.3s ease;

          &.is-hidden {
            opacity: 0;
            pointer-events: none;
          }

          .watch-and-read-list__card-details {
            .watch-and-read-list__card-image img.is-hidden {
              display: none !important;
            }

            .watch-and-read-list__card-content {
              gap: 6px;
              padding: 12.8px;
              position: absolute;

              @media (width >=768px) and (width < 1024px) {
                padding: 18px;
                gap: 12px;
              }

              @media (width < 768px) {
                border-radius: 4px;
              }

              @media (width >= 1024px) {
                gap: var(--sizing-m);
                padding: var(--sizing-xl);
              }

              .watch-and-read-list__card-type {
                font-size: 8px;
                line-height: 11.2px;

                @media (width >=768px) and (width < 1024px) {
                  font-size: 15px;
                  line-height: 21.322px;
                  letter-spacing: 0.609px;
                  color: var(--gradient-text-black-80);
                }

                @media (width >= 1024px) {
                  font-size: var(--fs-large);
                  line-height: 28.429px;
                  letter-spacing: 0.812px;
                }
              }

              .watch-and-read-list__card-type::before {
                @media (width >=768px) and (width < 1024px) {
                  width: 20px;
                  height: 16px;
                }

                @media (width >= 1024px) {
                  width: 32px;
                  height: 32px;
                }
              }

              .watch-and-read-list__card-title {
                font-size: 12.8px;
                line-height: 16px;

                @media (width >=768px) and (width < 1024px) {
                  font-size: var(--fs-xmedium);
                  font-weight: var(--fw-700);
                  line-height: 30.46px;
                }

                @media (width >= 1024px) {
                  font-size: var(--fs-xlarge);
                  line-height: 40.614px;
                }
              }

              .watch-and-read-list__card-description {
                font-size: var(--fs-xxsmall);
                font-weight: var(--fw-400);
                line-height: 12.8px;
                letter-spacing: 0.192px;

                @media (width >=768px) and (width < 1024px) {
                  font-size: var(--fs-xsmall);
                  line-height: 24.368px;
                  letter-spacing: 0.366px;
                }

                @media (width >= 1024px) {
                  font-size: var(--fs-medium);
                  line-height: 32.491px;
                  letter-spacing: 0.487px;
                }
              }
            }
          }

          .watch-and-read-list__modal-play-icon {
            @media (width >=768px) and (width < 1024px) {
              width: 60px;
              height: 60px;
            }

            @media (width >= 1024px) {
              width: 80px;
              height: 80px;
            }
          }
        }

        .watch-and-read-list__modal-video-wrapper {
          overflow: hidden;
          height: 168px;
          position: absolute;
          inset: 0;
          z-index: 1;

          @media (width < 768px) {
            border-radius: 4px;
          }

          @media (width >= 1024px) {
            height: 436px;
          }

          @media (width >=768px) and (width < 1024px) {
            height: 327px;
          }

          .video-js {
            width: 100%;
            height: 100%;
          }

          video {
            object-fit: fill;
          }
        }
      }
    }
  }
}

.watch-and-read-list__wrapper.shimmer {
  .watch-and-read-list__tabs-wrapper::after {
    display: none;
  }

  .shimmer-tab {
    height: 40px;
    border: none;
    min-width: 103px;

    @media (width >= 1024px) {
      width: 140px;
    }
  }

  .shimmer__list {
    display: flex;
    gap: 24px;

    @media (width < 1024px) {
      gap: 16px;
    }
  }

  .shimmer-card {
    height: 171px;
    min-width: 100%;

    @media (width >= 1024px) {
      height: 214px;
      min-width: fit-content;
      margin-right: 0 !important;
    }
  }
}
