:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --night: #111827;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  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(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-dark), var(--red));
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffffff;
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}

.nav-link {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fed7aa;
  opacity: 1;
}

.header-search,
.mobile-search,
.inline-filter,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.inline-filter input,
.search-panel input,
.search-panel select {
  width: 240px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
}

.header-search button,
.mobile-search button,
.inline-filter button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-filter button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  background: #000000;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-link {
  display: block;
  padding: 10px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  color: #ffffff;
}

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

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags a,
.hero-tags span,
.detail-tags span,
.meta-line span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.primary-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.primary-link,
.section-more {
  color: #ffffff;
  background: var(--orange);
}

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

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.78);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.page-section {
  margin-top: 56px;
}

.no-top {
  margin-top: 0;
}

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

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

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-card-small .card-cover {
  height: 160px;
}

.movie-card-large .card-cover {
  height: 340px;
}

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

.movie-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.07);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.feature-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.year-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 6px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.card-body {
  padding: 14px;
}

.card-body h3,
.compact-card h3,
.rank-info h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

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

.category-zone {
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.category-strip-block {
  margin-top: 28px;
}

.category-title {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.category-title:hover,
.category-overview-head h2 a:hover {
  color: var(--orange-dark);
}

.category-strip-block > p,
.category-overview-head p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.compact-card,
.rank-row,
.article-card,
.side-card,
.category-overview-card {
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.compact-card a,
.rank-row a {
  display: flex;
  gap: 16px;
  padding: 14px;
}

.compact-card img,
.rank-row img {
  width: 160px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.page-main {
  padding-top: 28px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.crumb span::before,
.crumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: #9ca3af;
}

.crumb.dark {
  color: #d1d5db;
}

.page-hero {
  position: relative;
  margin-bottom: 36px;
  border-radius: 24px;
  padding: 46px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-dark), var(--red));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #fff7ed;
}

.inline-filter,
.search-panel {
  margin-top: 22px;
}

.search-panel {
  align-items: stretch;
  max-width: 860px;
}

.search-panel input {
  flex: 1 1 auto;
  width: auto;
}

.search-panel select {
  width: 180px;
  border-radius: 999px;
}

.category-overview-card {
  margin-bottom: 28px;
  padding: 22px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
}

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

.rank-row a {
  align-items: center;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 18px;
  font-weight: 900;
}

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

.detail-main {
  background: #f9fafb;
}

.detail-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #000000;
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(1px);
  opacity: 0.62;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #111827, rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.3));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 28px 0 56px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 34px;
  align-items: end;
  margin-top: 58px;
}

.detail-poster {
  width: 100%;
  height: 410px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.detail-copy {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 790px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-content {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

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

.player-card video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.96);
  font-size: 34px;
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.38);
}

.player-card.is-playing .player-overlay {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 28px;
}

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

.article-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
}

.article-card p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-weight: 700;
  font-size: 13px;
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card li + li {
  border-top: 1px solid var(--line);
}

.side-card a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 44px 0;
}

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

.site-footer p {
  margin: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1100px) {
  .grid-6,
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    bottom: 60px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

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

  .movie-card-large .card-cover,
  .card-cover {
    height: 230px;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-poster {
    max-width: 280px;
    height: 390px;
  }

  .search-panel,
  .inline-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel select,
  .inline-filter input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .brand {
    font-size: 21px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content h1 {
    font-size: 31px;
  }

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

  .grid-3,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .movie-card-small .card-cover,
  .card-cover,
  .movie-card-large .card-cover {
    height: 190px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .page-hero {
    padding: 30px 22px;
  }

  .compact-card a,
  .rank-row a {
    gap: 12px;
    padding: 12px;
  }

  .compact-card img,
  .rank-row img {
    width: 112px;
    height: 76px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
  }
}
