:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(41, 37, 36, 0.10);
  --shadow-xl: 0 24px 48px rgba(41, 37, 36, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--white));
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(214, 211, 209, 0.75);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 20px;
  color: var(--stone-900);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  background: var(--amber-500);
  border-radius: 999px;
  transition: right 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber-600);
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-nav input,
.large-search input,
.filter-area input,
.filter-area select {
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--stone-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-nav input:focus,
.large-search input:focus,
.filter-area input:focus,
.filter-area select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  color: var(--stone-800);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-200);
  padding: 16px;
  background: var(--white);
}

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

.mobile-nav form {
  margin-bottom: 12px;
}

.mobile-nav input {
  width: 100%;
  padding: 11px 16px;
}

.mobile-nav nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--stone-100);
  color: var(--amber-600);
}

.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: 52px;
}

.hero-text {
  max-width: 760px;
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--amber-700);
  background: #fffbeb;
  border: 1px solid var(--amber-200);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 19px;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stone-500);
  font-size: 14px;
}

.hero-meta {
  margin-bottom: 26px;
  color: var(--stone-300);
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span:not(:last-child)::after,
.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--amber-600);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.34);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  color: var(--amber-600);
  font-weight: 800;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

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

.section-muted {
  background: var(--stone-50);
}

.section-intro {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.simple-hero h1,
.detail-info h1 {
  margin: 10px 0 12px;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.intro-grid p,
.section-heading p,
.simple-hero p {
  margin: 0;
  color: var(--stone-600);
  font-size: 17px;
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
}

.large-search button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--stone-900);
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3.5vw, 38px);
}

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: var(--shadow-xl);
}

.movie-card-cover {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card-large .movie-card-cover {
  height: 310px;
}

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

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

.movie-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18), transparent);
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-card-cover::after {
  opacity: 1;
}

.movie-type,
.movie-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--white);
  background: rgba(41, 37, 36, 0.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-type {
  left: 12px;
}

.movie-year {
  right: 12px;
}

.movie-play {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-play span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  box-shadow: var(--shadow-md);
}

.movie-card-link:hover .movie-play {
  opacity: 1;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.38;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 850;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
}

.simple-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 28%), radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.simple-hero .container {
  position: relative;
  z-index: 1;
}

.simple-hero .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
}

.simple-hero h1,
.simple-hero p {
  max-width: 780px;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 26px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.category-overview-head h2 {
  margin: 0 0 6px;
  color: var(--stone-900);
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: var(--stone-600);
}

.compact-grid .movie-card-cover {
  height: 180px;
}

.filter-area {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-area input,
.filter-area select {
  min-height: 46px;
  width: 100%;
  padding: 0 15px;
}

.empty-state {
  display: none;
  margin: 30px 0;
  padding: 34px;
  text-align: center;
  color: var(--stone-600);
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius-xl);
  background: var(--stone-50);
}

.empty-state.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-card a {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  color: var(--amber-600);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-card img {
  width: 120px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--stone-200);
}

.rank-card h2 {
  margin: 0 0 4px;
  color: var(--stone-900);
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 8px;
  color: var(--stone-600);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 54px;
  color: var(--white);
  background: var(--stone-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(4px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.46));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 260px;
  height: 360px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.detail-info h1 {
  margin-top: 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
  max-width: 820px;
  color: var(--stone-200);
  font-size: 19px;
}

.detail-meta {
  margin: 18px 0;
  color: var(--stone-300);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 24px;
}

.tag-list span {
  padding: 6px 11px;
  color: var(--stone-200);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
}

.player-section {
  padding-bottom: 36px;
  background: var(--stone-950);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.30));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: var(--shadow-xl);
}

.player-cover strong {
  font-size: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.68);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.detail-side-card {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 25px;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--stone-500);
}

.detail-side-card dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 700;
}

.detail-side-card a {
  color: var(--amber-600);
}

.site-footer {
  padding: 42px 0;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--stone-400);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a:hover {
  color: var(--amber-500);
}

.is-filter-hidden {
  display: none;
}

@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}

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

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

@media (max-width: 880px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .intro-grid,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster img {
    width: 190px;
    height: 270px;
  }

  .filter-area {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

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

  .hero {
    height: 500px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

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

  .section-heading,
  .category-overview-head {
    display: block;
  }

  .section-heading .text-link,
  .category-overview-head .primary-button {
    margin-top: 12px;
  }

  .large-search {
    display: grid;
    border-radius: 22px;
  }

  .large-search input {
    min-height: 46px;
  }

  .movie-grid,
  .three-cols,
  .four-cols,
  .six-cols,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-cover {
    height: 260px;
  }

  .filter-area {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 44px 92px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card img {
    width: 92px;
    height: 70px;
  }

  .rank-card h2 {
    font-size: 17px;
  }

  .rank-card p {
    display: none;
  }

  .detail-poster img {
    width: 160px;
    height: 228px;
  }

  .player-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}
