:root {
  --color-orange: #ea580c;
  --color-red: #dc2626;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f8fafc;
  --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.24);
  --radius-card: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
  font-size: 17px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(234, 88, 12, 0.45), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: #ffffff;
  padding: 110px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 21px);
}

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

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

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

.button-primary:hover,
.button-light:hover,
.button-secondary:hover,
.button-outline:hover {
  transform: translateY(-2px);
}

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

.button-light {
  color: var(--color-orange);
  background: #ffffff;
}

.button-outline {
  color: #374151;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

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

.hero-tags a,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--color-orange);
}

.search-strip {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.section-muted {
  background: #f1f5f9;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
}

.movie-cover-link {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, opacity 0.36s ease;
}

.movie-card:hover .movie-cover {
  transform: scale(1.06);
  opacity: 0.86;
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-orange);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

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

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.3;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-body p {
  flex: 1;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

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

.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 242px;
}

.movie-card-horizontal .movie-cover-link {
  aspect-ratio: auto;
  height: 100%;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(254, 215, 170, 0.75);
  box-shadow: var(--shadow-card);
}

.category-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.28), rgba(220, 38, 38, 0.12));
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--color-muted);
}

.category-card span {
  position: relative;
  color: var(--color-orange);
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 44px;
  background:
    radial-gradient(circle at 78% 0%, rgba(234, 88, 12, 0.20), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 54%, #7c2d12);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-layout {
  padding: 38px 0 76px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 34px;
}

.poster-panel,
.detail-info,
.content-panel,
.player-section,
.search-panel,
.sitemap-panel {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-info {
  padding: clamp(26px, 4vw, 44px);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 18px 0 24px;
  color: #374151;
  font-size: 18px;
}

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

.player-section {
  overflow: hidden;
  margin-bottom: 34px;
  padding: 24px;
}

.player-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.58), rgba(15, 23, 42, 0.22));
  color: #ffffff;
  cursor: pointer;
}

.player-overlay strong {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.36);
  font-size: 26px;
}

.player-overlay span {
  font-size: 18px;
  font-weight: 900;
}

.video-player.is-playing .player-overlay {
  display: none;
}

.content-panel {
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 34px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-panel p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  color: #ffffff;
  font-size: 22px;
  font-weight: 1000;
}

.rank-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 7px;
  font-size: 22px;
}

.rank-copy p {
  margin: 0;
  color: var(--color-muted);
}

.search-panel {
  padding: 22px;
  margin: -30px auto 34px;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-panel input {
  min-height: 54px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
}

.search-results-status {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.sitemap-panel {
  padding: 28px;
}

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

.sitemap-groups h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.sitemap-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-groups li {
  margin-bottom: 9px;
}

.sitemap-groups a {
  color: #374151;
}

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

.site-footer {
  background: linear-gradient(135deg, #111827, #1f2937 58%, #0f172a);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
  padding: 52px 0 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.site-footer a {
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.three-cols,
  .category-grid,
  .sitemap-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 68px;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #fff7ed;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-section {
    min-height: 680px;
  }

  .hero-copy {
    padding: 118px 0 92px;
  }

  .search-box,
  .search-panel form {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-horizontal,
  .detail-hero,
  .rank-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-cover-link {
    aspect-ratio: 3 / 4;
  }

  .poster-panel img {
    min-height: auto;
  }

  .rank-item {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .layout-wide {
    width: min(100% - 22px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text small {
    display: none;
  }

  .movie-grid,
  .movie-grid.three-cols,
  .category-grid,
  .sitemap-groups {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary,
  .button-secondary,
  .button-light,
  .button-outline {
    width: 100%;
  }

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

  .page-hero {
    padding: 54px 0 36px;
  }
}
