:root {
  color-scheme: light;
  --bg: #fffaf2;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #f59e0b;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.13);
  --shadow-soft: 0 10px 28px rgba(146, 64, 14, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fffaf2 100%);
  color: var(--ink);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(120, 53, 15, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 700;
  color: #78350f;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: #fef3c7;
  color: #b45309;
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  width: min(360px, 34vw);
  display: flex;
  align-items: center;
  border: 1px solid #fed7aa;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(217, 119, 6, 0.08);
}

.header-search input,
.mobile-search input,
.search-panel input,
.page-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.mobile-search button,
.search-panel button,
.page-filter button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #92400e;
  background: #fef3c7;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

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

.mobile-search {
  display: flex;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.hero-shell {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(120, 53, 15, 0.65), rgba(0, 0, 0, 0.32)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, #fff7ed);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 86px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.28);
}

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

.primary-btn:hover,
.secondary-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(146, 64, 14, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fed7aa;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: block;
  padding: 12px 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 26px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hero-dot.active {
  width: 26px;
  border-radius: 999px;
  background: #f59e0b;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.quick-search-section {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.search-panel h2,
.section-heading h2,
.category-topline h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.prose-card h2 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.search-panel h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.search-panel form,
.page-filter {
  display: flex;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  overflow: hidden;
  background: #fffbeb;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.section-heading.small h2 {
  font-size: 26px;
}

.more-link {
  min-height: 40px;
  color: #b45309;
  background: #fef3c7;
}

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

.category-pill {
  min-height: 148px;
  padding: 20px;
  border: 1px solid #fde68a;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-pill strong {
  display: block;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 20px;
}

.category-pill span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

.compact-grid,
.preview-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ffedd5;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--brand);
}

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

.movie-card.compact .card-body {
  padding: 12px;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

.movie-card.compact .card-body p {
  display: none;
}

.movie-card.compact .tag-row span:nth-child(n + 3) {
  display: none;
}

.side-column {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 92px;
  border: 1px solid #fde68a;
  border-radius: 26px;
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.rank-list,
.rank-board {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(3px);
  background: #fef3c7;
}

.rank-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffedd5;
}

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

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  font-size: 15px;
}

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

.page-main {
  min-height: 70vh;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 66px 24px 26px;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(36px, 5vw, 60px);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.category-overview {
  display: grid;
  gap: 36px;
}

.category-section {
  padding: 24px;
  border: 1px solid #fde68a;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.category-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.category-page-hero .page-filter,
.search-page-form {
  max-width: 720px;
  margin-top: 24px;
}

.no-result {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: var(--muted);
  background: #fff7ed;
  text-align: center;
}

.no-result.show {
  display: block;
}

.rank-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.rank-column {
  display: grid;
  gap: 10px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 52px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 36px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #ffedd5;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  margin: 18px 0 0;
  color: #374151;
  font-size: 20px;
}

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

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

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: #92400e;
  font-weight: 900;
}

.player-section {
  padding-top: 12px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.48) saturate(1.1);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 48%);
}

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.38);
  font-size: 36px;
  text-indent: 5px;
}

.detail-content {
  padding-top: 18px;
}

.prose-card {
  padding: 30px;
  border: 1px solid #fde68a;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.prose-card h2 {
  margin-top: 22px;
  font-size: 28px;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p {
  margin: 12px 0 0;
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid #fde68a;
  background: #fffbeb;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  font-size: 14px;
}

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

  .header-search {
    width: min(420px, 48vw);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

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

  .layout-split {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 12px 16px;
  }

  .header-search {
    display: none;
  }

  .hero-shell,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 60px 18px 112px;
    gap: 24px;
  }

  .hero-poster {
    max-width: 260px;
    margin: 0 auto;
    transform: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-inner,
  .page-hero,
  .breadcrumb,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .preview-grid,
  .rank-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .category-topline,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-desc,
  .detail-one-line {
    font-size: 16px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .preview-grid,
  .rank-board {
    grid-template-columns: 1fr;
  }

  .search-panel form,
  .page-filter {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .header-search button,
  .mobile-search button,
  .search-panel button,
  .page-filter button {
    width: 100%;
  }

  .player-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
