/*
! tailwindcss v3.3.6 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: "";
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
  tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

*,
::before,
::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}

/*-----------------------------------*\
 * #style.css
\*-----------------------------------*/

/**
 * copyright 2022 @codewithsadee
 */

/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /**
     * colors
     */
  --rich-black-fogra-29: hsl(225, 25%, 9%);
  --rich-black-fogra-39: hsl(170, 21%, 5%);
  --raisin-black: hsl(228, 13%, 15%);
  --eerie-black: hsl(207, 19%, 11%);
  --light-gray: hsl(0, 3%, 80%);
  --gunmetal-1: hsl(229, 15%, 21%);
  --gunmetal-2: hsl(216, 22%, 18%);
  --gainsboro: hsl(0, 7%, 88%);
  --citrine: hsl(57, 97%, 45%);
  --xiketic: hsl(253, 21%, 13%);
  --gray-x: hsl(0, 0%, 74%);
  --white: hsl(0, 100%, 100%);
  --black: hsl(0, 0%, 0%);
  --jet: hsl(0, 0%, 20%);
  /**
     * typography
     */
  --ff-poppins: "Poppins", sans-serif;
  --fs-1: 36px;
  --fs-2: 32px;
  --fs-3: 30px;
  --fs-4: 24px;
  --fs-5: 20px;
  --fs-6: 18px;
  --fs-7: 16px;
  --fs-8: 15px;
  --fs-9: 14px;
  --fs-10: 13px;
  --fs-11: 12px;
  --fs-12: 11px;
  --fw-500: 500;
  --fw-700: 700;
  /**
     * transition
     */
  --transition-1: 0.15s ease;
  --transition-2: 0.25s ease-in;
  /**
     * spacing
     */
  --section-padding: 100px;
}

/*-----------------------------------*\
   * #RESET
  \*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

input {
  font: inherit;
  width: 100%;
  border: none;
}

select,
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

html {
  font-family: var(--ff-poppins);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--eerie-black);
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 70px; /* Prevent content from hiding under fixed navbar */
}

/* Remove padding when OverlayScrollbars is active (it handles it) */
body.os-host {
  padding-top: 70px !important; /* OverlayScrollbars CSS will handle this */
}

body, html {
  height: 100%;
}

body.active {
  overflow: hidden;
}

/*-----------------------------------*\
   * #REUSED STYLE
  \*-----------------------------------*/

.container {
  padding-inline: 15px;
}

/**
   * TITLES & SUBTITLES
   */

.h1,
.h2,
.h3 {
  color: var(--white);
  line-height: 1.2;
}

.h1 {
  font-size: var(--fs-1);
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-6);
}

.section-subtitle {
  color: var(--citrine);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  text-align: center;
}

/**
   * BADGE
   */

.badge {
  color: var(--white);
  font-size: var(--fs-12);
  font-weight: var(--fw-700);
  border: 2px solid transparent;
  padding: 2px 10px;
}

.badge-fill {
  background: var(--white);
  color: var(--raisin-black);
}

.badge-outline {
  border-color: var(--white);
}

/**
   * MOVIE META
   */

.meta-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 15px 25px;
  margin-bottom: 50px;
}

.badge-wrapper,
.ganre-wrapper,
.date-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}

.ganre-wrapper>a {
  color: var(--gainsboro);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.ganre-wrapper>a:is(:hover, :focus) {
  color: var(--citrine);
}

.date-time {
  gap: 15px;
}

.date-time>div {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gainsboro);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
}

.date-time ion-icon {
  --ionicon-stroke-width: 50px;
  color: var(--citrine);
}

/**
   * BUTTONS
   */

.btn {
  color: var(--white);
  font-size: var(--fs-11);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 2px solid var(--citrine);
  border-radius: 50px;
  transition: var(--transition-1);
}

.btn>ion-icon {
  font-size: 18px;
}

.btn-primary {
  background: var(--rich-black-fogra-29);
  --fs-11: 14px;
  padding: 8px 16px;
  letter-spacing: 1px;
  color: white;
}

.btn-primary:is(:hover, :focus) {
  background: var(--citrine);
  color: var(--xiketic);
}

.btn-danger {
  background: var(--indian-red);
  color: var(--white);
}

.btn-danger:is(:hover, :focus) {
  background: var(--dark-red);
  color: var(--white);
}

/**
   * MOVIE CARD
   */

.related-list {
  /* //horizontal list with scroll bar */
  display: grid;
  gap: 50px;
  height: 800px;
}

.movie-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.movie-card .card-banner {
  position: relative;
  background: var(--gunmetal-1);
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition-1);
}

.movie-card .card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: var(--transition-1);
}

.movie-card .card-banner:hover {
  box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.5);
}

.movie-card .card-banner:hover::after {
  background: hsla(0, 0%, 100%, 0.05);
}

.movie-card .card-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.movie-card .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.movie-card .card-title {
  color: var(--white);
  font-size: var(--fs-7);
  transition: var(--transition-1);
}

.movie-card .card-title:is(:hover, :focus) {
  color: var(--citrine);
}

.movie-card .title-wrapper time {
  color: var(--citrine);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
}

