:root {
  --site-orange: #ea580c;
  --site-orange-dark: #c2410c;
  --site-red: #dc2626;
  --site-yellow: #fde68a;
  --site-bg: #fff7ed;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-border: #fed7aa;
  --site-shadow: 0 18px 45px rgba(127, 29, 29, 0.13);
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  height: 4.25rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  color: #ea580c;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px rgba(251, 146, 60, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 650;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.96);
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--site-yellow);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  min-width: 260px;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0.65rem 0.2rem 0.65rem 1rem;
  color: #111827;
  background: transparent;
}

.header-search button {
  border: 0;
  color: #ffffff;
  background: var(--site-orange);
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1.65rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0.75rem 1rem 1rem;
  background: #c2410c;
}

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

.mobile-panel a,
.mobile-panel form {
  display: block;
  margin: 0.5rem 0;
}

.container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.75), transparent 34%), linear-gradient(135deg, #7c2d12 0%, #dc2626 55%, #111827 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.84) 0%, rgba(17, 24, 39, 0.35) 55%, rgba(17, 24, 39, 0.78) 100%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-content {
  max-width: 720px;
  padding: 4.5rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(253, 230, 138, 0.55);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.075em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.76rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #9a3412;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1.65rem;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-poster::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
}

.hero-meta-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 2rem;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.section {
  padding: 3.5rem 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 0.45rem 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.82);
  border-radius: 1.1rem;
  background: var(--site-card);
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fb923c;
  box-shadow: var(--site-shadow);
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.card-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 0.95rem;
}

.card-title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  color: #ea580c;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-text {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 1.25rem;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #dc2626 100%);
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  position: absolute;
  right: -2.2rem;
  bottom: -2.2rem;
  width: 8rem;
  height: 8rem;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(220, 38, 38, 0.22);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.rank-list {
  display: grid;
  gap: 0.8rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 5.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(127, 29, 29, 0.06);
}

.rank-num {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 0.8rem;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.page-hero {
  padding: 4rem 0 2.25rem;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.35), transparent 30%), linear-gradient(135deg, #ea580c, #dc2626 62%, #7f1d1d);
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
  padding: 1rem;
  border: 1px solid var(--site-border);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(127, 29, 29, 0.06);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  padding: 0 1rem;
  background: #fff7ed;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 1.4rem;
  background: #111827;
  box-shadow: var(--site-shadow);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.45);
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 2rem;
}

.detail-panel,
.side-panel {
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.07);
}

.detail-panel {
  padding: 1.35rem;
}

.detail-panel h2,
.side-panel h2 {
  margin-top: 0;
}

.detail-text {
  color: #374151;
  line-height: 1.9;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.meta-tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 0.85rem;
  font-weight: 750;
}

.side-panel {
  padding: 1rem;
}

.side-card {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #ffedd5;
}

.side-card:last-child {
  border-bottom: 0;
}

.side-card img {
  height: 5.45rem;
  object-fit: cover;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

.footer {
  margin-top: 4rem;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer h2,
.footer h3 {
  margin: 0 0 0.8rem;
  color: #ffffff;
}

.footer p,
.footer a {
  color: #d1d5db;
  line-height: 1.75;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1rem 0;
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

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

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

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-content: center;
  }

  .hero-content {
    padding: 3rem 0 0;
  }

  .hero-poster {
    max-width: 260px;
    margin: 0 auto 4.5rem;
  }

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

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

  .rank-item {
    grid-template-columns: 2.5rem 4.5rem minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 1rem, 1280px);
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero-stage {
    min-height: 760px;
  }

  .grid-6,
  .grid-4,
  .grid-3,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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