* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 35%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48 0%, #f97316 55%, #f59e0b 100%);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.24);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fb7185;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.brand-text {
  font-size: 24px;
  white-space: nowrap;
}

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

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

.desktop-nav a:hover {
  color: #fef3c7;
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-nav input,
.filter-controls input,
.filter-controls select {
  border: 0;
  outline: 0;
  font: inherit;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
}

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

.header-search button,
.mobile-nav button {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #9f1239;
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav a,
.mobile-nav form {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  color: #ffffff;
  background: transparent;
}

main {
  overflow: hidden;
}

.hero-wrap {
  position: relative;
  min-height: 74vh;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  display: none;
  min-height: 74vh;
  position: relative;
  background-image: radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.4), transparent 28%), linear-gradient(110deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.58), rgba(2, 6, 23, 0.95)), var(--cover), linear-gradient(135deg, #111827, #be123c);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.6s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.76));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 150px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fb7185;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text {
  width: min(740px, 100%);
  margin: 24px 0 0;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(251, 113, 133, 0.86);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 18px 35px rgba(225, 29, 72, 0.32);
}

.secondary-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hero-thumb {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 10px;
  color: #ffffff;
  text-align: left;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

.hero-thumb.is-active {
  border-color: #fb7185;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.36);
}

.hero-thumb span,
.rank-cover,
.detail-poster,
.player-overlay,
.poster {
  background-image: linear-gradient(135deg, rgba(225, 29, 72, 0.75), rgba(249, 115, 22, 0.58)), var(--cover), linear-gradient(135deg, #0f172a, #fb7185);
  background-size: cover;
  background-position: center;
}

.hero-thumb span {
  flex: 0 0 60px;
  height: 46px;
  border-radius: 14px;
}

.hero-thumb strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: #111827;
}

.section-heading p {
  max-width: 720px;
  color: #64748b;
  line-height: 1.8;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  min-height: 40px;
  color: #be123c;
  background: #ffe4e6;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links a {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #9f1239;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -34px;
  bottom: -34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.from-rose-500.to-orange-500 {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.from-orange-500.to-amber-500 {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.from-fuchsia-500.to-rose-500 {
  background: linear-gradient(135deg, #d946ef, #f43f5e);
}

.from-sky-500.to-cyan-500 {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.from-slate-700.to-slate-950 {
  background: linear-gradient(135deg, #334155, #020617);
}

.from-pink-500.to-rose-500 {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.from-yellow-500.to-orange-500 {
  background: linear-gradient(135deg, #eab308, #f97316);
}

.from-red-500.to-orange-600 {
  background: linear-gradient(135deg, #ef4444, #ea580c);
}

.from-emerald-500.to-teal-500 {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.from-indigo-500.to-violet-500 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.from-violet-500.to-purple-600 {
  background: linear-gradient(135deg, #8b5cf6, #9333ea);
}

.from-stone-600.to-neutral-900 {
  background: linear-gradient(135deg, #57534e, #171717);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-panel h2 {
  margin: 0 0 4px;
}

.filter-panel p {
  margin: 0;
  color: #64748b;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  color: #334155;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.filter-count {
  min-width: 90px;
  text-align: right;
  font-weight: 900;
  color: #be123c;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.72));
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #be123c;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.65;
}

.tag-row span {
  color: #9f1239;
  background: #ffe4e6;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 38px 78px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.rank-no.big {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.rank-cover {
  height: 62px;
  border-radius: 16px;
}

.rank-cover.wide {
  width: 132px;
  height: 82px;
}

.rank-info strong,
.ranking-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
}

.rank-info em,
.ranking-card em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.rank-score,
.ranking-card b {
  font-weight: 900;
  color: #e11d48;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #be123c);
}

.compact-hero {
  padding: 86px 0;
}

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

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.ranking-page {
  display: grid;
  gap: 14px;
}

.ranking-card {
  border-radius: 24px;
}

.ranking-card-link {
  display: grid;
  grid-template-columns: 64px 132px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.ranking-card p {
  margin: 8px 0 0;
  color: #64748b;
}

.detail-hero {
  min-height: 620px;
  background-image: linear-gradient(115deg, rgba(2, 6, 23, 0.94), rgba(127, 29, 29, 0.58), rgba(2, 6, 23, 0.9)), var(--cover), linear-gradient(135deg, #0f172a, #be123c);
  background-size: cover;
  background-position: center;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.3), transparent 32%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 74px;
}

.breadcrumb,
.breadcrumb-sep {
  display: inline-flex;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.breadcrumb:hover {
  color: #ffffff;
}

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

.detail-poster {
  min-height: 480px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #be123c;
  background: #ffffff;
}

.detail-info h1 {
  margin-bottom: 24px;
}

.detail-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(225, 29, 72, 0.42)), var(--cover), linear-gradient(135deg, #020617, #be123c);
  background-size: cover;
  background-position: center;
}

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

.player-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #be123c;
  font-size: 30px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: clamp(26px, 4vw, 48px);
}

.player-overlay em {
  font-style: normal;
  font-weight: 900;
  color: #ffe4e6;
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 0;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.content-card p {
  color: #475569;
  line-height: 1.9;
}

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

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

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.site-footer h2 {
  color: #fb7185;
  font-size: 18px;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin: 10px 0;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.is-filtered-out {
  display: none !important;
}

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

  .nav-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

  .hero-dots {
    grid-template-columns: repeat(5, 1fr);
    overflow-x: auto;
  }

  .hero-thumb {
    min-width: 190px;
  }

  .detail-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

  .hero-content {
    padding: 88px 0 210px;
  }

  .hero-dots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
  }

  .section,
  .page-hero > div,
  .detail-shell,
  .footer-grid,
  .footer-bottom,
  .nav-shell,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .row-heading,
  .filter-panel {
    display: grid;
    align-items: start;
  }

  .filter-controls {
    justify-content: stretch;
  }

  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .rank-list,
  .article-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    min-height: 320px;
  }

  .ranking-card-link {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rank-cover.wide,
  .ranking-card b {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 20px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-actions {
    display: grid;
  }

  .rank-link {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .player-card {
    border-radius: 20px;
  }
}
