* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fff8f1;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #fed7aa;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --amber: #facc15;
  --shadow: 0 20px 45px rgba(127, 29, 29, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.nav-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links,
.quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.quick-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-link {
  font-size: 13px;
  color: #9a3412;
  background: #ffedd5;
}

.nav-link:hover,
.nav-link.active,
.quick-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.nav-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #fdba74;
  outline: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.08);
}

.nav-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.nav-search button,
.large-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.24), transparent 36%), linear-gradient(115deg, #7f1d1d 0%, #9a3412 46%, #111827 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px), radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px);
  background-size: 56px 56px, 86px 86px;
  opacity: 0.65;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 720px;
  margin: 0 auto;
  padding: 80px 24px 44px;
  display: grid;
  align-content: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(154, 52, 18, 0.76), rgba(15, 23, 42, 0.9)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  transform: scale(1.03);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #7f1d1d;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 820px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #fee2e2;
  font-size: 19px;
}

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

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7f1d1d;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions,
.inner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 13px 20px;
  box-shadow: 0 18px 30px rgba(220, 38, 38, 0.3);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

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

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #facc15;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.hero-stats a {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #fde68a;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  color: #fee2e2;
  margin-top: 6px;
  font-size: 13px;
}

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

.warm-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.45), rgba(255, 241, 242, 0.82));
}

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

.section-title h2 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

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

.section-link,
.text-button {
  color: var(--red);
  background: #fff1f2;
  border: 1px solid #fecaca;
  padding: 10px 15px;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  background: #7f1d1d;
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(127, 29, 29, 0.84), rgba(15, 23, 42, 0.1));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile span,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 48px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  color: #ffedd5;
  font-size: 13px;
  font-style: normal;
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  background: #ffedd5;
  padding: 4px 8px;
}

.rank-badge {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--red), var(--orange)) !important;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

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

.movie-card p {
  display: -webkit-box;
  margin: 0 0 14px;
  min-height: 64px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

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

.compact-card .movie-card-body {
  min-width: 0;
}

.compact-card p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px auto;
  align-items: end;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 10px;
}

.inner-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #7f1d1d, #9a3412 52%, #111827);
}

.inner-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(154, 52, 18, 0.72), rgba(15, 23, 42, 0.92)), var(--inner-image, var(--detail-image));
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.inner-shell,
.detail-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 24px;
}

.small-hero .inner-shell {
  padding: 72px 24px;
}

.inner-shell h1,
.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.inner-shell p,
.detail-one-line {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fee2e2;
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 260px;
  background: #fee2e2;
}

.category-cover-stack img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
}

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.category-card-body p {
  color: var(--muted);
  margin: 0 0 14px;
}

.category-card-body ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #9a3412;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #fed7aa;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
}

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

.detail-tags span {
  margin-bottom: 4px;
}

.detail-section {
  padding-top: 54px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.2));
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.player-box.is-playing .player-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.42);
}

.play-button span {
  display: inline-block;
  margin-left: 5px;
  font-size: 34px;
  line-height: 1;
}

.watch-card {
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.watch-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.watch-card dl,
.watch-card dd {
  margin: 0;
}

.watch-card dl {
  display: grid;
  gap: 12px;
}

.watch-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffedd5;
}

.watch-card dt {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.watch-card dd {
  color: var(--ink);
  font-weight: 800;
}

.article-section {
  padding-top: 28px;
}

.movie-article {
  max-width: 960px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 34px;
}

.movie-article h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.movie-article h2 + p {
  margin-top: 0;
}

.movie-article p {
  color: #334155;
  font-size: 17px;
}

.large-search {
  display: flex;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 24px;
}

.search-status {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e1b4b 55%, #7f1d1d);
}

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

.footer-brand p {
  max-width: 460px;
  color: #cbd5e1;
}

.brand.compact .brand-mark {
  width: 48px;
  height: 48px;
}

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

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

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

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[hidden] {
  display: none !important;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-links,
  .quick-links {
    flex-wrap: wrap;
  }

  .nav-search {
    min-width: 0;
  }

  .hero-slide,
  .detail-grid,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

  .category-card-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .content-section,
  .inner-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-stats,
  .movie-grid,
  .rank-grid,
  .large-rank-grid,
  .category-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: grid;
  }

  .compact-card,
  .category-card {
    grid-template-columns: 1fr;
  }

  .compact-card .poster-link {
    aspect-ratio: 16 / 10;
  }

  .category-cover-stack {
    min-height: 220px;
  }

  .large-search {
    display: grid;
  }

  .player-box {
    border-radius: 18px;
  }

  .movie-article {
    padding: 24px;
  }
}
