body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #222 url('stardust.png') repeat;
  background-attachment: fixed;
  background-size: cover;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
  padding: 15px 30px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease-in-out;
  position: relative;
  z-index: 1000;
}

.navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a,
.dropdown {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.1em;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  color: white;
  top: 50px;
  left: auto;
  min-width: 150px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: #000;
}

.search-container {
  position: relative;
  margin-left: 20px;
}

.search-box {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid white;
  font-size: 1em;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: white;
  width: 150px;
}

.search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  color: white;
  width: 180px;
  font-size: 0.95em;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.search div {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.search div:hover {
  background: #ddd;
  color: #000;
}

.search img {
  width: 50px;
  margin-right: 10px;
  border-radius: 5px;
}

.search::-webkit-scrollbar {
  width: 8px;
}

.search::-webkit-scrollbar-thumb {
  background-color: #00ab41;
  border-radius: 4px;
}

.search::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.video-container,
.trailer-container,
.video-details {
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 60%;
}

.iframe-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 50px rgba(3, 3, 3, 0.8);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.video-details {
  border-radius: 15px;
  box-shadow: 0 1px 50px rgba(3, 3, 3, 0.8);
  background: linear-gradient(to bottom, rgba(43, 43, 43, 0.8), rgba(0, 0, 0, 0.5));
  padding: 20px;
  text-align: left;
}

.video-details h2 {
  font-size: 24px;
  margin: 0;
  padding-bottom: 1px;
  border-bottom: 1px solid #444;
  text-align: center;
}

.season-selection {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-selection label {
  font-size: 1.2em;
}

.season-dropdown {
  background: linear-gradient(to right, #111, #222);
  color: #ffffff;
  border: 1px solid #00ab41;
  border-radius: 6px;
  padding: 8px 40px 8px 12px;
  font-size: 1rem;
  appearance: none;
  cursor: pointer;
  position: relative;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 171, 65, 0.2);
  transition: border 0.3s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%2300ff9c' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.season-dropdown::-ms-expand {
  display: none;
}

.season-dropdown:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.5);
}

.season-dropdown:hover {
  border-color: #00ff9c;
  background: linear-gradient(to right, #1a1a1a, #333);
}

.season-dropdown option {
  background-color: #222;
  color: #00ff9c;
}

.video-details .episode-list {
  margin: 20px 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 2px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.episode-list .button {
  all: unset !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  position: relative !important;
  border-radius: 100em !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1) !important;
  margin: 0 10px 10px 0 !important;
  display: inline-block !important;
  width: auto !important;
}

.episode-list .button::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  width: calc(100% + 0.3em) !important;
  height: calc(100% + 0.3em) !important;
  top: -0.15em !important;
  left: -0.15em !important;
  border-radius: inherit !important;
  background: linear-gradient(
    -135deg,
    rgba(5, 5, 5, 0.5),
    transparent 20%,
    transparent 100%
  ) !important;
  filter: blur(0.0125em) !important;
  opacity: 0.25 !important;
  mix-blend-mode: multiply !important;
}

.episode-list .button .button-outer {
  position: relative !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  transition: box-shadow 300ms ease !important;
  will-change: box-shadow !important;
  box-shadow:
    0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
    0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
    0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25) !important;
}

.episode-list .button:hover .button-outer {
  box-shadow: 0 0 0 0 !important;
}

.episode-list .button-inner {
  --inset: 0.035em;
  position: relative !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  padding: 0.5em 0.6em !important;
  background-image: linear-gradient(
    135deg,
    rgba(230, 230, 230, 1),
    rgba(180, 180, 180, 1)
  ) !important;
  transition:
    box-shadow 300ms ease,
    clip-path 250ms ease,
    background-image 250ms ease,
    transform 250ms ease !important;
  will-change: box-shadow, clip-path, background-image, transform !important;
  overflow: clip !important;
  clip-path: inset(0 0 0 0 round 100em) !important;
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25) !important;
}

.episode-list .button:hover .button-inner {
  clip-path: inset(
    clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px)
      clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 100em
  ) !important;
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
    0 0 0 0 inset rgba(255, 255, 255, 1),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25) !important;
}

