:root {
  --site-bg: #fffaf0;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --border: #f1d8b8;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.28);
  font-size: 14px;
}

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

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

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.header-search input,
.search-panel input,
.filter-box input {
  width: 100%;
  border: 1px solid #f1d8b8;
  border-radius: 999px;
  padding: 11px 16px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.search-panel button,
.filter-box button,
.hero-button,
.section-link,
.category-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.search-panel button:hover,
.filter-box button:hover,
.hero-button:hover,
.section-link:hover,
.category-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(180, 83, 9, 0.28);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 28px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.9s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 72vh;
  color: #ffffff;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 80px 0;
}

.hero-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.9);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 14px;
}

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

.hero-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
}

.section-intro {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow);
}

.movie-link,
.poster-frame,
.movie-info,
.movie-title,
.movie-tags {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.movie-card-compact .poster-frame {
  aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0.7;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 15px;
}

.movie-title {
  overflow: hidden;
  min-height: 24px;
  margin-bottom: 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card:hover .movie-title {
  color: var(--brand);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.62;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-top: 6px;
  color: #6b7280;
  gap: 6px;
}

.movie-meta span {
  background: #fff7ed;
  color: #9a3412;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.movie-tags span,
.tag-cloud span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 36px rgba(180, 83, 9, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.category-samples {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.category-samples img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #fef3c7;
}

.banner-page {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #92400e, #f97316);
}

.banner-page h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.banner-page p {
  max-width: 780px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.8;
}

.search-panel,
.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(180, 83, 9, 0.08);
}

.search-panel form,
.filter-box form {
  display: flex;
  width: 100%;
  gap: 12px;
}

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

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 74px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.08);
}

.rank-no {
  color: #b45309;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 82px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--brand);
}

.rank-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-player-wrap {
  background: #050505;
}

.detail-player {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.detail-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-cover.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.video-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
  gap: 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-title {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  color: #92400e;
}

.detail-meta span {
  background: #fff7ed;
}

.content-card,
.info-card {
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.08);
}

.content-card + .content-card,
.info-card + .info-card {
  margin-top: 18px;
}

.content-card h2,
.info-card h2,
.info-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.content-card p,
.info-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed #f1d8b8;
  padding-bottom: 10px;
}

.info-list dt {
  color: #6b7280;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 32px;
}

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

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.08);
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  border: 1px dashed #f1d8b8;
  border-radius: 22px;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.active {
  display: block;
}

@media (max-width: 1080px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .header-search {
    width: 240px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 18px;
    padding: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 12px;
    padding: 12px 14px;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: #fff7ed;
  }

  .header-search {
    display: none;
  }

  .hero-content {
    align-items: end;
  }

  .hero-copy {
    padding: 110px 0 78px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 54px 68px 1fr;
  }

  .rank-row .category-button {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .rank-row img {
    width: 68px;
    height: 94px;
  }
}

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

  .site-logo {
    font-size: 19px;
  }

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-meta span,
  .detail-meta span,
  .movie-meta span {
    font-size: 12px;
  }

  .movie-grid,
  .movie-grid.medium,
  .related-grid,
  .category-grid {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-one-line,
  .movie-tags {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .search-panel form,
  .filter-box form {
    flex-direction: column;
  }

  .banner-page {
    padding: 48px 0;
  }

  .content-card,
  .info-card {
    padding: 18px;
  }
}