.movie-card .card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.movie-card .badge {
  color: var(--citrine);
}

.movie-card :is(.duration, .rating) {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gainsboro);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
}

.movie-card :is(.duration, .rating) ion-icon {
  font-size: 13px;
  --ionicon-stroke-width: 50px;
  color: var(--citrine);
}

/**
   * CUSTOM SLIDER & SCROLLBAR
   */
     /*  //horizontal list with scroll bar 
  @media (min-aspect-ratio: 4/3), (min-height: 800px) {
    .movies-list {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
  //vertical list for smaller screens 
  @media (max-aspect-ratio: 4/3), (max-height: 800px) {
    .movies-list {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  } */
.movies-list {
    gap: 30px;
    padding-bottom: 25px;
    overflow-x: visible;
    overflow-y: visible;
}

/* Only apply horizontal scrollbar styling to lists that explicitly have the class */
.movies-list.has-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding-bottom: 25px;
  scroll-snap-type: x mandatory;
}

#moviesList > li, #relatedMoviesList > li {
  flex: 1 0 calc(16.6667% - 30px); /* 100% / 6 columns - gap size */
  min-width: unset;
  scroll-snap-align: start;
}

.has-scrollbar::-webkit-scrollbar {
  width: 10px; 
  height: 8px;
  background-image: linear-gradient(to bottom right,
      rgb(70, 120, 212),
      rgb(18, 22, 250));
  border-radius: 15px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: #8a8787;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 var(--black), inset 0 -1px 0 var(--black);
}

.has-scrollbar::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(to bottom right,
      rgb(229, 255, 0),
      rgb(255, 153, 0));
}

@media screen and (min-width: 768px) {
  .movies-list.has-scrollbar {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (min-width: 1024px) {
  .movies-list.has-scrollbar {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Global Scrollbar Styling - Applied to ALL Pages */
/* Custom Scrollbar - Clean & Universal (NO ARROWS) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c8ef7 0%, #8b5fc2 100%);
}

/* Remove scrollbar arrows/buttons completely */
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #667eea rgba(0, 0, 0, 0.2);
}

/*-----------------------------------*\
   * #HERO
  \*-----------------------------------*/

.hero {
  background: url("/imgs/hero-bg.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 750px;
  height: 100vh;
  max-height: 1000px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-block: var(--section-padding);
}

#movieBackdrop {
  min-height: 300px;
  height: 60vh;
  max-height: 1000px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-block: var(--section-padding);
  background-size: cover;
  background-position: center;
}
#movieBackdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
  z-index: 1;
}
.movie-detail-banner {
  position: relative;
  background: var(--gunmetal-1);
  max-width: 300px;
  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 50px;
}

.movie-detail-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.hero-content {
  margin-top: 60px;
}

.hero-subtitle {
  color: var(--citrine);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  margin-bottom: 10px;
}

.hero-title {
  margin-bottom: 30px;
}

.hero-title>strong {
  color: var(--citrine);
}

/*-----------------------------------*\
   * #UPCOMING
  \*-----------------------------------*/

.upcoming {
  margin-top: 50px;
  background-size: cover;
  background-position: center;
  padding-block: var(--section-padding);
}

.upcoming .flex-wrapper {
  margin-bottom: 50px;
}

.upcoming .section-title {
  margin-bottom: 30px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.upcoming .filter-btn {
  color: var(--white);
  background: var(--raisin-black);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  border: 2px solid var(--gunmetal-1);
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition-1);
  width: 8rem;
}

.upcoming .filter-btn:focus {
  border-color: var(--citrine);
}



/*-----------------------------------*\
   * #SERVICE  ("../images/service-bg.jpg")
  \*-----------------------------------*/

.service {
  background: url("/imgs/service-bg.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  padding-block: var(--section-padding);
}

.service-banner {
  position: relative;
  margin-bottom: 50px;
  max-width: -moz-max-content;
  max-width: max-content;
}

.service-banner img {
  width: 100%;
}

.service-btn {
  position: absolute;
  bottom: 0;
  right: 86px;
  background: var(--citrine);
  color: var(--rich-black-fogra-29);
  font-size: var(--fs-11);
  text-transform: uppercase;
  font-weight: var(--fw-500);
  letter-spacing: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: rotate(0.25turn);
  transform-origin: bottom right;
  padding: 28px 35px;
  border-radius: 6px;
}

.service-btn ion-icon {
  font-size: 30px;
  transform: rotate(-0.25turn);
}

.service-subtitle {
  position: relative;
  color: var(--gainsboro);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 50px;
  margin-bottom: 10px;
}

.service-subtitle::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--citrine);
}

.service-title {
  margin-bottom: 20px;
}

.service-text,
.service-card .card-text {
  color: var(--gray-x);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  line-height: 1.8;
}

.service-text {
  margin-bottom: 40px;
}

.service-list>li:first-child {
  padding-bottom: 20px;
  border-bottom: 1px dashed hsla(0, 0%, 100%, 0.1);
  margin-bottom: 30px;
}

.service-card .card-icon {
  color: var(--white);
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  font-size: 40px;
  border-radius: 50%;
  outline: 1px dashed var(--citrine);
  outline-offset: 5px;
  margin: 5px;
  margin-bottom: 20px;
  transition: var(--transition-2);
}

.service-card:hover .card-icon {
  background: var(--citrine);
}

.service-card .card-title {
  margin-bottom: 10px;
}

/*-----------------------------------*\
   * #TOP RATED
  \*-----------------------------------*/

.top-rated {
  background: url("/imgs/top-rated-bg.jpg") no-repeat; 
  background-size: cover;
  background-position: center;
  padding-block: var(--section-padding);
}

.top-rated .section-title {
  margin-bottom: 50px;
}

.top-rated .filter-list {
  gap: 15px;
  margin-bottom: 50px;
}

.top-rated .filter-btn {
  position: relative;
  background: var(--rich-black-fogra-39);
  color: var(--light-gray);
  font-size: var(--fs-10);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  padding: 17px 25px;
  border-radius: 4px;
  box-shadow: inset 0 3px 7px hsla(0, 0%, 0%, 0.8);
}

.top-rated .filter-btn:focus {
  color: var(--citrine);
  text-shadow: 0 3px 25px hsla(57, 97%, 45%, 0.5);
}

.top-rated .filter-btn:focus::before,
.top-rated .filter-btn:focus::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--citrine);
  width: 2px;
  height: 15px;
}

