:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(41, 37, 36, 0.12);
  --soft-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: var(--stone-50);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #78350f;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-600);
  content: "";
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #78350f;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-nav a {
  padding: 10px 0;
  color: #78350f;
  font-weight: 700;
}

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

.hero-slides {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
  padding: 88px max(24px, calc((100vw - 1280px) / 2)) 120px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 26%,
      rgba(245, 158, 11, 0.42),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      rgba(28, 25, 23, 0.96),
      rgba(28, 25, 23, 0.76) 44%,
      rgba(28, 25, 23, 0.2)
    );
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-kicker,
.detail-kicker,
.page-hero span,
.quick-search span,
.ranking-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(217, 119, 6, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: white;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 710px;
  margin: 0 0 24px;
  color: rgba(255, 251, 235, 0.86);
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.quick-search-form button,
.section-more,
.text-link,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-btn,
.quick-search-form button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.quick-search-form button:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover,
.pagination a:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid rgba(255, 251, 235, 0.45);
  color: white;
  background: rgba(255, 251, 235, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn.small,
.ghost-btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.primary-btn.full {
  width: 100%;
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 251, 235, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.hero-tabs {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 28px;
  left: max(24px, calc((100vw - 1280px) / 2));
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 251, 235, 0.2);
  border-radius: 18px;
  color: rgba(255, 251, 235, 0.82);
  background: rgba(28, 25, 23, 0.42);
  backdrop-filter: blur(14px);
  text-align: left;
}

.hero-tab span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.22);
  font-weight: 900;
}

.hero-tab strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-tab.active {
  border-color: rgba(245, 158, 11, 0.7);
  color: white;
  background: rgba(217, 119, 6, 0.58);
}

.quick-search {
  padding: 0 24px;
  transform: translateY(-42px);
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-inner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.quick-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--stone-800);
  background: white;
  outline: none;
}

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

.category-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #78350f;
  background: var(--amber-100);
  font-weight: 800;
}

.content-section,
.rank-section,
.category-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
}

.content-section.compact {
  padding-top: 58px;
  padding-bottom: 58px;
}

.warm-section {
  background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

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

.section-heading h2,
.page-hero h1,
.ranking-copy h2,
.detail-info h1 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.ranking-copy p,
.detail-info p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--stone-500);
}

.section-more,
.text-link,
.pagination a {
  color: #92400e;
  background: var(--amber-100);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.movie-card-large {
  display: grid;
  grid-column: span 6;
  grid-template-columns: 1.15fr 0.85fr;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--stone-100));
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card-large .poster img {
  aspect-ratio: 21 / 9;
}

.movie-card:hover .poster img,
.category-card:hover img,
.hero-poster:hover img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.watch-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(217, 119, 6, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

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

.meta-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.movie-card-large .card-body h2 {
  font-size: clamp(28px, 4vw, 46px);
}

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

.movie-card-large .card-body p {
  display: block;
  color: var(--stone-700);
  font-size: 16px;
}

.ranking-band {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 36px auto 74px;
  padding: 36px 24px;
}

.ranking-copy {
  min-height: 100%;
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  background: linear-gradient(135deg, var(--stone-900), #78350f);
  box-shadow: var(--shadow);
}

.ranking-copy h2,
.ranking-copy p {
  color: white;
}

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

.ranking-list a,
.rank-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ranking-list a:hover,
.rank-row:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.ranking-list span,
.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.ranking-list strong,
.rank-info strong {
  font-size: 17px;
}

.ranking-list em,
.rank-info em {
  display: block;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  min-height: 72vh;
}

.page-hero {
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.simple-hero,
.category-hero,
.search-hero {
  max-width: 1280px;
}

.category-hero,
.search-hero,
.simple-hero {
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.36));
}

.category-card div {
  padding: 18px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--stone-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 1.4fr;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 22px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.filter-search span {
  display: block;
  margin-bottom: 6px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 900;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.search-panel {
  grid-template-columns: 1fr;
}

.wide-search input {
  min-height: 56px;
  font-size: 18px;
}

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

.rank-row {
  grid-template-columns: 54px 72px 1fr auto;
}

.rank-row img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-tag {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 900;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.pagination span {
  color: var(--stone-500);
  font-weight: 900;
}

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}

.player-card,
.detail-side,
.detail-info,
.detail-text {
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--soft-shadow);
}

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

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

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
}

.video-start span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  clip-path: polygon(34% 24%, 34% 76%, 78% 50%);
}

.video-shell.playing .video-start {
  display: none;
}

.detail-side {
  overflow: hidden;
  padding: 14px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 14px;
}

.detail-info {
  margin-top: 24px;
  padding: 30px;
}

.detail-info .one-line {
  color: var(--stone-700);
  font-size: 18px;
}

.detail-tags {
  margin: 20px 0;
}

.detail-text {
  padding: 24px;
  background: var(--amber-50);
}

.detail-text h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.detail-text p {
  max-width: none;
  margin: 0 0 22px;
  color: var(--stone-700);
}

.related-section {
  padding-right: 0;
  padding-left: 0;
}

.site-footer {
  margin-top: 60px;
  color: #d6d3d1;
  background: var(--stone-800);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
}

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

.footer-about p {
  max-width: 560px;
  color: #a8a29e;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-column a {
  color: #d6d3d1;
}

.footer-column a:hover {
  color: var(--amber-200);
}

.hidden-card {
  display: none !important;
}

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

  .movie-card-large {
    grid-column: span 4;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding-top: 60px;
    padding-bottom: 190px;
  }

  .hero-content h1 {
    font-size: clamp(38px, 12vw, 62px);
  }

  .hero-poster {
    width: min(260px, 72vw);
  }

  .hero-tabs {
    grid-template-columns: 1fr;
  }

  .hero-tab:not(.active) {
    display: none;
  }

  .quick-search-inner,
  .ranking-band,
  .detail-layout,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .movie-card-large .poster img {
    aspect-ratio: 16 / 10;
  }

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

  .rank-row {
    grid-template-columns: 46px 56px 1fr;
  }

  .rank-row img {
    width: 56px;
    height: 78px;
  }

  .rank-tag {
    display: none;
  }
}

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

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

  .quick-search,
  .content-section,
  .rank-section,
  .category-grid-section,
  .detail-main,
  .page-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .quick-search-form,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

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