:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-md: 0 12px 32px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 260px, #f9fafb 100%);
  color: var(--gray-900);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.22);
}

.nav-shell {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand {
  min-width: max-content;
  font-size: 20px;
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  font-size: 15px;
  font-weight: 650;
  opacity: 0.94;
  transition: color .2s ease, opacity .2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffedd5;
  opacity: 1;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.nav-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  color: #fff;
  background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--orange-700);
  background: #fff;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  background: var(--orange-700);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 600px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.18));
}

.hero-content {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 40px;
  align-items: center;
  color: #fff;
}

.hero-copy {
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.24);
  border: 1px solid rgba(255, 237, 213, 0.24);
  font-weight: 750;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
}

.hero-panel {
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
}

.hero-panel h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

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

.hero-dots button {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

main {
  padding: 54px 0 0;
}

.content-section {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 68px;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.poster-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.score,
.rank-badge,
.list-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(5px);
  text-align: center;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
}

.card-body {
  padding: 18px;
}

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

.card-body h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 10px 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.detail-tags,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.category-chips a,
.category-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--orange-700);
  background: var(--orange-100);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card .mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-card .mini-links a {
  color: var(--gray-700);
  font-weight: 650;
}

.category-card .mini-links a:hover {
  color: var(--orange-600);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select,
.search-hero input {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  background: #fff;
  color: var(--gray-900);
}

.filter-bar input,
.search-hero input {
  flex: 1;
  min-width: 240px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-hero input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px 14px 14px;
}

.rank-row img {
  width: 148px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.list-rank {
  position: static;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
}

.search-hero {
  padding: 38px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, var(--orange-700), var(--orange-500));
  box-shadow: var(--shadow-lg);
}

.search-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
}

.search-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.search-hero form {
  display: flex;
  gap: 12px;
}

.search-hero button,
.filter-bar button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--gray-900);
  font-weight: 850;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1280px, calc(100% - 40px));
  margin: 34px auto 20px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: var(--shadow-lg);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-info {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.player-card {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 54px;
  overflow: hidden;
  border-radius: 30px;
  background: #05070b;
  box-shadow: var(--shadow-lg);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070b;
  cursor: pointer;
}

.player-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.42);
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
  transition: transform .2s ease, opacity .2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-card.playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.article-panel {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-box,
.side-box {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.article-box p {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.95;
}

.side-box {
  align-self: start;
}

.side-box a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-weight: 750;
}

.side-box a:hover {
  color: var(--orange-600);
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.no-results.show {
  display: block;
}

.site-footer {
  margin-top: 80px;
  padding: 54px 24px 30px;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 38px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

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

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

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.copyright {
  width: min(1280px, 100%);
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

  .nav-shell {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .container,
  .content-section,
  .breadcrumb,
  .detail-hero,
  .player-card,
  .article-panel {
    width: min(100% - 28px, 1280px);
  }

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

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

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

  .detail-poster img {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .rank-row {
    grid-template-columns: 52px 100px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row img {
    width: 100px;
    height: 76px;
  }

  .rank-row p {
    display: none;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    height: 60px;
    padding: 0 14px;
  }

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

  .hero-copy {
    padding: 54px 0 74px;
  }

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

  .hero-actions,
  .detail-actions,
  .search-hero form {
    display: grid;
  }

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

  .card-body h3 {
    min-height: 0;
  }

  .search-hero,
  .detail-info,
  .article-box,
  .side-box {
    padding: 22px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
