:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fed7aa;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --dark: #0f172a;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #fff7ed 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: linear-gradient(90deg, var(--orange-dark), var(--orange));
  box-shadow: 0 14px 38px rgba(194, 65, 12, 0.26);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  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.28);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

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

.search-form input,
.mobile-search input,
.local-search-row input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 11px 16px;
  min-width: 250px;
  color: var(--ink);
}

.search-form button,
.mobile-search button,
.local-search-row button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.local-search-row button:hover {
  transform: translateY(-1px);
  background: #000000;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  color: #ffffff;
  padding: 10px 0;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64) 44%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 680px;
}

.hero-kicker,
.section-heading span,
.sub-hero span,
.detail-kicker,
.category-overview-head span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  padding: 8px 15px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  background: #fff7ed;
  color: #9a3412;
}

.hero-actions,
.detail-actions,
.sub-hero-actions,
.quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.sub-hero-actions a,
.quick-actions a,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 23px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-actions a:first-child,
.mini-button {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.ghost-button,
.sub-hero-actions a,
.quick-actions a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ghost-button.dark {
  color: var(--orange-dark);
  background: #fff7ed;
  box-shadow: none;
}

.primary-button:hover,
.ghost-button:hover,
.sub-hero-actions a:hover,
.quick-actions a:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--orange);
}

.quick-section,
.content-section,
.category-map,
.category-overview-block,
.detail-hero,
.player-section,
.detail-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  transform: translateY(-54px);
  margin-bottom: -28px;
}

.quick-panel,
.category-card,
.movie-card,
.ranking-item,
.category-overview-block,
.player-section,
.detail-content article {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-panel {
  padding: 30px;
}

.quick-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
}

.quick-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  padding: 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.18);
}

.category-card span {
  color: var(--orange);
  font-weight: 900;
}

.category-card strong {
  font-size: 20px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
  font-size: 14px;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.left-heading {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.94);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.movie-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body h2 a:hover,
.ranking-copy h2 a:hover,
.breadcrumb a:hover {
  color: var(--orange);
}

.movie-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.ranking-section {
  padding-top: 24px;
}

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

.ranking-list-full {
  gap: 14px;
}

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-poster {
  display: block;
  width: 84px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark);
}

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

.ranking-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.local-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.local-search-row input {
  min-width: min(460px, 100%);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.no-result {
  display: none;
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.no-result.is-visible {
  display: block;
}

.sub-hero {
  min-height: 360px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(253, 186, 116, 0.5), transparent 32%), linear-gradient(120deg, #111827, #7c2d12 52%, #f97316);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 70px max(16px, calc((100vw - 1280px) / 2)) 70px;
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.category-map {
  padding: 46px 0 10px;
}

.category-overview-block {
  padding: 28px;
  margin-top: 28px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  font-weight: 900;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  padding: 62px 0 40px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--dark);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

.player-section {
  padding: 32px 0 8px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  aspect-ratio: 16 / 9;
}

.video-player,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.video-player {
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
  z-index: 2;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.62;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.96);
  color: #ffffff;
  font-size: 38px;
  box-shadow: 0 16px 48px rgba(249, 115, 22, 0.36);
}

.play-ring span {
  transform: translateX(3px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 42px 0 12px;
}

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #374151;
  line-height: 2;
}

.site-footer {
  margin-top: 60px;
  background: #111827;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--orange);
}

.footer-grid p {
  max-width: 460px;
  margin: 0;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

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

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

  .search-form {
    display: none;
  }

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

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

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

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

@media (max-width: 760px) {
  .brand-name {
    font-size: 17px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 82px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-section {
    transform: none;
    margin-top: 22px;
    margin-bottom: 0;
  }

  .quick-categories,
  .category-map,
  .all-grid,
  .featured-grid,
  .movie-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body h2 {
    font-size: 16px;
  }

  .movie-card-body p,
  .tag-row {
    display: none;
  }

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

  .ranking-item {
    grid-template-columns: 70px 42px minmax(0, 1fr);
  }

  .ranking-item .mini-button {
    grid-column: 3;
    width: max-content;
  }

  .ranking-poster {
    width: 70px;
  }

  .ranking-copy p {
    display: none;
  }

  .detail-hero {
    gap: 24px;
    padding-top: 34px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .play-ring {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }

  .local-search-row,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .local-search-row input,
  .mobile-search input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quick-categories,
  .category-map,
  .all-grid,
  .featured-grid,
  .movie-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .sub-hero h1,
  .detail-info h1 {
    letter-spacing: -0.03em;
  }
}
