* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #4b5563;
  font-weight: 700;
}

.nav-link {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #f97316;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #111827;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f97316 48%, #dc2626);
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 72px 0 88px;
}

.hero-text {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffedd5;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-text h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-text p {
  margin: 0 0 26px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

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

.hero-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-panel h2 {
  margin: 18px 0 6px;
  font-size: 23px;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section {
  padding: 48px 0;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  max-width: 720px;
  color: #6b7280;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-bar input,
.search-bar select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 13px 14px;
  color: #111827;
  background: #f9fafb;
  font: inherit;
  outline: none;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: #fb923c;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(249, 115, 22, 0.28);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fee2e2);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-type,
.rank-no {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  left: 12px;
  padding: 0 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-no {
  right: 12px;
  width: 28px;
  justify-content: center;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #f97316;
}

.card-meta {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-desc {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

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

.tag-list span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.rank-box {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.rank-box h2,
.rank-box h3 {
  margin: 0 0 18px;
}

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

.mini-item {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-item:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(3px);
}

.mini-item img {
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 11px;
}

.mini-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: #f97316;
  font-weight: 900;
}

.mini-item strong {
  display: block;
  line-height: 1.35;
}

.mini-item small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
}

.page-hero {
  padding: 62px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.38);
  font-size: 30px;
  cursor: pointer;
}

.player-title {
  padding: 18px 22px 22px;
}

.player-title h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.player-title p {
  margin: 0;
  color: #6b7280;
}

.detail-card,
.side-card {
  padding: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
}

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

.info-list span {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  background: #f9fafb;
  font-weight: 700;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

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

.poster-card div {
  padding: 18px;
}

.no-result {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

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

.site-footer h3,
.site-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
}

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

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

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

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-link:hover {
    background: #fff7ed;
  }

  .hero-content,
  .feature-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 360px;
  }

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

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

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

  .rank-box {
    position: static;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 52px 0 86px;
  }

  .hero-panel {
    display: none;
  }

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

  .section-head {
    display: block;
  }

  .mini-item {
    grid-template-columns: auto 64px 1fr;
  }

  .mini-item img {
    width: 64px;
    height: 52px;
  }
}
