:root {
  --ash-950: #141517;
  --ash-900: #212529;
  --ash-800: #343a40;
  --ash-700: #495057;
  --ash-600: #6c757d;
  --ash-200: #dee2e6;
  --ash-100: #f1f3f5;
  --ash-50: #f8f9fa;
  --lava-400: #ffb81a;
  --lava-500: #ff9f1a;
  --volcanic-50: #fef5f1;
  --volcanic-100: #fdeae1;
  --volcanic-600: #f07f4a;
  --volcanic-700: #ee692c;
  --volcanic-800: #d95016;
  --surface: #ffffff;
  --shadow: 0 20px 45px rgba(20, 21, 23, 0.10);
  --soft-shadow: 0 12px 28px rgba(20, 21, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ash-900);
  background: linear-gradient(180deg, var(--ash-50), #ffffff 42%, var(--volcanic-50));
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(20, 21, 23, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #241307;
  background: linear-gradient(135deg, var(--lava-400), var(--volcanic-600));
  box-shadow: 0 10px 30px rgba(240, 127, 74, 0.45);
}

.brand-text {
  font-size: 1.08rem;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 184, 26, 0.16);
}

.header-search {
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #ffffff;
  outline: none;
  padding: 10px 12px;
  background: transparent;
}

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

.header-search button {
  border: 0;
  padding: 10px 15px;
  color: #2a1708;
  cursor: pointer;
  background: var(--lava-400);
  font-weight: 800;
}

.category-strip {
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  height: min(640px, calc(100vh - 80px));
  min-height: 500px;
  overflow: hidden;
  background: var(--ash-950);
}

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

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

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

.hero-backdrop {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 21, 23, 0.95), rgba(20, 21, 23, 0.22) 52%, rgba(20, 21, 23, 0.56));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 86px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--volcanic-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lava-400);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ash-700);
  background: var(--ash-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-chips {
  margin-top: 20px;
}

.hero-chips span,
.detail-chips span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions,
.detail-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link,
.rank-action,
.quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: #2a1708;
  background: linear-gradient(135deg, var(--lava-400), var(--volcanic-600));
  box-shadow: 0 18px 34px rgba(240, 127, 74, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(240, 127, 74, 0.46);
}

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
}

.ghost-button.dark {
  color: var(--ash-900);
  background: #ffffff;
  border-color: rgba(20, 21, 23, 0.12);
}

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

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

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

.section {
  padding: 70px 0;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 58px 0 20px;
}

.page-hero h1,
.section-heading h2,
.section-title-row h2,
.category-overview-head h2,
.detail-info h1,
.content-card h2 {
  margin: 0;
  color: var(--ash-900);
  letter-spacing: -0.045em;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p,
.section-heading p,
.category-overview-head p,
.detail-one-line {
  max-width: 760px;
  color: var(--ash-600);
  line-height: 1.85;
}

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

.section-title-row h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.text-link {
  color: var(--volcanic-700);
  background: var(--volcanic-100);
}

.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.quick-actions a {
  color: var(--ash-900);
  background: #ffffff;
  border: 1px solid var(--ash-200);
  box-shadow: var(--soft-shadow);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--ash-200);
  background-size: cover;
  background-position: center;
}

.movie-poster::after,
.category-cover::after,
.rank-thumb::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05) 58%);
  opacity: 0.82;
}

.poster-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2a1708;
  background: var(--lava-400);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-card h3 a:hover,
.category-overview-head h2 a:hover {
  color: var(--volcanic-700);
}

.movie-meta,
.movie-desc,
.rank-info p {
  margin: 0;
  color: var(--ash-600);
  font-size: 0.9rem;
  line-height: 1.65;
}

.movie-desc {
  display: -webkit-box;
  min-height: 46px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .chip-row {
  margin-top: 12px;
}

.category-panel {
  background: linear-gradient(135deg, var(--volcanic-50), #fff7e4);
}

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

.category-card,
.category-overview-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.category-card h3,
.category-overview-head h2 {
  margin: 0 0 8px;
}

.category-card p,
.category-samples,
.category-samples a {
  color: var(--ash-600);
  line-height: 1.7;
}

.category-cover {
  position: relative;
  display: block;
  min-height: 150px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.category-cover.wide {
  min-height: 240px;
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ash-100);
  font-size: 0.84rem;
}

.category-overview {
  display: grid;
  gap: 34px;
  padding: 36px 0 80px;
}

.category-overview-block {
  display: block;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

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

.filter-bar {
  display: flex;
  width: min(720px, 100%);
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(20, 21, 23, 0.08);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 20px;
  background: transparent;
}

.filter-bar button {
  border: 0;
  padding: 0 24px;
  color: #2a1708;
  background: var(--lava-400);
  cursor: pointer;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 132px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #2a1708;
  background: linear-gradient(135deg, var(--lava-400), var(--volcanic-600));
  font-size: 1.35rem;
  font-weight: 900;
}

.rank-thumb {
  position: relative;
  display: block;
  height: 86px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.rank-action {
  color: var(--volcanic-700);
  background: var(--volcanic-100);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--ash-600);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--volcanic-700);
}

.detail-main {
  padding-bottom: 60px;
}

.detail-hero {
  padding: 48px 0 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  position: relative;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--ash-200);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.detail-one-line {
  font-size: 1.08rem;
}

.player-section {
  padding: 24px 0 40px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(240, 127, 74, 0.26), rgba(0, 0, 0, 0.72));
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #2a1708;
  background: var(--lava-400);
  box-shadow: 0 18px 44px rgba(255, 184, 26, 0.38);
}

.detail-content {
  padding: 20px 0 10px;
}

.content-card {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

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

.content-card p {
  color: var(--ash-700);
  line-height: 2;
}

.movie-data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.movie-data-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--ash-50);
}

.movie-data-list dt {
  color: var(--ash-600);
  font-size: 0.84rem;
}

.movie-data-list dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ash-950);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-inner p {
  line-height: 1.8;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.footer-links a,
.footer-cats a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

[data-card].is-hidden {
  display: none;
}

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

  .header-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(20, 21, 23, 0.98);
  }

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

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

  .category-strip {
    padding-bottom: 10px;
  }

  .hero {
    min-height: 540px;
  }

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

  .intro-section,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .category-card,
  .category-overview-head,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-card {
    gap: 14px;
  }

  .detail-poster {
    min-height: 390px;
  }

  .rank-row {
    grid-template-columns: 52px 90px 1fr;
  }

  .rank-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.08rem;
  }

  .rank-thumb {
    height: 78px;
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
    min-height: 36px;
  }

  .movie-data-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .category-strip,
  .footer-inner,
  .hero-content {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .hero-actions,
  .detail-actions,
  .quick-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .primary-button,
  .ghost-button,
  .quick-actions a {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .movie-grid {
    gap: 14px;
  }

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

  .movie-desc,
  .chip-row {
    display: none;
  }

  .filter-bar {
    border-radius: 18px;
  }

  .filter-bar button {
    padding: 0 16px;
  }

  .video-shell {
    border-radius: 18px;
  }
}
