* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.55);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--slate-200);
  font-weight: 600;
}

.nav-links a,
.nav-categories a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-categories a:hover {
  color: var(--teal-400);
}

.nav-categories {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.35);
}

.nav-categories-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
  color: var(--slate-300);
  font-size: 14px;
  scrollbar-width: none;
}

.nav-categories-inner::-webkit-scrollbar {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-track,
.hero-slide,
.hero-img,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02);
}

.hero-layer {
  background:
    radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.35), transparent 24%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 54px;
  color: #fff;
  padding: 48px 0 92px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-head span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-300);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h2 {
  font-size: clamp(28px, 4.5vw, 52px);
}

.hero p,
.page-hero p {
  margin: 0;
  color: var(--slate-200);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.card-tags span {
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.82);
  color: #fff;
  font-weight: 700;
}

.hero-tags span {
  padding: 9px 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.section-action,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.quick-search button {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
  box-shadow: 0 16px 35px rgba(20, 184, 166, 0.33);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.quick-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
  background: var(--slate-800);
}

.hero-poster img {
  width: 100%;
  height: 510px;
  object-fit: cover;
}

.hero-poster span,
.movie-card figcaption {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: var(--amber-400);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.hero-prev {
  left: max(20px, calc((100% - 1180px) / 2 - 70px));
}

.hero-next {
  right: max(20px, calc((100% - 1180px) / 2 - 70px));
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--teal-400);
}

.quick-search,
.content-section,
.category-strip,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search {
  margin-top: -58px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.quick-search-card,
.quick-cats,
.filter-panel,
.story-card,
.meta-card,
.category-card,
.movie-card,
.page-hero {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.quick-search-card,
.quick-cats {
  border-radius: var(--radius-xl);
  padding: 26px;
}

.quick-search-card h2,
.section-head h2,
.story-card h2,
.meta-card h2 {
  margin: 0;
  color: var(--slate-950);
}

.quick-search-card p,
.section-head p,
.category-card p,
.story-card p,
.meta-card li strong {
  color: var(--slate-600);
  line-height: 1.75;
}

.quick-search form {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--slate-900);
  background: #fff;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.quick-cats a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 700;
}

.quick-cats a:hover {
  color: var(--slate-950);
  background: var(--teal-300);
}

.content-section,
.category-strip {
  margin-top: 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  max-width: 650px;
}

.section-action {
  color: var(--slate-950);
  background: #fff;
  border: 1px solid var(--slate-200);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.movie-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img {
  transform: scale(1.08);
}

.card-body {
  padding: 15px 15px 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--slate-950);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 42px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: stretch;
  min-height: 100%;
}

.movie-card-large figure {
  aspect-ratio: auto;
  min-height: 320px;
}

.movie-card-large .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-large h3 {
  font-size: 28px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.featured-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.top-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-preview {
  padding: 34px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 8% 8%, rgba(45, 212, 191, 0.24), transparent 25%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
}

.rank-preview .section-head h2,
.rank-preview .section-head p {
  color: #fff;
}

.rank-grid,
.rank-list {
  display: grid;
  gap: 12px;
}

.rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-link:hover {
  transform: translateY(-2px);
  background: rgba(20, 184, 166, 0.2);
}

.compact-link span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-300), var(--amber-400));
  font-weight: 900;
}

.compact-link strong {
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-link em {
  color: var(--slate-300);
  font-style: normal;
  font-size: 13px;
}

.page-main,
.detail-main {
  padding-top: 34px;
}

.page-hero {
  border-radius: var(--radius-xl);
  padding: 48px;
  background:
    radial-gradient(circle at 88% 20%, rgba(20, 184, 166, 0.22), transparent 28%),
    linear-gradient(135deg, #fff, #f8fafc);
}

.small-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  border-radius: var(--radius-xl);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.2);
}

.category-card span {
  color: var(--teal-500);
  font-weight: 900;
}

.category-card h2 {
  margin: 10px 0;
  font-size: 28px;
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-card.is-hidden {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--teal-600, #0d9488);
  font-weight: 800;
}

.breadcrumb em {
  color: var(--slate-700);
  font-style: normal;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 380px;
  gap: 24px;
  align-items: stretch;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 520px;
  background: var(--slate-950);
  box-shadow: 0 32px 74px rgba(2, 6, 23, 0.35);
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  background: var(--slate-950);
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
  box-shadow: 0 0 42px rgba(20, 184, 166, 0.5);
  font-size: 30px;
  padding-left: 5px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-side {
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(45, 212, 191, 0.26), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
  color: #fff;
}

.detail-side > img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.detail-side > div {
  padding: 24px;
}

.detail-side h1 {
  margin: 14px 0 12px;
  font-size: 34px;
  line-height: 1.18;
}

.detail-side p {
  color: var(--slate-200);
  line-height: 1.75;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 26px;
}

.story-card,
.meta-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.story-card h2 + p {
  margin-bottom: 28px;
}

.meta-card ul {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.meta-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.meta-card li span {
  color: var(--slate-500);
}

.full-btn {
  width: 100%;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 72px;
  background: var(--slate-900);
  color: var(--slate-300);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p {
  color: var(--slate-400);
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  text-align: center;
  padding: 18px;
  color: var(--slate-400);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid-six,
  .movie-grid-five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-layout,
  .watch-layout,
  .detail-info,
  .quick-search {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr 300px;
  }

  .hero-poster img {
    height: 420px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    margin-top: -36px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid-six,
  .movie-grid-five,
  .movie-grid-four,
  .movie-grid-three,
  .featured-main,
  .top-three,
  .rank-grid,
  .rank-list,
  .category-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-large {
    grid-template-columns: 1fr;
  }

  .player-box,
  .movie-player {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .quick-search-card,
  .quick-cats,
  .page-hero,
  .rank-preview,
  .story-card,
  .meta-card {
    padding: 22px;
  }

  .quick-search form {
    flex-direction: column;
  }

  .movie-grid-six,
  .movie-grid-five,
  .movie-grid-four,
  .movie-grid-three,
  .featured-main,
  .top-three,
  .rank-grid,
  .rank-list,
  .category-grid,
  .category-samples,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .watch-layout {
    gap: 16px;
  }

  .player-box,
  .movie-player {
    min-height: 260px;
    border-radius: 20px;
  }

  .detail-side h1 {
    font-size: 28px;
  }
}
