:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #101114;
  --text: #1d2430;
  --muted: #667085;
  --surface: #ffffff;
  --surface-2: #f0f4f7;
  --line: #d7dee8;
  --brand: #0f8b8d;
  --brand-strong: #08666b;
  --accent: #f59e0b;
  --hot: #e11d48;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.13);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 30;
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(246, 247, 249, 0.86);
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(250px, 360px);
  gap: 18px;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

/* .brand::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--hot), var(--accent) 48%, var(--brand));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
} */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.menu-panel,
.search-panel {
  display: contents;
}

.site-nav .nav-link {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #344054;
  font-size: 0.94rem;
  font-weight: 750;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  background: #e8f7f6;
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.nav-category-menu {
  position: relative;
}

.nav-category-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav-category-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-category-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-category-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  width: min(840px, calc(100vw - 32px));
  max-height: min(70vh, 680px);
  overflow: auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 222, 232, 0.95);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(16, 17, 20, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-category-menu:hover .nav-category-panel,
.nav-category-menu:focus-within .nav-category-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-category-group {
  min-width: 0;
}

.nav-category-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.nav-category-title:hover,
.nav-category-title:focus-visible,
.nav-subcategories a:hover,
.nav-subcategories a:focus-visible {
  color: var(--brand-strong);
}

.nav-subcategories {
  display: grid;
  gap: 5px;
}

.nav-subcategories a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.mobile-actions {
  display: contents;
}

.search-toggle {
  display: none;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-form input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.search-form input:focus {
  border-color: rgba(15, 139, 141, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.13);
}

.search-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  padding: 11px 16px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.search-form button,
.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.24);
}

.button--primary:hover,
.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 139, 141, 0.3);
}

.button--wide {
  min-width: 190px;
  margin-top: 22px;
}

.button--secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.button--secondary:hover {
  background: var(--surface-2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  background:
    linear-gradient(135deg, rgba(16, 17, 20, 0.96), rgba(37, 46, 57, 0.94)),
    var(--ink);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hot), var(--accent), var(--brand));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 360px);
  gap: 34px;
  align-items: center;
}

.hero__copy {
  max-width: 760px;
}

.hero h1,
.page-heading h1,
.post-copy h1 {
  margin: 9px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  color: #ffffff;
}

.hero p,
.page-heading p,
.lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: #5b6676;
  font-size: 1.04rem;
}

.hero p {
  color: #d7dde7;
}

.hero__poster {
  justify-self: end;
  width: min(100%, 330px);
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #98a2b3;
}

.breadcrumb a {
  color: var(--brand-strong);
}

.breadcrumb a:hover {
  color: var(--hot);
}

.breadcrumb span {
  display: inline-block;
  max-width: min(70vw, 560px);
  overflow: hidden;
  color: #475467;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero .breadcrumb {
  color: #d7dde7;
}

.hero .breadcrumb a,
.hero .breadcrumb span {
  color: #ffffff;
}

.hero .breadcrumb li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.55);
}

.content-section {
  padding: 34px 0;
}

.homepage-first-section {
  padding-top: 38px;
}

.section-heading,
.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.page-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.text-link {
  color: var(--brand-strong);
  font-weight: 900;
}

.text-link:hover {
  color: var(--hot);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px;
}

.movie-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 90px) / 6);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 18px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.movie-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 2px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #b8c2cf;
  cursor: pointer;
  padding: 0;
  transition:
    background 150ms ease,
    transform 150ms ease,
    width 150ms ease;
}

.carousel-dots button.is-active {
  width: 22px;
  background: var(--brand);
}

.carousel-dots button:hover,
.carousel-dots button:focus-visible {
  background: var(--brand-strong);
  transform: scale(1.1);
  outline: none;
}

.carousel-item {
  min-width: 0;
  scroll-snap-align: start;
}

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #dce4ed;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  isolation: isolate;
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(5, 8, 13, 0.54), rgba(5, 8, 13, 0.08) 34%, transparent 58%),
    linear-gradient(180deg, transparent 44%, rgba(5, 8, 13, 0.72));
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.poster-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.poster-link:hover::after,
.poster-link:focus-visible::after {
  opacity: 1;
}

