:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f97316, #f59e0b, #facc15);
  box-shadow: 0 10px 32px rgba(194, 65, 12, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #f97316;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(124, 45, 18, 0.18);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 470px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.local-filter input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-search input,
.mobile-search input {
  padding: 12px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 0 20px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 700;
}

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

.nav-link,
.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: #fff7ed;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-nav-link {
  padding: 8px 0;
}

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.55), transparent 26%), linear-gradient(135deg, #7c2d12 0%, #ea580c 44%, #f59e0b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.04));
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 52px 0 70px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

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

.button-primary,
.button-ghost,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-light {
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(124, 45, 18, 0.18);
}

.button-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-ghost:hover,
.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(124, 45, 18, 0.28);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.42);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
}

.hero-poster-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(14px);
}

.hero-poster-info strong {
  display: block;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

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

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}

.section-title::before {
  content: "";
  width: 12px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f97316, #f59e0b);
}

.section-header p,
.page-intro p,
.detail-intro p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(124, 45, 18, 0.22);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.type-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.type-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

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

.movie-title {
  display: block;
  min-height: 52px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.movie-title:hover {
  color: var(--orange);
}

.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-body p {
  min-height: 66px;
  margin: 12px 0;
  color: #4b5563;
  line-height: 1.65;
}

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

.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #ea580c, #fbbf24);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #c2410c, #fb923c);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(124, 45, 18, 0.25);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #7c2d12, #f97316 58%, #f59e0b);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

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

.local-filter,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.local-filter input,
.filter-bar input {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(124, 45, 18, 0.16);
}

.rank-num {
  color: #f97316;
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.detail-wrap {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 44%);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
  color: #9a3412;
  font-size: 14px;
}

.breadcrumb a {
  color: #9a3412;
  text-decoration: none;
  font-weight: 700;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 36px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  background: #fed7aa;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
}

.detail-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

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

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.3);
}

.player-stage {
  position: relative;
  background: #000000;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(234, 88, 12, 0.38));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.player-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.88);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-caption {
  padding: 20px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.player-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.article-block {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 58px;
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-block h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

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

.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #f97316;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: var(--shadow);
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-carousel {
    min-height: auto;
  }

  .hero-poster {
    max-width: 460px;
    margin: 0 auto;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-slide {
    padding: 36px 0 72px;
  }

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

  .section {
    padding: 42px 0;
  }

  .section-header {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

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

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

  .movie-title {
    min-height: 44px;
    font-size: 16px;
  }

  .movie-card-body p {
    display: none;
  }

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

  .rank-meta {
    grid-column: 2;
  }

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

  .article-block {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions,
  .detail-actions {
    display: grid;
  }

  .button-primary,
  .button-ghost,
  .button-light {
    width: 100%;
  }
}
