:root {
  --bg: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf0 42%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #b45309, var(--orange), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav,
.mobile-nav,
.footer-links,
.intro-strip {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(124, 45, 18, 0.10);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 94px max(32px, calc((100vw - 1180px) / 2)) 96px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.72), rgba(244, 63, 94, 0.34)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.18);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(180deg, transparent 62%, rgba(17, 24, 39, 0.86));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
}

.section-kicker {
  color: var(--orange);
  background: rgba(255, 237, 213, 0.9);
}

.hero-content h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p,
.sub-hero p,
.detail-one-line {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 999px;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

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

.play-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.intro-strip {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -26px;
  padding: 18px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip a {
  padding: 10px 18px;
  color: #9a3412;
  font-weight: 900;
  border-radius: 999px;
  background: #ffedd5;
}

.section-block {
  margin-top: 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-more {
  color: #9a3412;
  background: #ffedd5;
}

.search-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.08);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-weight: 900;
}

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

.search-line input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  color: #111827;
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
}

.search-line input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 48px;
  padding: 0 16px;
  color: #7c2d12;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  background: #ffedd5;
  cursor: pointer;
}

.filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge,
.type-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.score-badge {
  right: 12px;
  background: rgba(249, 115, 22, 0.94);
}

.type-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 46px;
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ffedd5;
}

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

.category-card,
.category-large {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.14);
}

.category-thumbs,
.category-large-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-thumbs img,
.category-large-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.category-card h3,
.category-large h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p,
.category-large p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sub-hero {
  padding: 82px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 24%, rgba(253, 186, 116, 0.48), transparent 30%),
    linear-gradient(135deg, #92400e, #f97316, #f43f5e);
}

.sub-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.crumb {
  display: inline-flex;
  margin-bottom: 16px;
  color: #ffedd5;
  font-weight: 900;
}

.rank-list,
.latest-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 58px minmax(0, 1fr) auto 68px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  border-color: rgba(249, 115, 22, 0.45);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  min-width: 0;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  justify-self: end;
  color: var(--orange);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 70px;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.76)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.04);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.85));
}

.detail-wrap {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 34px;
  align-items: center;
}

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

.player-video,
.player-overlay,
.player-overlay img {
  width: 100%;
  height: 100%;
}

.player-video {
  display: block;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.62;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #ffffff;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.36);
}

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

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

.detail-meta span {
  padding: 8px 12px;
  color: #fff7ed;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.article-card,
.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: #9a3412;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #4b5563;
}

.detail-nav-links {
  display: grid;
  gap: 12px;
}

.detail-nav-links a {
  padding: 14px 16px;
  color: #9a3412;
  font-weight: 900;
  border-radius: 16px;
  background: #ffedd5;
}

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

.mini-card {
  display: block;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.10);
  transition: transform 0.25s ease;
}

.mini-card:hover img {
  transform: translateY(-6px);
}

.mini-card span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

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

.footer-inner p {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #9a3412;
  font-weight: 900;
}

.copyright {
  margin-top: 26px;
  color: #9a3412;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-slide,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
    transform: none;
  }

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

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

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

  .hero-slide {
    padding: 78px 18px 92px;
    gap: 28px;
  }

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

  .hero-content p,
  .sub-hero p,
  .detail-one-line {
    font-size: 15px;
  }

  .section-heading,
  .footer-inner,
  .search-line {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-large-grid,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .movie-card-body p,
  .rank-info {
    display: none;
  }

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

  .rank-row img {
    width: 48px;
    height: 64px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .article-card,
  .side-card {
    padding: 20px;
    border-radius: 20px;
  }
}
