:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --ink: #132016;
  --muted: #647067;
  --line: #e6ebdf;
  --card: #ffffff;
  --soft: #f7faf2;
  --shadow: 0 20px 55px rgba(20, 83, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(230, 235, 223, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
  transition: transform 0.24s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-6deg);
}

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

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 5px;
  color: #6b756d;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #334038;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
  background: #fff1f1;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f6ef;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--green-900);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 14px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 120px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.32), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(220, 38, 38, 0.22), transparent 36%),
    linear-gradient(135deg, #fef2f2 0%, #f0fdf4 44%, #fff7ed 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.32)),
    repeating-linear-gradient(135deg, rgba(22, 101, 52, 0.06) 0, rgba(22, 101, 52, 0.06) 1px, transparent 1px, transparent 18px);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--red-dark);
  background: #fee2e2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
  color: #102315;
}

.hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #435047;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-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-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.22);
}

.ghost-btn,
.section-action,
.text-link {
  min-height: 48px;
  padding: 0 22px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 101, 52, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(20, 83, 45, 0.14);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(20, 83, 45, 0.25);
  transform: rotate(1.4deg);
  isolation: isolate;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 83, 45, 0.62));
}

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

.hero-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-dot {
  width: 40px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.2);
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.quick-panel {
  width: min(1080px, calc(100% - 32px));
  margin: -34px auto 36px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-panel a {
  min-height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--green-900);
  font-weight: 950;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 101, 52, 0.11);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-panel a:hover {
  transform: translateY(-4px);
  color: var(--red);
}

.page-main {
  padding-top: 86px;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-section h2,
.player-section h2 {
  margin: 12px 0 0;
  color: #102315;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(22, 101, 52, 0.1);
  box-shadow: 0 16px 36px rgba(20, 83, 45, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.24);
  box-shadow: 0 24px 54px rgba(20, 83, 45, 0.16);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef5e9;
}

.card-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(20, 83, 45, 0.82);
  backdrop-filter: blur(12px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 9px 0 7px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: var(--red);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #526156;
  font-size: 14px;
}

.movie-card.compact .card-body p {
  display: none;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

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

.category-tile {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(249, 115, 22, 0.46), transparent 34%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  border-radius: 34px;
  padding: clamp(38px, 7vw, 76px);
  color: #102315;
  background:
    radial-gradient(circle at 90% 0, rgba(220, 38, 38, 0.25), transparent 34%),
    linear-gradient(135deg, #fff7ed, #f0fdf4);
  border: 1px solid rgba(22, 101, 52, 0.1);
  box-shadow: var(--shadow);
}

.category-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.32), transparent 32%),
    radial-gradient(circle at 88% 0, rgba(22, 101, 52, 0.22), transparent 36%),
    linear-gradient(135deg, #fff, #fff7ed);
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(22, 101, 52, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(20, 83, 45, 0.07);
}

.catalog-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-controls input,
.catalog-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
  border-color: rgba(220, 38, 38, 0.38);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(22, 101, 52, 0.1);
  box-shadow: 0 16px 40px rgba(20, 83, 45, 0.09);
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
}

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

.category-overview-card h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  margin-top: 72px;
  padding: 70px 0;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(7, 31, 17, 0.96), rgba(7, 31, 17, 0.68), rgba(7, 31, 17, 0.54)),
    var(--detail-backdrop);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-copy .section-kicker {
  background: rgba(254, 226, 226, 0.18);
  color: #fecaca;
}

.detail-tags span {
  background: rgba(220, 252, 231, 0.15);
  color: #dcfce7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.info-grid div {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-grid dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.info-grid dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.player-section h2,
.detail-section h2 {
  margin-bottom: 18px;
}

.player-root {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #071f11;
  box-shadow: 0 26px 60px rgba(20, 83, 45, 0.2);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071f11;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 31, 17, 0.4), rgba(7, 31, 17, 0.82));
  cursor: pointer;
}

.player-root.is-playing .player-cover {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.player-cover span:last-child {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.detail-section {
  display: grid;
  gap: 10px;
  color: #435047;
  font-size: 18px;
}

.detail-section p {
  margin: 0 0 20px;
}

.site-footer {
  margin-top: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fecaca;
  font-size: 22px;
  font-weight: 950;
}

.footer-brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #fecaca;
}

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

.footer-column a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.movie-card.is-hidden {
  display: none;
}

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

@media (max-width: 1120px) {
  .featured-grid,
  .related-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

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

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

  .quick-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-grid,
  .featured-grid,
  .related-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-controls {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .hero-inner,
  .content-section,
  .page-hero,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .quick-panel,
  .movie-grid,
  .featured-grid,
  .related-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .catalog-controls {
    grid-template-columns: 1fr;
  }

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

  .category-cover img {
    max-height: 300px;
  }

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

  .info-grid {
    grid-template-columns: 1fr;
  }
}
