* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fefce8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #92400e;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #4b5563;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #d97706;
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: #d97706;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 99px;
}

.nav-subline {
  border-top: 1px solid rgba(251, 191, 36, 0.18);
}

.nav-subline-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
  color: #9a3412;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-subline-inner::-webkit-scrollbar {
  display: none;
}

.nav-subline-inner a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-subline-inner a:hover {
  background: rgba(251, 191, 36, 0.24);
  transform: translateY(-1px);
}

.section,
.hero-inner,
.footer-inner,
.footer-bottom,
.page-hero,
.detail-wrap,
.filter-panel,
.sitemap-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 45%, #fef9c3 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.5;
}

.hero::before {
  width: 240px;
  height: 240px;
  top: 28px;
  left: 7%;
  background: #f59e0b;
}

.hero::after {
  width: 300px;
  height: 300px;
  right: 5%;
  bottom: -90px;
  background: #fb923c;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  color: #78350f;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: #9a3412;
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
  color: #b45309;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.1);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 28px 0;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
}

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

.hero-search button {
  border: 0;
  cursor: pointer;
}

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

.hero-stat {
  min-width: 118px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
}

.hero-stat strong {
  display: block;
  color: #78350f;
  font-size: 26px;
}

.hero-stat span {
  color: #b45309;
  font-size: 13px;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
}

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(124, 45, 18, 0.2);
}

.hero-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 10px;
}

.hero-card-copy h2 {
  margin: 12px 0;
  color: #7c2d12;
  font-size: 32px;
  line-height: 1.15;
}

.hero-card-copy p {
  color: #7c2d12;
  font-size: 16px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.36);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #d97706;
}

.section {
  padding: 64px 0;
}

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

.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6b7280;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(146, 64, 14, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #fef3c7;
}

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

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

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.movie-card-body {
  padding: 16px;
}

.movie-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-pills span,
.tag-row span,
.detail-tag,
.index-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.movie-pills span:nth-child(2n),
.detail-tag:nth-child(2n),
.index-pill:nth-child(2n) {
  color: #1d4ed8;
  background: #dbeafe;
}

.movie-card h3,
.horizontal-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a,
.horizontal-card h3 a {
  transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover {
  color: #d97706;
}

.movie-card p,
.horizontal-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 13px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 116px 1fr;
}

.movie-card-compact .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

.gradient-band {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.top-item {
  display: grid;
  grid-template-columns: 52px 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(146, 64, 14, 0.13);
}

.top-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #f97316);
  font-weight: 900;
}

.top-item img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.top-copy strong,
.top-copy em {
  display: block;
}

.top-copy strong {
  color: #111827;
  font-size: 17px;
}

.top-copy em {
  margin-top: 4px;
  color: #9ca3af;
  font-style: normal;
  font-size: 13px;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.horizontal-cover img {
  width: 180px;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
}

.text-link {
  color: #d97706;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 28px;
  color: #78350f;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: 0 18px 40px rgba(146, 64, 14, 0.1);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.28);
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-tile span {
  position: relative;
  z-index: 1;
}

.category-tile p {
  margin: 0 0 18px;
  color: #9a3412;
}

.category-tile span {
  font-weight: 800;
}

.page-hero {
  padding: 54px 0 36px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
  max-width: 850px;
  color: #6b7280;
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 36px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 180px 140px;
  gap: 12px;
}

.filter-row input,
.filter-row select,
.filter-row button {
  min-height: 46px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #ffffff;
  padding: 0 14px;
  color: #374151;
}

.filter-row button {
  color: #ffffff;
  background: #d97706;
  cursor: pointer;
  font-weight: 800;
}

.filter-result {
  margin: 12px 0 0;
  color: #92400e;
  font-weight: 700;
}

.empty-state {
  display: none;
  margin: 24px 0;
  padding: 28px;
  border-radius: 24px;
  color: #92400e;
  background: #fffbeb;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  color: #92400e;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.detail-wrap {
  padding: 42px 0 64px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
  padding: 24px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 60px rgba(146, 64, 14, 0.12);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.detail-copy h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 56px);
}

.detail-copy p {
  color: #4b5563;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.detail-block h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.player-section {
  margin: 34px 0;
  padding: 24px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #451a03, #9a3412 55%, #ea580c);
  box-shadow: 0 28px 64px rgba(154, 52, 18, 0.22);
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.54) 100%);
  cursor: pointer;
}

.player-start span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  font-size: 38px;
  transform: translateX(3px);
}

.player-start.is-hidden {
  display: none;
}

.sitemap-wrap {
  padding-bottom: 64px;
}

.index-list {
  columns: 4 220px;
  column-gap: 26px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #374151;
}

.index-list a:hover {
  color: #d97706;
  background: #ffffff;
}

.site-footer {
  color: #fffbeb;
  background: linear-gradient(135deg, #78350f, #9a3412 52%, #7c2d12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand p {
  color: #fed7aa;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #fffbeb;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: #fed7aa;
}

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

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 237, 213, 0.18);
  color: #fed7aa;
}

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

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

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

  .hero-showcase {
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  }

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

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

  .nav-links a:hover {
    background: #fffbeb;
  }

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

  .hero-card img {
    min-height: 260px;
  }

  .hero-showcase {
    min-height: 650px;
  }

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

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

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero,
  .horizontal-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .horizontal-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 20px;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .hero-search {
    flex-direction: column;
    gap: 8px;
    border-radius: 22px;
  }

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

  .hero-showcase {
    min-height: 610px;
  }

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

  .movie-card-compact {
    grid-template-columns: 100px 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .top-item {
    grid-template-columns: 44px 62px 1fr;
  }

  .top-item img {
    width: 62px;
    height: 78px;
  }

  .player-start span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
