* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.18), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.10);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) scale(1.06);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ea580c, #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: #78716c;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  color: #57534e;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #d97706);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.23);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #7c2d12;
}

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

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: #7c2d12;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.18);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(180, 83, 9, 0.78), rgba(245, 158, 11, 0.62)),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.22), transparent 26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 56px;
  padding: 76px 0 88px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

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

.ghost-btn.light {
  color: #9a3412;
  border-color: rgba(251, 146, 60, 0.34);
  background: rgba(255, 237, 213, 0.72);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(67, 20, 7, 0.48);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img,
.poster-link img,
.rank-poster img,
.detail-cover-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-body {
  margin-top: 34px;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 52px rgba(146, 64, 14, 0.10);
  backdrop-filter: blur(16px);
}

.quick-search h2,
.section-head h2,
.category-overview-head h2,
.story-panel h2,
.info-panel h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.quick-search p,
.section-head p,
.category-overview-head p,
.story-panel p,
.info-panel dd,
.page-hero p {
  color: #78716c;
  line-height: 1.75;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(420px, 100%);
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  border: 2px solid rgba(251, 146, 60, 0.18);
  background: #ffffff;
}

.search-box.full {
  flex: 1 1 100%;
}

.search-box span {
  color: #9a3412;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 0;
  color: #1f2937;
  outline: 0;
  background: transparent;
}

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

.section-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.26);
}

.section-more,
.text-link {
  color: #ea580c;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #f97316, #b45309);
  box-shadow: 0 20px 38px rgba(146, 64, 14, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 54px rgba(146, 64, 14, 0.24);
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong,
.category-tile em {
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(146, 64, 14, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

.poster-link img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(124, 45, 18, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-kicker {
  margin-bottom: 8px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
}

.movie-title {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-title a:hover,
.rank-copy a:hover,
.breadcrumbs a:hover,
.footer-links a:hover {
  color: #ea580c;
}

.movie-desc {
  min-height: 66px;
  margin: 0 0 14px;
  color: #78716c;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.62;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 62px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(146, 64, 14, 0.08);
}

.rank-index {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, #f97316, #d97706);
}

.rank-poster {
  border-radius: 16px;
  overflow: hidden;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.rank-copy p {
  margin: 0 0 10px;
  color: #78716c;
  line-height: 1.58;
}

.rank-meta span {
  color: #9a3412;
  background: #ffedd5;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 60px;
  border-radius: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #c2410c, #d97706 58%, #f59e0b);
  box-shadow: 0 28px 72px rgba(146, 64, 14, 0.22);
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.ranking-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #7c2d12, #c2410c 54%, #f97316);
}

.category-directory {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: 0 20px 48px rgba(146, 64, 14, 0.10);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.filter-panel {
  flex-direction: column;
  align-items: stretch;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #d97706);
  transform: translateY(-1px);
}

.empty-result {
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 20px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs strong {
  color: #ffffff;
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-cover-card {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(67, 20, 7, 0.34);
}

.player-section {
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 28px 72px rgba(17, 24, 39, 0.28);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 20px 46px rgba(217, 119, 6, 0.38);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 24px;
}

.story-panel,
.info-panel {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.09);
}

.info-panel {
  grid-row: span 2;
}

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.info-panel div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #fed7aa;
}

.info-panel dt {
  color: #ea580c;
  font-weight: 950;
}

.info-panel dd {
  margin: 0;
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0;
  color: #d6d3d1;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fb923c;
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: #a8a29e;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #e7e5e4;
  background: rgba(255, 255, 255, 0.06);
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .hero-content {
    gap: 30px;
    min-height: 760px;
  }

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

  .panel,
  .section-head,
  .category-overview-head,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

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

  .rank-item {
    grid-template-columns: 52px 72px minmax(0, 1fr);
  }

  .rank-item .text-link {
    grid-column: 2 / -1;
    justify-content: start;
    min-height: 34px;
    padding: 0;
  }

  .page-hero,
  .detail-hero {
    padding: 38px 24px;
  }
}

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

  .brand-subtitle {
    display: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }

  .rank-item .text-link {
    grid-column: 1 / -1;
  }

  .movie-desc {
    min-height: 0;
  }
}
