
:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fee2d5;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(185, 28, 28, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(254, 226, 213, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--red-dark), var(--orange), var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 12px;
  font-weight: 650;
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #ffffff;
}

.quick-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 8px 6px;
}

.quick-search button,
.search-box-row button {
  border: 0;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 9px 15px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1e7;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--red-dark);
  border-radius: 2px;
  transition: 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #dc2626 0%, #f97316 52%, #f59e0b 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 70px 0 42px;
}

.hero-slider {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 44px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: var(--red-dark);
  background: #fff1e7;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  color: #ffedd5;
  font-size: clamp(32px, 4vw, 54px);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button {
  color: var(--red-dark);
  background: #ffffff;
  padding: 13px 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

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

.ghost-button {
  color: #ffffff;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  min-height: 420px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.32);
}

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

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

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-tab span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.hero-tab.is-active {
  color: var(--red-dark);
  background: #ffffff;
}

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

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

.section-title-row.compact {
  margin-bottom: 22px;
}

.section-title-row h2,
.page-hero h1,
.detail-heading h1 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-title-row p,
.page-hero p,
.detail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  color: var(--red-dark);
  padding: 9px 0;
}

.text-link:hover {
  color: var(--orange);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(185, 28, 28, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

.movie-card-wide .movie-cover {
  height: 250px;
}

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

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

.movie-year,
.movie-play {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.movie-year {
  left: 12px;
  background: rgba(185, 28, 28, 0.88);
}

.movie-play {
  right: 12px;
  background: rgba(0, 0, 0, 0.56);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  color: #111827;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.movie-title:hover {
  color: var(--red-dark);
}

.movie-card-body p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.movie-tags span,
.detail-tags span,
.rank-meta span {
  border-radius: 999px;
  background: #fff1e7;
  padding: 4px 9px;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.detail-tags span {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 750;
}

.category-section {
  padding-top: 52px;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  color: #ffffff;
  padding: 24px;
  background: linear-gradient(135deg, #dc2626, #f97316 58%, #f59e0b);
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(220, 38, 38, 0.24);
}

.category-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -64px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.category-card strong {
  position: relative;
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-samples {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

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

.rank-panel,
.side-card,
.detail-card,
.player-card,
.search-tools {
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.08);
}

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #ffedd5;
}

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

.rank-thumb {
  overflow: hidden;
  height: 56px;
  border-radius: 14px;
  background: #fed7aa;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-content a {
  display: block;
  color: #111827;
  font-weight: 850;
  line-height: 1.25;
}

.rank-content a:hover {
  color: var(--red-dark);
}

.rank-content p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #dc2626, #f97316 55%, #f59e0b);
  box-shadow: 0 24px 58px rgba(220, 38, 38, 0.22);
  padding: 48px;
}

.page-hero .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.category-hero,
.rank-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.small-poster {
  width: 240px;
  min-height: 300px;
  flex: 0 0 auto;
}

.small-poster img {
  min-height: 300px;
}

.search-tools {
  padding: 22px;
}

.search-box-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  gap: 12px;
}

.search-box-row input,
.search-box-row select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: var(--text);
  background: #fffaf4;
  padding: 13px 14px;
  outline: 0;
}

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

.search-count {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 20px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.crumb a {
  color: var(--red-dark);
  font-weight: 750;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
  font-size: 18px;
  font-weight: 850;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 38px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.detail-card {
  padding: 30px;
}

.detail-heading h1 {
  margin-top: 18px;
}

.detail-card section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ffedd5;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  text-align: justify;
  white-space: pre-line;
}

.detail-tags {
  margin-top: 20px;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.side-card {
  overflow: hidden;
  padding: 22px;
}

.poster-side {
  padding: 0;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fed7aa;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffedd5;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
  color: #111827;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #7f1d1d, #b91c1c 45%, #f97316);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1080px) {
  .quick-search {
    display: none;
  }

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

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-section,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

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

  .section-title-row,
  .category-hero,
  .rank-hero,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .dense-grid,
  .category-grid,
  .wide-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box-row {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-section,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy h1 span {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .section-shell {
    padding: 44px 0;
  }

  .featured-grid,
  .dense-grid,
  .category-grid,
  .wide-category-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 30px;
  }

  .rank-item {
    grid-template-columns: 38px 68px minmax(0, 1fr);
  }

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