* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #ffedd5;
  --amber-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(180, 83, 9, 0.14);
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #7c2d12;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

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

.nav-links a:hover {
  color: var(--orange-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--orange-soft);
  color: #9a3412;
  padding: 9px 12px;
  font-size: 20px;
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, #fb923c, transparent 32%), linear-gradient(135deg, #111827, #431407);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15));
}

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

.hero-text {
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.24);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 0 24px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.8;
  color: #f3f4f6;
}

.hero-actions,
.section-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  background: #fff;
  color: #9a3412;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--orange-soft);
}

.btn.primary {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  border-color: transparent;
}

.btn.dark {
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 54px 0 0;
}

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

.section h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card,
.category-card,
.info-panel,
.player-panel,
.detail-card,
.search-panel {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(180, 83, 9, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.8), transparent 30%), linear-gradient(135deg, #1f2937, #7c2d12);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3,
.category-card h3,
.rank-row h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover,
.category-card h3 a:hover {
  color: var(--orange-dark);
}

.movie-card p,
.category-card p,
.rank-row p,
.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-card {
  padding: 24px;
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card .mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-card .mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.08);
}

.rank-num {
  min-width: 38px;
  color: #ea580c;
  font-size: 26px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #9a3412);
}

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

.page-title {
  padding: 44px 0 20px;
}

.filter-bar,
.search-panel {
  margin: 18px 0 24px;
}

.search-panel {
  padding: 18px;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  min-height: 44px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 14px;
  background: #fff;
  color: #374151;
  padding: 0 14px;
  outline: none;
}

.filter-bar input,
.search-panel input {
  flex: 1 1 280px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.22);
}

.detail-hero {
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 26px;
  align-items: stretch;
}

.player-panel {
  padding: 18px;
  background: rgba(17, 24, 39, 0.96);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.start-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.52));
}

.start-layer button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.4);
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.meta-line span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.content-block {
  margin-top: 28px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: var(--shadow);
}

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

.content-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 26px;
  color: #d1d5db;
  background: linear-gradient(90deg, #1f2937, #111827);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 980px) {
  .grid,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .site-nav {
    min-height: 64px;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.56));
  }

  .section-head {
    display: block;
  }

  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: auto 82px 1fr;
    gap: 12px;
  }
}
