:root {
  --primary-50: #fef6ee;
  --primary-100: #fdebd6;
  --primary-500: #f0691b;
  --primary-600: #e14f11;
  --primary-700: #ba3910;
  --secondary-100: #e6ebe8;
  --secondary-600: #50675e;
  --accent-50: #fefbe8;
  --accent-500: #eeac07;
  --warm-50: #faf8f5;
  --warm-100: #f2ede4;
  --warm-200: #e4d8c7;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --soft-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --medium-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  --strong-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--warm-50) 48%, var(--warm-100) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 216, 199, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--soft-shadow);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 10px 22px rgba(225, 79, 17, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-600);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--primary-50);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-700);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--warm-200);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--warm-50);
  font-weight: 650;
}

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

.hero {
  position: relative;
  height: 600px;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.03);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.6) 42%, rgba(17, 24, 39, 0.18) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.hero-copy {
  width: min(720px, 100%);
  padding-top: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

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

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

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

.btn,
.filter-reset,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(225, 79, 17, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.filter-reset:hover,
.play-button:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(186, 57, 16, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.section-stack {
  padding: 56px 0 76px;
}

.section {
  margin-top: 58px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.section-title .icon,
.page-title-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.section-more {
  color: var(--primary-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-100), var(--primary-50));
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent);
}

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.score-pill {
  right: 12px;
  top: 12px;
  background: var(--accent-500);
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-meta span {
  position: relative;
}

.card-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7c7c7;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: #4b5563;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span,
.category-chip {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 750;
}

.panel {
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--medium-shadow);
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, var(--primary-50));
  border: 1px solid rgba(228, 216, 199, 0.72);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  color: #ffffff;
  background: radial-gradient(circle at 14% 10%, rgba(238, 172, 7, 0.35), transparent 28%), linear-gradient(135deg, #111827 0%, #3f2417 46%, #e14f11 100%);
}

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

.filter-panel {
  margin: 34px 0;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--warm-200);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: var(--warm-50);
}

.filter-search input {
  padding: 0 18px;
}

.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(240, 105, 27, 0.12);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.filter-selects select {
  padding: 0 14px;
}

.filter-reset {
  min-height: 48px;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 750;
}

.detail-hero {
  padding: 52px 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(62, 39, 35, 0.86)), var(--detail-cover);
  background-size: cover;
  background-position: center;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--strong-shadow);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--warm-100), var(--primary-50));
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy .summary-line {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.72;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 48px 0 78px;
}

.player-card,
.content-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.2));
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-button {
  min-width: 150px;
  min-height: 54px;
  border-radius: 999px;
  font-size: 17px;
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: 18px;
}

.compact-card .poster-wrap {
  aspect-ratio: auto;
  min-height: 124px;
}

.compact-card .card-body {
  padding: 12px;
}

.compact-card h3 {
  margin: 6px 0;
  font-size: 15px;
}

.compact-card p,
.compact-card .tag-row,
.compact-card .score-pill {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 100px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-weight: 900;
}

.rank-row img {
  width: 100px;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--warm-100);
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-score {
  color: var(--primary-700);
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.pagination-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #4b5563;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.site-footer {
  padding: 46px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 430px;
  line-height: 1.75;
}

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

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .category-grid,
  .filter-selects,
  .footer-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

  .rank-row {
    grid-template-columns: 48px 76px minmax(0, 1fr);
  }

  .rank-row img {
    width: 76px;
    height: 102px;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .hero-content,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .detail-copy .summary-line {
    font-size: 15px;
  }

  .section-stack {
    padding-top: 36px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 16px;
  }

  .panel,
  .content-card {
    padding: 20px;
  }

  .detail-hero {
    padding: 36px 0;
  }
}