.poster-link:hover::before,
.poster-link:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-link .play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--brand-strong);
  opacity: 0;
  transform: translate(-36%, -50%) scale(0.86);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.poster-link:hover .play-mark,
.poster-link:focus-visible .play-mark {
  opacity: 1;
  transform: translate(-36%, -50%) scale(1);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.045);
}

.year-badge {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(16, 17, 20, 0.82);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.quality-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.movie-card__body {
  padding: 11px 1px 0;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.55em;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 1rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card h3 a:hover {
  color: var(--brand-strong);
}

.page-shell {
  padding: 38px 0 56px;
}

.page-heading {
  margin-bottom: 26px;
}

.post-detail {
  display: grid;
  grid-template-columns: minmax(170px, 500px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.post-hero {
  overflow: hidden;
  margin-top: -6px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.98), rgba(5, 8, 13, 0.74) 45%, rgba(5, 8, 13, 0.42)),
    var(--post-backdrop) center / cover;
  box-shadow: var(--shadow);
}

.post-hero__shade {
  min-height: 430px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.62) 52%, rgba(5, 8, 13, 0.2)),
    linear-gradient(0deg, rgba(5, 8, 13, 0.78), transparent 42%);
}

.post-hero .breadcrumb {
  margin-bottom: 20px;
}

.post-hero .breadcrumb a,
.post-hero .breadcrumb span {
  color: #d7dde7;
}

.post-hero .breadcrumb li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.38);
}

.post-hero__grid {
  display: grid;
  grid-template-columns: minmax(160px, 425px) minmax(0, 680px);
  gap: 28px;
  align-items: center;
}

.post-hero__poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.post-hero__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.post-hero__content {
  color: #ffffff;
}

.post-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge--hot {
  background: rgba(245, 158, 11, 0.16);
  color: #facc15;
}

.post-hero h1 {
  margin: 0;
  max-width: 740px;
  color: #ffffff;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
}

.post-hero__quality {
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 650;
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
  color: #d7dde7;
  font-weight: 750;
}

.post-hero__meta span:not(:last-child)::after {
  content: "/";
  margin-left: 9px;
  color: rgba(255, 255, 255, 0.38);
}

.post-hero__description {
  max-width: 620px;
  margin: 0 0 24px;
  color: #d7dde7;
}

.post-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 18px;
}

.hero-action--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.34);
}

.hero-action:hover,
.hero-action:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-action--primary:hover,
.hero-action--primary:focus-visible {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.post-hero__views {
  margin: 16px 0 0;
  color: #d7dde7;
  font-weight: 750;
}

.post-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.post-copy {
  padding: 8px 0;
}

.post-copy h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.info-list div {
  padding: 15px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.info-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips a {
  padding: 8px 10px;
  background: #e8f7f6;
  border: 1px solid #b7e6e2;
  border-radius: var(--radius);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 850;
}

.tag-panel {
  margin-top: 20px;
}

.tag-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.chips--tags a {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.chips--tags a:hover {
  background: #ffedd5;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.watch-section {
  margin-top: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(16, 17, 20, 0.98), rgba(33, 42, 54, 0.96));
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: #ffffff;
}


.video-frame {
  position: relative;
  overflow: hidden;
  background: #05080d;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080d;
}

.artplayer-app {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080d;
}

.series-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.series-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  max-height: min(620px, calc((min(100vw - 32px, var(--container)) - 18px - 340px) * 9 / 16));
  min-height: 0;
}

.season-select-label {
  color: #d7dde7;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.season-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 850;
  padding: 0 12px;
}

.season-select option {
  color: #111827;
}

.season-list {
  display: grid;
  gap: 14px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.season-block {
  display: none;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: none;
}

.season-block.is-active {
  display: block;
}

.season-block h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
}

.episode-list {
  display: grid;
  gap: 8px;
}

.episode-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  padding: 10px 11px;
  text-align: left;
}

.episode-button:hover,
.episode-button.is-active {
  border-color: rgba(15, 139, 141, 0.55);
  background: rgba(15, 139, 141, 0.32);
}

