:root {
  --primary: #d4884b;
  --primary-dark: #c6703f;
  --primary-deep: #a55936;
  --accent: #ed7516;
  --secondary: #1c1917;
  --secondary-soft: #292524;
  --text: #1c1917;
  --muted: #57534e;
  --warm-50: #faf9f7;
  --warm-100: #f4f2ee;
  --warm-200: #e8e4dc;
  --warm-300: #d9d3c7;
  --white: #ffffff;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.13);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 18px rgba(28, 25, 23, 0.08);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 22px rgba(212, 136, 75, 0.28);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-deep);
  background: var(--warm-100);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--secondary);
}

.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;
  filter: saturate(1.05) contrast(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 0 86px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--warm-100);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--warm-200);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--warm-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(212, 136, 75, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(212, 136, 75, 0.34);
}

.btn-ghost {
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--primary-deep);
  background: var(--warm-100);
}

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

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  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);
}

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: var(--secondary);
}

.section-subtitle {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
}

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

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

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

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

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

.movie-card,
.category-card,
.ranking-item,
.info-panel,
.search-panel,
.detail-panel {
  border: 1px solid rgba(232, 228, 220, 0.92);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--secondary-soft);
}

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

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

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.card-title a:hover {
  color: var(--primary-deep);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--warm-100);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 136, 75, 0.58);
  box-shadow: var(--shadow-hover);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--secondary);
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.search-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--warm-300);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--secondary);
  background: var(--warm-50);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 136, 75, 0.16);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: var(--warm-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.empty-result {
  display: none;
  padding: 26px;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--warm-100);
  text-align: center;
  font-weight: 800;
}

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

.page-hero {
  padding: 64px 0 46px;
  background: linear-gradient(135deg, var(--secondary), #3b2d25 48%, var(--primary-deep));
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--warm-200);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--warm-300);
  font-weight: 800;
  font-size: 14px;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--secondary);
  font-weight: 900;
}

.rank-title a:hover {
  color: var(--primary-deep);
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  justify-self: end;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-deep);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid var(--white);
}

.detail-panel {
  padding: 26px;
}

.detail-panel h2 {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 25px;
  line-height: 1.2;
}

.detail-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  background: var(--secondary);
  box-shadow: var(--shadow-soft);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.meta-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row strong {
  color: var(--secondary);
}

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

.site-footer {
  margin-top: 44px;
  padding: 42px 0;
  background: var(--secondary);
  color: var(--warm-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

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

  .detail-sidebar {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-hover);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-slider {
    min-height: 540px;
  }

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

  .hero-arrow {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-grid {
    display: block;
  }

  .section-actions,
  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }

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

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

  .rank-score {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 46px 0 36px;
  }

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