.top-rated .filter-btn:focus::before {
  left: 0;
}

.top-rated .filter-btn:focus::after {
  right: 0;
}

/*-----------------------------------*\
   * #TV SEREIS
  \*-----------------------------------*/

.tv-series {
  background: url("/imgs/tv-series-bg.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  padding-block: var(--section-padding);
}

.tv-series .section-title {
  margin-bottom: 50px;
}

/*-----------------------------------*\
   * #CTA
  \*-----------------------------------*/

.cta {
  background: url("/imgs/cta-bg.jpg") no-repeat; 
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-block: 50px;
}

.cta .title-wrapper {
  margin-bottom: 25px;
}

.cta-title {
  color: var(--eerie-black);
  font-size: var(--fs-3);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 5px;
}

.cta-text {
  color: var(--eerie-black);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  line-height: 1.8;
}

.cta .email-field {
  color: var(--eerie-black);
  font-size: var(--fs-9);
  padding: 18px 32px;
  border-radius: 4px;
  box-shadow: 0 3px 4px hsla(0, 0%, 0%, 0.2);
  margin-bottom: 15px;
}

.cta-form-btn {
  background: var(--eerie-black);
  color: var(--citrine);
  font-size: var(--fs-9);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--eerie-black);
  padding: 15px 34px;
  border-radius: 4px;
  margin-inline: auto;
  transition: var(--transition-1);
}

.cta-form-btn:is(:hover, :focus) {
  background: var(--citrine);
  color: var(--eerie-black);
}

/*-----------------------------------*\
   * #FOOTER
  \*-----------------------------------*/

#footer {
  /*     position:fixed;
    left:0px;
    bottom:0px;
    height:300px;
    width:100%;
    background:#999; */
  display: none;
}

.footer-top {
  background: url("/imgs/footer-bg.jpg") no-repeat; 
  background-size: cover;
  background-position: center;
  padding-block: 80px 50px;
}

.footer-brand-wrapper .logo {
  width: -moz-max-content;
  width: max-content;
  margin-inline: auto;
  margin-bottom: 60px;
}

.footer-list,
.quicklink-list,
.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.footer-link {
  color: var(--light-gray);
  font-size: var(--fs-9);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  padding: 5px 15px;
  transition: var(--transition-1);
}

:is(.footer-link, .quicklink-link, .social-link):is(:hover, :focus) {
  color: var(--citrine);
}

.divider {
  height: 4px;
  margin-block: 40px;
  border-top: 1px solid var(--rich-black-fogra-29);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.quicklink-list {
  margin-bottom: 20px;
}

.quicklink-link {
  color: var(--gray-x);
  font-size: var(--fs-10);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  padding: 2px 10px;
  transition: var(--transition-1);
}

.social-list {
  -moz-column-gap: 10px;
  column-gap: 10px;
}

.social-link {
  background: var(--rich-black-fogra-29);
  color: var(--gray-x);
  font-size: 14px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 4px 8px hsla(0, 0%, 0%, 0.25);
  transition: var(--transition-1);
}

.footer-bottom {
  padding-block: 25px;
}

.copyright {
  color: var(--gray-x);
  font-size: var(--fs-10);
  font-weight: var(--fw-500);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 15px;
}

.copyright>a {
  display: inline-block;
  color: var(--citrine);
}

.footer-bottom-img {
  max-width: -moz-max-content;
  max-width: max-content;
  width: 100%;
  margin-inline: auto;
}

/*-----------------------------------*\
   * #GO TO TOP
  \*-----------------------------------*/

.go-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--citrine);
  color: var(--eerie-black);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
  z-index: 2;
}

.go-top.active {
  opacity: 1;
  visibility: visible;
}

/*-----------------------------------*\
   * #MOVIE DETAIL
  \*-----------------------------------*/

