:root {
  --cream-50: #fff8f1;
  --cream-100: #fff1e3;
  --tea-50: #fff4ea;
  --tea-100: #ffe2c8;
  --tea-300: #f2b075;
  --tea-400: #eca368;
  --tea-500: #e4864d;
  --tea-600: #d9703c;
  --tea-700: #b45833;
  --warm-50: #fdf6ef;
  --warm-100: #f5e8dc;
  --warm-200: #e7d2c1;
  --warm-500: #8b6f5a;
  --warm-700: #5d4638;
  --warm-800: #3d2c24;
  --warm-900: #241914;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 14px 45px rgba(61, 44, 36, 0.12);
  --shadow-card: 0 18px 45px rgba(36, 25, 20, 0.13);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 232, 220, 0.9);
  box-shadow: 0 8px 30px rgba(61, 44, 36, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  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: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tea-600), var(--tea-300));
  box-shadow: 0 8px 18px rgba(217, 112, 60, 0.32);
}

.brand-name {
  font-size: 20px;
  color: var(--warm-900);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 650;
  color: var(--warm-700);
  transition: color 0.22s ease;
}

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

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  color: var(--warm-800);
  background: var(--cream-100);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--warm-100);
  background: #ffffff;
}

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

.mobile-link {
  padding: 12px 4px;
  font-weight: 650;
  color: var(--warm-700);
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(236, 163, 104, 0.3), transparent 32%), linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.47) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--tea-400);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.tag {
  color: var(--tea-700);
  background: var(--tea-50);
}

.hero-tag-row {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.home-search button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tea-600), var(--tea-400));
  box-shadow: 0 12px 26px rgba(217, 112, 60, 0.3);
}

.primary-button:hover,
.home-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(217, 112, 60, 0.36);
}

.ghost-button,
.section-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.section-link {
  color: var(--tea-700);
  background: var(--tea-50);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  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.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

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

.panel-section {
  padding: 0;
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(245, 232, 220, 0.92);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.player-topline h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  color: var(--warm-900);
  font-weight: 900;
}

.search-panel h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.search-panel p,
.section-heading p,
.page-hero p,
.detail-one-line,
.detail-article p {
  color: var(--warm-500);
  line-height: 1.78;
}

.home-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--warm-800);
  background: #ffffff;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--tea-400);
  box-shadow: 0 0 0 4px rgba(236, 163, 104, 0.18);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 220, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(36, 25, 20, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 163, 104, 0.55);
  box-shadow: var(--shadow-card);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--warm-900), var(--tea-700));
}

.poster-wrap img,
.detail-poster img,
.category-tile img,
.overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.22s ease;
}

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

.poster-shade,
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7));
}

.score-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.score-badge {
  right: 12px;
  top: 12px;
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(217, 112, 60, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.rank-mark {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  color: var(--warm-900);
  background: rgba(255, 255, 255, 0.92);
}

.movie-body {
  padding: 16px;
}

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

.movie-body h3 a:hover {
  color: var(--tea-600);
}

.movie-meta,
.movie-desc {
  margin: 0;
}

.movie-meta {
  color: var(--tea-700);
  font-size: 13px;
  font-weight: 750;
}

.movie-desc {
  margin-top: 10px;
  color: var(--warm-500);
  font-size: 14px;
  line-height: 1.62;
}

.tag-row {
  margin-top: 12px;
}

.wide-band {
  background: linear-gradient(180deg, rgba(245, 232, 220, 0.55), rgba(255, 255, 255, 0.1));
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-xl);
  background: var(--warm-900);
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.tile-title,
.tile-desc {
  position: absolute;
  left: 22px;
  right: 22px;
  color: #ffffff;
}

.tile-title {
  bottom: 58px;
  font-size: 24px;
  font-weight: 900;
}

.tile-desc {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 78% 22%, rgba(236, 163, 104, 0.26), transparent 32%), linear-gradient(135deg, var(--warm-900), #3c2419 62%, var(--tea-700));
  color: #ffffff;
}

.page-hero .section-container {
  padding: 82px 0;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.overview-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(245, 232, 220, 0.95);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(36, 25, 20, 0.08);
}

.overview-card img {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--warm-900);
}

.overview-card strong,
.overview-card em {
  display: block;
}

.overview-card strong {
  margin-bottom: 8px;
  color: var(--warm-900);
  font-size: 20px;
}

.overview-card em {
  color: var(--warm-500);
  font-style: normal;
  line-height: 1.65;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(245, 232, 220, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(36, 25, 20, 0.06);
}

.filter-bar select {
  max-width: 170px;
}

.large-filter select {
  max-width: 150px;
}

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

.detail-head {
  background: radial-gradient(circle at 72% 15%, rgba(236, 163, 104, 0.28), transparent 32%), linear-gradient(135deg, var(--warm-900), #3b251d 62%, var(--tea-700));
  color: #ffffff;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--warm-900), var(--tea-700));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-score {
  top: 18px;
  right: 18px;
}

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

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

.detail-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  padding-top: 54px;
}

.player-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--warm-900);
  box-shadow: var(--shadow-card);
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: #ffffff;
}

.player-topline h2 {
  color: #ffffff;
  font-size: 22px;
}

.player-topline span {
  color: var(--tea-300);
  font-weight: 800;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tea-600), var(--tea-400));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.detail-article {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(245, 232, 220, 0.95);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(36, 25, 20, 0.07);
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p {
  margin: 0;
  font-size: 17px;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--warm-200);
  line-height: 1.72;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

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

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

  .menu-button {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .home-search,
  .filter-bar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    max-width: none;
  }

  .movie-grid,
  .catalog-grid,
  .ranking-strip,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-content,
  .section-container,
  .footer-inner {
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-container {
    width: 100%;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .brand-name {
    font-size: 17px;
  }

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

  .hero h1 {
    font-size: 38px;
  }

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

  .movie-grid,
  .catalog-grid,
  .ranking-strip,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-template-columns: 92px 1fr;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