.episode-list .button .button-inner span {
  position: relative !important;
  z-index: 4 !important;
  font-family: "Inter", sans-serif !important;
  letter-spacing: -0.05em !important;
  font-weight: 500 !important;
  font-size: 0.95em !important;
  color: rgba(0, 0, 0, 0) !important;
  background-image: linear-gradient(
    135deg,
    rgba(25, 25, 25, 1),
    rgba(75, 75, 75, 1)
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  transition: transform 250ms ease !important;
  display: block !important;
  will-change: transform !important;
  text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.episode-list .button:hover .button-inner span {
  transform: scale(0.975) !important;
}

.episode-list .button:active .button-inner {
  transform: scale(0.975) !important;
}

#season-episode-info {
  margin: 10px auto 20px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #1a5d1a 0%, #006400 50%, #004d00 100%) !important;
  color: transparent !important;
  border-radius: 30px !important;
  font: 700 1em "Inter", sans-serif !important;
  box-shadow: 0 8px 25px rgba(0,100,0,.4), inset 0 2px 8px rgba(0,255,156,.2) !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all .4s ease !important;
  width: fit-content !important;
  text-align: center !important;
}

#season-episode-info::before {
  content: "Season " attr(data-season) " Episode " attr(data-episode) !important;
  position: absolute !important;
  inset: 0 !important;
  padding: inherit !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  text-shadow: 0 0 6px rgba(0,255,156,.6) !important;
  z-index: 2 !important;
  white-space: nowrap !important;
}

#season-episode-info.animate::before {
  animation: seasonPulse .4s ease !important;
}

@keyframes seasonPulse {
  0%,100% { transform: scale(1); text-shadow: 0 0 6px rgba(0,255,156,.6); }
  50% { transform: scale(1.08); text-shadow: 0 0 16px rgba(0,255,156,1); }
}

.trailer-container {
  width: 100%;
  margin: 20px auto;
}

.trailer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 3px solid #00ab41;
  padding-bottom: 8px;
  margin: 0 0 5px 0;
  text-shadow: 0 0 8px rgba(0, 171, 65, 0.5);
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
  transform: translateY(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trailer-title::before {
  content: '\25B6';
  color: #00ab41;
  margin-right: 8px;
  font-size: 1.2em;
}

.trailer-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.trailer-title:hover {
  text-shadow: 0 0 12px rgba(0, 171, 65, 0.8);
  transform: scale(1.02);
}

.trailer-episode-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: #fff;
  margin: 5px 0 0 0;
  text-shadow: 0 0 8px rgba(0, 171, 65, 0.5);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.trailer-episode-info.visible {
  opacity: 1;
}

.trailer-iframe-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 50px rgba(3, 3, 3, 0.8);
}

.trailer-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.trailer-iframe-container p {
  color: #fff;
  text-align: center;
  font-size: 1.2em;
}

.genre-section {
  margin: 20px;
}

.genre-section h2 {
  font-size: 1.5em;
  color: white;
  display: inline-block;
}

.view-all-button {
  border: 1px solid #00ab41;
  box-shadow: 0 2px 10px rgba(0, 171, 65, 0.2);
  background: linear-gradient(to bottom, rgba(43, 43, 43, 0.8), rgba(0, 0, 0, 0.5));
  color: #ffffff;
  padding: 5px 10px;
  margin: 5px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.view-all-button:hover {
  border-color: #00ff9c;
  background: linear-gradient(to right, #1a1a1a, #333);
}

.swiper {
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: linear !important;
}

.swiper-slide {
  width: 200px;
  flex-shrink: 0;
  margin-right: 15px;
}

:root {
  --card-radius: 8px;
}

.video-item {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.video-item img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--card-radius);
  object-fit: cover;
}

.video-item span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  font-size: 1em;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  text-align: center;
  box-sizing: border-box;
}

.video-item .imdb-rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #f5c518;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
}

.video-item .imdb-rating[data-rating="N/A"] {
  display: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 25px;
  color: white;
  font-weight: bold;
}

.swiper-button-next,
.swiper-button-prev {
  width: 36px;
  height: 36px;
  background: rgba(252, 252, 252, 0.4);
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.788);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.2);
}

.swiper-pagination-bullet {
  background: white;
}

.imdb-rating-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.rating-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#f5c518 var(--percentage), #333 var(--percentage));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c518;
  font-weight: bold;
  font-size: 16px;
  position: relative;
  box-shadow: 0 2px 10px rgba(245, 197, 24, 0.3);
}

.rating-circle::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #222;
}

.rating-circle span {
  position: relative;
  z-index: 1;
}