.movie-detail {
  /* background: url("/imgs/movie-detail-bg.png") no-repeat;  */
  background-size: cover;
  background-position: center;
  padding-top: 160px;
  padding-bottom: var(--section-padding);
  opacity: 1;
}

.movie-detail-banner {
  position: relative;
  background: var(--gunmetal-1);
  max-width: 300px;
  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 50px;
}

.movie-detail-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 120px;
  color: var(--white);
  transition: var(--transition-1);
}

.play-btn:hover {
  background: hsla(0, 0%, 0%, 0.25);
}

.detail-subtitle {
  font-size: var(--fs-5);
  color: var(--citrine);
  font-weight: var(--fw-700);
  margin-bottom: 10px;
}

.detail-title {
  margin-bottom: 20px;
}

.detail-title strong {
  color: var(--citrine);
}

.movie-detail .meta-wrapper {
  margin-bottom: 30px;
}

.storyline {
  color: var(--gray-x);
  font-size: var(--fs-20);
  font-weight: var(--fw-500);
  line-height: 1.8;
  margin-bottom: 40px;
}
/* Favorites / Likes */
#ggg{
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 10px;
}
.Favorites{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.Favorites ion-icon {
  color: red;
  }
  #heartIcon:hover{
      cursor: pointer;
  }
  #heartIcon{
      font-size: 2rem;
      /* transition */
      transition: transform 0.2s ease-in-out;
}
.favSpan{
  font-size: 1.5rem;
  color: red;
  margin-left: 5px;
}
#heartIcon.active{
  transform: scale(1.2);
  color: red;
}
  .heart-animation {
      animation: heartBeat 0.8s infinite;
  }

  @keyframes heartBeat {
      0% {
          transform: scale(1);
      }
      50% {
          transform: scale(1.2);
      }
      100% {
          transform: scale(1);
      }
  }

  .heart-red {
      color: red;
  }

  .heart-icon-container {
      position: relative;
      display: inline-block;
  }

  .heart-particles { /* the animation is  happening in the middle of the page make it relative to heart icon */
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
  }

  .heart-particle {
      position: absolute;
      width: 10px;
      height: 10px;
      background-color: red;
      border-radius: 50%;
      animation: particleShoot 1s ease-out;
  }

  @keyframes particleShoot {
      0% {
          transform: translate(-50%, -50%) scale(1);
          opacity: 1;
      }
      100% {
          transform: translate(-50%, -150%) scale(0);
          opacity: 0;
      }
  }
  /* user Favorites */
   /*     <section class="mb-20">
        <h2 class="h2 content text-center mb-5">Favorites</h2>
        <div class="favorites" id="movieFavorites">
            <p>Movies</p>
            <!-- User movie favorites will be displayed here -->
            <ul id="  ">
{{--                 <li>
                    <div class="movie-card">
                        <img src="" alt="">
                        <h3 class="movie-title"></h3>
                        <p class="release-date"></p>
                    </div>
                </li> --}}
            </ul>
        </div>
        <div class="favorites" id="peopleFavorites">
            <p>People</p>
            <!-- User people favorites will be displayed here -->
            <ul id="personList">
{{--                 <li>
                    <div class="person-card">
                        <img src="" alt="">
                        <h3 class="person-name"></h3>
                    </div>
                </li> --}}
            </ul>
        </div>
    </section> */
      /* use the above html to make styles */
  .favorites {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 10px;
    margin-left: 2rem;
}
.favorites p{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
.favorites ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}
.favorites ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    height: 300px;
    background: var(--gunmetal-1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition-1);
}
.favorites ul li:hover {
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.5);
}
.favorites ul li img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.favorites ul li .movie-title {
    color: var(--white);
    font-size: var(--fs-7);
    transition: var(--transition-1);
}
.favorites ul li .movie-title:is(:hover, :focus) {
    color: var(--citrine);
}
.favorites ul li .release-date {
    color: var(--citrine);
    font-size: var(--fs-9);
    font-weight: var(--fw-500);
}
.favorites ul li .person-name {
    color: var(--white);
    font-size: var(--fs-7);
    transition: var(--transition-1);
}
.favorites ul li .person-name:is(:hover, :focus) {
    color: var(--citrine);
}

    /* ///////// */
.actions {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 40px;
  max-width: 600px;
  background: var(--gunmetal-2);
  padding: 10px;
  border: 2px solid var(--jet);
  border-radius: 4px;
  margin-bottom: 30px;
  box-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.5);
/*   width: 80%;
  height: 80%;
  margin-inline: auto; */
}
.action{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-basis: 100%;
  flex-basis: 200px;
  flex-grow: 1;
  flex-shrink: 1;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
  font-size: .9em;
  color: #fff;
  text-align: center;
  transition: all .2s ease-in-out;
  padding: 5px;
  flex-basis: 100%;
  border-bottom: 2px solid var(--jet);
  &:last-child {
    border-bottom: none;
  }
}
/* .action:hover {
  background: #fff;
  color: #000;
} */

.share ion-icon {
  font-size: 25px;
  color: var(--white);
  margin-inline: auto;
}

.share span {
  color: var(--gainsboro);
  font-size: var(--fs-11);
  transition: var(--transition-1);
}

