:root {
  --site-orange: #f97316;
  --site-red: #ef4444;
  --site-slate: #0f172a;
  --site-muted: #64748b;
  --site-soft: #f8fafc;
  --site-border: rgba(148, 163, 184, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 42%, #fff7ed 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.search-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.logo-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb923c;
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input,
.mobile-search input {
  width: 250px;
  height: 40px;
  padding: 0 44px 0 18px;
  color: #fff;
  background: rgba(51, 65, 85, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus {
  border-color: rgba(249, 115, 22, 0.78);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.header-search button {
  position: absolute;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 0;
}

.mobile-search {
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-search button,
.big-search button {
  height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  color: #fff;
  background: #0f172a;
  overflow: hidden;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.18)), linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: center;
  min-height: 600px;
  padding: 58px 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker span:nth-child(2),
.detail-meta span:nth-child(2) {
  background: rgba(51, 65, 85, 0.85);
}

.hero-kicker span:nth-child(3),
.detail-meta span:nth-child(3) {
  background: rgba(15, 118, 110, 0.88);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.movie-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.34);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #fed7aa;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(251, 146, 60, 0.32);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.section-more:hover,
.side-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 40px;
  height: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fb923c;
}

.category-strip {
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 180px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.3s ease;
}

.category-tile:hover img,
.category-overview-card:hover img,
.movie-card:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile small,
.category-overview-card span,
.category-overview-card p {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-overview-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.content-section {
  padding: 56px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.section-more,
.side-link {
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

.movie-card {
  min-width: 0;
}

.movie-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1e293b;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.movie-thumb img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.06));
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-thumb::after {
  opacity: 1;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-region,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(234, 88, 12, 0.95);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 30px;
  text-align: center;
  background: rgba(220, 38, 38, 0.95);
}

.movie-card h3 {
  margin: 12px 0 5px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a,
.movie-title {
  color: #0f172a;
  transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.movie-title:hover {
  color: #ea580c;
}

.movie-card p,
.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.movie-card-wide .movie-thumb {
  border-radius: 16px;
}

.movie-card-wide .movie-info {
  min-width: 0;
  padding: 4px 0;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
}

.movie-desc {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-section {
  padding: 56px 0;
  background: linear-gradient(90deg, #fff7ed, #fef2f2, #ecfeff);
}

.ranking-grid,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.inner-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  overflow: hidden;
}

.inner-hero {
  padding: 72px 0 66px;
}

.inner-hero p {
  margin: 0 0 12px;
  color: #fb923c;
  font-weight: 900;
}

.inner-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.inner-hero-text {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.compact-actions {
  margin-top: 24px;
}

.category-overview-grid {
  align-items: stretch;
}

.category-overview-card {
  min-height: 230px;
}

.category-overview-card a {
  display: block;
  min-height: 92px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
  flex: 1 1 280px;
  min-height: 46px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  outline: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips button {
  min-height: 38px;
  padding: 0 15px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  border-color: transparent;
}

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

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0 56px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-main h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.player-section {
  padding: 42px 0 18px;
  background: #0f172a;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.6));
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  border-radius: 50%;
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.42);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-article,
.detail-side {
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.detail-side li {
  padding: 12px 0;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.6;
}

.big-search {
  max-width: 760px;
  gap: 12px;
  margin-top: 26px;
}

.big-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  outline: none;
}

.big-search button {
  min-height: 54px;
  padding: 0 26px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
  font-size: 20px;
}

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

.site-footer p,
.site-footer li {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

  .header-search input {
    width: 210px;
  }

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

  .category-strip-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .hero-content,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 640px;
    padding-top: 44px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-main h1,
  .inner-hero h1 {
    font-size: 34px;
  }

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

  .movie-card-wide {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .section-heading,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .big-search {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    gap: 24px;
  }
}
