:root {
  --bg: #fff7ed;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-deep: #dc2626;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand);
}

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

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter input,
.search-page-form input {
  border: 1px solid #fdba74;
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 210px;
  outline: none;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.08);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.inline-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

.secondary-button,
.ghost-button,
.section-link {
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section-link {
  color: var(--brand-dark);
  background: #ffedd5;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: #ffedd5;
  color: var(--brand-dark);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 18px;
  gap: 14px;
  flex-direction: column;
}

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

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 760px;
  padding: 44px;
  color: #ffffff;
}

.hero-tags,
.detail-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag,
.tag-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tag {
  background: var(--brand);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
}

.tag-pill {
  color: var(--brand-dark);
  background: #ffedd5;
  padding: 7px 12px;
  font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

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

.hero-meta,
.card-meta,
.detail-meta-card,
.footer-links,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.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.is-active {
  width: 34px;
  background: #ffffff;
}

.content-section,
.category-overview-block,
.split-section,
.page-hero,
.detail-title-block,
.detail-text-block,
.detail-info-grid,
.related-section {
  margin-top: 54px;
}

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

.section-head h2,
.page-hero h1,
.detail-title-block h1,
.detail-text-block h2 {
  margin: 0;
  color: #111827;
}

.section-head h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title-block p,
.detail-text-block p,
.category-banner p,
.search-panel p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.movie-card.large .card-poster {
  aspect-ratio: 16 / 10;
}

.movie-card.compact .card-poster {
  aspect-ratio: 16 / 10;
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .card-shade {
  opacity: 1;
}

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.card-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  opacity: 0;
  transition: all 0.25s ease;
}

.movie-card-link:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  flex: 1;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
}

.card-genre {
  margin-top: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile,
.category-banner,
.search-panel,
.ranking-panel,
.page-hero,
.detail-title-block,
.detail-text-block,
.detail-info-grid,
.player-card,
.detail-meta-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-tile,
.category-banner {
  display: grid;
  gap: 18px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile h3,
.category-banner h2 {
  margin: 0 0 8px;
}

.category-tile p,
.category-banner p {
  margin: 0;
  font-size: 14px;
}

.category-banner span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand-dark);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 24px;
}

.ranking-panel,
.search-panel {
  padding: 24px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 42px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row a:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

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

.ranking-row h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.ranking-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-row span {
  color: #6b7280;
  font-size: 12px;
}

.ranking-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.search-panel h2 {
  margin-top: 0;
  font-size: 30px;
}

.big-search {
  margin-top: 20px;
}

.big-search input {
  flex: 1;
  min-width: 0;
}

.quick-links {
  margin-top: 18px;
}

.quick-links a {
  color: var(--brand-dark);
  background: #ffedd5;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.page-hero {
  padding: 36px;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 38%), #ffffff;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  font-size: 17px;
}

.category-hero {
  display: grid;
  gap: 16px;
}

.inline-filter input {
  width: min(520px, 100%);
}

.filter-chip {
  border: 0;
  color: var(--brand-dark);
  background: #ffedd5;
  padding: 9px 14px;
  cursor: pointer;
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-shell {
  max-width: 1180px;
}

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

.player-card {
  padding: 12px;
  background: #0f172a;
}

.player-stage {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 18px;
  background: #000000;
  cursor: pointer;
  outline: none;
}

.player-stage:focus-visible {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.5);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
}

.player-button {
  position: absolute;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.45);
  cursor: pointer;
}

.detail-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.detail-meta-card {
  padding: 16px;
  justify-content: center;
}

.detail-meta-card span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: var(--brand-dark);
  font-weight: 900;
}

.detail-title-block {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.detail-title-block h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-title-block p {
  font-size: 18px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.detail-info-grid div {
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-info-grid span {
  font-weight: 900;
}

.detail-text-block {
  padding: 30px;
}

.detail-text-block h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.detail-text-block p {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 60px;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px;
}

.footer-brand {
  font-size: 22px;
  color: #ffffff;
}

.footer-shell p {
  color: #9ca3af;
  max-width: 720px;
  line-height: 1.8;
}

.footer-links a {
  color: #e5e7eb;
  font-weight: 800;
}

.copyright {
  margin-bottom: 0;
}

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

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

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

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

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell {
    min-height: 66px;
  }

  .hero-slider {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 30px 24px 50px;
  }

  .hero-control {
    width: 40px;
    height: 40px;
  }

  .movie-grid,
  .movie-grid.all-grid,
  .compact-grid,
  .category-grid,
  .split-section,
  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .player-stage,
  .movie-video {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 18px 12px 54px;
  }

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

  .hero-slider {
    min-height: 500px;
    border-radius: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

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

  .hero-actions,
  .big-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.all-grid,
  .compact-grid,
  .category-grid,
  .split-section,
  .detail-info-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .ranking-row a {
    grid-template-columns: 34px 74px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 74px;
    height: 54px;
  }

  .page-hero,
  .detail-title-block,
  .detail-text-block,
  .ranking-panel,
  .search-panel {
    padding: 22px;
  }

  .player-stage,
  .movie-video {
    min-height: 260px;
  }
}