.share:is(:hover, :focus) span {
  color: var(--citrine);
}

.actions .title {
  color: var(--white);
  font-weight: var(--fw-700);
}

.actions .text {
  font-size: var(--fs-11);
  color: var(--gainsboro);
}

.actions .btn-primary,
.actions .btn-danger {
  --fs-11: 14px;
  padding: 8px 16px;
  letter-spacing: 1px;
  background: transparent;
  border: 2px solid var(--citrine);
  color: var(--citrine);
  text-transform: uppercase;
  transition: var(--transition-1);
}

.actions .btn-primary:hover,
.actions .btn-primary:focus,
.actions .btn-danger:hover,
.actions .btn-danger:focus {
  background: var(--citrine);
  color: var(--rich-black-fogra-29);
}

.actions .btn-danger {
  border-color: var(--red);
  color: var(--red);
}

/* .actions .btn-danger:hover,
.actions .btn-danger:focus {
  background: var(--red);
  color: var(--white);
} */

.download-btn {
  max-width: -moz-max-content;
  max-width: max-content;
  background: var(--citrine);
  color: var(--rich-black-fogra-29);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 35px;
  letter-spacing: 5px;
  border-radius: 6px;
}

.download-btn ion-icon {
  font-size: 16px;
}

/*-----------------------------------*\
   * #MEDIA QUERIES
  \*-----------------------------------*/

/**
   * responsive for large than 550px screen
   */

@media (min-width: 550px) {
  /**
     * CUSTOM PROPERTY
     */

  :root {
    /**
       * typography
       */
    --fs-1: 42px;
  }

  /**
     * REUSED STYLE
     */

  .container {
    max-width: 540px;
    margin-inline: auto;
  }

  /* MOVIE CARD */
  .movies-list {
    grid-template-columns: 1fr 1fr;
    gap: 60px 30px;
  }
  /**
     * HERO
     */

  .hero {
    min-height: unset;
  }

  .hero-content {
    margin-top: 20px;
  }

  /**
     * UPCOMING
     */
     .upcoming .movies-list > li { min-width: calc(50% - 15px); }
  /**
     * SERVICE
     */

  .service-list>li:first-child {
    padding-bottom: 30px;
  }

  .service-card {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .service-card .card-icon {
    margin-bottom: 0;
  }

  .service-card .card-content {
    width: calc(100% - 115px);
  }

  /**
     * MOVIE DETAIL
     */

  .detail-subtitle {
    --fs-5: 22px;
  }

  .detail-title {
    --fs-1: 46px;
  }
}

/**
   * responsive for large than 768px screen
   */

@media (min-width: 768px) {
  /**
     * CUSTOM PROPERTY
     */

  :root {
    /**
       * typography
       */
    --fs-2: 36px;
  }

  /**
     * REUSED STYLE
     */

  .container {
    max-width: 720px;
  }

  /**
     * HERO
     */

  .hero-content {
    margin-top: 90px;
  }

  /**
     * SERVICE
     */

  .service-btn {
    right: -20px;
    padding: 40px 50px;
  }

  .service-content {
    padding-inline: 40px;
  }

  /**
     * CTA
     */

  .cta-form {
    position: relative;
    max-width: 530px;
    margin-inline: auto;
  }

  .cta .email-field {
    margin-bottom: 0;
  }

  .cta-form-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
  }

  /**
     * FOOTER
     */
  /* footer{
    position:fixed;
    left:0px;
    bottom:0px;
    height:200px;
    width:100%;
    background:#999;
  } */
  .footer-brand-wrapper .logo {
    margin: 0;
  }

  .footer-brand-wrapper,
  .quicklink-wrapper,
  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .quicklink-list {
    margin-bottom: 0;
  }

  .copyright {
    margin-bottom: 0;
  }

  .footer-bottom-img {
    margin-inline: 0;
  }

  /**
     * MOVIE DETAIL
     */

  .detail-subtitle {
    --fs-5: 26px;
  }

  .detail-title {
    --fs-1: 50px;
  }
}

/**
   * responsive for large than 992px screen
   */

@media (min-width: 992px) {
  /**
     * REUSED STYLE
     */

  .container {
    max-width: 960px;
  }

  /* MOVIE CARD */
  .movies-list { grid-template-columns: repeat(3, 1fr); }

  /**
     * HERO
     */

  .hero {
    background-position: right;
  }

  .hero .container {
    width: 950px;
  }

  .hero-content {
    margin-top: 100px;
    max-width: 600px;
  }

  /**
     * UPCOMING
     */

  .upcoming .flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .upcoming :is(.section-subtitle, .section-title) {
    text-align: left;
  }

  .upcoming .section-title {
    margin-bottom: 0;
  }
  .upcoming .movies-list > li { min-width: calc(33.33% - 20px); }
  /**
     * SERVICE
     */

  .service .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
  }

  .service-content {
    padding-inline: 0;
    width: calc(100% - 470px);
  }

  .service-banner {
    margin-bottom: 0;
  }

  .service-btn {
    right: 111px;
  }

  /**
     * CTA
     */

  .cta {
    text-align: left;
  }

  .cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cta .title-wrapper {
    margin-bottom: 0;
    width: 100%;
  }

  .cta-form {
    margin-inline: 0;
    max-width: unset;
    width: 100%;
  }

  /**
     * MOVIE DETAIL
     */

  .movie-detail {
    padding-bottom: 200px;
  }

  .movie-detail .container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 50px;
  }

  .movie-detail-banner,
  .actions {
    margin: 0;
  }

  .download-btn {
    position: absolute;
    left: 15px;
    bottom: -80px;
  }
}

