:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #fb923c;
  --yellow: #fde68a;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f3f4f6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-size: 15px;
}

.nav-links a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--rose);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 286px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.nav-search input,
.hero-search input,
.filter-bar input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.nav-search input {
  padding: 10px 14px;
}

.nav-search button,
.hero-search button,
.mobile-panel button {
  border: 0;
  color: var(--white);
  background: var(--rose);
  padding: 10px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  background: #374151;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 20px;
  gap: 14px;
  flex-direction: column;
}

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

.mobile-panel form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.mobile-panel input {
  padding: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 45%, #fb923c 100%);
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 0 52px;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.24;
  background: var(--white);
}

.glow-one {
  width: 260px;
  height: 260px;
  left: 8%;
  top: 60px;
}

.glow-two {
  width: 420px;
  height: 420px;
  right: 7%;
  bottom: 30px;
  background: var(--yellow);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 52px;
  align-items: center;
}

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

.eyebrow,
.section-kicker,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.detail-info h1,
.sub-hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.sub-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.85;
}

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.35);
}

.btn.ghost {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
}

.btn.ghost-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.35);
  transform: rotate(1.2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #f43f5e);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  color: var(--white);
  background: var(--rose);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hero-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-control button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-control > button {
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-control > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.hero-search-card {
  margin-top: 44px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.hero-search-card p {
  margin: 0 0 18px;
  max-width: none;
  font-size: 15px;
}

.hero-search {
  display: flex;
  overflow: hidden;
  max-width: 560px;
  border-radius: 999px;
  background: var(--white);
}

.hero-search input {
  padding: 15px 18px;
}

.hero-search button {
  padding: 0 26px;
}

.hero-category-links,
.filter-chips,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links {
  margin-top: 18px;
}

.hero-category-links a,
.filter-chip,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-category-links a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-head p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.section-kicker {
  color: var(--rose);
  border: 1px solid #fecdd3;
  background: #fff1f2;
}

.more-link,
.quick-link,
.category-card-head a {
  color: var(--rose);
  font-weight: 800;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 18px;
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.quick-card,
.quick-link,
.category-card,
.movie-card,
.ranking-item,
.detail-article,
.player-panel {
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quick-card {
  padding: 24px;
}

.quick-card span {
  color: var(--rose);
  font-weight: 800;
}

.quick-card h2 {
  margin: 8px 0;
  font-size: 24px;
}

.quick-card p {
  color: var(--muted);
  line-height: 1.7;
}

.quick-link {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #fff, #fff1f2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover,
.movie-card:hover,
.ranking-item:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.16);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--white);
  background: var(--rose);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

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

.card-body h2 a:hover,
.rank-content h2 a:hover {
  color: var(--rose);
}

.card-body p {
  min-height: 52px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-tags {
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  color: var(--rose);
  background: #fff1f2;
}

.compact .card-body p {
  min-height: 44px;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-poster img {
  width: 92px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #f43f5e);
}

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.category-strip:nth-of-type(even) {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1240px) / 2));
  padding-right: max(16px, calc((100% - 1240px) / 2));
  background: #fff;
}

.sub-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e, #ec4899 52%, #fb923c);
}

.sub-hero {
  padding: 86px max(16px, calc((100% - 1240px) / 2));
}

.sub-hero h1,
.sub-hero p,
.sub-actions {
  position: relative;
  z-index: 1;
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 54%;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(22px);
}

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

.category-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-card-head span {
  color: var(--rose);
  font-weight: 900;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.category-preview .card-body {
  padding: 12px;
}

.category-preview .card-body p,
.category-preview .card-meta,
.category-preview .card-tags {
  display: none;
}

.filter-section {
  padding-top: 36px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.filter-bar.large {
  align-items: stretch;
  flex-direction: column;
}

.filter-bar input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
}

.filter-chip {
  color: #4b5563;
  background: #f3f4f6;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--rose);
  background: #fff1f2;
}

.detail-hero {
  min-height: 600px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.32;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(244, 63, 94, 0.58));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #111827, #f43f5e);
}

.detail-info .eyebrow {
  color: var(--rose);
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-info .lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-section {
  margin-top: -64px;
  position: relative;
  z-index: 3;
}

.player-panel {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-color: rgba(255, 255, 255, 0.08);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.25));
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 32px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.42);
}

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

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  pointer-events: none;
}

.player-panel.is-playing .player-status {
  display: none;
}

.article-section {
  padding-top: 0;
}

.detail-article {
  padding: 30px;
}

.detail-article h2 {
  margin: 28px 0 12px;
  font-size: 26px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  color: #374151;
  line-height: 1.95;
  white-space: pre-line;
}

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

.info-list li {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
  color: #374151;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  margin-top: 40px;
}

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

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
}

.site-footer a:hover {
  color: var(--white);
}

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

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-slide,
  .detail-grid,
  .quick-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-ranking,
  .category-overview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero-inner {
    min-height: 0;
    padding-top: 46px;
  }

  .hero h1,
  .detail-info h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .sub-hero p,
  .detail-info .lead {
    font-size: 16px;
  }

  .hero-search,
  .filter-bar,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ranking-item {
    grid-template-columns: 42px 74px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .rank-poster img {
    width: 74px;
    height: 96px;
  }

  .detail-grid {
    gap: 26px;
  }

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

@media (max-width: 520px) {
  .nav-wrap,
  .section,
  .detail-inner,
  .hero-inner,
  .mobile-panel,
  .footer-grid {
    width: min(100% - 22px, 1240px);
  }

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

  .movie-grid,
  .small-grid,
  .category-preview,
  .info-list {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .sub-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
