* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --purple-500: #a855f7;
  --white: #ffffff;
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 55px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-icon,
.footer-brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-400);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  background: var(--slate-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .nav-link,
.mobile-sub-link {
  display: block;
  padding: 11px 0;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sub-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 82px;
  color: var(--white);
}

.hero-category,
.category-pill,
.detail-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 20px 36px rgba(245, 158, 11, 0.35);
}

.btn-soft {
  color: var(--amber-600);
  background: var(--amber-50);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  border: 0;
  border-radius: 999px;
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.home-search-band {
  padding: 26px 24px 0;
}

.home-search-inner,
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.home-search-inner h2,
.home-search-inner p,
.filter-bar p {
  margin: 0;
}

.home-search-inner h2 {
  font-size: 24px;
}

.home-search-inner p,
.filter-bar p {
  margin-top: 6px;
  color: var(--gray-600);
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.title-mark {
  width: 6px;
  height: 38px;
  background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
}

.section-title h2,
.category-heading h3,
.side-card h2,
.detail-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 28px;
  line-height: 1.2;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.small-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

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

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

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

.horizontal-list {
  display: grid;
  gap: 18px;
}

.movie-card {
  min-width: 0;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

.card-cover-wide {
  width: 220px;
  height: 132px;
  flex: 0 0 auto;
  aspect-ratio: auto;
}

.card-cover-cinema {
  aspect-ratio: 16 / 9;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
  filter: brightness(0.88);
  transform: scale(1.08);
}

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.58));
  opacity: 0.85;
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.card-cover .category-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 12px;
  padding: 6px 10px;
}

.card-body {
  padding: 16px;
}

.card-body-large {
  padding: 22px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.card-body-large h3 {
  min-height: auto;
  font-size: 25px;
}

.movie-card:hover .card-body h3 {
  color: var(--amber-600);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body-large p {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 12px;
  padding: 5px 8px;
}

.movie-card-horizontal .card-link {
  display: flex;
  gap: 16px;
}

.movie-card-horizontal .card-body h3 {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.movie-card-horizontal .card-body {
  flex: 1;
  min-width: 0;
}

.quick-grid,
.category-card-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.quick-category,
.category-card a,
.info-card {
  display: block;
  height: 100%;
  padding: 24px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-category:hover,
.category-card a:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quick-category strong,
.category-card h2,
.info-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 22px;
}

.quick-category span,
.category-card p,
.info-card p {
  display: block;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.two-column-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-heading a {
  color: var(--amber-600);
  font-weight: 800;
}

.center-actions {
  justify-content: center;
  margin-top: 26px;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.page-hero span {
  display: inline-flex;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 14px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 20px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 16px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 700;
}

.filter-bar {
  margin-top: 34px;
}

.filter-input,
.search-input {
  width: min(420px, 100%);
  height: 48px;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 0 16px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.filter-input:focus,
.search-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.player-section {
  background: #000;
}

.player-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-wrap.is-playing .player-overlay {
  pointer-events: none;
  opacity: 0;
}

.play-badge {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.38);
}

.detail-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 0;
}

.detail-card,
.side-card {
  margin-bottom: 24px;
  padding: 26px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 700;
}

.detail-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-600);
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0 24px;
}

.text-body {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
  text-align: justify;
  text-indent: 2em;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 86px;
}

.side-list .movie-card-horizontal {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.side-list .movie-card-horizontal .card-cover-wide {
  width: 128px;
  height: 82px;
}

.side-list .movie-card-horizontal .card-body {
  padding: 10px;
}

.side-list .movie-card-horizontal .card-body p,
.side-list .movie-card-horizontal .tag-row {
  display: none;
}

.side-list .movie-card-horizontal .card-body h3 {
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.detail-more {
  padding-top: 34px;
}

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

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 86px 18px 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.search-panel.is-open {
  display: flex;
}

.search-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 120px);
  padding: 20px;
  overflow: auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.search-head strong {
  font-size: 22px;
}

.search-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 24px;
}

.search-input {
  width: 100%;
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.search-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: 16px;
}

.search-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-900);
}

.search-item strong {
  display: block;
  margin-bottom: 5px;
}

.search-item p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-item span {
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 14px 0 0;
}

.footer-grid p,
.footer-grid li {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid ul {
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .feature-grid.three-cols,
  .category-card-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 0 18px 74px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-inner,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-section {
    padding: 40px 18px;
  }

  .card-grid,
  .small-grid,
  .compact-grid,
  .feature-grid,
  .feature-grid.three-cols,
  .quick-grid,
  .two-column-preview,
  .category-card-grid,
  .info-grid,
  .category-full-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-link {
    display: block;
  }

  .movie-card-horizontal .card-cover-wide,
  .side-list .movie-card-horizontal .card-cover-wide {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-container {
    padding: 24px 18px 0;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-hero-inner {
    padding: 56px 18px;
  }

  .search-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .search-item img {
    width: 86px;
    height: 58px;
  }
}
