
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.22);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
  color: #fff7ed;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffffff;
}

.nav-search {
  width: 310px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 15px;
  color: #1f2937;
  background: #ffffff;
}

.nav-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: #92400e;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 22px 18px;
  background: linear-gradient(180deg, #d97706, #ea580c);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.36) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 116px 22px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 14px 26px;
  color: #78350f;
  background: linear-gradient(90deg, #fcd34d, #fb923c);
  box-shadow: 0 16px 36px rgba(251, 146, 60, 0.32);
}

.ghost-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 12px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.category-strip,
.content-section,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: -56px;
  position: relative;
  z-index: 6;
}

.category-tile {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 76px;
  overflow: hidden;
}

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

.tile-body {
  padding: 16px;
}

.tile-body h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 18px;
}

.tile-body p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

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

.section-head h2,
.page-hero h1,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.text-link {
  padding: 10px 16px;
  color: #d97706;
  background: #fffbeb;
}

.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 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-time {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
}

.poster-badge {
  top: 10px;
  left: 10px;
  background: rgba(245, 158, 11, 0.92);
}

.poster-time {
  right: 10px;
  bottom: 10px;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.compact-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
}

.card-body h3 a:hover,
.compact-card h3 a:hover {
  color: #d97706;
}

.card-body p {
  min-height: 46px;
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 750;
}

.ranking-section {
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.ranking-section .section-head h2,
.ranking-section .section-head p {
  color: #ffffff;
}

.ranking-grid,
.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-img {
  overflow: hidden;
  border-radius: 14px;
}

.compact-img img {
  width: 88px;
  height: 66px;
  object-fit: cover;
}

.compact-card p {
  margin: 6px 0 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.compact-card span {
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
}

.rank-no {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  font-size: 13px;
  font-weight: 900;
}

.page-main {
  min-height: 65vh;
  padding-top: 58px;
}

.page-hero {
  border-radius: 34px;
  padding: 56px;
  color: #111827;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 191, 36, 0.5), transparent 28%),
    linear-gradient(135deg, #fff7ed, #ffffff 48%, #ffedd5);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
  margin-bottom: 32px;
}

.small-hero {
  text-align: center;
}

.category-hero {
  text-align: left;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar input,
.toolbar select,
.search-page-form input {
  border-radius: 999px;
  box-shadow: 0 0 0 1px #fed7aa;
}

.category-overview-grid {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-overview-card p {
  color: #64748b;
  line-height: 1.8;
}

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

.search-page-form {
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.16);
}

.search-page-form input {
  border-radius: 0;
  box-shadow: none;
}

.detail-main {
  padding-top: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.34), rgba(2, 6, 23, 0.48)),
    rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 46px rgba(251, 146, 60, 0.42);
  font-size: 34px;
  padding-left: 6px;
}

.detail-info {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-line {
  margin: 18px 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.detail-info .tag-list span {
  color: #92400e;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.article-section {
  margin: 34px 0 0;
  border-radius: 28px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-section h2:not(:first-child) {
  margin-top: 30px;
}

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

.site-footer {
  margin-top: 52px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 20px 22px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

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

  .nav-search {
    display: none;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .detail-hero,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 92px 18px 72px;
  }

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

  .category-strip,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .page-hero,
  .article-section,
  .detail-info {
    padding: 24px;
    border-radius: 24px;
  }

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

  .search-page-form {
    flex-direction: column;
    border-radius: 22px;
  }

  .search-page-form button {
    padding: 13px;
  }
}
