:root {
  color-scheme: light;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --card: #ffffff;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --dark: #0f172a;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 320px, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}

.desktop-nav a {
  opacity: 0.94;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
  transform: translateY(-1px);
}

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

.header-search input,
.section-search input,
.local-filter {
  width: 240px;
  height: 42px;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.header-search button,
.section-search button,
.primary-button,
.ghost-button,
.filter-chips button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.section-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.header-search button,
.section-search button {
  height: 42px;
  padding: 0 18px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}

.header-search button:hover,
.section-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-chips button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.mobile-nav.open {
  display: grid;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.60), rgba(15, 23, 42, 0.28)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(0deg, #f8fafc, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 60px;
  padding: 76px 0 96px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.88);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.03;
  font-weight: 1000;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 44px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-list,
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-list span,
.genre-pills span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.82);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.45);
  font-size: 28px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

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

.quick-panel,
.section-block,
.page-hero,
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  margin-top: -44px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-panel .section-search input {
  width: min(520px, 58vw);
  background: #f3f4f6;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--dark);
  background: #fff7ed;
  font-weight: 800;
}

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

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

.section-heading span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.section-heading a {
  color: var(--orange);
  font-weight: 900;
}

.compact-heading {
  align-items: center;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-card .poster-link img {
  aspect-ratio: 16 / 9;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span:nth-child(2) {
  background: var(--blue);
}

.movie-meta span:nth-child(3) {
  background: #eab308;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list span {
  color: var(--orange);
  background: #fff7ed;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.88)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-card span {
  font-size: 24px;
  font-weight: 1000;
}

.category-tile p,
.category-overview-card p {
  max-width: 480px;
  margin: 8px 0 0;
  color: #e5e7eb;
  line-height: 1.65;
}

.ranking-panel,
.detail-card,
.story-block {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.ranking-panel ol,
.rank-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-item a {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child a {
  border-bottom: 0;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 1000;
}

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

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #eab308;
  font-weight: 1000;
  text-align: right;
}

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

.page-hero {
  margin-top: 32px;
  border-radius: 32px;
  padding: 58px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(239, 68, 68, 0.90), rgba(236, 72, 153, 0.88));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 920px;
  margin: 16px 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.75;
}

.page-hero .section-search {
  margin-top: 26px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.local-filter {
  width: min(360px, 100%);
  background: #f3f4f6;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  padding: 10px 15px;
  color: var(--dark);
  background: #fff7ed;
}

.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.rank-page-block {
  padding-top: 42px;
}

.rank-full-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-radius: 28px;
  padding: 18px 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.22);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
  font-size: 34px;
}

.player-shell.is-playing .player-start {
  display: none;
}

.story-block {
  margin-top: 26px;
  padding: 34px;
}

.story-block h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
}

.story-block h2 {
  margin: 32px 0 12px;
  font-size: 26px;
}

.story-block p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.lead-text {
  color: var(--muted);
  font-size: 19px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

.detail-cover {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-card {
  margin-top: 18px;
  padding: 24px;
}

.detail-card h2 {
  margin: 0 0 16px;
}

.detail-card dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 18px;
}

.detail-card dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-card dd {
  margin: 0;
  font-weight: 800;
}

.related-block {
  padding-top: 46px;
}

.compact-card .movie-info h3 {
  font-size: 16px;
}

.site-footer {
  margin-top: 90px;
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 0 28px;
}

.footer-inner strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 680px;
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: #94a3b8;
  text-align: center;
}

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

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

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

  .header-search {
    margin-left: auto;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 92px;
  }

  .hero-poster {
    width: min(340px, 78vw);
    transform: none;
  }

  .quick-panel,
  .split-block,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    display: grid;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .rank-full-list {
    grid-template-columns: 1fr;
  }

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

  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .local-filter {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

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

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

  .quick-panel .section-search,
  .section-search {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-panel .section-search input,
  .section-search input {
    width: 100%;
  }

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info p,
  .tag-list {
    display: none;
  }

  .story-block {
    padding: 24px;
  }

  .player-start span {
    width: 70px;
    height: 70px;
  }
}
