:root {
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-amber: #f59e0b;
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-line: #f1f5f9;
  --color-soft: #fff7ed;
  --color-card: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 20px 45px rgba(249, 115, 22, 0.12);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fffbeb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.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.9);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
  font-size: 15px;
}

.brand-text,
.footer-brand {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-orange);
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  position: relative;
}

.header-search input,
.mobile-search input,
.search-page-form input {
  width: 250px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 10px 44px 10px 18px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: var(--color-orange);
  border-radius: 999px;
  cursor: pointer;
}

.header-search button {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
}

.mobile-search button,
.search-page-form button {
  padding: 11px 22px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav-panel {
  display: grid;
  gap: 14px;
  padding: 18px 0 24px;
}

.page-main {
  padding-bottom: 64px;
}

.hero-section {
  padding: 32px 0 18px;
}

.hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.5), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 820px;
  padding: 52px;
  color: #ffffff;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-badge {
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--color-orange);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-orange);
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.78;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-meta span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  padding: 0 28px;
  color: #ffffff;
  background: var(--color-orange);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.section-more:hover,
.search-page-form button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  background: var(--color-orange-dark);
}

.ghost-button {
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-more {
  flex: 0 0 auto;
  padding: 0 18px;
  color: #ffffff;
  background: var(--color-orange);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 22px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(249, 115, 22, 0.18);
}

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

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

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

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
}

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

.movie-card p {
  min-height: 62px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  color: #6b3a00;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 134px;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%),
    #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(249, 115, 22, 0.18);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.category-tile span {
  color: #6b7280;
  line-height: 1.7;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 28px;
}

.ranking-panel,
.ranking-column {
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

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

.rank-item,
.wide-rank-item {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.18s ease, background 0.18s ease;
}

.rank-item {
  grid-template-columns: 34px 52px 1fr;
  padding: 10px;
}

.rank-item:hover,
.wide-rank-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-item span,
.wide-rank-item span {
  color: var(--color-orange);
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 52px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.wide-rank-item strong {
  display: block;
  font-weight: 950;
}

.rank-item em,
.wide-rank-item em {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  margin-top: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(135deg, #111827, #431407);
  box-shadow: var(--shadow-strong);
}

.slim-hero {
  padding: 52px;
  color: #ffffff;
}

.slim-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #9a3412;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.pagination a.is-current,
.pagination a:hover {
  color: #ffffff;
  background: var(--color-orange);
}

.rankings-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 44px 0;
}

.wide-rank-item {
  grid-template-columns: 38px 70px 1fr;
  padding: 12px;
}

.wide-rank-item img {
  width: 70px;
  height: 94px;
  border-radius: 14px;
  object-fit: cover;
}

.wide-rank-item p {
  margin: 5px 0 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--color-orange);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  padding: 26px 0 20px;
}

.player-card,
.detail-info,
.detail-poster-card,
.detail-text {
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
  background: #111827;
}

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

.movie-player-video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
}

.player-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-poster img,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-poster img {
  object-fit: cover;
}

.player-shade {
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 36%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

.player-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #ffffff;
  background: var(--color-orange);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.42);
  font-size: 30px;
  transform: translateX(3px);
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  color: #111827;
  font-size: clamp(30px, 4vw, 50px);
}

.detail-one-line {
  color: #4b5563;
}

.detail-meta {
  margin: 18px 0;
}

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

.detail-poster-card {
  align-self: start;
  overflow: hidden;
  padding: 14px;
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.detail-text {
  padding: 30px;
}

.detail-text section + section {
  margin-top: 30px;
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 950;
}

.detail-text p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.search-page-form {
  max-width: 760px;
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
  width: auto;
  padding: 14px 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--color-orange);
}

.search-status {
  margin-bottom: 18px;
  color: #6b7280;
  font-weight: 800;
}

.site-footer {
  margin-top: 34px;
  padding: 50px 0 26px;
  color: #7c2d12;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.site-footer p {
  max-width: 580px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 950;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #9a3412;
  font-weight: 800;
}

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

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(249, 115, 22, 0.15);
  color: #9a3412;
  font-size: 14px;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero-card {
    min-height: 560px;
  }

  .hero-content,
  .slim-hero {
    padding: 32px;
  }

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

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

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

  .hero-card {
    min-height: 620px;
    border-radius: 22px;
  }

  .hero-content,
  .slim-hero,
  .detail-info,
  .detail-text {
    padding: 24px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .rankings-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-rank-item {
    grid-template-columns: 32px 62px 1fr;
  }

  .search-page-form,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .search-page-form input,
  .mobile-search input {
    width: 100%;
  }
}