.episode-button span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-button small {
  flex: 0 0 auto;
  color: #8de5df;
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.pagination a {
  min-width: 42px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344054;
  font-weight: 850;
  text-align: center;
}

.pagination a.is-active,
.pagination a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}


.pagination-wrap {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.pagination-wrap .pagination {
  margin-top: 0;
}

.pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 8px;
  color: #667085;
  font-weight: 850;
}
.notice,
.empty-state {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #475467;
}

.notice {
  display: grid;
  gap: 4px;
  border-color: #fed7aa;
  background: #fff7ed;
}

.loading-area:empty::before,
.hero-loading,
.skeleton-card {
  display: block;
  min-height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #dfe6ee, #f8fafc, #dfe6ee);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}

.skeleton-card {
  aspect-ratio: 2 / 3;
  min-height: auto;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.site-footer {
  margin-top: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: #667085;
}

.site-footer a {
  color: var(--brand-strong);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(246, 247, 249, 0.94);
  }

  .header-inner {
    position: relative;
    grid-template-columns: auto auto;
    gap: 12px;
    min-height: 68px;
    padding: 10px 0;
  }

  .mobile-actions {
    display: flex;
    justify-self: end;
    gap: 8px;
    align-items: center;
  }
  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(8, 102, 107, 0.16);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 248, 0.96));
    color: var(--text);
    padding: 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .menu-toggle {
    flex-direction: column;
  }

  .search-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    transform: translate(-2px, -2px);
  }

  .search-toggle::after {
    content: "";
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transform: translate(8px, 8px) rotate(45deg);
    position: absolute;
  }

  .search-toggle {
    position: relative;
  }

  .menu-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    border-color: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transform-origin: center;
    transition:
      transform 160ms ease,
      opacity 160ms ease,
      background 160ms ease;
  }

  .menu-toggle span + span {
    margin-top: 5px;
  }

  .menu-toggle[aria-expanded="true"] span {
    background: #ffffff;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-panel,
  .search-panel {
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 30;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    padding: 0;
    border: 0 solid transparent;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 250, 0.98));
    box-shadow: 0 28px 70px rgba(16, 17, 20, 0.22);
    pointer-events: none;
    transition:
      max-height 260ms ease,
      opacity 180ms ease,
      transform 180ms ease,
      padding 180ms ease,
      border-width 180ms ease;
  }

  .menu-panel.is-open,
  .search-panel.is-open {
    max-height: calc(100vh - 96px);
    overflow: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 10px;
    border-width: 1px;
    border-color: rgba(215, 222, 232, 0.95);
    pointer-events: auto;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .site-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 222, 232, 0.86);
    box-shadow: none;
    color: var(--ink);
    text-align: left;
  }

  .site-nav .nav-link::after {
    content: ">";
    color: var(--brand-strong);
    font-weight: 900;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link:focus-visible {
    background: #e8f7f6;
    transform: none;
  }

  .nav-category-menu {
    position: static;
  }

  .nav-category-menu::after {
    display: none;
  }

  .nav-category-trigger {
    display: none;
  }

  .nav-category-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-category-menu:hover .nav-category-panel,
  .nav-category-menu:focus-within .nav-category-panel {
    transform: none;
  }

  .nav-category-group {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 222, 232, 0.86);
    border-radius: var(--radius);
  }

  .nav-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    margin-bottom: 8px;
  }

  .nav-category-title::after {
    content: ">";
    color: var(--brand-strong);
    font-weight: 900;
  }

  .nav-subcategories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
  }

  .nav-subcategories a {
    white-space: normal;
  }

  .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(215, 222, 232, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  }

  .search-form input {
    height: 46px;
    box-shadow: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__poster {
    justify-self: start;
    width: min(100%, 250px);
  }

  .post-detail {
    grid-template-columns: 1fr;
  }

  .post-hero__shade {
    padding: 18px;
  }

  .post-hero__grid {
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
    gap: 20px;
  }

  .series-watch {
    grid-template-columns: 1fr;
  }

  .series-panel {
    max-height: none;
    height: auto;
  }

  .season-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .post-media {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand::before {
    width: 30px;
    height: 30px;
  }
  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(8, 102, 107, 0.16);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 248, 0.96));
    color: var(--text);
    padding: 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .hero h1,
  .page-heading h1,
  .post-copy h1 {
    font-size: 2rem;
  }

  .hero p,
  .page-heading p,
  .lead {
    font-size: 0.98rem;
  }

  .post-hero {
    border-radius: 12px;
  }

  .post-hero__shade {
    padding: 14px;
  }

  .post-hero__grid {
    grid-template-columns: 1fr;
  }

  .post-hero__poster {
    max-width: 170px;
  }

  .post-hero h1 {
    font-size: 2rem;
  }

  .post-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-action {
    width: 100%;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 12px;
  }

  .movie-carousel {
    grid-auto-columns: 42%;
    gap: 12px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .movie-card h3 {
    font-size: 0.92rem;
  }

  .year-badge {
    left: 6px;
    bottom: 6px;
    font-size: 0.68rem;
  }

  .quality-badge {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    font-size: 0.66rem;
  }

  .section-heading,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .content-section {
    padding: 26px 0;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .search-form button,
  .button--wide {
    width: 100%;
  }

  .menu-panel.is-open,
  .search-panel.is-open {
    padding: 9px;
  }

  .site-nav .nav-link {
    min-height: 46px;
    padding: 11px 12px;
  }
}

@media (max-width: 380px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .movie-card h3 {
    font-size: 0.86rem;
  }

}

/* Simple watch page overrides */
.watch-title-block {
  max-width: 860px;
  margin: 0 0 20px;
}

.watch-title-block h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.watch-title-block p {
  margin: 0;
  color: #5b6676;
}

.watch-section {
  margin-top: 22px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
}

.watch-heading {
  margin-bottom: 14px;
}

.watch-heading h1,
.watch-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.watch-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.series-panel {
  color: var(--text);
}

.season-select-label {
  color: var(--muted);
}

.season-select {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.season-block {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.season-block h3 {
  color: var(--ink);
}

.episode-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.episode-button:hover,
.episode-button.is-active {
  background: #e8f7f6;
}

.episode-button small {
  color: var(--brand-strong);
}
/* Dropdown category menu */
@media (min-width: 761px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(250px, 360px);
    gap: 18px;
    align-items: center;
    min-height: 76px;
    padding: 0;
  }

  .mobile-actions {
    display: contents;
  }
  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(8, 102, 107, 0.16);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 248, 0.96));
    color: var(--text);
    padding: 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .menu-panel,
  .search-panel {
    display: contents;
    position: static;
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
  }

  .site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #344054;
    text-align: center;
  }

  .site-nav .nav-link::after {
    content: none;
  }

  .nav-category-menu {
    position: relative;
  }

  .nav-category-trigger {
    display: inline-flex;
    gap: 7px;
  }

  .nav-category-trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .nav-category-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
  }

  .nav-category-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 260px;
    gap: 0;
    width: 260px;
    max-height: calc(100vh - 110px);
    overflow: visible;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 222, 232, 0.95);
    border-radius: 12px;
    box-shadow: 0 28px 70px rgba(16, 17, 20, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .nav-category-menu:hover .nav-category-panel,
  .nav-category-menu:focus-within .nav-category-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-category-group {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .nav-category-group + .nav-category-group {
    border-top: 1px solid rgba(215, 222, 232, 0.65);
  }

  .nav-category-title {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .nav-category-title::after {
    content: ">";
    margin-left: 10px;
    color: var(--brand-strong);
    font-weight: 900;
  }

  .nav-category-group:hover .nav-category-title,
  .nav-category-group:focus-within .nav-category-title {
    background: #e8f7f6;
    color: var(--brand-strong);
  }

  .nav-subcategories {
    position: absolute;
    top: -8px;
    left: calc(100% + 8px);
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 4px 8px;
    width: min(520px, calc(100vw - 330px));
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 222, 232, 0.95);
    border-radius: 12px;
    box-shadow: 0 28px 70px rgba(16, 17, 20, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
  }

  .nav-category-group:hover .nav-subcategories,
  .nav-category-group:focus-within .nav-subcategories {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-subcategories a {
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 8px 9px;
    border-radius: 7px;
    color: #475467;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-subcategories a:hover,
  .nav-subcategories a:focus-visible {
    background: #e8f7f6;
    color: var(--brand-strong);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .site-header {
    background: rgba(246, 247, 249, 0.86);
  }
}

@media (max-width: 760px) {
  .nav-subcategories {
    grid-template-columns: 1fr;
  }
}
/* Main-category-only dropdown */
@media (min-width: 761px) {
  .nav-category-panel {
    grid-template-columns: 260px;
    width: 260px;
    overflow: auto;
  }

  .nav-category-panel > .nav-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .nav-category-panel > .nav-category-title + .nav-category-title {
    border-top: 1px solid rgba(215, 222, 232, 0.65);
  }

  .nav-category-panel > .nav-category-title:hover,
  .nav-category-panel > .nav-category-title:focus-visible {
    background: #e8f7f6;
    color: var(--brand-strong);
  }

  .nav-category-panel > .nav-category-title::after {
    content: ">";
    margin-left: 10px;
    color: var(--brand-strong);
    font-weight: 900;
  }
}

@media (max-width: 760px) {
  .nav-category-panel > .nav-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 222, 232, 0.86);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 850;
  }

  .nav-category-panel > .nav-category-title::after {
    content: ">";
    color: var(--brand-strong);
    font-weight: 900;
  }
}
/* Header category chip rail */
.category-chip-bar {
  border-top: 1px solid rgba(215, 222, 232, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

.category-chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-block: 10px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  white-space: nowrap;
}

.category-chip-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  max-width: min(260px, 72vw);
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #344054;
  font-size: 0.88rem;
  font-weight: 850;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.category-chip:hover,
.category-chip:focus-visible {
  border-color: rgba(15, 139, 141, 0.42);
  background: #e8f7f6;
  color: var(--brand-strong);
}

@media (max-width: 980px) {
  .category-chip-bar {
    border-top-color: rgba(215, 222, 232, 0.86);
  }

  .category-chip-scroll {
    width: min(100% - 24px, var(--container));
    padding-block: 9px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
/* Wrapped two-row category chip rail */
.category-chip-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding-block: 10px;
  white-space: normal;
}

.category-chip-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 1 auto;
  max-width: min(240px, 72vw);
}

@media (max-width: 640px) {
  .category-chip-scroll {
    gap: 7px;
    padding-block: 9px;
  }

  .category-chip {
    max-width: min(210px, 78vw);
  }
}
/* Keep category chip labels on one line */
.category-chip {
  flex: 0 0 auto;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
/* Hide mobile search button on desktop */
@media (min-width: 761px) {
  .search-toggle {
    display: none;
  }
}
/* Keep desktop search form aligned to the right side */
@media (min-width: 761px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px);
  }

  .mobile-actions {
    display: none;
  }

  .search-panel {
    display: block;
    grid-column: 3;
    justify-self: end;
    width: 100%;
  }

  .search-form {
    width: 100%;
  }
}
/* Compact mobile category chip rail */
@media (max-width: 760px) {
  .category-chip-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: 8px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .category-chip-scroll::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
    max-width: none;
  }
}
/* Mobile category scroll edge hints */
@media (max-width: 760px) {
  .category-chip-bar {
    position: relative;
    overflow: hidden;
  }

  .category-chip-bar::before,
  .category-chip-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 34px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .category-chip-bar::before {
    left: 0;
    background: linear-gradient(90deg, rgba(246, 247, 249, 0.96), rgba(246, 247, 249, 0));
  }

  .category-chip-bar::after {
    right: 0;
    background: linear-gradient(270deg, rgba(246, 247, 249, 0.96), rgba(246, 247, 249, 0));
  }

  .category-chip-bar.can-scroll-left::before,
  .category-chip-bar.can-scroll-right::after {
    opacity: 1;
  }
}
