:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #d97706;
  --secondary-dark: #b45309;
  --accent: #f97316;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(41, 37, 36, 0.14);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  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(--stone-800);
  background: var(--stone-50);
  line-height: 1.6;
}

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

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.75);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.24);
}

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

.site-nav a {
  padding: 9px 14px;
  color: var(--stone-600);
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--secondary-dark);
  background: #fffbeb;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--stone-800);
  background: var(--stone-100);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.58) 46%, rgba(28, 25, 23, 0.18)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.08) 42%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2 + 20px));
  bottom: 92px;
  width: min(680px, calc(100% - 48px));
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #78350f;
  background: #fef3c7;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--secondary);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

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

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

.ghost-btn.wide {
  width: 100%;
  color: var(--secondary-dark);
  background: #fffbeb;
  border-color: #fde68a;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

.hero-dots button[aria-current="true"] {
  width: 34px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2 + 20px));
  bottom: 86px;
  width: min(360px, calc(100% - 48px));
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 10px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  border: 0;
  color: var(--white);
  background: var(--secondary);
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 800;
}

.category-strip {
  max-width: 1200px;
  margin: 26px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--stone-700);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: 0 8px 20px rgba(41, 37, 36, 0.06);
  font-weight: 800;
}

.section-block,
.page-main,
.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

.warm-block {
  max-width: none;
  margin-top: 34px;
  padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
  background: linear-gradient(180deg, #fffbeb, var(--white));
}

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

.section-title span {
  color: var(--secondary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 4px 0 0;
  color: var(--stone-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title a {
  color: var(--secondary-dark);
  font-weight: 900;
}

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

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

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

.listing-grid {
  padding-top: 28px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(231, 229, 228, 0.85);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.68), transparent 58%);
}

.movie-badge,
.movie-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.movie-badge {
  top: 10px;
  right: 10px;
  background: var(--secondary);
}

.movie-play {
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card p {
  min-height: 44px;
  margin: 8px 0 0;
  color: var(--stone-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

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

.tag-row span {
  color: var(--primary-dark);
  background: #ccfbf1;
}

.ranking-entry {
  max-width: 1200px;
  margin: 34px auto 0;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.ranking-copy {
  min-height: 420px;
  padding: 44px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.34), transparent 32%),
    linear-gradient(135deg, var(--stone-900), #134e4a 62%, var(--secondary-dark));
  box-shadow: var(--shadow-soft);
}

.ranking-copy span {
  color: #fbbf24;
  font-weight: 900;
}

.ranking-copy h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.78);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--secondary);
  font-weight: 900;
}

.rank-item img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--stone-900);
  font-weight: 900;
}

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

.rank-score {
  color: var(--secondary-dark);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 18%, rgba(251, 191, 36, 0.3), transparent 30%),
    linear-gradient(135deg, var(--stone-900), #134e4a 58%, var(--secondary-dark));
  box-shadow: var(--shadow-soft);
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover {
  height: 190px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(135deg, #134e4a, var(--secondary));
}

.category-cover img {
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

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

.category-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 26px;
  font-weight: 900;
}

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

.category-card span {
  color: var(--secondary-dark);
  font-weight: 900;
}

.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr repeat(3, 180px);
  gap: 12px;
  margin-top: 28px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  outline: 0;
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--stone-800);
  background: var(--stone-50);
}

.detail-main {
  padding-top: 36px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 18%, rgba(251, 191, 36, 0.26), transparent 28%),
    linear-gradient(135deg, var(--stone-900), #134e4a 60%, #78350f);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

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

.detail-copy p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.player-section {
  margin-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 34px;
}

.article-card,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
}

.article-card {
  padding: 32px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 24px;
  font-weight: 900;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  margin: 0;
  color: var(--stone-600);
  font-size: 17px;
}

.side-card {
  padding: 26px;
  align-self: start;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0 0 22px;
}

.side-card dt {
  color: var(--stone-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 800;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 20px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--stone-900);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 8px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

  .ranking-entry,
  .detail-hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
    background: var(--white);
  }

  .hero {
    min-height: 680px;
    height: 82vh;
  }

  .hero-content {
    left: 20px;
    bottom: 150px;
    width: calc(100% - 40px);
  }

  .hero-search {
    left: 20px;
    right: 20px;
    bottom: 74px;
    width: auto;
  }

  .hero-control {
    display: none;
  }

  .section-block,
  .page-main,
  .detail-main {
    padding: 42px 16px;
  }

  .warm-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .ranking-entry {
    padding: 32px 16px;
  }

  .ranking-copy,
  .page-hero,
  .detail-hero,
  .article-card,
  .side-card {
    padding: 24px;
  }

  .rank-item {
    grid-template-columns: auto 56px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-item img {
    width: 56px;
    height: 42px;
  }

  .filter-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    height: 160px;
  }
}
