:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--orange-50) 0%, var(--amber-50) 32%, var(--white) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img,
video {
  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(217, 119, 6, 0.12);
  box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section-wrap,
.hero-content,
.breadcrumb,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-800);
}

.logo {
  flex: 0 0 auto;
  font-size: 22px;
}

.logo:hover,
.footer-logo:hover {
  color: var(--amber-700);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  font-size: 14px;
  line-height: 1;
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--gray-700);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--amber-700);
  border-bottom-color: var(--amber-600);
}

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

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(156, 163, 175, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-panel input {
  width: 180px;
  padding: 9px 14px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-panel button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.player-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-panel button,
.primary-btn,
.player-button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.header-search button,
.mobile-panel button {
  padding: 9px 16px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.secondary-btn {
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.header-search button:hover,
.mobile-panel button:hover,
.primary-btn:hover,
.player-button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gray-700);
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.1);
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 16px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 78px;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
}

.hero p {
  margin: 0 0 22px;
  max-width: 640px;
  font-size: clamp(17px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

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

.hero-meta {
  margin-bottom: 26px;
}

.hero-meta span,
.inline-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  padding: 6px 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 66px));
  transform: translateY(-50%);
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 66px));
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--white);
}

.section-wrap {
  padding: 56px 0;
}

.section-wrap.compact {
  padding: 36px 0 56px;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  line-height: 1.18;
  color: var(--gray-900);
}

.section-title h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-title p,
.page-intro,
.breadcrumb,
.movie-desc,
.movie-meta,
.detail-meta,
.detail-summary,
.site-footer p,
.category-card p,
.horizontal-card p,
.empty-state {
  color: var(--gray-600);
}

.section-title p,
.page-intro {
  margin: 10px 0 0;
  max-width: 760px;
}

.soft-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
  box-shadow: var(--soft-shadow);
}

.gray-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.poster-link img,
.horizontal-cover img,
.detail-poster img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.horizontal-card:hover .horizontal-cover img,
.category-card:hover .category-thumbs img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.05));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.score-badge,
.time-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.score-badge {
  top: 10px;
  right: 10px;
}

.time-badge {
  bottom: 10px;
  left: 10px;
}

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

.movie-card h3,
.horizontal-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover,
.text-link:hover {
  color: var(--amber-700);
}

.movie-meta {
  margin: 0 0 8px;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.inline-meta span {
  color: var(--amber-800);
  background: var(--amber-100);
  padding: 4px 9px;
}

.compact-card .movie-card-body {
  padding: 12px;
}

.compact-card h3 {
  font-size: 15px;
}

.compact-card .movie-desc {
  display: none;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.horizontal-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--amber-100);
}

.horizontal-card p {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inline-meta {
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--amber-700);
  font-weight: 800;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 170px;
  overflow: hidden;
  background: var(--amber-100);
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 180px;
  gap: 12px;
  margin: 0 0 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 15px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.breadcrumb {
  padding: 22px 0 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-wrap {
  padding: 28px 0 60px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--amber-100);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.detail-info {
  padding: 10px 0;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.detail-summary {
  margin: 0 0 24px;
  font-size: 18px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.video-stage.is-playing .player-overlay {
  display: none;
}

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 17px;
}

.content-block {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-block p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--amber-100);
}

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

.rank-item h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--gray-600);
}

.rank-score {
  color: var(--amber-700);
  font-size: 18px;
  font-weight: 900;
}

.site-footer {
  color: var(--gray-300);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0 30px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--gray-400);
}

.site-footer a:hover {
  color: var(--amber-500);
}

.site-footer p {
  margin: 0;
  color: var(--gray-400);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .detail-hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero,
  .hero-content {
    min-height: 66vh;
  }

  .hero-content {
    padding: 58px 0 64px;
  }

  .hero-control {
    display: none;
  }

  .section-title {
    display: block;
  }

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

  .horizontal-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    width: min(260px, 80vw);
  }

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

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

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

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

  .horizontal-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .soft-panel,
  .gray-panel,
  .content-block {
    padding: 20px;
  }
}
