* {
  box-sizing: border-box;
}

:root {
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --dark: #1f2937;
  --muted: #6b7280;
  --light: #fff7ed;
  --line: #fed7aa;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

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: 100;
  background: linear-gradient(90deg, #f59e0b, #fb923c, #f59e0b);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.28);
}

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

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

.nav-link {
  color: #fff7ed;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #fb923c, #ef4444);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.35;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(249, 115, 22, 0.88), rgba(239, 68, 68, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(127, 29, 29, 0.28);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2.4vw, 26px);
  color: rgba(255, 255, 255, 0.92);
}

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

.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: #9a3412;
  background: #ffedd5;
}

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

.primary-btn,
.ghost-btn,
.filter-panel button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.primary-btn {
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(154, 52, 18, 0.24);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff7ed;
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-poster {
  position: relative;
  align-self: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

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

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

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

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

.stats-strip {
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0;
}

.stats-grid div {
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.08);
}

.stats-grid strong {
  display: block;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.warm-bg {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.section-title {
  margin-bottom: 32px;
  text-align: center;
}

.title-dot {
  display: inline-flex;
  color: var(--orange);
  font-size: 30px;
  margin-bottom: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}

.section-title p {
  margin: 10px auto 0;
  color: var(--muted);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.six-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
  transition: all 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(31, 41, 55, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
  aspect-ratio: 2 / 3;
}

.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);
}

.play-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

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

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

.movie-card h3 a:hover,
.text-link:hover,
.category-overview-card a:hover,
.side-card a:hover {
  color: var(--orange);
}

.meta-line,
.desc-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.desc-line {
  min-height: 42px;
  overflow: hidden;
}

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

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

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

.category-tile,
.category-overview-card,
.side-card,
.filter-panel,
.rank-panel,
.detail-article,
.table-wrap {
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
}

.category-tile {
  padding: 18px;
  transition: all 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: #fdba74;
}

.tile-thumbs,
.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tile-thumbs img,
.overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.rank-panel {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
}

.panel-head a {
  color: var(--orange);
  font-weight: 800;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #ffedd5;
}

.rank-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: var(--orange);
}

.rank-item img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

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

.rank-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sub-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c, #ef4444);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(20px);
}

.sub-hero h1 {
  position: relative;
  z-index: 1;
  margin: 16px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.sub-hero p,
.crumbs {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.crumbs a {
  font-weight: 800;
}

.crumbs em {
  font-style: normal;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
}

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

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.text-link {
  min-height: 38px;
  padding: 0;
  color: var(--orange);
  background: transparent;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px auto;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  background: #fffaf4;
}

.search-box input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-panel select {
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 12px;
  background: #fffaf4;
}

.filter-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.result-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.1);
  opacity: 0.48;
}

.detail-mask {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(154, 52, 18, 0.72), rgba(249, 115, 22, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 60px 0;
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 20px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

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

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.16), rgba(0, 0, 0, 0.46));
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.45);
}

.player-overlay.hidden {
  display: none;
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

.side-card {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.side-card h3 {
  margin: 0 0 14px;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 2px 0 12px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

.rank-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ffedd5;
  text-align: left;
}

.rank-table th {
  color: #9a3412;
  background: #fff7ed;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #374151, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fdba74;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fdba74;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .rank-panel,
  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    color: #374151;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 96px;
  }

  .hero-poster {
    max-width: 260px;
    justify-self: center;
  }

  .stats-grid,
  .category-grid,
  .footer-grid,
  .filter-panel,
  .category-overview-card,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .category-overview-card ul {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .page-section {
    padding: 48px 0;
  }

  .movie-grid {
    gap: 14px;
  }

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

  .desc-line {
    display: none;
  }
}
