:root {
  --brand-start: #f97316;
  --brand-end: #ef4444;
  --brand-warm: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.brand {
  font-size: 24px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.34);
  font-size: 16px;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-start);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search input,
.search-page-form input,
.page-filter input {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  background: white;
  outline: none;
  min-width: 260px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-page-form input:focus,
.page-filter input:focus {
  border-color: var(--brand-start);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.menu-button {
  display: none;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: white;
}

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

.mobile-panel a {
  font-weight: 800;
  color: #374151;
}

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

.mobile-panel input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.36;
  filter: saturate(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.38), transparent 24%), linear-gradient(90deg, rgba(127, 29, 29, 0.84), rgba(239, 68, 68, 0.5), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  color: white;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ea580c;
  background: #fff7ed;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.section-kicker.blue {
  color: #0284c7;
  background: #e0f2fe;
}

.section-kicker.red {
  color: #dc2626;
  background: #fee2e2;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin-top: 24px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

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

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

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-action,
.ghost-action,
.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  padding: 14px 26px;
  color: var(--brand-start);
  background: white;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.primary-action.full {
  width: 100%;
}

.ghost-action {
  padding: 14px 24px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.primary-action:hover,
.ghost-action:hover,
.small-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  height: 500px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4;
}

.hero-controls button {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
}

.hero-dot.active {
  width: 28px;
  background: white;
}

.spotlight-row {
  position: relative;
  z-index: 5;
  margin-top: -74px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.latest-section {
  background: white;
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

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

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--brand-start);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.movie-card-poster img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-card-poster img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.9);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--brand-start);
}

.movie-card p {
  min-height: 45px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span {
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 210px;
}

.movie-card-horizontal .movie-card-poster {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-horizontal .movie-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-list {
  display: grid;
  gap: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  font-weight: 950;
}

.rank-thumb {
  display: block;
  width: 86px;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
}

.rank-info h3 {
  font-size: 20px;
  font-weight: 950;
}

.rank-info p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

.small-action {
  padding: 10px 16px;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.home-cta {
  padding: 76px 0;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  text-align: center;
}

.home-cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.home-cta p {
  margin: 14px auto 28px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-pills a {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--brand-start);
  background: white;
  font-weight: 900;
}

.sub-hero {
  padding: 88px 0 72px;
  color: white;
  background: radial-gradient(circle at 15% 10%, rgba(250, 204, 21, 0.34), transparent 22%), linear-gradient(135deg, #fb923c, #ef4444 58%, #7f1d1d);
}

.sub-hero h1 {
  margin-top: 16px;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 950;
  letter-spacing: -0.055em;
}

.sub-hero p {
  margin-top: 16px;
  max-width: 740px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.7;
}

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

.breadcrumb a:hover {
  color: white;
}

.page-filter {
  margin-top: 28px;
}

.page-filter input {
  width: min(520px, 100%);
}

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.category-thumb-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.category-card > div {
  padding: 22px;
}

.category-card h2 {
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.search-page-form input {
  min-width: min(560px, 100%);
  flex: 1;
}

.player-top {
  padding: 22px 0 34px;
  background: #030712;
}

.player-top .breadcrumb {
  margin-bottom: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
  cursor: pointer;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding-left: 6px;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.45);
  font-size: 40px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 38px 0 16px;
}

.detail-main,
.side-card {
  border-radius: 26px;
  background: white;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.detail-main {
  padding: 26px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-heading img {
  height: 306px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.detail-heading h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.detail-heading p {
  margin-top: 14px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 16px;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.side-card h2 {
  font-size: 24px;
  font-weight: 950;
}

.detail-section p {
  margin-top: 12px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.side-card {
  padding: 22px;
}

.side-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.side-links a:hover {
  color: var(--brand-start);
}

.side-links em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 58%, #111827);
}

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

.footer-brand {
  color: white;
  -webkit-text-fill-color: white;
}

.site-footer p {
  margin-top: 14px;
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer h2 {
  color: white;
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 14px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

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

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

.card-hidden {
  display: none !important;
}

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

  .hero-content {
    grid-template-columns: 1fr 290px;
    gap: 32px;
  }

  .hero-poster {
    height: 420px;
  }

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-container {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 24px;
    padding-bottom: 90px;
  }

  .hero-poster {
    width: min(300px, 80vw);
    height: 380px;
    margin: 0 auto;
    transform: none;
  }

  .spotlight-row,
  .movie-grid,
  .compact-grid,
  .category-grid-page {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 170px;
  }

  .rank-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-row .small-action {
    grid-column: 3;
    width: fit-content;
  }

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

  .detail-heading img {
    width: min(240px, 70vw);
  }
}

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

  .hero-carousel {
    height: 720px;
  }

  .hero-copy h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .sub-hero p {
    font-size: 16px;
  }

  .spotlight-row,
  .movie-grid,
  .compact-grid,
  .category-grid-page {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-poster {
    aspect-ratio: 3 / 4;
  }

  .rank-row {
    grid-template-columns: 38px 66px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-thumb {
    width: 66px;
    height: 88px;
  }

  .rank-info h3 {
    font-size: 17px;
  }

  .play-overlay span {
    width: 74px;
    height: 74px;
    font-size: 32px;
  }
}
