:root {
  --primary-900: #333d4f;
  --primary-800: #39475d;
  --primary-700: #42536f;
  --primary-600: #506688;
  --primary-100: #ebeef3;
  --accent-500: #eab308;
  --accent-400: #facc15;
  --accent-50: #fefce8;
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 229, 229, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-900);
}

.brand-text {
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  box-shadow: 0 8px 18px rgba(80, 102, 136, 0.26);
}

.brand-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--white);
}

.brand-mark span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent-500);
  border: 2px solid var(--white);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  background: var(--white);
}

.search-form input,
.big-search input,
.filter-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--neutral-800);
  background: transparent;
}

.search-form input {
  width: 230px;
  padding: 10px 12px;
}

.search-form button,
.big-search button {
  border: 0;
  background: var(--primary-600);
  color: var(--white);
  font-weight: 700;
  padding: 10px 16px;
  transition: background 0.2s ease;
}

.search-form button:hover,
.big-search button:hover,
.btn.primary:hover {
  background: var(--primary-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--neutral-100);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-700);
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 9px 4px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.92);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.detail-tags,
.card-tags,
.filter-chips,
.spotlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

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

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

.btn.primary {
  background: var(--primary-600);
  color: var(--white);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

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

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

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

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

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

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

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

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--neutral-200);
}

.movie-card.compact .card-media {
  aspect-ratio: 4 / 3;
}

.card-media img,
.category-tile img,
.category-card-cover img,
.rank-poster img,
.side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .card-media img,
.category-tile:hover img,
.category-card:hover img,
.rank-row:hover img,
.side-reco:hover img {
  transform: scale(1.08);
}

.card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--primary-600);
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--neutral-500);
  font-size: 13px;
}

.card-meta a {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 800;
}

.card-tags span {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--primary-900);
  box-shadow: var(--shadow-sm);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
  align-self: flex-end;
}

.category-tile span {
  margin: auto 18px 52px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.two-column,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 30px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rank-row.large {
  grid-template-columns: 72px 150px minmax(0, 1fr) auto;
}

.rank-num {
  color: var(--accent-500);
  font-weight: 900;
  font-size: 24px;
  text-align: center;
}

.rank-poster {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--neutral-200);
}

.rank-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-detail strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.rank-detail em,
.rank-detail small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-detail small {
  color: var(--neutral-500);
  font-size: 13px;
}

.rank-year {
  color: var(--neutral-500);
  font-weight: 800;
}

.spotlight-panel,
.aside-box,
.detail-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.spotlight-panel {
  align-self: start;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: var(--white);
}

.spotlight-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.spotlight-panel p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
}

.spotlight-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: var(--white);
  padding: 64px 0;
}

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

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.movie-detail .breadcrumb {
  color: var(--neutral-500);
}

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

.filter-bar,
.big-search {
  display: flex;
  width: min(100%, 680px);
  margin-top: 26px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar input,
.big-search input {
  padding: 15px 18px;
  color: var(--neutral-800);
}

.big-search button {
  padding: 0 24px;
}

.filter-chips {
  margin-top: 18px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 8px 13px;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--accent-500);
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--neutral-200);
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card-body h2 a:hover {
  color: var(--primary-600);
}

.category-card-body p {
  margin: 0 0 16px;
  color: var(--neutral-600);
}

.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card-links a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.no-results,
.search-status {
  color: var(--neutral-600);
  font-weight: 800;
}

.no-results {
  text-align: center;
  padding: 42px 0;
}

.search-status {
  margin-bottom: 22px;
}

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

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--neutral-950);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: var(--neutral-950);
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  background: rgba(0, 0, 0, 0.55);
}

.player-start[hidden] {
  display: none;
}

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.3);
  font-size: 28px;
  text-indent: 4px;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

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

.detail-card .one-line {
  margin: 0 0 18px;
  color: var(--neutral-700);
  font-size: 18px;
  font-weight: 650;
}

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

.detail-meta a,
.detail-meta span {
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
}

.detail-meta a {
  background: var(--primary-100);
  color: var(--primary-700);
}

.detail-tags {
  margin: 18px 0 24px;
}

.detail-tags span {
  background: var(--accent-50);
  color: #9a6b00;
  font-weight: 800;
}

.detail-card h2,
.aside-box h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: var(--neutral-700);
  font-size: 16px;
  line-height: 1.85;
}

.review-box {
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 20px;
}

.detail-aside {
  min-width: 0;
}

.aside-box {
  position: sticky;
  top: 88px;
  padding: 22px;
}

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

.side-reco {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--neutral-200);
}

.side-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.side-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-info em {
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.related-section {
  padding-top: 44px;
}

.site-footer {
  margin-top: 58px;
  background: var(--primary-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 34px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.footer-main p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  border-top: 1px solid var(--primary-800);
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .three-grid,
  .category-list,
  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .aside-box {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 520px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .three-grid,
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-row,
  .rank-row.large {
    grid-template-columns: 44px 96px minmax(0, 1fr);
  }

  .rank-year {
    display: none;
  }

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

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

  .brand-text {
    font-size: 20px;
  }

  .hero {
    height: 500px;
  }

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

  .hero-arrow {
    display: none;
  }

  .page-section {
    padding: 40px 0;
  }

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

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

  .rank-poster {
    display: none;
  }

  .side-reco {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .detail-card {
    padding: 22px;
  }

  .filter-bar,
  .big-search {
    width: 100%;
  }
}
