
:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --gold: #facc15;
  --slate: #0f172a;
  --muted: #64748b;
  --panel: #ffffff;
  --soft: #fff7ed;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 34%, #f8fafc 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48 0%, #f97316 52%, #facc15 100%);
  box-shadow: 0 16px 36px rgba(190, 18, 60, 0.28);
}

.nav-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fb7185;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.2);
}

.brand-text {
  font-size: 26px;
}

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

.desktop-nav a,
.mobile-panel a {
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input {
  width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 11px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  backdrop-filter: blur(12px);
}

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

.top-search button,
.mobile-search button,
.big-search button,
.btn-primary {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #9f1239;
  font-weight: 900;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.16);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 6px 10px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
}

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

.mobile-search input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.01);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(136, 19, 55, 0.76), rgba(249, 115, 22, 0.32)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 25%, rgba(251, 191, 36, 0.34), transparent 28%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 112px 0 118px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fb7185;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
  color: #fde68a;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9f1239;
  font-weight: 900;
  background: #ffffff;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  opacity: 0.52;
}

.hero-dots button.active {
  width: 28px;
  opacity: 1;
}

.section {
  padding: 72px 0;
}

.soft-section {
  background: rgba(255, 255, 255, 0.52);
}

.intro-section {
  padding: 48px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 32px;
  align-items: center;
  border-radius: var(--radius);
  padding: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-grid h2,
.section-heading h2,
.content-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.intro-grid p {
  margin: 16px 0 0;
  color: #475569;
  line-height: 1.75;
}

.big-search {
  min-height: 60px;
  border-radius: 999px;
  padding: 7px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 42px rgba(15, 23, 42, 0.1);
}

.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 20px;
  outline: none;
  color: #111827;
}

.big-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

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

.section-heading.compact {
  margin-bottom: 22px;
}

.more-link {
  color: #e11d48;
  font-weight: 900;
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: var(--radius);
  padding: 26px;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.category-icon,
.category-panel-head span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
}

.category-tile strong {
  display: block;
  margin-top: 24px;
  font-size: 24px;
}

.category-tile small,
.category-tile em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.6;
}

.category-tile em {
  font-weight: 800;
}

.grad-rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.grad-orange {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.grad-violet {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.grad-pink {
  background: linear-gradient(135deg, #db2777, #fda4af);
}

.grad-slate {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.grad-amber {
  background: linear-gradient(135deg, #d97706, #fbbf24);
}

.grad-red {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.grad-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.grad-green {
  background: linear-gradient(135deg, #059669, #84cc16);
}

.grad-cyan {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.grad-lime {
  background: linear-gradient(135deg, #65a30d, #facc15);
}

.grad-gold {
  background: linear-gradient(135deg, #b45309, #fde047);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #f43f5e;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3,
.rank-item h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.movie-card p,
.rank-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.tag-row span {
  color: #be123c;
  background: #fff1f2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 92px 0;
  background: linear-gradient(135deg, #0f172a, #be123c 52%, #f97316);
}

.small-hero {
  padding: 78px 0;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select,
.page-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.empty-state {
  display: none;
  margin: 20px 0;
  border-radius: 18px;
  padding: 24px;
  color: #be123c;
  font-weight: 900;
  text-align: center;
  background: #fff1f2;
}

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

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

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

.category-panel {
  min-height: 320px;
}

.category-panel-head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.category-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.category-sample {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.category-sample a {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.category-sample img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-sample span {
  display: block;
  padding: 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(136, 19, 55, 0.8)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(1px) saturate(1.08);
  transform: scale(1.02);
}

.detail-wrap {
  position: relative;
  padding: 58px 0 72px;
}

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

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

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

.detail-info h1 {
  max-width: 880px;
}

.detail-tags span {
  background: #ffffff;
}

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

.player-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #020617;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.38), rgba(225, 29, 72, 0.42));
}

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

.play-circle {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #e11d48;
  font-size: 36px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 40px);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.content-card {
  margin-top: 28px;
  padding: 34px;
}

.content-card h2 + p {
  margin-top: 12px;
}

.content-card p {
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fb7185;
}

.site-footer a:not(.footer-brand) {
  display: inline-block;
  margin: 0 14px 10px 0;
  color: #cbd5e1;
}

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

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

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

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

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

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

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

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

  .hero-content,
  .intro-grid,
  .two-column,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 30px;
    padding: 92px 0 110px;
  }

  .hero-poster {
    width: min(320px, 80vw);
    transform: none;
  }

  .category-grid,
  .category-panel-grid,
  .featured-grid,
  .side-card-grid,
  .all-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .intro-grid,
  .content-card {
    padding: 22px;
  }

  .category-grid,
  .featured-grid,
  .side-card-grid,
  .all-list,
  .related-grid,
  .category-sample {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

  .section {
    padding: 48px 0;
  }
}
