* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 32%, #fff7ed 100%);
}

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, 237, 213, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #92400e;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  font-size: 16px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

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

.header-search input,
.mobile-search input {
  width: 220px;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
}

.header-search button,
.mobile-search button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: #d97706;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  font-weight: 700;
  border-top: 1px solid #fed7aa;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #f59e0b, #ea580c);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(251, 191, 36, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.92) 0%, rgba(146, 64, 14, 0.72) 42%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 640px;
  padding: 120px 24px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: #fffbeb;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.95);
  color: #9a3412;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.24);
}

.primary-button.light {
  color: #d97706;
  background: #ffffff;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.48);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

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

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

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

.content-section,
.feature-section,
.player-section,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.soft-bg {
  max-width: none;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.soft-bg > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2,
.feature-grid h2,
.card-body h2,
.category-card h2,
.detail-copy h2,
.ranking-info h2 {
  margin: 0 0 10px;
  color: #111827;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.section-more {
  color: #d97706;
  background: #fff7ed;
}

.feature-grid,
.category-grid,
.movie-grid {
  display: grid;
  gap: 24px;
}

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

.feature-grid article {
  text-align: center;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.08);
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #fde68a;
  font-size: 30px;
}

.feature-grid p,
.card-body p,
.category-card p,
.detail-copy p,
.ranking-info p {
  color: #6b7280;
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(146, 64, 14, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #d97706;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-body h2 {
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.ranking-info h2 a:hover {
  color: #d97706;
}

.card-body p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row.large {
  margin: 18px 0 28px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.16);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #fef3c7;
  font-size: 28px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #d97706;
  font-size: 14px;
  font-weight: 700;
}

.rank-list.compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 68px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
}

.rank-no,
.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-item img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  font-weight: 900;
}

.rank-score {
  color: #d97706;
  font-weight: 900;
}

.cta-section,
.page-hero {
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(253, 230, 138, 0.45), transparent 28%),
    linear-gradient(135deg, #d97706, #ea580c);
}

.cta-section {
  padding: 82px 24px;
}

.cta-section h2,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.cta-section p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #fffbeb;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 86px 24px;
}

.category-hero,
.rank-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #92400e, #d97706 55%, #ea580c);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(5, minmax(130px, auto)) auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.10);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 10px 12px;
  color: #374151;
  background: #fffaf0;
  outline: none;
}

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

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

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

.hidden {
  display: none !important;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a {
  color: #d97706;
  font-weight: 800;
}

.detail-shell {
  padding-bottom: 36px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 46px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(146, 64, 14, 0.24);
}

.detail-info h1 {
  margin: 0 0 18px;
  color: #111827;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  font-weight: 900;
  font-size: clamp(18px, 3vw, 28px);
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #d97706;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

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

.detail-copy article {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.10);
}

.detail-copy p {
  margin: 0;
  font-size: 17px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 52px 86px 1fr 92px;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.ranking-poster img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-info h2 {
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
}

.ranking-score {
  justify-self: end;
  color: #d97706;
  font-weight: 900;
  font-size: 18px;
}

.site-footer {
  color: #fef3c7;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.footer-logo {
  color: #fef3c7;
}

.footer-brand p {
  max-width: 560px;
  color: #fde68a;
  line-height: 1.8;
}

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

.footer-columns h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-columns a {
  display: block;
  margin: 9px 0;
  color: #fde68a;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fbbf24;
  border-top: 1px solid rgba(251, 191, 36, 0.25);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.25);
  cursor: pointer;
}

.back-top.show {
  display: block;
}

@media (max-width: 1180px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .feature-grid,
  .detail-copy,
  .footer-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading.split,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 44px 78px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    justify-self: start;
  }
}

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

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

  .hero-content {
    padding: 96px 18px 86px;
  }

  .content-section,
  .feature-section,
  .player-section,
  .detail-shell {
    padding: 52px 16px;
  }

  .movie-grid.dense,
  .movie-grid,
  .category-grid,
  .rank-list.compact,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 60px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

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