:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --panel: #101216;
  --panel-2: #14181e;
  --muted: #9ba1a6;
  --text: #f4f6f8;
  --accent: #20c57c;
  --accent-dark: #0e7f4f;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --page-pad: 64px;
}

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

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: radial-gradient(circle at top, #151a20 0%, #0a0b0d 55%);
  color: var(--text);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px var(--page-pad);
  position: relative;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.75), rgba(10, 11, 13, 0));
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.logo-img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 26px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #fff;
  font-weight: 400;
}

.nav a.active {
  color: #fff;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.nav-icon svg {
  display: block;
}

.nav-icon:hover {
  transform: translateY(-2px);
}

.icon-btn {
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 18, 22, 0.7);
  color: var(--text);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.icon-btn svg {
  width: 32px;
  height: 32px;
}

.icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile {
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.chevron {
  font-size: 12px;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 520px;
  width: calc(100% + (var(--page-pad) * 2));
  margin: 0 calc(-1 * var(--page-pad));
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 700px;
  object-fit: cover;
  object-position: center 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 10, 0.9) 0%, rgba(6, 8, 10, 0) 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: 48px;
}

.hero-content h1,
.hero-content .meta,
.hero-content .pill {
  max-width: 680px;
}

.pill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--800-Black, #0d0c0f);
  width: fit-content;
  color: #f9f9f9;
  font-family: "Rubik", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.08px;
}

.hero h1 {
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0.22px;
}

.meta {
  color: #9ca4ab;
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 200;
  line-height: 31px;
  letter-spacing: 0.1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 24px;
}

.btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: #00925d;
  border-radius: 10px;
  color: #f9f9f9;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.07px;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.07px;
}

.btn.ghost.action-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-left: 40px;
  margin-right: 0;
}

main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 0 var(--page-pad);
}

.story h2 {
  color: #fff;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.12px;
  margin-bottom: 12px;
}

.cast h2 {
  color: #fff;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.12px;
  margin-bottom: 12px;
}

.similar h2 {
  color: var(--Grayscale-Grayscale-10, #f9f9f9);
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.12px;
  margin-bottom: 12px;
}

.story p {
  color: var(--muted);
  max-width: none;
  width: 100%;
  line-height: 1.7;
  font-size: 14px;
  text-align: justify;
}

.linkish {
  margin-left: 8px;
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 13px;
  cursor: pointer;
}

.more-text {
  color: #00925d;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title h2 {
  margin: 0;
}

.arrow-btn {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 18, 22, 0.7);
  color: var(--text);
  font-size: 18px;
}

.cast-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-top: 4px;
  padding-bottom: 8px;
  margin-top: 16px;
}

.cast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 180px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cast-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.cast-card strong {
  display: block;
  font-size: 14px;
}

.cast-card span {
  color: var(--muted);
  font-size: 12px;
}

.episodes h3 {
  color: var(--Grayscale-Grayscale-10, #f9f9f9);
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.12px;
  margin: 18px 0 12px;
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  border: none;
  color: var(--White, #fff);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.08px;
  cursor: pointer;
  padding-bottom: 6px;
}

.tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.tab:not(.active) {
  opacity: 0.4;
}

.season {
  background: rgba(16, 18, 22, 0.7);
  border: 1px solid var(--line);
  color: var(--White, #fff);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.06px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.episode-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-top: 4px;
  padding-bottom: 8px;
}

.episode-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 250px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.episode-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin: 12px;
}

.episode-info {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.episode-info h4 {
  color: var(--Grayscale-Grayscale-10, #f9f9f9);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.08px;
}

.episode-info p {
  color: var(--Grayscale-Grayscale-70, #78828a);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.06px;
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #2ed9aa);
}

.times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.similar .movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-top: 4px;
  padding-bottom: 10px;
  margin-top: 16px;
}

.similar {
  margin-bottom: 16px;
}

.movie-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 220px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cast-card:hover,
.episode-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.movie-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.movie-info {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.movie-info h4 {
  color: var(--Grayscale-Grayscale-10, #f9f9f9);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.08px;
}

.movie-info .rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--Grayscale-Grayscale-10, #f9f9f9);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.06px;
}

.movie-info .rating .genres {
  color: var(--Grayscale-Grayscale-70, #78828a);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.06px;
}

.movie-info .rating .rating-divider {
  width: 1px;
  height: 12px;
  background: #78828a;
  display: inline-block;
  margin: 0 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 64px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  background: #0b0c10;
}

.footer-left h2 {
  color: var(--white, #fff);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Rubik", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  max-width: 520px;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--white, #fff);
  font-variant-numeric: lining-nums proportional-nums;
  font-family: "Rubik", sans-serif;
  font-style: normal;
  font-weight: 100;
  line-height: 22px;
}

.footer-links a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
}

.footer-right {
  display: grid;
  gap: 18px;
  justify-items: end;
  text-align: right;
  color: var(--white, #fff);
}

.footer-menu {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--white, #fff);
  text-align: right;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 32px;
}

.footer-menu a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-menu a:hover {
  transform: translateY(-2px);
}

.socials {
  display: flex;
  gap: 40px;
}

small {
  color: var(--white, #fff);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
}

.ep1 {
  background-image: url("images/b1.webp");
}

.ep2 {
  background-image: url("images/b2.webp");
}

.ep3 {
  background-image: url("images/b3.webp");
}

.ep4 {
  background-image: url("images/b4.webp");
}

.mv1 {
  background-image: url("images/Top Gun.jpg");
}

.mv2 {
  background-image: url("images/Spiderman.jpg");
}

.mv3 {
  background-image: url("images/Black Panther.jpg");
}

.mv4 {
  background-image: url("images/Batman V Superman.jpg");
}

.mv5 {
  background-image: url("images/Red Notice.jpg");
}

.btn.is-active {
  background: rgba(32, 197, 124, 0.2);
  border-color: rgba(32, 197, 124, 0.4);
  color: var(--text);
}

@media (max-width: 1000px) {
  :root {
    --page-pad: 24px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 0 var(--page-pad);
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .footer-right {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 16px;
    --scale: 0.85;
  }

  .page {
    transform: scale(var(--scale));
    transform-origin: top left;
    width: calc(100% / var(--scale));
  }
}