/**
   * responsive for large than 1200px screen
   */

@media (min-width: 1200px) {
  /**
     * CUSTOM PROPERTY
     */

  :root {
    /**
       * typography
       */
    --fs-1: 60px;
    --fs-4: 26px;
  }

  /**
     * REUSED STYLE
     */

  .container {
    max-width: 1320px;
  }

  /* MOVIE CARD */
  .movies-list { grid-template-columns: repeat(4, 1fr); }

  .btn-danger {
    --fs-11: 14px;
    padding: 8px 16px;
    letter-spacing: 1px;
    color: white;
    background-color: rgb(32, 43, 67);
  }

  /**
     * HERO
     */

  .hero .container {
    width: 1320px;
  }

  /**
     * UPCOMING
     */
     .upcoming .movies-list > li { min-width: calc(25% - 22.5px); }
  /**
     * SERVICE
     */

  .service-content {
    width: calc(100% - 700px);
  }

  .service-btn {
    right: -20px;
  }

  .service-list,
  .service-title {
    max-width: 480px;
  }

  /**
     * CTA
     */

  .cta .container {
    max-width: 1150px;
  }

  /**
     * MOVIE DETAIL
     */

  .movie-detail {
    padding-bottom: var(--section-padding);
  }

  .movie-detail-content {
    max-width: 620px;
  }

  .detail-title {
    --fs-1: 60px;
  }

  .download-btn {
    left: auto;
    right: 15px;
    bottom: 0;
    transform: rotate(0.25turn) translateY(100%);
    transform-origin: bottom right;
    padding: 40px 50px;
  }

  .download-btn ion-icon {
    font-size: 30px;
    transform: rotate(-0.25turn);
  }
}

/* Media */
#videoContainer {
  position: relative;
  overflow: hidden;
  margin-right: 1rem;
  margin-left: 1rem;
}

.media-item {
  margin-bottom: 20px;
  overflow: hidden;
  max-height: 315px;
  /* Set a maximum height for the preview */
  transition: max-height 0.5s ease-in-out;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.media-container img.loaded {
  opacity: 1;
}

.load-more-btn {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  background-color: #008cba;
  color: white;
  border: none;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.load-more-btn:hover {
  background-color: white;
  color: black;
}

.media-item.hidden {
  display: none;
}

.hidden {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .media-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .media-item {
    max-height: 200px;
  }
}
.image-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  overflow: auto;
  margin-right: 1rem;
  margin-left: 1rem;
  gap: 3rem;
}
.media-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}
.media-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  max-width: 500px;
  max-height: 500px;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.media-container h2{
  color: var(--dark-red);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  margin-bottom: 10px;
  justify-self: center;
  align-self: auto;
  grid-row: span ;
  grid-column: 1 / -1;
}
.content2 {
  color: var(--dark-red);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px #10b981 solid;
}
#backdropContainer {
  flex: 1;
  margin-right: 10px;
}
#posterContainer {
  flex: 1;
  margin-left: 10px;
}

@media (max-width: 860px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 400px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 300px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 200px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 100px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 50px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 25px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}
@media (max-width: 10px) {
  .image-container {
    flex-direction: column;
  }
  #backdropContainer {
    border-right: none;
    border-bottom: 1px solid black;
    margin-right: 0;
    margin-bottom: 10px;
  }
  #posterContainer {
    margin-left: 0;
  }
}


@keyframes fadein { from { opacity: 0; } to   { opacity:
1; } }
@keyframes fadeout { from { opacity: 1; } to   { opacity:
0; } }
@keyframes fadein2 { from { opacity: 0; } to   { opacity:
1; } }
@keyframes fadeout2 { from { opacity: 1; } to   { opacity:
0; } }
@keyframes fadein3 { from { opacity: 0; } to   { opacity:
1; } }
@keyframes fadeout3 { from { opacity: 1; } to   { opacity:
0; } }


#movie-detail-banner img[src=""]{
  content: url('/imgs/roll-film.png');
}
.searchItem.Movie img:not([src]){
  content: url('/imgs/roll-film.png');
}
.person-list {
  list-style-type: none;
  font-size: 20px;
  color: #6c7a89;
  display: flex;
  flex-wrap: wrap;
}

.person {
  margin-bottom: 20px;
  padding: 15px;
}
.personImg{
  width: 150px;
  height: 150px;
}
.person-card-banner img[src=""] {
  content: url('/imgs/confused.png');
}
.searchItem.Person img:not([src]){
  content: url('/imgs/confused.png'); 
}
/* .searchItem.Person img{
  border-image-source: linear-gradient(to bottom right, rgb(70, 120, 212), rgb(18, 22, 250));
} */
.person-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  background: var(--gunmetal-1);
  width: fit-content;
  block-size: fit-content;
  max-width: 250px;

  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 50px;
}

