:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fffbeb;
  --shadow: 0 20px 60px rgba(120, 53, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
  font-size: 13px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-drop-btn {
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-btn:hover {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
}

.dropdown-link:hover {
  color: var(--brand);
  background: #fffbeb;
}

.nav-search {
  position: relative;
  width: 240px;
}

.nav-search input,
.search-panel input {
  width: 100%;
  border: 1px solid #f3d19e;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  color: #111827;
  outline: none;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.nav-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid #fed7aa;
  padding: 14px 20px 20px;
  background: #ffffff;
}

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

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 650;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
  margin-top: 6px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-content h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-meta span,
.card-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.btn-link {
  color: #fbbf24;
  padding-inline: 0;
}

.full-btn {
  width: 100%;
  margin-top: 18px;
}

.hero-control {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.hero-rail {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  display: grid;
  grid-template-columns: repeat(5, 112px);
  gap: 12px;
}

.hero-mini {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.hero-mini img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.hero-mini span {
  display: block;
  padding: 9px;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section,
.page-main .section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2,
.section-title-row h2,
.ranking-head h2,
.story-card h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
}

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

.compact-title {
  margin-bottom: 20px;
}

.more-link {
  color: var(--brand);
  font-weight: 800;
}

.search-panel {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.chip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #f3d19e;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fff7ed;
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 56px rgba(120, 53, 15, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.movie-card-featured .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.tag-row span,
.tag-cloud a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-body p {
  margin: 0 0 16px;
  min-height: 48px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.card-meta span {
  color: #6b7280;
  background: #f9fafb;
}

.category-band {
  width: min(1180px, calc(100% - 32px));
  border-radius: 32px;
  padding-inline: 28px;
  background: linear-gradient(120deg, #fff7ed, #fff1f2);
}

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

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

.category-tile,
.category-card-large {
  display: block;
  min-height: 150px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(120, 53, 15, 0.14);
}

.category-tile span,
.category-card-large strong {
  display: block;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 900;
}

.category-card-large em {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.story-card {
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 68px 1fr 24px;
  gap: 12px;
  align-items: center;
  border: 1px solid #fef3c7;
  border-radius: 18px;
  padding: 10px;
  background: #fffaf0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  background: #ffffff;
}

.rank-num {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

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

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

.rank-copy strong {
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-arrow {
  color: #f59e0b;
  font-size: 28px;
}

.page-main,
.detail-main {
  min-height: 72vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.46), transparent 32%), linear-gradient(135deg, #1f2937, #7c2d12 54%, #111827);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 4.6vw, 62px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.category-hero,
.ranking-hero {
  background: radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.45), transparent 28%), linear-gradient(135deg, #78350f, #111827);
}

.compact-search {
  padding-bottom: 24px;
}

.ranking-page-list {
  max-width: 920px;
  margin: 0 auto;
}

.detail-hero {
  padding: 34px max(24px, calc((100vw - 1180px) / 2)) 54px;
  color: #ffffff;
  background: radial-gradient(circle at 85% 0%, rgba(251, 191, 36, 0.42), transparent 28%), linear-gradient(135deg, #111827, #78350f 55%, #1f2937);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.player-shell {
  border-radius: 30px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.34);
  font-size: 30px;
  cursor: pointer;
}

.player-layer span {
  font-size: 18px;
  font-weight: 800;
}

.detail-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.detail-info img {
  width: 120px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.16;
}

.detail-info p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
}

.info-list dt {
  color: rgba(255, 255, 255, 0.52);
}

.info-list dd {
  margin: 0;
  color: #ffffff;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card p {
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.tag-cloud {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

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

[data-movie-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-rail {
    display: none;
  }

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

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

  .detail-info {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    width: calc(100% - 24px);
    height: 64px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 610px;
    height: 78vh;
  }

  .hero-content {
    top: 46%;
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .section,
  .page-main .section {
    width: calc(100% - 24px);
    padding: 42px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .recent-grid,
  .related-grid,
  .category-movie-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .category-band {
    width: calc(100% - 24px);
    padding-inline: 18px;
  }

  .rank-item {
    grid-template-columns: 34px 58px 1fr 18px;
  }

  .rank-item img {
    width: 58px;
    height: 42px;
  }

  .page-hero,
  .detail-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-info {
    grid-template-columns: 1fr;
  }

  .detail-info img {
    width: 100%;
    height: 260px;
  }

  .footer-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }
}
