:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #d97706;
  --emerald: #059669;
  --cyan: #0891b2;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(225, 29, 72, 0.16);
  --shadow: 0 22px 60px rgba(136, 19, 55, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 30rem),
    linear-gradient(135deg, #fff1f2 0%, #fffbeb 48%, #ecfdf5 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 113, 133, 0.24);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(136, 19, 55, 0.08);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber), var(--emerald));
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.26);
}

.brand-text,
.footer-logo {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 13px;
  color: #374151;
  font-size: 0.94rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: rgba(255, 228, 230, 0.78);
}

.nav-link.compact {
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 1.2rem;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel a,
.mobile-title {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-title {
  color: var(--muted);
  font-size: 0.82rem;
}

main {
  min-height: 62vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 52px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.18), transparent 22rem),
    radial-gradient(circle at 85% 18%, rgba(217, 119, 6, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255, 241, 242, 0.72), rgba(255, 251, 235, 0.68), rgba(236, 253, 245, 0.7));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 34px;
  pointer-events: none;
}

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

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.74fr);
  gap: 42px;
}

.hero-slide.active {
  display: grid;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 950;
  color: #111827;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 720px;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.28);
}

.btn-ghost {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f2, #fef3c7, #d1fae5);
}

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

.hero-stats {
  position: absolute;
  right: 34px;
  bottom: 34px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.hero-dots {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.2);
  cursor: pointer;
}

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

.section {
  padding: 46px 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--rose);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(136, 19, 55, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.88);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(136, 19, 55, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fff1f2, #fef3c7, #d1fae5);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

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

.poster-meta,
.rank-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  bottom: auto;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

.movie-card p {
  margin: 0 0 12px;
  color: #6b7280;
  line-height: 1.62;
  font-size: 0.94rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.card-tags span,
.tag-cloud a,
.detail-tags a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rose);
  background: #ffe4e6;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.category-card {
  min-height: 176px;
  padding: 22px;
  border-radius: 24px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(225, 29, 72, 0.12);
  box-shadow: 0 16px 42px rgba(136, 19, 55, 0.08);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.32);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.72;
}

.category-card small {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose);
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rank-list,
.side-panel,
.filter-panel,
.info-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.rank-list {
  padding: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 68px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: 0.18s ease;
}

.rank-item:hover {
  background: rgba(255, 241, 242, 0.84);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 950;
}

.rank-item img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff1f2;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 950;
}

.rank-item p {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.64;
}

.side-panel {
  padding: 20px;
  position: sticky;
  top: 90px;
}

.side-panel h2,
.filter-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 950;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.72);
}

.mini-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff1f2;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.mini-card small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.35;
}

.mini-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
}

.page-hero {
  padding: 48px 0 24px;
}

.page-title {
  padding: 38px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.filter-panel {
  padding: 18px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 14px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  outline: none;
  color: #111827;
  background: #fff;
  font-weight: 700;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.search-box {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.detail-hero {
  padding: 42px 0 28px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 700;
}

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

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

.detail-main,
.detail-side {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.detail-main {
  overflow: hidden;
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(217, 119, 6, 0.18));
  cursor: pointer;
}

.player-frame.is-playing .play-layer {
  display: none;
}

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 22px 48px rgba(225, 29, 72, 0.36);
  font-size: 2rem;
  cursor: pointer;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-content h2 {
  margin: 28px 0 10px;
  font-size: 1.45rem;
  font-weight: 950;
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
  font-size: 1rem;
}

.detail-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-side {
  padding: 18px;
  position: sticky;
  top: 90px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1f2, #fef3c7, #d1fae5);
}

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

.info-table {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.info-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(225, 29, 72, 0.12);
  color: #4b5563;
}

.info-table strong {
  color: #111827;
}

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

.site-footer {
  margin-top: 58px;
  padding: 44px 0 28px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(225, 29, 72, 0.14);
}

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

.footer-inner p {
  color: #6b7280;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #374151;
  background: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #6b7280;
  font-size: 0.88rem;
}

.empty-result {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.82);
}

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

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

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

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

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

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

  .side-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-box {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 12px;
  }

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

  .rank-item img {
    width: 76px;
    height: 104px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
