:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #22c55e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffbeb 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.brand-name,
.footer-brand {
  font-size: 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #374151;
  font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--orange);
}

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

.search-form input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input,
.mobile-search input {
  width: 230px;
  padding: 0 16px;
}

.search-form input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.search-form button,
.mobile-search button {
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-search input {
  width: 100%;
}

.hero {
  padding: 34px 0 16px;
}

.hero-stage {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.46) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 64px);
  bottom: clamp(26px, 6vw, 58px);
  max-width: 760px;
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
}

.hero p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

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

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 0 18px;
}

.quick-entry a,
.category-card,
.movie-card,
.filter-panel,
.movie-detail-card,
.player-card,
.poster-panel,
.related-panel {
  background: var(--paper);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.quick-entry a {
  display: grid;
  gap: 2px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-entry a:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.quick-entry strong {
  color: var(--ink);
  font-size: 18px;
}

.quick-entry span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.section-head h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-meta,
.card-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 10px;
}

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

.ranking-grid.full {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 132px;
}

.movie-card.compact .card-poster {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.compact .tag-row {
  display: none;
}

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

.category-grid.large {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  min-height: 196px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-title {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
}

.category-title:hover {
  color: var(--orange-dark);
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  padding: 48px 0;
}

.orange-hero {
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.blue-hero {
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.green-hero {
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 48px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.detail-breadcrumb {
  margin: 24px 0;
  color: #6b7280;
}

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

.filter-panel {
  margin-bottom: 24px;
  padding: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0 14px;
}

.filter-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-wrap {
  padding-bottom: 44px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.big-play {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  max-width: 90%;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.player-message.is-visible {
  opacity: 1;
}

.movie-detail-card,
.poster-panel,
.related-panel {
  padding: 24px;
}

.movie-detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.lead-text {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.movie-detail-card h2,
.related-panel h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.movie-detail-card p {
  margin: 0 0 14px;
  color: #4b5563;
}

.detail-tags {
  margin: 16px 0;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.block-btn {
  width: 100%;
  margin-top: 16px;
}

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

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

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.related-thumb img {
  width: 72px;
  height: 100px;
  object-fit: cover;
}

.related-item a {
  font-weight: 800;
}

.related-item a:hover {
  color: var(--orange-dark);
}

.related-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0 22px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #374151;
  font-weight: 700;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ranking-grid.full,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

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

  .hero-stage {
    height: 460px;
  }

  .quick-entry,
  .category-grid,
  .category-grid.large,
  .ranking-grid,
  .ranking-grid.full {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    display: grid;
  }
}

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

  .site-nav {
    gap: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-stage {
    height: 560px;
    border-radius: 18px;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 26px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-arrow {
    display: none;
  }

  .quick-entry,
  .category-grid,
  .category-grid.large,
  .ranking-grid,
  .ranking-grid.full {
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card.compact {
    grid-template-columns: 82px 1fr;
  }

  .section-head {
    display: grid;
  }

  .page-hero {
    padding: 34px 0;
  }

  .movie-detail-card,
  .poster-panel,
  .related-panel {
    padding: 18px;
  }
}
