:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fef2f2;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fee2e2;
  --bg: #fff7f3;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.08);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.25);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
  flex: 1;
}

.main-nav a,
.mobile-panel a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--red);
}

.header-search {
  width: 284px;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-panel input,
.search-box input,
.filter-input,
.filter-select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.header-search input {
  padding: 7px 10px 7px 14px;
}

.header-search button,
.search-box button,
.mobile-panel button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.secondary-button {
  color: var(--red-dark);
  background: #fff;
  box-shadow: none;
  border: 1px solid #fecaca;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid #f3f4f6;
}

.mobile-panel a {
  display: block;
  padding: 10px 4px;
  font-weight: 650;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel input {
  padding-left: 12px;
}

.page-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.36), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7) 45%, rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 78px 0 92px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fed7aa;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

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

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

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

.hero-meta span,
.tag-row span,
.detail-tags span,
.card-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff7ed;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 750;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-tabs {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  width: min(1220px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-tab:hover,
.hero-tab.is-active {
  transform: translateY(-3px);
  background: rgba(220, 38, 38, 0.88);
}

.hero-tab strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section {
  padding: 64px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #7f1d1d);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, #f97316, #991b1b);
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(127, 29, 29, 0.18);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #fee2e2;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #fee2e2;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  font-size: 12px;
  font-weight: 800;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--red);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.rank-feature {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  box-shadow: var(--shadow);
  background: #111827;
}

.rank-feature img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: 0.6;
}

.rank-feature-content {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.95));
}

.rank-feature-content h2 {
  margin: 10px 0;
  font-size: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #fee2e2;
  border-radius: 18px;
  background: #fff;
}

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

.rank-item a {
  font-weight: 750;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
}

.page-hero {
  padding: 74px 0 44px;
}

.page-hero-card {
  padding: 38px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.48), transparent 34%),
    linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: #fee2e2;
  font-size: 17px;
}

.filter-bar,
.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar {
  grid-template-columns: 1fr 180px;
}

.filter-input,
.filter-select,
.search-box input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
}

.search-results {
  display: grid;
  gap: 14px;
}

.result-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid #fee2e2;
  border-radius: 20px;
  background: #fff;
}

.result-item img {
  width: 90px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.result-item h2 {
  margin: 4px 0 8px;
  font-size: 20px;
}

.result-item p {
  margin: 0;
  color: var(--muted);
}

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

.breadcrumb a {
  color: var(--red);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 42px;
}

.player-card,
.detail-info,
.story-card {
  overflow: hidden;
  border: 1px solid #fee2e2;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #050505;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #050505;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-layer span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 25px 50px rgba(220, 38, 38, 0.35);
  font-size: 34px;
}

.player-caption,
.detail-info,
.story-card {
  padding: 24px;
}

.player-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.player-caption p,
.story-card p,
.detail-info p {
  color: var(--muted);
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.16);
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

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

.info-list dd {
  margin: 0;
  font-weight: 750;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 56px;
}

.story-card h2,
.related-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}

.related-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #fee2e2;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

.related-card span {
  display: block;
  padding: 10px;
  font-weight: 750;
  font-size: 14px;
}

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

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 17px;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fca5a5;
}

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero-tabs,
  .category-grid,
  .movie-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-panel,
  .detail-hero,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 62px;
    width: min(100% - 22px, 1220px);
  }

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

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

  .hero-content {
    padding-top: 58px;
    align-content: start;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-tabs,
  .category-grid,
  .movie-grid,
  .related-grid,
  .footer-grid,
  .filter-bar,
  .search-box {
    grid-template-columns: 1fr;
  }

  .hero-tabs {
    bottom: 14px;
    gap: 8px;
  }

  .hero-tab {
    padding: 10px 12px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .page-hero-card,
  .player-caption,
  .detail-info,
  .story-card {
    padding: 20px;
    border-radius: 22px;
  }

  .rank-item {
    grid-template-columns: 46px 1fr;
  }

  .rank-item em {
    grid-column: 2;
  }

  .result-item {
    grid-template-columns: 70px 1fr;
  }

  .result-item img {
    width: 70px;
  }
}
