:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #16a34a;
  --amber: #d97706;
  --rose: #e11d48;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a {
  color: #374151;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--orange);
}

.top-search {
  display: flex;
  width: min(280px, 30vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 12px 9px 16px;
  color: var(--text);
}

.top-search button {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.mobile-nav a:hover {
  background: #fff7ed;
  color: var(--orange);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, var(--orange), var(--red) 52%, var(--pink));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.20), transparent 26%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.32));
}

.hero-shell {
  position: relative;
  min-height: 620px;
  padding: 74px 0 42px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 410px);
  gap: 42px;
  align-items: center;
  animation: fadeIn 0.55s ease both;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 780px;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-cloud,
.detail-badges,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-badges span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
}

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

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

.primary-btn {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover,
.category-tile:hover,
.rank-row:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
  transform: rotate(2deg);
}

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

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

.hero-controls {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

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

.hero-dot.is-active {
  width: 52px;
  background: #fff;
}

.hero-search {
  display: flex;
  max-width: 680px;
  margin-top: 32px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 18px;
}

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--orange);
  background: #fff;
  font-weight: 800;
}

.hero-stat-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-stat-row a {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-stat-row strong,
.hero-stat-row span {
  display: block;
}

.hero-stat-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(115deg, var(--orange), var(--red) 50%, var(--pink));
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.crumb a:hover {
  color: #fff;
}

.section-block {
  padding: 64px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: #f3f4f6;
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-green {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.section-rose {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.section-amber {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-kicker {
  color: var(--orange);
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-more {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.24);
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(22, 163, 74, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  min-height: 42px;
  color: #111827;
  font-size: 15px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  margin: 0 0 12px;
  min-height: 40px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

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

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

.category-tile {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444 55%, #ec4899);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.rank-row img {
  width: 92px;
  height: 122px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-info em {
  margin-bottom: 8px;
  color: #4b5563;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info small {
  color: #6b7280;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.filter-panel.wide {
  position: sticky;
  top: 82px;
  z-index: 20;
  background: rgba(249, 250, 251, 0.94);
  backdrop-filter: blur(16px);
}

.filter-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  margin-bottom: 14px;
  background: #fff;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #374151;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
}

.chip.is-active,
.chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: none;
}

.detail-crumbs {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.detail-crumbs .crumb {
  margin: 0;
  color: #6b7280;
}

.detail-crumbs .crumb a:hover {
  color: var(--orange);
}

.detail-page {
  padding: 34px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 28px;
}

.player-card,
.article-card,
.side-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.player-button {
  position: relative;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  padding-left: 6px;
}

.detail-heading {
  padding: 26px;
}

.detail-badges span {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.detail-heading h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-heading p {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.article-card {
  padding: 26px;
  margin-top: 22px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

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

.compact-card .movie-card-body p {
  min-height: auto;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-card {
  padding: 22px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.poster-side dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.poster-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.poster-side dt {
  color: #6b7280;
}

.poster-side dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.tag-cloud span {
  color: #374151;
  background: #f3f4f6;
}

.small-list {
  display: grid;
  gap: 14px;
}

.small-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.small-card img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.small-card strong {
  color: #111827;
  line-height: 1.35;
}

.small-card em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
  font-size: 14px;
}

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

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .compact-rank {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 62px;
    gap: 12px;
  }

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

  .top-search {
    display: none;
  }

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

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    max-width: 270px;
    margin: 0 auto;
    transform: none;
  }

  .hero-search {
    display: grid;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

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

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .rank-info strong {
    font-size: 15px;
  }

  .rank-info em {
    -webkit-line-clamp: 1;
    font-size: 13px;
  }

  .rank-info small {
    font-size: 12px;
  }

  .detail-heading,
  .article-card,
  .side-card {
    padding: 18px;
  }

  .player-button {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
