
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(251, 191, 36, 0.22);
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-input,
.filter-select {
  color: #ffffff;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.player-button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-button {
  color: #0f172a;
  background: #fbbf24;
  font-weight: 800;
}

.nav-search button {
  padding: 10px 14px;
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.player-button:hover {
  background: #fcd34d;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #1e293b;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 8px;
}

.mobile-search input {
  min-width: 0;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 11px 16px;
}

.page-main {
  padding-top: 64px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 32rem),
    linear-gradient(180deg, #111827 0%, #0f172a 42%, #020617 100%);
}

.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111827;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.hero:hover img {
  transform: scale(1.055);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 43%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.hero-labels,
.detail-labels,
.category-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 14px;
  font-weight: 700;
}

.muted-pill {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.26);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  font-weight: 800;
}

.secondary-button {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.secondary-button:hover {
  background: rgba(51, 65, 85, 0.86);
  transform: translateY(-1px);
}

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

.section-block + .section-block {
  margin-top: 54px;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title-row h2,
.simple-hero h1,
.detail-title h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.15;
}

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

.section-more {
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.wide-card .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-image {
  transform: scale(1.09);
}

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

.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  border-radius: 10px;
}

.card-year {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  font-size: 12px;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.9);
  color: #0f172a;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 12px 2px 0;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: #fbbf24;
}

.card-meta {
  margin: 6px 0;
  color: #94a3b8;
  font-size: 14px;
}

.card-summary {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 3px 0 18px;
  scrollbar-width: thin;
}

.scroll-row .movie-card {
  flex: 0 0 280px;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 230px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.68);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-2px);
}

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

.feature-copy {
  padding: 24px;
}

.feature-copy h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.feature-copy p {
  margin: 0 0 14px;
  color: #94a3b8;
  line-height: 1.7;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.75);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 20px;
  color: #cbd5e1;
  line-height: 1.65;
}

.category-count {
  display: inline-flex;
  color: #fbbf24;
  font-weight: 800;
}

.simple-hero {
  padding: 118px 0 36px;
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.12), transparent 28rem),
    linear-gradient(135deg, #0f172a, #111827 46%, #020617);
}

.simple-hero .section-shell {
  padding: 0;
}

.simple-hero h1 {
  max-width: 860px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.simple-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

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

.player-box {
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

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

.player-screen video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-button {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #0f172a;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

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

.player-button span {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(251, 191, 36, 0.24);
}

.player-button strong {
  padding: 10px 16px;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 999px;
}

.detail-copy {
  padding: 28px;
}

.detail-title h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.detail-copy p {
  color: #cbd5e1;
  line-height: 1.86;
}

.detail-copy h2,
.side-panel h2 {
  margin-top: 30px;
  color: #ffffff;
  font-size: 24px;
}

.side-panel {
  position: sticky;
  top: 84px;
  padding: 20px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 22px;
}

.side-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  padding-bottom: 10px;
}

.info-list span {
  color: #94a3b8;
}

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

.compact-card {
  display: block;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 16px;
  transition: transform 0.2s ease;
}

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

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

.compact-card span {
  display: -webkit-box;
  min-height: 44px;
  padding: 10px;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 18px;
}

.rank-number {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 110px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-item h2,
.ranking-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.ranking-item p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.rank-link {
  color: #0f172a;
  background: #fbbf24;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.64);
  border: 1px solid rgba(51, 65, 85, 0.76);
  border-radius: 18px;
}

.search-result-item img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.search-result-item p {
  margin: 0 0 8px;
  color: #94a3b8;
  line-height: 1.6;
}

.empty-state {
  padding: 28px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.74);
  border-radius: 18px;
  text-align: center;
}

.site-footer {
  background: #020617;
  border-top: 1px solid rgba(51, 65, 85, 0.86);
}

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

.footer-inner p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

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

.footer-links a {
  color: #94a3b8;
}

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

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

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

  .hero {
    min-height: 540px;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .category-overview,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav-shell {
    height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .page-main {
    padding-top: 60px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .section-shell {
    padding: 38px 0;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .category-overview,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    aspect-ratio: 16 / 9;
  }

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

  .ranking-item {
    grid-template-columns: 54px 86px 1fr;
  }

  .ranking-item img {
    width: 86px;
  }

  .rank-link {
    grid-column: 2 / -1;
    text-align: center;
  }

  .detail-copy {
    padding: 20px;
  }

  .search-result-item {
    grid-template-columns: 82px 1fr;
  }

  .search-result-item img {
    width: 82px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.compact-grid,
  .category-overview,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-row .movie-card {
    flex-basis: 230px;
  }

  .card-summary {
    display: none;
  }

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

  .ranking-item img {
    width: 100%;
  }

  .rank-number {
    text-align: left;
  }

  .rank-link {
    grid-column: auto;
  }
}
