:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --soft: #fffbeb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1e7d8;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: #f59e0b;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(180, 83, 9, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  border: 1px solid rgba(180, 83, 9, 0.18);
  color: var(--brand-dark);
  background: #fff7ed;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-button:hover {
  background: var(--brand);
  color: #ffffff;
}

.menu-toggle {
  display: none;
}

.header-search {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  padding: 14px 0;
}

.header-search.is-open {
  display: block;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  flex: 1;
}

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

.search-form button {
  border: 0;
  color: #ffffff;
  background: var(--brand);
  padding: 0 24px;
  border-radius: 14px;
  cursor: pointer;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  padding: 12px 14px;
  background: #fff7ed;
  border-radius: 14px;
  color: #78350f;
  font-weight: 800;
}

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

.hero-slides,
.hero-slide {
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 660px;
}

.hero-copy {
  width: min(720px, 100%);
  color: #ffffff;
  padding: 80px 0;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 22px 0 6px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy .hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 32px rgba(180, 83, 9, 0.28);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button-ghost.dark {
  color: var(--brand-dark);
  background: #fff7ed;
  border-color: rgba(180, 83, 9, 0.18);
}

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

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

.hero-dot.is-active {
  background: #f59e0b;
}

.section-block {
  padding: 72px 0;
}

.soft-bg,
.category-overview {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--brand);
  font-weight: 900;
}

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

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

.category-card {
  min-height: 180px;
  padding: 24px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(180, 83, 9, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.category-card h3 {
  margin: 14px 0 10px;
  font-size: 24px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.play-corner,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.play-corner {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line,
.movie-one-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-one-line {
  min-height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-band {
  padding: 82px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.36), transparent 32%), #111827;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

.ranking-copy h2 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
  font-size: 17px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.ranking-row b {
  color: #fbbf24;
}

.ranking-row span {
  font-weight: 900;
}

.ranking-row em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.34), transparent 28%), linear-gradient(135deg, #111827, #431407);
  padding: 92px 0 82px;
}

.compact-hero p,
.ranking-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.04em;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 28px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed rgba(180, 83, 9, 0.32);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

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

.category-directory {
  padding: 28px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-directory h2 {
  margin-top: 0;
  font-size: 30px;
}

.category-directory ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-directory li {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fff7ed;
  border-radius: 16px;
}

.category-directory li a {
  color: var(--brand-dark);
  font-weight: 900;
}

.category-directory li span {
  color: var(--muted);
}

.detail-hero {
  padding: 34px 0 72px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 14px;
  margin-bottom: 28px;
}

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

.detail-poster {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fef3c7;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-intro {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags span {
  background: #ffffff;
}

.player-section {
  background: #111827;
}

.player-card {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.player-heading {
  padding: 8px 6px 18px;
}

.player-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 38px);
}

.player-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.play-mask span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
  font-size: 32px;
  padding-left: 5px;
}

.play-mask.is-hidden {
  display: none;
}

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

.article-grid article {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.article-grid h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-grid p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

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

.footer-links a:hover {
  color: #f59e0b;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .hero-slider,
  .hero-slides,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

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

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

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

  .ranking-row em {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 19px;
  }

  .icon-button {
    padding: 8px 10px;
  }

  .hero-copy {
    padding: 60px 0;
  }

  .hero-copy p,
  .compact-hero p,
  .ranking-hero p,
  .detail-intro {
    font-size: 16px;
  }

  .section-block {
    padding: 52px 0;
  }

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

  .movie-grid,
  .full-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-grid,
  .category-grid.large,
  .category-directory ul {
    grid-template-columns: 1fr;
  }

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

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

  .chip-row {
    display: none;
  }

  .page-hero {
    padding: 64px 0 56px;
  }

  .player-card {
    padding: 12px;
    border-radius: 20px;
  }

  .video-frame {
    border-radius: 16px;
  }

  .play-mask span {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }
}
