:root {
  --page: #fff7ed;
  --surface: #ffffff;
  --soft: #fff1db;
  --line: #f1e3d1;
  --text: #1f2937;
  --muted: #667085;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --amber: #f59e0b;
  --shadow: 0 22px 55px rgba(127, 72, 24, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 10px 35px rgba(127, 72, 24, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

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

.nav-links a {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  flex: 0 0 250px;
}

.nav-search input,
.search-input,
.page-filter {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 12px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 10px 13px;
  cursor: pointer;
}

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

.hero-carousel {
  position: relative;
  min-height: 520px;
  margin: 34px auto 52px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-track,
.hero-slide {
  min-height: 520px;
}

.hero-slide {
  display: none;
  position: relative;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.46), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.76) 48%, rgba(17, 24, 39, 0.18) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px clamp(28px, 7vw, 78px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 0;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 76px);
  max-width: 820px;
}

.hero-content h2 {
  font-size: clamp(28px, 4vw, 46px);
  color: #ffedd5;
}

.hero-content p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.section-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn,
.btn-soft,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

.btn-soft {
  color: var(--brand-dark);
  background: #fff7ed;
}

.btn-line {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.btn:hover,
.btn-soft:hover,
.btn-line:hover {
  transform: translateY(-2px);
}

.hero-side {
  position: relative;
  z-index: 2;
  padding: 48px 34px;
  display: flex;
  align-items: flex-end;
}

.hero-glass {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  padding: 20px;
  color: #ffffff;
}

.hero-glass strong {
  display: block;
  font-size: 18px;
  margin-bottom: 14px;
}

.hero-glass a {
  display: block;
  padding: 10px 0;
  color: #ffedd5;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-control,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section,
.page-hero,
.player-panel,
.detail-card,
.related-panel,
.category-card,
.search-panel {
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(127, 72, 24, 0.08);
}

.section {
  margin-bottom: 42px;
  padding: clamp(22px, 4vw, 34px);
}

.section-header,
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section h2,
.page-hero h1,
.search-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-header p,
.page-hero p,
.search-panel p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(127, 72, 24, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(127, 72, 24, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: #111827;
}

.poster-link img,
.rank-cover img,
.mini-card img,
.detail-poster img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.rank-item:hover .rank-cover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

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

.card-badges,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-badges span,
.tag-row span,
.detail-meta span,
.rank-info span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  background: var(--brand-soft);
}

.movie-card h2,
.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a,
.movie-card h3 a,
.rank-info h2 a {
  transition: color 0.2s ease;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 10px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -50px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.17), rgba(245, 158, 11, 0.1));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-card a {
  width: fit-content;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(127, 72, 24, 0.12);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.rank-cover {
  height: 122px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-hero,
.search-panel {
  margin: 34px 0 32px;
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 146, 60, 0.2), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 26px 0 18px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.player-panel {
  overflow: hidden;
  padding: 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.player-copy {
  padding: 22px 24px 26px;
}

.player-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.player-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.detail-card,
.related-panel {
  padding: 22px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4.25;
  background: #111827;
  margin-bottom: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-card h2,
.related-panel h2 {
  margin: 22px 0 12px;
  font-size: 22px;
}

.detail-card p,
.related-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-copy {
  margin-bottom: 36px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(127, 72, 24, 0.07);
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-copy p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 24px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.mini-card img {
  height: 92px;
  border-radius: 12px;
  background: #111827;
}

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

.mini-card strong {
  margin-bottom: 6px;
  line-height: 1.35;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.search-form-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 22px;
}

.search-results {
  margin-bottom: 42px;
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 58px;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #6b7280;
  border-top: 1px solid rgba(251, 146, 60, 0.14);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }

  .detail-poster {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-search {
    display: none;
    width: 100%;
    flex: 1 0 100%;
  }

  .nav-links.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }

  .nav-search {
    margin-left: 0;
  }

  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 660px;
  }

  .hero-side {
    align-items: flex-start;
    padding: 0 24px 76px;
  }

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

  .section-header,
  .page-title-row,
  .filter-bar,
  .search-form-main {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (max-width: 560px) {
  main,
  .nav-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 22px;
  }

  .hero-content {
    padding: 42px 22px 24px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 720px;
    border-radius: 22px;
  }

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

  .rank-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .rank-cover {
    height: 96px;
  }

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

  .rank-info p {
    display: none;
  }

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