:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --yellow: #facc15;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.14);
  --radius: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 24%, #fdf2f8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand-text strong {
  display: block;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.main-nav > a,
.nav-dropdown > a {
  font-weight: 700;
  padding: 27px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover {
  color: #fef08a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  white-space: nowrap;
}

.dropdown-panel a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 190px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px;
}

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

.header-search button,
.hero-search button,
.filter-bar button,
.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  color: var(--red);
  background: #fff;
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #fb923c 0%, #ef4444 48%, #ec4899 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(16px);
}

.hero::before {
  top: -160px;
  left: -130px;
}

.hero::after {
  right: -150px;
  bottom: -150px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  align-items: center;
  gap: 42px;
  padding: 70px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.75;
  opacity: 0.95;
}

.hero-search {
  width: min(620px, 100%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px rgba(90, 24, 28, 0.22);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button,
.primary-btn {
  color: #dc2626;
  background: #fff;
  padding: 14px 24px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.86);
  padding: 12px 24px;
}

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

.primary-btn:hover,
.secondary-btn:hover,
.hero-search button:hover,
.header-search button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.hero-stage {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: end;
  padding: 22px;
  opacity: 0;
  transform: scale(0.985) translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

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

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

.hero-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.28);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(14px);
}

.hero-card h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.hero-card p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
}

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

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dot.active {
  width: 34px;
  border-radius: 999px;
  background: #fff;
}

.section,
.archive-section,
.detail-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0;
}

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

.section-title h2,
.archive-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-title p,
.archive-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  flex: none;
  color: var(--red);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fdf2f8);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
}

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

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.tag-row span,
.detail-tags span {
  color: #c2410c;
  background: #ffedd5;
  padding: 7px 9px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 360px;
  line-height: 1.7;
  opacity: 0.92;
}

.category-card span {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  font-weight: 950;
  font-size: 22px;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #ffedd5;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-cta {
  color: #fff;
  background: var(--red);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
}

.archive-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #fb923c, #ef4444, #ec4899);
}

.archive-hero-inner,
.detail-hero-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.archive-hero p,
.detail-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  flex: 1 1 180px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
}

.filter-bar button {
  color: #fff;
  background: rgba(17, 24, 39, 0.85);
  padding: 0 22px;
}

.result-count {
  margin: 18px 0 0;
  color: #92400e;
  font-weight: 800;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 32px 70px rgba(88, 17, 37, 0.35);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.16);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.player-wrap {
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.play-overlay.hidden {
  display: none;
}

.story-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.story-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.story-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

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

.search-empty {
  display: none;
  padding: 38px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.search-empty.show {
  display: block;
}

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

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

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

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
  }

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--text);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > a {
    padding: 12px;
    border-radius: 12px;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 4px 0 0 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

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

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand-text em {
    display: none;
  }

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

  .hero-inner,
  .archive-hero-inner,
  .detail-hero-inner,
  .section,
  .archive-section,
  .detail-section {
    width: min(100% - 22px, 1220px);
  }

  .hero {
    text-align: left;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-poster {
    max-width: 230px;
  }

  .hero-card {
    min-height: auto;
  }

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

  .movie-grid,
  .movie-grid.grid-four,
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

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

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

  .rank-cta {
    display: none;
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid.grid-four,
  .category-strip {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb {
    display: none;
  }
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

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

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.75;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.38);
}

.footer-copy {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}
