:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #ea580c;
  --orange-deep: #c2410c;
  --amber: #f59e0b;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 27px 0;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 600;
}

.mobile-link:hover {
  color: var(--orange);
  background: #fff7ed;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 5s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.26);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-panel {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  width: min(440px, calc(100% - 32px));
}

.hero-search-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search-card > span {
  display: block;
  margin-bottom: 8px;
  color: #fed7aa;
  font-weight: 800;
}

.hero-search-card > strong {
  display: block;
  margin-bottom: 16px;
  font-size: 22px;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.search-results {
  display: none;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.search-results.is-visible {
  display: grid;
}

.search-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

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

.search-thumb {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.search-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.search-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-weight: 700;
}

.search-item span {
  color: var(--muted);
  font-size: 13px;
}

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

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

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

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.inner-section {
  padding: 70px 0;
}

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

.section-heading .section-kicker {
  padding: 6px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid #ffedd5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--muted);
  line-height: 1.6;
}

.category-tile:hover,
.movie-card:hover,
.category-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.movie-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 5px 4px 18px;
  scroll-snap-type: x mandatory;
}

.movie-row::-webkit-scrollbar {
  height: 8px;
}

.movie-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #fed7aa;
}

.movie-row .movie-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.soft-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background-color: #111827;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.76));
}

.poster-year {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.34);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

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

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

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

.movie-meta span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--orange);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h2 a:hover {
  color: var(--orange);
}

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

.movie-card-compact .movie-card-body {
  padding: 14px;
}

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

.rank-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.3);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.split-main .content-section,
.split-main {
  padding: 0;
}

.ranking-card,
.side-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ranking-head span,
.mini-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-head span {
  width: 48px;
  height: 48px;
}

.ranking-head h2 {
  margin: 0;
  font-size: 28px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-rank {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.mini-cover {
  width: 58px;
  height: 78px;
  border-radius: 14px;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.mini-info {
  min-width: 0;
}

.mini-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mini-card:hover .mini-info strong {
  color: var(--orange);
}

.mini-info small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(120deg, #111827, #ea580c);
  background-size: cover;
  background-position: center;
}

.page-hero > div {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero .search-box {
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-large {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border-radius: var(--radius);
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-large span {
  font-size: 32px;
  font-weight: 900;
}

.category-large strong {
  max-width: 560px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-large em {
  margin-top: 18px;
  font-style: normal;
  color: #fed7aa;
  font-weight: 900;
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.detail-breadcrumb {
  color: var(--muted);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  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(--amber));
  box-shadow: 0 22px 45px rgba(234, 88, 12, 0.34);
  font-size: 32px;
  transform: translateX(3px);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta span,
.tag-cloud span {
  color: var(--orange);
  background: #fff7ed;
}

.one-line {
  margin: 22px 0;
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.tag-cloud {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-side {
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.detail-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.poster-card h2 {
  margin: 16px 0 6px;
  font-size: 22px;
}

.poster-card p {
  margin: 0;
  color: var(--muted);
}

.sticky-card {
  position: sticky;
  top: 94px;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 34px;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }

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

  .split-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .sticky-card {
    position: static;
  }
}

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

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

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

  .hero-carousel,
  .hero-copy {
    min-height: 760px;
  }

  .hero-copy {
    justify-content: start;
    padding-top: 88px;
  }

  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 76px;
    width: auto;
  }

  .hero-controls {
    bottom: 28px;
  }

  .category-grid,
  .four-grid,
  .compact-grid,
  .category-large-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .content-section,
  .detail-wrap,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-copy {
    min-height: 700px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

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

  .hero-panel {
    bottom: 66px;
  }

  .search-box {
    flex-direction: column;
  }

  .category-grid,
  .four-grid,
  .six-grid,
  .compact-grid,
  .category-large-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-row .movie-card {
    flex-basis: 245px;
  }

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

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

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

  .big-play {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