.person-title-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
}

.person-name {
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gunmetal-1);
  color: var(--white);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 0 0 6px 6px;
  text-align: center;
  width: 100%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 0;
  word-wrap: break-word;
  margin-bottom: 10px;
}
.person-character{
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gunmetal-1);
  color: var(--white);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 0 0 6px 6px;
  text-align: center;
  width: 100%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 0;
  --tw-shadow-color: #10b981;
  --tw-shadow: var(--tw-shadow-colored);
  border-left-width: 4px;
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity));
  font-size: 0.875rem/* 14px */;
  line-height: 1.25rem/* 20px */;
  word-wrap: break-word;
}

.person-card-banner {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.personImg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
/* .personProfile img[src=""]{
  content: url('/imgs/confused.png');
} */

#theme option {
  color: blue;
}

/* sidePane */
.sidePane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  position: fixed;
  border-radius: 8px;
  top: 130px;
  right: -300px;
  bottom: 20px;
  padding: 10px;
  background-color: var(--xiketic);
  color: var(--white);
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  max-height: 2000px;
  /*   box-shadow: -1px 0 3px hsl(0, 0%, 0%, 0.2); */
  transition: 0.15s ease-in;
  visibility: hidden;
  opacity: 0;
  z-index: 5;
  margin-top: 20px;
  left: unset;
  border: 1px solid rgba(49, 46, 46, 0.9);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 5px 5px 10px 3px rgba(22, 22, 22, 0.9);
  overflow-y: auto;
}

.companyLogo {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(49, 46, 46, 0.9);
  box-shadow: 5px 5px 10px 3px rgba(22, 22, 22, 0.9);
  padding: 5px;
  margin-bottom: 10px;
  /*   animation: fadeInUp 0.7s linear forwards;  */
}

#productionCompaniesWrapper {
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* @media (min-width: 980px){
  .sidePane{
    display: none;
  }
} */
/* Adjust sidePane for the button */
.sidePane.active {
  right: 0;
  /* Adjust based on the width of the side panel */
  visibility: visible;
  opacity: 1;
  transition: 0.25s ease-out;
}

/* Hide sidePane when not active */
.sidePane:not(.active) {
  right: -110%;
  /* Adjust based on the width of the side panel */
  visibility: hidden;
  opacity: 0;
  transition: 0.15s ease-in;
}

.sidePane-top {
  padding: 30px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidePane-close-btn {
  color: var(--white);
  font-size: 25px;
  padding: 5px;
  position: absolute;
  top: 32px;
  left: 0;
}

.sidePane-close-btn ion-icon {
  --ionicon-stroke-width: 80px;
}

.sidePane-list {
  border-top: 2px solid #6c7a89;
  margin-bottom: 30px;
}

.sidePane-link {
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  padding: 10px 25px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
  transition: var(--transition-1);
}

.sidePane-link:is(:hover, :focus) {
  color: var(--citrine);
}

.sidePane-social-list {
  display: flex;
  justify-content: center;
  align-items: left;
  gap: 20px;
}

.sidePane-social-link {
  font-size: 20px;
  color: var(--white);
  transition: var(--transition-1);
}

.sidePane-social-link:is(:hover, :focus) {
  color: var(--citrine);
}

.sidePane-overlay {
  position: fixed;
  inset: 0;
  background: hsla(204, 18%, 11%, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-2);
}

.sidePane p {
  margin-left: 5px;
  text-align: left;
  font-size: 20px;
  color: var(--white);
  font-weight: var(--fw-500);
  padding: 10px 25px;
  transition: var(--transition-1);
}

.sidePane span {
  margin-bottom: 5px;
  margin-left: 5px;
  text-align: left;
  font-size: 20px;
  text-wrap: wrap;
  color: var(--white);
  font-weight: var(--fw-500);
  padding: 10px 25px;
  transition: var(--transition-1);
}

/* Button to toggle Additional Details */
@media (min-width: 960px) {
  .sidePane-toggle-btn {
    display: none;
  }
}

@media (max-width: 960px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

#toggleDetailsBtn {
  position: fixed;
  top: 400px;
  right: 20px;
  z-index: 4;
  padding: 10px;
  background-color: var(--xiketic);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 120px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
  transition: 0.15s ease-in;
  visibility: visible;
}

#toggleDetailsBtn .active {
  right: 0;
  /* Adjust based on the width of the side panel */
  visibility: visible;
  opacity: 1;
  transition: 0.25s ease-out;
}

/* Hide sidePane when not active */
#toggleDetailsBtn:not(.active) {
  right: -110%;
  /* Adjust based on the width of the side panel */
  visibility: hidden;
  opacity: 0;
  transition: 0.15s ease-in;
}

#toggleDetailsBtn:hover {
  background-color: var(--citrine);
  color: var(--eerie-black);
}

#toggleDetailsBtn ion-icon {
  font-size: 20px;
  margin-right: 10px;
}

#toggleDetailsBtn span {
  font-size: 14px;
  font-weight: bold;
}

