:root {
  --orange: #f97316;
  --pink: #ec4899;
  --rose: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fff1f2 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--orange);
  background: var(--white);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 99px;
}

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

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--rose));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 28%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.6) 42%, rgba(244, 63, 94, 0.36));
}

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

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffedd5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 18px 0 12px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h2 {
  width: min(720px, 100%);
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

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

.tag,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.hero-search button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.hero-search button,
.search-form button {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--rose));
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover,
.search-form button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.26);
}

.hero-tools {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 70px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  gap: 16px;
}

.hero-search {
  width: min(720px, 100%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-search input,
.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid transparent;
  outline: 0;
  color: var(--slate-900);
  background: var(--white);
}

.hero-search input {
  flex: 1;
  padding: 0 16px;
  background: transparent;
}

.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-pills a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 82px;
  display: flex;
  gap: 8px;
}

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

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

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

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

.section-title h2,
.page-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title span {
  color: var(--orange);
}

.section-title a {
  color: var(--orange);
  font-weight: 900;
}

.compact-title {
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.rank-link:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-tags span {
  color: var(--orange);
  background: #ffedd5;
}

.card-body h3 {
  min-height: 48px;
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 45px;
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--slate-500);
  font-size: 12px;
}

.two-column-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.category-panel,
.search-shell {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.rank-list,
.ranking-grid {
  display: grid;
  gap: 14px;
}

.rank-link {
  display: grid;
  grid-template-columns: 48px 1fr 92px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--slate-500);
  font-size: 24px;
  font-weight: 900;
}

.rank-one {
  color: var(--orange);
}

.rank-two {
  color: var(--pink);
}

.rank-three {
  color: var(--rose);
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
}

.rank-info small {
  margin-top: 5px;
  color: var(--slate-500);
}

.rank-link img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-tile:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--rose));
  transform: translateY(-4px);
}

.category-tile span,
.category-overview-card h2 {
  font-size: 19px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  color: inherit;
  opacity: 0.76;
  line-height: 1.6;
}

.soft-section {
  border-radius: 34px;
  padding-left: 28px;
  padding-right: 28px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(252, 231, 243, 0.88), rgba(255, 228, 230, 0.9));
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800) 48%, var(--rose));
}

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

.page-hero p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb,
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.filter-bar,
.search-form {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select,
.search-form input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--slate-200);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--slate-600);
  background: var(--white);
}

.empty-state.is-visible {
  display: block;
}

.category-overview-card {
  min-height: auto;
}

.category-overview-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li + li {
  margin-top: 8px;
}

.category-overview-card li a {
  color: var(--slate-600);
  font-size: 14px;
}

.category-overview-card li a:hover {
  color: var(--orange);
}

.overview-main span {
  color: var(--orange);
  font-weight: 900;
}

.ranking-wrap {
  display: grid;
  gap: 36px;
}

.ranking-section {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.search-form {
  grid-template-columns: 1fr auto;
}

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

.detail-top {
  padding: 28px 0 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800) 48%, #881337);
}

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

.player-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--rose));
  box-shadow: 0 18px 48px rgba(236, 72, 153, 0.38);
  font-size: 34px;
}

.overlay-title {
  font-size: clamp(20px, 4vw, 38px);
  font-weight: 900;
  text-align: center;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 16px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
}

.detail-poster {
  position: sticky;
  top: 92px;
  align-self: start;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.detail-content {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.detail-kicker {
  color: var(--orange);
}

.detail-content h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0 0 20px;
  color: var(--slate-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags .tag {
  color: var(--rose);
  background: #ffe4e6;
}

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

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.meta-list dt {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.meta-list dd {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-weight: 900;
}

.story-block + .story-block {
  margin-top: 26px;
}

.story-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-block p {
  margin: 0;
  color: var(--slate-700);
  line-height: 2;
}

.related-wrap {
  padding-top: 46px;
}

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

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo {
  margin: 0 0 14px;
  color: transparent;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 24px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 16px;
}

.site-footer p,
.site-footer li {
  color: var(--slate-300);
  line-height: 1.8;
}

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

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
  color: var(--slate-500);
  text-align: center;
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 78px;
  }

  .hero-tools {
    bottom: 50px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 22px;
  }

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

  .two-column-block,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

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

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

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

  .hero {
    min-height: 790px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero-search,
  .search-form {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 48px;
    border-radius: 16px;
    background: var(--white);
  }

  .section-title {
    display: grid;
  }

  .movie-grid,
  .featured-grid,
  .search-result-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 38px 1fr 74px;
  }

  .rank-link img {
    width: 74px;
    height: 52px;
  }

  .player-shell {
    width: 100%;
    border-radius: 0;
  }

  .detail-breadcrumb,
  .detail-layout,
  .section-wrap,
  .footer-inner,
  .page-hero > div {
    width: min(100% - 24px, 1180px);
  }

  .detail-content {
    padding: 22px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
