:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --amber: #f59e0b;
  --rose: #ef4444;
  --dark: #111827;
  --soft: #fff3e2;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.logo-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
}

.header-search button,
.quick-search button,
.primary-btn {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
  cursor: pointer;
}

.header-search button {
  padding: 9px 16px;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--ink);
  font-size: 22px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #4b5563;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b 42%, #ef4444);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 86px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  inset: -24px calc(50% - 50vw);
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.1);
  opacity: 0.26;
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 24%), linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(245, 158, 11, 0.76), rgba(239, 68, 68, 0.82));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-content .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  margin: 22px 0 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.12;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.hero-tags,
.card-meta,
.tag-row,
.hero-actions,
.tag-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.hero-actions {
  margin-top: 30px;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-poster {
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 36px 80px rgba(127, 29, 29, 0.34);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.16);
}

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

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

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

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.quick-search {
  width: min(900px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 6;
}

.quick-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quick-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 18px;
  border-radius: 20px;
  background: #fff7ed;
  font-size: 16px;
}

.quick-search button {
  padding: 0 28px;
  font-size: 16px;
}

.content-section,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.soft-bg {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.info-card h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--orange);
  font-weight: 900;
}

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

.featured-grid,
.rank-grid,
.rank-list {
  display: grid;
  gap: 20px;
}

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

.movie-card,
.wide-card,
.category-card,
.category-tile,
.story-card,
.info-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.category-tile:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

.poster-link img,
.wide-poster img,
.category-tile img,
.category-card img,
.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.score-badge {
  right: 10px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.9);
}

.rank-badge {
  left: 10px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
}

.card-body h3 a:hover,
.wide-body h3 a:hover,
.breadcrumb a:hover,
.info-card a:hover {
  color: var(--orange);
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  gap: 7px;
  color: #78716c;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #d6d3d1;
}

.tag-row,
.tag-cloud {
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.wide-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 204px;
}

.wide-poster {
  overflow: hidden;
  background: #fed7aa;
}

.wide-body {
  position: relative;
  padding: 22px;
}

.wide-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.wide-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rank-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(249, 115, 22, 0.14);
  font-size: 52px;
  font-weight: 1000;
  line-height: 1;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(17, 24, 39, 0.8));
  z-index: -1;
}

.category-tile img,
.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-tile span,
.category-tile em {
  display: block;
  padding: 0 18px;
  color: #fff;
}

.category-tile span {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-bottom: 18px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
}

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

.category-card {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  isolation: isolate;
}

.category-card h2 {
  margin: 10px 0;
  color: #fff;
  font-size: 34px;
}

.category-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 26%), linear-gradient(135deg, #f97316, #f59e0b 45%, #ef4444);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.page-hero .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  z-index: 8;
}

.filter-inner {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-inner input,
.filter-inner select {
  min-width: 0;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  outline: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff7ed;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.08);
  opacity: 0.38;
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.78));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.34);
}

.detail-info .kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.player-section {
  padding-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 40px rgba(249, 115, 22, 0.34);
  font-size: 32px;
  text-indent: 5px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-top: 20px;
}

.story-card,
.info-card {
  padding: 26px;
}

.story-card p {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.info-card {
  position: sticky;
  top: 100px;
  grid-row: span 2;
}

.info-card h2,
.story-card h2 {
  font-size: 26px;
}

.info-card dl {
  margin: 16px 0 0;
}

.info-card dt {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 900;
}

.info-card dd {
  margin: 4px 0 14px;
  color: #374151;
  font-weight: 800;
}

.related-section {
  padding-top: 28px;
}

.movie-card.compact .card-line {
  min-height: auto;
  -webkit-line-clamp: 1;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
}

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

.site-footer p {
  max-width: 440px;
  margin: 0;
  color: #9ca3af;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #9ca3af;
}

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

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

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

.empty-result {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed #fdba74;
  border-radius: 20px;
  color: #9a3412;
  background: #fff7ed;
  text-align: center;
  font-weight: 800;
}

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

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

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

  .hero-poster,
  .detail-cover {
    max-width: 330px;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text em {
    display: none;
  }

  .hero-slider {
    min-height: 0;
  }

  .hero-slide {
    gap: 28px;
    padding: 46px 0 76px;
  }

  .hero-actions,
  .hero-tags {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .quick-search form,
  .filter-inner,
  .footer-inner,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .featured-grid,
  .rank-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 112px 1fr;
    min-height: 160px;
  }

  .wide-body {
    padding: 16px;
  }

  .wide-body h3 {
    font-size: 18px;
  }

  .wide-body p {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }

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

  .detail-cover {
    width: 74%;
  }

  .player-shell {
    border-radius: 18px;
  }

  .info-card {
    position: static;
  }
}