/* make toggleDetailsBtn stop when I scroll to the middle of the page */
@media screen and (min-width: 960px) {
  #toggleDetailsBtn {
    position: fixed;
    top: 400px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

@media (max-width: 480px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

@media (max-width: 320px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

@media (max-width: 280px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

@media (max-width: 240px) {
  .sidePane-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 400px;
    right: 20px;
    z-index: 4;
    padding: 10px;
    background-color: var(--xiketic);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 120px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    transition: var(--transition-1);
  }
}

/* sidePane */

/* Reviews */

.forum-topic-message {
  border: 1px solid #ccc;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  display: block;
}

.review-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  border-bottom: solid 2px white;
}

.message-wrapper {
  display: flex;
}

.profile img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
}

.content {
  text-align: start;
  padding: 10px;
}

.user-review-form {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.reviews {
  margin-top: 20px;
}

.review {
  border: 1px solid #ccc;
  margin-bottom: 20px;
  padding: 10px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
  padding: 10px;
}
.profileBanner{
  border-image-source: linear-gradient(to bottom right, rgb(70, 120, 212), rgb(18, 22, 250));
  /* linear-gradient(to bottom right, rgb(128, 17, 100), rgb(115, 45, 207)) */
  border: 5px solid;
  border-image-slice: 1;
  border-width: 5px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.profileBanner:hover{
  filter: blur(1px);
  /* transition */
  transition: 0.5s ease;
}

.userName {
  margin-bottom: 5px;
}

.user-review-form textarea {
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-width: 100%;
  margin-bottom: 10px;
  resize: vertical;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .user-review-form textarea {
    width: 100%;
    max-width: 100%;
  }
}

/* profile */
.pfp {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}
.pfp img:not([src]) {
  content: url('/imgs/user.png');
}
.pfpC img[src=""]{
  content: url('/imgs/user.png');
}


.userProfile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  margin-top: 160px;
  color: #ccc;
  font-size: large;
}

.biography {
  margin: 20px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#bioButton {
  background-color: rgb(16 185 129);
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}
#bioButton:hover {
  background-color: #45a049;
}
#biographyEditorPopup {
  position: relative;
  /* fitcontent */
  width: fit-content;
  height: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: none;
}
#biographyEditor {
  width: 500%;
  height: 300px;
  resize: vertical;
  box-sizing: border-box;
}
/* profile reviews */

.userReviews {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 15px;
  margin: 0 auto;
  width: 80%;
}

.userReview {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: #45a049;
  border: 1px solid #ddd;
  margin-top: -1px;
  margin-bottom: 5px;
  background-color: #cecaca;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  color: black;
}

.userReview:hover {
  background-color: #eee;
}

.userReview button {
  background-color: rgb(16 185 129);
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
}

.userReview button:hover {
  background-color: #45a049;
}
.reviewTextContainer{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  padding: 10px;
  flex-basis: 70%;
}
.button-group{
  position: relative;
  top: -15px;
  right: -90px;
  padding: 0;
  margin: 10px;
}
.reviewTextContainer .rating{
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  padding: 0; 
  top: 0;
  right: 0;
}
.reviewText{
  flex-basis: 70%;
  resize: vertical;
  box-sizing: border-box;
}

/* profile comments */
.comments {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 15px;
  margin: 0 auto;
  width: 80%;
}

.userComment {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: #45a049;
  border: 1px solid #ddd;
  margin-top: -1px;
  margin-bottom: 5px;
  background-color: #cecaca;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  color: black;
}

.userComment:hover {
  background-color: #eee;
}

.userComment button {
  background-color: rgb(16 185 129);
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
}

.userComment button:hover {
  background-color: #45a049;
}

.commentForm {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 60%;
}

.commentForm Textarea {
  width: 500%;
}

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

.flexCenterRow {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Watchlist */
.user-watchlist {
  margin: 0 auto;
  margin-top: 90px;
  padding: 0 2rem;
  max-width: 1400px;
}

.welcome {
  margin-top: 70px;
  padding: 2rem;
  text-align: center;
}

#watchlist-movies {
  list-style-type: none;
  padding: 0;
}

#watchlist-movies li {
  border: 1px solid #ddd;
  margin-top: -1px;
  background-color: #cecaca;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  color: black;
  display: block;
}

#watchlist-movies li:hover {
  background-color: #eee;
}

#watchlist-movies li button {
  background-color: rgb(16 185 129);
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

#watchlist-movies li button:hover {
  background-color: #45a049;
}

/*  .movie-item {
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 10px;
}

.movie-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.movie-details img {
  max-width: 100px;
  height: auto;
} */

.dropdown-content a {
  color: black;
  text-decoration: none;
  display: block;
}

.dropdown-content img {
  width: 100%;
}

.dropdown-content p {
  color: #aaa;
}

/* search */

/* .autocomplete-dropdown {
  position: absolute;
  background-color: rgb(82, 70, 70);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  max-height: 333px;
  overflow-y: auto;
  width: 100%;
  z-index: 1;
  top: 100%;
  left: 0;
   display: none;  
}

.autocomplete-result {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-result:hover {
  background-color: #f1f1f1;
  color:black;
} */