.rating-text {
  font-size: 16px;
  color: #f5c518;
  text-align: center;
}

.movie-info,
.series-info {
  margin: 10px 0;
  text-align: left;
}

.movie-info h3,
.series-info h3 {
  margin: 0 0 8px 0;
  color: #00ab41;
}

.movie-info p {
  margin: 5px 0;
  line-height: 1.4;
}

.plot-container {
  display: block;
  margin-bottom: 20px;
}

.plot-text {
  width: 100%;
}

.info-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.left-column {
  flex: 1;
}

.right-column {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}.info-link, .info-button {
  font-size: 0.95em;
  padding: 0.6em 0.8em;
  border-radius: 0.5em;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 3px #000000b4; /* Outer shadow for default state */
  text-decoration: none;
  position: relative; /* For z-index stacking */
  z-index: 1; /* Ensure content is above the glow */
  display: inline-block; /* Maintain inline behavior */
}

.info-link:hover, .info-button:hover {
  background: linear-gradient(90deg, #03a9f4, #f441a5); /* Gradient background on hover */
  color: #fff; /* Ensure text remains readable */
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75), /* Dark shadow for depth */
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5), /* Subtle dark shadow */
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5), /* Deeper shadow */
    0 0 0 0.5em inset rgba(255, 255, 255, 0.15), /* Light highlight */
    0 0 0 0 inset rgba(255, 255, 255, 1), /* Neutral base */
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25), /* Light highlight */
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25); /* Subtle dark shadow */
}

.container {
  position: relative;
  display: inline-block; /* Match the inline behavior of the link/button */
  padding: 1px; /* Very thin border (1px) */
  background: linear-gradient(90deg, #03a9f4, #f441a5); /* Gradient for the thin border */
  border-radius: 0.6em; /* Slightly larger than the inner element's border-radius */
  transition: all 0.4s ease;
  margin: 6px; /* Maintain spacing */
}

.container::before {
  content: "";
  position: absolute;
  top: -1.5px; /* Smaller extension for glow due to thinner border */
  left: -1.5px;
  right: -1.5px;
  bottom: -1.5px;
  background: linear-gradient(90deg, #03a9f4, #f441a5); /* Gradient for glow */
  border-radius: 0.7em; /* Slightly larger to encompass the container */
  z-index: -1; /* Place behind the container and link/button */
  filter: blur(0);
  transition: filter 0.2s ease;
}

.container:hover::before {
  filter: blur(1em); /* Glow effect on hover */
}

.container:active::before {
  filter: blur(0.2em); /* Reduced blur on click */
}

.search-suggestion {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 10px;
}

.search-suggestion img {
  width: 50px;
  height: 28px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .nav-links a:first-child {
    display: none;
  }

  .search-box {
    width: 150px;
    font-size: 0.9em;
  }

  .video-container,
  .trailer-container,
  .video-details {
    max-width: 94%;
    padding: 10px;
  }

  .video-details h2 {
    font-size: 20px;
    font-weight: 500;
  }

  .iframe-container,
  .trailer-iframe-container {
    width: 94%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  }

  .trailer-title {
    font-size: 1.4em;
    letter-spacing: 1px;
    padding-bottom: 6px;
  }

  .trailer-episode-info {
    font-size: 1em;
  }

  .season-selection {
    flex-direction: column;
    align-items: flex-start;
  }

  .season-dropdown {
    width: 100%;
  }

  .swiper-slide {
    width: 140px;
  }

  .info-columns {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-column {
    justify-content: flex-start;
  }

  .imdb-rating-circle {
    align-items: flex-start;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .video-container,
  .trailer-container {
    max-width: 75%;
    padding: 20px;
  }

  .video-details {
    max-width: 70%;
    padding: 10px;
  }

  .trailer-iframe-container {
    max-width: 70%;
  }

  .trailer-title {
    font-size: 1.8em;
  }

  .trailer-episode-info {
    font-size: 1.1em;
  }

  .swiper-slide {
    width: 140px;
  }

  .info-columns {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-column {
    justify-content: flex-start;
  }

  .imdb-rating-circle {
    align-items: flex-start;
  }
}

@media (min-width: 1201px) {
  .video-container,
  .video-details,
  .trailer-container {
    max-width: 60%;
    padding: 20px;
  }

  .trailer-iframe-container {
    max-width: 60%;
  }
}
