html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 118, 54, 0.18),
      transparent 34rem
    ),
    linear-gradient(180deg, #fff7ed 0%, #fff 26rem, #f8fafc 100%);
  color: #172033;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

body::selection {
  background: #fb923c;
  color: #ffffff;
}

a {
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

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

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

.brand:hover,
.footer-brand:hover {
  color: #ea580c;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #ec4899, #3b82f6);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, #f97316, #ec4899, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.quick-link {
  color: #475569;
  font-weight: 700;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-button,
.primary-cta,
.search-submit,
.player-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.watch-button {
  padding: 10px 18px;
}

.watch-button:hover,
.primary-cta:hover,
.search-submit:hover,
.player-start:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 22px;
  font-weight: 900;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.hero {
  position: relative;
  min-height: 620px;
  margin: 26px auto 60px;
  overflow: hidden;
  border-radius: 38px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

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

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

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  filter: blur(4px) scale(1.04);
  opacity: 0.55;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.65),
      rgba(15, 23, 42, 0.25)
    ),
    radial-gradient(
      circle at 18% 20%,
      rgba(249, 115, 22, 0.35),
      transparent 30rem
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 64px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-pill,
.rank-number {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

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

.primary-cta,
.ghost-cta {
  min-height: 48px;
  padding: 0 24px;
}

.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
}

.ghost-cta:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

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

.search-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -96px auto 58px;
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.14);
}

.search-ribbon input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 18px;
  color: #0f172a;
  outline: none;
}

.search-ribbon input:focus,
.search-panel input:focus,
.search-panel select:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.search-submit {
  min-height: 48px;
  padding: 0 26px;
}

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

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

.section-head h2,
.page-title h1,
.detail-copy h1,
.player-heading h1 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-more {
  color: #ea580c;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-poster {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.86));
}

.year-badge,
.play-chip {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #f97316;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

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

.movie-title {
  display: block;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
}

.movie-title:hover {
  color: #ea580c;
}

.movie-card-body p {
  min-height: 52px;
  margin: 9px 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.tag-row span {
  padding: 6px 9px;
  background: #fff7ed;
  color: #c2410c;
}

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

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(249, 115, 22, 0.2),
      transparent 12rem
    ),
    #ffffff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.category-count {
  margin-top: 22px;
  color: #ea580c;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rank-number {
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
  font-size: 15px;
}

.rank-thumb {
  width: 90px;
  height: 66px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.rank-info p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.rank-meta {
  color: #ea580c;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  margin: 34px 0 38px;
  padding: 42px;
  border-radius: 34px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 237, 213, 0.96),
      rgba(239, 246, 255, 0.96)
    ),
    #ffffff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-title p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.9;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(130px, 0.5fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.result-summary {
  margin-bottom: 18px;
  color: #64748b;
  font-weight: 800;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-item[hidden] {
  display: none;
}

.search-item img {
  width: 76px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
}

.search-item h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.search-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.meta-line {
  margin-top: 8px;
  color: #ea580c;
  font-weight: 900;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 320px;
  gap: 32px;
  align-items: stretch;
  margin: 34px 0;
}

.detail-copy {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: end;
  border-radius: 34px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.72)),
    var(--detail-bg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-copy p {
  max-width: 760px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.detail-cover {
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

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

.player-section {
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.player-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  color: #ffffff;
}

.player-heading h1,
.player-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
}

.player-heading p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.player-cover.is-hidden {
  display: none;
}

.player-start {
  position: relative;
  z-index: 2;
  min-width: 154px;
  min-height: 54px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

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

.content-card,
.side-card {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 22px;
  color: #475569;
  font-size: 16px;
  line-height: 2;
}

.side-card {
  padding: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 70px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  color: #111827;
  line-height: 1.4;
}

.side-link span {
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
}

.footer {
  margin-top: 80px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

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

.footer p {
  max-width: 640px;
  color: #64748b;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-links a {
  color: #475569;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ea580c;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .main-nav,
  .watch-button {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

  .hero-content {
    padding: 42px 28px;
  }

  .hero-poster {
    max-width: 280px;
  }

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

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

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 64px;
  }

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

  .hero {
    border-radius: 26px;
  }

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

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

  .search-ribbon {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

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

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

  .rank-item,
  .search-item {
    grid-template-columns: 1fr;
  }

  .rank-thumb,
  .search-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-cover {
    max-height: 480px;
  }
}
