:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --coral: #fb7185;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --page: #f8fafc;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange-dark), var(--coral), var(--amber));
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.24);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #fff;
  font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 10px;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #fff;
  font-weight: 700;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
}

.mobile-panel.is-open {
  display: block;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.9), rgba(249, 115, 22, 0.45), rgba(17, 24, 39, 0.78)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
}

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

.hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.24), transparent 26%), linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(17, 24, 39, 0.6));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  min-height: 620px;
  color: #fff;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.hero-actions a:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.22);
}

.btn-ghost,
.hero-actions a:not(.btn-light) {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  min-width: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 30px;
  background: #fff;
}

.hero-quick {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.hero-quick a {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  color: #fff;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(14px);
}

.hero-quick img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-quick span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

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

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

.section-heading h2,
.page-link-panel h2,
.category-block h2,
.detail-panel h2,
.side-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
}

.compact-card .card-cover {
  aspect-ratio: 1 / 1;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
  opacity: 0.88;
}

.card-duration,
.card-rating {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-duration {
  right: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.card-rating {
  left: 12px;
  background: rgba(245, 158, 11, 0.9);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
}

.soft-panel {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  padding: 42px 20px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

.category-strip {
  margin-bottom: 28px;
}

.small-heading h2 {
  font-size: 23px;
}

.page-link-panel,
.category-overview,
.search-shell {
  margin-top: 46px;
  margin-bottom: 54px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.page-link-cloud,
.category-cloud,
.title-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-link-cloud a,
.category-cloud a,
.title-cloud a,
.pagination a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #c2410c;
  background: #fff7ed;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-link-cloud a:hover,
.category-cloud a:hover,
.title-cloud a:hover,
.pagination a:hover {
  color: #fff;
  background: var(--orange);
  transform: translateY(-2px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--orange-dark), var(--coral), var(--amber));
}

.compact-hero {
  padding: 58px 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -35%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
}

.category-block {
  margin-bottom: 34px;
}

.ranking-list {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 74px minmax(0, 1fr) 90px 82px 90px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: #475569;
  font-weight: 800;
}

.ranking-row:hover {
  background: #fff7ed;
}

.ranking-row img {
  width: 74px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  color: var(--orange-dark);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 20px;
}

.search-box input,
.search-box select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  font: inherit;
  background: #fff;
}

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

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.72), rgba(15, 23, 42, 0.88)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 54px 0;
}

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

.detail-copy h1 {
  max-width: 850px;
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.player-card,
.detail-panel,
.side-card {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: var(--orange);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.34);
  font-size: 42px;
}

.play-overlay:hover span {
  background: var(--orange-dark);
  transform: scale(1.06);
}

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

.detail-panel,
.side-card {
  padding: 24px;
}

.detail-panel p {
  margin: 14px 0 0;
  color: #475569;
  font-size: 17px;
}

.info-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  color: var(--ink);
}

.info-list span {
  color: #64748b;
  text-align: right;
}

.vertical-tags span {
  margin-bottom: 2px;
}

.title-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.title-list a {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
}

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

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

.sitemap-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.sitemap-card h2 {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 20px;
}

.sitemap-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-card a {
  color: #475569;
  font-weight: 700;
}

.sitemap-card a:hover {
  color: var(--orange-dark);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 46px 0;
}

.site-footer p {
  max-width: 480px;
  color: #94a3b8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fdba74;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

  .hero-poster,
  .detail-poster {
    max-width: 280px;
  }

  .hero-quick {
    display: none;
  }

  .card-grid,
  .poster-grid,
  .mini-grid,
  .rank-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 56px 64px minmax(0, 1fr) 70px;
  }

  .ranking-row span:nth-of-type(3),
  .ranking-row span:nth-of-type(4) {
    display: none;
  }
}

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

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

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

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

  .card-grid,
  .poster-grid,
  .mini-grid,
  .rank-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-link-panel,
  .category-overview,
  .search-shell {
    padding: 20px;
  }

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

  .ranking-row img,
  .ranking-row span:nth-of-type(2),
  .ranking-row span:nth-of-type(3),
  .ranking-row span:nth-of-type(4) {
    display: none;
  }
}
