:root {
  --cream-50: #fefdfb;
  --tea-50: #fdf8f3;
  --tea-100: #fbeee0;
  --tea-400: #eca368;
  --tea-600: #d9703c;
  --tea-700: #b45833;
  --warm-50: #faf5f0;
  --warm-100: #f5ebe0;
  --warm-200: #e8d4be;
  --warm-300: #d9b896;
  --warm-500: #be8350;
  --warm-600: #a86d44;
  --warm-700: #8b583a;
  --warm-800: #714834;
  --warm-900: #5d3d2d;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-soft-lg: 0 18px 45px rgba(93, 61, 45, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--cream-50), var(--white));
  color: var(--warm-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  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: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--warm-100);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-800);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tea-600);
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(217, 112, 60, 0.25);
}

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

.nav-link,
.nav-sub-link {
  color: var(--warm-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-more {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  display: grid;
  gap: 10px;
  width: 210px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: 16px;
  box-shadow: var(--shadow-soft-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--warm-800);
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--warm-100);
  background: var(--white);
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--warm-900);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46) 45%, rgba(0, 0, 0, 0.15)), radial-gradient(circle at 20% 50%, rgba(217, 112, 60, 0.45), transparent 32%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--tea-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-family: Georgia, Cambria, "Times New Roman", "PingFang SC", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.hero h2 {
  font-size: clamp(28px, 4vw, 46px);
}

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

.hero-tags,
.detail-badges,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-badges span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-btn {
  background: var(--tea-600);
  color: var(--white);
  box-shadow: 0 16px 35px rgba(217, 112, 60, 0.26);
}

.primary-btn:hover,
.movie-card:hover .card-play {
  background: var(--tea-700);
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.hero-thumbs {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 78px;
  display: grid;
  grid-template-columns: repeat(5, 88px);
  gap: 12px;
  justify-content: end;
}

.hero-thumb {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 12px;
  backdrop-filter: blur(12px);
  opacity: 0.74;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  opacity: 1;
  transform: translateY(-4px);
}

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

.intro-panel,
.section-block {
  padding: 64px 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 28px;
  align-items: center;
}

.intro-panel h2,
.section-head h2,
.rank-copy h2,
.sub-hero h1,
.player-section h2,
.content-card h2,
.footer-brand h2 {
  margin: 0;
  color: var(--warm-800);
  font-family: Georgia, Cambria, "Times New Roman", "PingFang SC", serif;
  line-height: 1.2;
}

.intro-panel h2,
.section-head h2,
.rank-copy h2,
.sub-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p,
.rank-copy p,
.sub-hero p,
.content-card p,
.footer-brand p {
  color: var(--warm-700);
}

.quick-search,
.filter-panel {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--cream-50);
  color: var(--warm-900);
  outline: none;
}

.quick-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--tea-600);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

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

.section-head a {
  color: var(--tea-600);
  font-weight: 700;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

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

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--warm-100);
}

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

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

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

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tea-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  color: var(--white);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-type,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--white);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.card-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: var(--tea-600);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--warm-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--warm-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--warm-700);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  background: var(--tea-50);
  color: var(--tea-700);
}

.rank-section {
  padding: 76px 0;
  background: linear-gradient(135deg, var(--tea-50), var(--warm-50));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: 42px;
  align-items: center;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.rank-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--tea-600);
  color: var(--white);
  font-weight: 800;
}

.rank-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  color: var(--warm-500);
  font-size: 13px;
  font-style: normal;
}

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

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tea-100);
  color: var(--tea-700);
}

.category-card h2 {
  margin: 0;
  color: var(--warm-900);
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--warm-700);
  font-size: 14px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.category-samples a {
  color: var(--tea-600);
  font-size: 13px;
  font-weight: 600;
}

.sub-hero {
  padding: 92px 0 78px;
  background: radial-gradient(circle at 15% 10%, rgba(217, 112, 60, 0.18), transparent 34%), linear-gradient(135deg, var(--cream-50), var(--warm-50));
  border-bottom: 1px solid var(--warm-100);
}

.sub-hero p {
  max-width: 760px;
}

.sub-actions .ghost-btn,
.detail-actions .ghost-btn {
  border-color: var(--warm-200);
  background: var(--white);
  color: var(--warm-800);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--warm-600);
  font-size: 13px;
  font-weight: 700;
}

.detail-page {
  background: linear-gradient(180deg, var(--cream-50), var(--white));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 24px 0 0;
  color: var(--warm-600);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 34px 0 56px;
}

.detail-cover {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft-lg);
  background: var(--warm-100);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  color: var(--warm-900);
  font-family: Georgia, Cambria, "Times New Roman", "PingFang SC", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-line {
  margin: 0 0 20px;
  color: var(--warm-700);
  font-size: 18px;
}

.detail-badges span,
.detail-tags span {
  background: var(--tea-50);
  color: var(--tea-700);
}

.detail-tags {
  margin-top: 14px;
}

.player-section {
  padding: 0 0 56px;
}

.player-section h2 {
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
  box-shadow: var(--shadow-soft-lg);
}

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

.video-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: var(--tea-600);
  color: var(--white);
  font-size: 34px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.video-shell.is-playing .video-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 32px;
}

.content-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
}

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

.rank-grid .movie-card:nth-child(-n + 3) {
  border-color: var(--tea-400);
}

.site-footer {
  margin-top: 48px;
  background: var(--warm-900);
  color: var(--warm-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr;
  gap: 42px;
  padding: 56px 0;
}

.footer-logo {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--warm-200);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--tea-400);
}

.footer-bottom {
  padding: 20px;
  border-top: 1px solid var(--warm-800);
  color: var(--warm-300);
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-thumbs {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .detail-cover {
    max-width: 360px;
  }

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

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

  .hero {
    height: 76vh;
    min-height: 590px;
  }

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

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

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

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

  .quick-search {
    flex-direction: column;
  }

  .rank-list a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .rank-list em {
    grid-column: 2;
  }
}
