
:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #dc2626;
  --amber: #f59e0b;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
  --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

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

.brand-text {
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ea580c;
  background: #fff7ed;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  overflow: hidden;
  min-width: 280px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ea580c;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: -16px;
  background-position: center;
  background-size: cover;
  opacity: 0.32;
  filter: blur(10px);
  transform: scale(1.06);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.38), #111827 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 56px;
  height: 100%;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 7px 12px;
  color: #fdba74;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-hero p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 26px rgba(220, 38, 38, 0.24);
}

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

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

.ghost-button.light {
  color: #111827;
  border-color: #ffffff;
  background: #ffffff;
}

.primary-button.full {
  width: 100%;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  color: #ffffff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
  border: 0;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, #374151, #111827);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.hero-poster::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

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

.quick-cats {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.quick-cats-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0;
}

.quick-cats-row a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #ea580c;
  font-weight: 700;
  border-radius: 999px;
  background: #fff7ed;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  padding: 44px 0;
}

.home-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.content-section,
.page-section {
  padding: 42px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading.between {
  justify-content: space-between;
}

.section-heading > span,
.section-heading > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ea580c;
  font-weight: 900;
  border-radius: 14px;
  background: #ffedd5;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.card-grid.all-grid {
  align-items: stretch;
}

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

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

.card-poster,
.wide-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

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

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

img.is-missing-image {
  display: none !important;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ea580c;
  font-size: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease;
}

.card-play::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.card-play {
  isolation: isolate;
}

.card-play::after {
  content: "▶";
  position: relative;
  z-index: 1;
  margin-left: 4px;
}

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

.card-year,
.rank-index {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.70);
}

.card-year {
  left: 12px;
}

.rank-index {
  right: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:first-child {
  color: #ea580c;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.card-body h3,
.wide-body h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.wide-body p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.wide-card {
  display: grid;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.wide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.wide-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
  font-weight: 800;
}

.wide-body {
  padding: 20px;
}

.pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #fff7ed;
}

.wide-meta {
  margin-top: 14px;
  color: #9ca3af;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-glow {
  position: absolute;
  right: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(220, 38, 38, 0.18));
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  position: relative;
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.category-card strong {
  position: relative;
  display: inline-flex;
  margin-top: 16px;
  color: #ea580c;
}

.sidebar-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.sidebar-card.accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.sidebar-card p {
  margin: 0 0 18px;
  line-height: 1.7;
}

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

.mini-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-link:last-child {
  border-bottom: 0;
}

.mini-link b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.mini-link span {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-link em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.sidebar-more {
  display: inline-flex;
  margin-top: 18px;
  color: #ea580c;
  font-weight: 800;
}

.sidebar-card.accent .sidebar-more {
  color: #ffffff;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.small-hero {
  padding: 76px 0;
}

.small-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.result-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  min-height: 440px;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  padding: 76px 0 90px;
}

.detail-title-row {
  max-width: 880px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  margin-top: -58px;
  position: relative;
  z-index: 3;
}

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

.player-card,
.info-card,
.poster-panel {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  color: #ea580c;
  font-size: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
}

.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #111827;
}

.player-bar button {
  border: 0;
  padding: 9px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.player-bar button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.player-bar span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.info-card {
  padding: 26px;
}

.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.info-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.movie-info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.movie-info-list dt {
  color: #6b7280;
  font-size: 13px;
}

.movie-info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.tag-cloud,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.meta-badge {
  display: inline-flex;
  padding: 8px 12px;
  color: #ea580c;
  font-weight: 800;
  border-radius: 999px;
  background: #fff7ed;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

.poster-panel-body {
  padding: 20px;
}

.poster-panel-body h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.poster-panel-body .badge-row {
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 42px;
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .card-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .home-sidebar,
  .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 680px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 0 90px;
  }

  .hero-poster {
    max-width: 260px;
  }

  .wide-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-bar {
    min-height: 64px;
  }

  .brand-text {
    font-size: 16px;
  }

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

  .hero-actions,
  .page-actions,
  .hero-search,
  .player-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

  .card-grid,
  .category-grid,
  .home-sidebar,
  .detail-side,
  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .small-hero {
    padding: 54px 0;
  }

  .detail-hero-inner {
    padding: 54px 0 84px;
  }

  .player-bar span {
    margin-left: 0;
  }
}
