:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --rose-600: #e11d48;
  --blue-600: #2563eb;
  --green-600: #059669;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 12px 32px rgba(41, 37, 36, 0.12);
  --shadow-lg: 0 24px 60px rgba(41, 37, 36, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stone-50);
  color: var(--stone-800);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #92400e, var(--orange-900));
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.18);
}

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

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amber-700);
  background: var(--white);
  box-shadow: inset 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  color: var(--amber-100);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #1c1917, #431407 58%, #7c2d12);
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-track {
  display: flex;
  transition: transform 0.55s ease-in-out;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  width: min(760px, 100%);
  margin: 20px 0 14px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 22px;
  color: #e7e5e4;
  font-size: 17px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
  background: var(--amber-700);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.hero-search {
  position: relative;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 56px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 160px 130px;
  gap: 12px;
}

.search-form input,
.search-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: var(--white);
  color: var(--stone-800);
}

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

.search-results {
  display: none;
  margin-top: 18px;
}

.search-results.active {
  display: block;
}

.section {
  padding: 52px 0;
}

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

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

.section-title {
  margin: 10px 0 0;
  color: var(--stone-800);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease;
}

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

.card-body {
  padding: 16px;
}

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

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.movie-card h3,
.rank-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.42;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
  color: var(--amber-700);
}

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

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

.category-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, #92400e, #ea580c);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #44403c, #92400e);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #1e3a8a, #d97706);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.featured-box {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
  box-shadow: var(--shadow);
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.featured-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.featured-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
}

.featured-copy p {
  color: var(--stone-600);
  line-height: 1.8;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 52px 156px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-no {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

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

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 80% 0, rgba(245, 158, 11, 0.32), transparent 26%), linear-gradient(120deg, #292524, #7c2d12);
}

.page-hero .section-inner {
  padding: 70px 0;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e7e5e4;
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--stone-600);
  font-size: 14px;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--white);
  color: var(--stone-700);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--amber-600);
  color: var(--white);
  background: var(--amber-600);
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.88fr);
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: var(--black);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.36);
  cursor: pointer;
  font-size: 30px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--amber-700);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--stone-200);
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--amber-800, #92400e);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  font-size: 21px;
}

.detail-card p {
  color: var(--stone-700);
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.side-card h2 {
  margin-top: 0;
}

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

.side-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.side-item p {
  margin: 0;
  color: var(--stone-500);
  font-size: 12px;
}

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

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 0;
}

.footer-inner p {
  max-width: 640px;
  margin: 8px 0 0;
  color: #d6d3d1;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

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

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

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

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

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 16px 18px;
    background: linear-gradient(90deg, #92400e, var(--orange-900));
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .hero-slider,
  .hero-slide {
    min-height: 480px;
  }

  .hero-content {
    padding: 70px 0 66px;
  }

  .hero-arrow {
    display: none;
  }

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

  .featured-layout,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .rank-card {
    grid-template-columns: 44px 112px 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .hero-content,
  .hero-search {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .rank-card {
    grid-template-columns: 38px 88px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-no {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .side-item {
    grid-template-columns: 92px 1fr;
  }

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