:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #ea580c, #d97706, #ca8a04);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.26);
}

.nav-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 11px 18px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.header-search button,
.mobile-search button,
.large-search button,
.filter-panel a,
.section-more a {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #9a3412;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.filter-panel a:hover,
.section-more a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 24px;
  background: rgba(154, 52, 18, 0.94);
  backdrop-filter: blur(16px);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  color: #ffffff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--slate);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 680px;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.05);
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62), rgba(234, 88, 12, 0.36));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 64px;
}

.hero-kicker,
.page-kicker {
  margin: 0 0 14px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero-line {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 26px);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.intro-section {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.intro-card {
  border-radius: var(--radius);
  padding: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-card h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-text h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.18;
}

.intro-card h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-card p {
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
}

.large-search {
  max-width: 680px;
  margin-top: 24px;
}

.large-search input,
.filter-panel input {
  flex: 1;
  min-width: 0;
  color: var(--text);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.large-search input::placeholder,
.filter-panel input::placeholder {
  color: #9ca3af;
}

.large-search button {
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.25);
  font-weight: 900;
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.accent-section {
  max-width: none;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.accent-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-tile,
.category-detail-tile,
.text-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::before,
.category-detail-tile::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
}

.category-tile:hover,
.category-detail-tile:hover,
.text-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.category-tile span,
.category-detail-tile h2 {
  position: relative;
  display: block;
  color: var(--orange);
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  position: relative;
  display: block;
  margin: 8px 0 18px;
  color: var(--text);
  font-size: 18px;
}

.category-tile em,
.category-arrow {
  position: relative;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

.rank-mini-card,
.rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-mini-card {
  grid-template-columns: 38px 70px 1fr auto;
  padding: 12px;
}

.rank-mini-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
}

.rank-number,
.rank-row-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.rank-mini-card img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  font-weight: 900;
}

.rank-type,
.rank-row-meta {
  color: var(--muted);
  font-size: 13px;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 24px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(135deg, #9a3412, #ea580c 52%, #f59e0b);
}

.page-hero h1,
.page-hero p {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  font-size: 18px;
  opacity: 0.92;
}

.small-hero {
  text-align: center;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-panel input {
  min-height: 48px;
}

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

.related-category-links h2 {
  margin: 0 0 16px;
}

.related-category-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-category-links a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

.rank-row {
  grid-template-columns: 48px 72px minmax(0, 1fr) auto;
  padding: 12px 16px;
}

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

.rank-row-main strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.rank-row-main em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
}

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

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px 56px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-line {
  max-width: 860px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
}

.tag-list span {
  color: #9a3412;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.player-section h2,
.detail-text h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ea580c;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.play-overlay strong {
  font-size: 22px;
}

.detail-text {
  display: grid;
  gap: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.movie-card-related .movie-summary {
  display: none;
}

.movie-card-related .movie-meta {
  margin-top: 10px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

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

.text-card h2 {
  margin: 0 0 12px;
  color: var(--orange);
}

.text-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  color: #e2e8f0;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: #fb923c;
}

.footer-block p {
  margin: 0;
  color: #cbd5e1;
}

.footer-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-block a {
  color: #cbd5e1;
}

.footer-block a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .nav-inner {
    height: 62px;
    padding: 0 16px;
  }

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

  .mobile-search {
    align-items: stretch;
  }

  .mobile-search input {
    min-width: 0;
    flex: 1;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 600px;
  }

  .hero-content {
    padding: 64px 18px 86px;
  }

  .hero-actions,
  .large-search,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .content-section {
    padding: 38px 16px;
  }

  .intro-card {
    padding: 24px;
  }

  .movie-grid,
  .category-movie-grid,
  .category-grid,
  .category-detail-grid,
  .rank-mini-grid,
  .related-grid,
  .text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-mini-card {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-mini-card img {
    width: 58px;
    height: 58px;
  }

  .rank-type {
    display: none;
  }

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

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .rank-row-meta {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 26px 16px 36px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 38px 16px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .category-movie-grid,
  .category-grid,
  .category-detail-grid,
  .related-grid,
  .text-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .poster-link img {
    height: 100%;
    aspect-ratio: auto;
  }

  .movie-summary {
    min-height: 0;
  }
}
