:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --teal-600: #0d9488;
  --cyan-700: #0e7490;
  --white: #ffffff;
  --shadow-soft: 0 18px 60px rgba(28, 25, 23, 0.14);
  --shadow-card: 0 12px 34px rgba(28, 25, 23, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--amber-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-800, #92400e), var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber-700);
  background: var(--amber-100);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.logo-text {
  font-size: 1.12rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}

.nav-links a,
.mobile-nav a {
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: var(--amber-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-100);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero-content h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

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

.compact-actions {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-700), #c2410c);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn-link {
  color: var(--amber-100);
  padding-inline: 8px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
  background: rgba(217, 119, 6, 0.82);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-500);
}

.section-block {
  padding: 72px 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.56);
}

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

.inline-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.section-more {
  color: var(--amber-700);
  font-weight: 800;
}

.quick-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.quick-search-box h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.quick-search {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.quick-search input {
  min-height: 48px;
  padding: 0 16px;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 22px 44px rgba(28, 25, 23, 0.16);
  transform: translateY(-6px);
}

.movie-card[hidden],
.ranking-card[hidden] {
  display: none;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

.poster-wrap img,
.ranking-poster img,
.mini-card img,
.category-tile img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.64);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--stone-500);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after {
  content: "";
}

.movie-card h3,
.ranking-card h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 1.05rem;
  line-height: 1.3;
}

.movie-card p,
.ranking-card p {
  margin: 0 0 12px;
  color: var(--stone-600, #57534e);
  font-size: 0.94rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 0.78rem;
  font-weight: 750;
}

.card-link {
  color: var(--teal-600);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

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

.category-tile span,
.category-tile strong {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 58px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

.rank-list {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stone-200);
  transition: background 0.25s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: var(--amber-50);
}

.rank-number {
  color: var(--amber-600);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  color: var(--stone-900);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--stone-500);
  font-size: 0.84rem;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.mini-card img {
  width: 72px;
  height: 88px;
  border-radius: 12px;
  background: var(--stone-200);
}

.mini-card span {
  display: block;
  overflow: hidden;
  color: var(--stone-900);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card small {
  display: block;
  color: var(--stone-500);
}

.page-hero {
  padding: 92px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.36), transparent 32%),
    linear-gradient(135deg, var(--stone-900), #44403c 48%, var(--amber-700));
}

.simple-hero p,
.channel-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.category-list-large {
  display: grid;
  gap: 24px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 240px;
  background: var(--stone-200);
}

.category-card-large-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.category-card-large-body h2 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 1.8rem;
}

.category-card-large-body p {
  margin: 0 0 22px;
  color: var(--stone-500);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.ranking-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stone-200);
}

.ranking-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.detail-hero {
  padding: 48px 0 58px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 12%, rgba(13, 148, 136, 0.24), transparent 34%),
    linear-gradient(135deg, var(--stone-900), #292524 58%, #92400e);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 34px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.28), transparent 38%),
    rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.38);
  font-size: 2rem;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

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

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

.breadcrumb a:hover {
  color: var(--amber-100);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

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

.detail-meta-list div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-list dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.detail-meta-list dd {
  margin: 2px 0 0;
  color: var(--white);
  font-weight: 800;
}

.detail-tags span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.article-main,
.article-side {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.article-main h2,
.article-side h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 1.5rem;
}

.article-main p {
  margin: 0 0 24px;
  color: var(--stone-700);
  font-size: 1.04rem;
}

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

.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--stone-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: var(--white);
  font-size: 1.1rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: start;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--amber-100);
}

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

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

  .detail-grid,
  .two-column-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-actions,
  .quick-search,
  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search-box,
  .filter-bar,
  .category-card-large {
    grid-template-columns: 1fr;
  }

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

  .ranking-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

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

  .rank-meta {
    display: none;
  }

  .detail-meta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-block {
    padding: 48px 0;
  }

  .movie-grid,
  .expanded-grid,
  .category-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

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