:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --orange: #f97316;
  --amber: #f59e0b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 50%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.header-inner,
.ribbon-inner,
.footer-inner,
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  font-size: 12px;
  color: #cbd5e1;
}

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

.top-search {
  flex: 1;
  max-width: 440px;
  margin-left: auto;
}

.top-search input,
.mobile-search input,
.search-box input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--white);
  background: rgba(30, 41, 59, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.top-search button,
.mobile-search button,
.search-box button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.secondary-btn {
  color: var(--dark);
  background: #f8fafc;
  box-shadow: none;
}

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

.nav-link {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fb923c;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px 16px 18px;
  background: #0f172a;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.category-ribbon {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.ribbon-inner::-webkit-scrollbar {
  display: none;
}

.ribbon-inner a {
  white-space: nowrap;
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease;
}

.ribbon-inner a:hover {
  color: #fdba74;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.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-media {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.kicker,
.section-kicker,
.breadcrumb,
.count-pill {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  color: #f8fafc;
}

.hero-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.hero-dots {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: 36px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

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

.main-section {
  padding: 64px 0;
}

.main-section.compact {
  padding-top: 34px;
}

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

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

.section-kicker {
  color: var(--orange);
}

.section-more {
  color: #ea580c;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.movie-card {
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.movie-card.vertical .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

.score-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.score-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.play-badge {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

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

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  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: 13px;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fafc;
}

.movie-card.horizontal a {
  flex-direction: row;
}

.movie-card.horizontal .card-cover {
  width: 42%;
  min-width: 180px;
  aspect-ratio: auto;
}

.feature-panel,
.dark-panel,
.page-hero,
.detail-panel,
.side-card,
.toolbar,
.category-card,
.search-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dark-panel {
  padding: 34px;
  color: var(--white);
  background: linear-gradient(120deg, #1e293b 0%, #0f172a 100%);
}

.dark-panel .section-head h2,
.dark-panel .section-kicker {
  color: var(--white);
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.compact-card img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card span {
  display: grid;
  gap: 6px;
}

.compact-card small {
  color: #cbd5e1;
}

.rank-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

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

.category-card {
  padding: 24px;
  color: var(--text);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.count-pill {
  display: inline-flex;
  color: #ea580c;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
}

.page-hero {
  margin: 36px auto 0;
  padding: clamp(34px, 5vw, 58px);
  color: var(--white);
  background: radial-gradient(circle at 15% 0%, rgba(251, 146, 60, 0.45), transparent 34%), linear-gradient(120deg, #1e293b 0%, #0f172a 100%);
}

.page-title p,
.page-hero p {
  max-width: 780px;
  color: #e2e8f0;
  line-height: 1.75;
  font-size: 17px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  background: var(--white);
}

.toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  background: #f8fafc;
}

.filter-input {
  color: var(--text);
  background: #f8fafc;
}

.breadcrumb {
  margin: 24px 0;
  color: #ea580c;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: #020617;
  padding: 0;
}

.play-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.play-cover span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.35);
}

.play-cover.is-hidden {
  display: none;
}

.detail-panel,
.side-card,
.search-panel {
  padding: 26px;
  background: var(--white);
}

.detail-panel {
  margin-top: 22px;
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  color: #64748b;
}

.meta-list li,
.tag {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  color: #475569;
  font-size: 14px;
}

.content-block {
  margin-top: 28px;
}

.content-block h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--orange);
  font-size: 23px;
}

.content-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.side-card + .side-card {
  margin-top: 18px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 16px;
}

.info-table {
  display: grid;
  gap: 12px;
  color: #475569;
}

.info-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.info-table strong {
  color: var(--text);
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item small {
  color: var(--muted);
}

.search-box {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
}

.search-box input {
  color: var(--text);
  background: var(--white);
}

.result-note {
  margin: 16px 0 28px;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding: 42px 0;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-links,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-categories a {
  color: #e2e8f0;
}

.copyright {
  font-size: 13px;
}

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 780px) {
  .header-inner,
  .ribbon-inner,
  .footer-inner,
  .container {
    width: min(100% - 24px, 1200px);
  }

  .top-search,
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 92px;
  }

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

  .hero-dots {
    left: 16px;
    right: auto;
  }

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

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

  .movie-card.horizontal a {
    flex-direction: column;
  }

  .movie-card.horizontal .card-cover {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

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

  .toolbar select {
    min-height: 46px;
  }

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