:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --blue-800: #1e3a5f;
  --blue-900: #142c46;
  --blue-950: #0c1b2c;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: #fef3c7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.narrow-container {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 27, 44, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35);
}

.brand-text {
  font-size: 21px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.header-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  outline: none;
  border: 0;
  font: inherit;
}

.header-search input {
  width: 190px;
  color: var(--white);
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header-search button,
.search-panel button {
  border: 0;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--blue-950);
}

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

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

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

.hero-image,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
}

.hero-shadow {
  background:
    linear-gradient(90deg, rgba(12, 27, 44, 0.96) 0%, rgba(12, 27, 44, 0.82) 38%, rgba(12, 27, 44, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 27, 44, 0.92) 0%, rgba(12, 27, 44, 0.1) 44%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(620px, calc(100% - 44px));
  margin-left: max(22px, calc((100vw - 1180px) / 2));
  padding-top: 14vh;
  color: var(--white);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text,
.page-hero p,
.detail-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.category-chips,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.35);
}

.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 9;
  left: max(22px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fbbf24;
}

.hero-panel {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 7;
  width: 310px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(12, 27, 44, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel p {
  margin: 0 0 12px;
  color: var(--white);
  font-weight: 800;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--white);
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.hero-mini-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-mini-card img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-800), var(--accent));
}

.quick-search-section {
  margin-top: -34px;
  position: relative;
  z-index: 12;
}

.search-panel {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: var(--stone-100);
  border-radius: 16px;
}

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

.category-chips a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.content-section {
  padding: 58px 0;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: var(--blue-950);
  font-weight: 900;
}

.section-more {
  color: var(--accent-dark);
  font-weight: 800;
}

.section-more span {
  padding-left: 4px;
}

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

.movie-grid-four {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-grid-six {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.cover-frame {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950) 50%, var(--accent-dark));
}

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

.movie-card-link:hover .cover-frame img {
  transform: scale(1.08);
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
}

.cover-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.32;
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.65;
}

.movie-line {
  min-height: 42px;
  margin-top: 8px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.rating {
  color: var(--accent-dark);
  font-weight: 900;
}

.views {
  color: var(--stone-500);
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.ranking-card {
  position: sticky;
  top: 92px;
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.ranking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ranking-card-head h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 22px;
  font-weight: 900;
}

.ranking-card-head a {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  color: var(--stone-700);
  background: var(--stone-50);
}

.ranking-list b,
.rank-num {
  color: var(--accent-dark);
  font-weight: 900;
}

.ranking-list span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em,
.rank-score {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 800;
}

.feature-band {
  background: linear-gradient(135deg, #fef7ed, #ffffff 54%, #eef2ff);
}

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

.latest-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.latest-item img {
  width: 180px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-800), var(--accent));
}

.latest-item h3 {
  margin: 4px 0 8px;
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 900;
}

.latest-item p {
  margin: 0 0 8px;
  color: var(--stone-700);
  line-height: 1.7;
}

.latest-item span {
  color: var(--stone-500);
  font-size: 13px;
}

.page-main {
  background: var(--stone-50);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 119, 6, 0.42), transparent 34%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.compact-hero {
  padding: 72px 0 64px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--stone-100);
  color: var(--stone-900);
}

.filter-empty {
  padding: 34px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--stone-500);
  background: var(--white);
  border-radius: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card a {
  display: block;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-6px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 160px;
  background: linear-gradient(135deg, var(--blue-800), var(--accent));
  overflow: hidden;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-weight: 900;
}

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

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ranking-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-800), var(--accent));
}

.rank-info b,
.rank-info em {
  display: block;
}

.rank-info b {
  color: var(--blue-950);
  font-size: 18px;
  margin-bottom: 6px;
}

.rank-info em {
  color: var(--stone-500);
  font-style: normal;
  line-height: 1.5;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--blue-950);
  color: var(--white);
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(12, 27, 44, 0.98), rgba(12, 27, 44, 0.68)),
    linear-gradient(0deg, rgba(12, 27, 44, 0.9), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0;
}

.detail-cover img {
  width: 260px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, var(--blue-800), var(--accent));
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 66px);
}

.detail-stats {
  margin-top: 24px;
}

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

.player-shell {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.24);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72));
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.45);
}

.player-message {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 4;
  padding: 14px 16px;
  color: var(--white);
  text-align: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.62);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-article,
.detail-side {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--blue-950);
  font-size: 24px;
  font-weight: 900;
}

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

.detail-article p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.95;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--stone-500);
}

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

.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 48px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
}

img.is-hidden-image {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .header-search {
    order: 5;
    width: 100%;
  }

  .header-search input {
    width: 100%;
    flex: 1;
  }

  .hero-panel {
    display: none;
  }

  .hero-content {
    padding-top: 12vh;
  }

  .hero-arrow {
    top: auto;
    bottom: 30px;
    transform: none;
  }

  .hero-prev {
    left: auto;
    right: 84px;
  }

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

  .ranking-card {
    position: static;
  }

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

  .detail-cover img {
    width: min(220px, 70vw);
  }

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

@media (max-width: 640px) {
  .hero-slider {
    min-height: 620px;
  }

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

  .hero-text,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .search-panel button {
    width: 100%;
  }

  .content-section {
    padding: 42px 0;
  }

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

  .cover-frame {
    height: 210px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .latest-item,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .latest-item img,
  .ranking-row img {
    width: 100%;
    height: 190px;
  }

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

  .detail-article,
  .detail-side {
    padding: 20px;
  }
}
