:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --orange: #fb923c;
  --amber: #f59e0b;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #fff1f2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e 0%, #ec4899 50%, #fb923c 100%);
  box-shadow: 0 12px 30px rgba(190, 18, 60, 0.24);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 22px rgba(15, 23, 42, 0.16);
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
}

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

.top-search input,
.mobile-search input,
.hero-search input {
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

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

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--rose);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-panel {
  padding: 0 16px 16px;
  background: rgba(190, 18, 60, 0.22);
  backdrop-filter: blur(20px);
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.42), transparent 36%),
    radial-gradient(circle at 78% 22%, rgba(236, 72, 153, 0.36), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #831843 56%, #fb7185 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.92));
}

.hero-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0 90px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .meta-pill,
.detail-tags .meta-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.secondary-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.3);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span,
.card-play,
.big-play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #ffffff;
}

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

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

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

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

.section-link {
  color: var(--rose);
  background: #ffe4e6;
}

.soft-panel,
.rank-panel {
  width: min(1280px, calc(100% - 32px));
  border-radius: 34px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.82), rgba(255, 247, 237, 0.92));
  box-shadow: var(--shadow);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.large-card .card-cover img {
  aspect-ratio: 16 / 9;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.72));
  opacity: 0.75;
}

.card-play {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge,
.card-year {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  right: 12px;
  top: 12px;
  background: var(--rose);
}

.card-year {
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h3,
.compact-info h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 18px;
}

.card-body h3 a:hover,
.compact-info h3 a:hover {
  color: var(--rose);
}

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

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.9));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 120px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

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

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

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

.compact-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.compact-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.compact-cover img {
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.compact-info {
  min-width: 0;
  padding: 4px 0;
}

.rank-number {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  font-size: 12px;
  font-weight: 900;
}

.compact-info p {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-meta {
  color: #94a3b8;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #831843, #e11d48 48%, #fb923c);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.category-hero {
  background: linear-gradient(135deg, #7f1d1d, #be123c 46%, #f97316);
}

.rank-hero {
  background: linear-gradient(135deg, #7c2d12, #e11d48 50%, #f59e0b);
}

.search-hero {
  background: linear-gradient(135deg, #4c1d95, #db2777 55%, #fb923c);
}

.filter-bar,
.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-input,
.filter-select,
.search-toolbar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.filter-input {
  flex: 1;
}

.empty-state {
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.detail-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
}

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

.big-play {
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  font-size: 40px;
  transform: translate(-50%, -50%);
}

.player-cover.is-hidden {
  display: none;
}

.detail-content {
  padding-top: 44px;
}

.article-section {
  max-width: 920px;
}

.text-card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.text-card h2 {
  margin: 24px 0 12px;
  font-size: 26px;
  line-height: 1.3;
}

.text-card h2:first-child {
  margin-top: 0;
}

.text-card p {
  margin: 0 0 16px;
  color: #475569;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.movie-info-list div {
  border-radius: 16px;
  padding: 14px;
  background: #fff1f2;
}

.movie-info-list dt {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.movie-info-list dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.search-toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.search-filter-row {
  display: flex;
  gap: 10px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #111827);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #fb7185;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 22px;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

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

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

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

  .home-rank-list,
  .full-rank-list,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero-slide {
    gap: 28px;
    padding: 48px 0 90px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

  .content-section,
  .soft-panel,
  .rank-panel,
  .page-hero-inner,
  .detail-inner,
  .player-section,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .content-section {
    padding: 42px 0;
  }

  .soft-panel,
  .rank-panel {
    padding: 28px 16px;
  }

  .section-title,
  .filter-bar,
  .search-toolbar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .home-rank-list,
  .full-rank-list,
  .footer-grid,
  .movie-info-list {
    grid-template-columns: 1fr;
  }

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

  .search-filter-row {
    flex-direction: column;
  }

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

  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }
}
