:root {
  --site-bg: #fff7ed;
  --site-surface: rgba(255, 255, 255, 0.88);
  --site-strong: #1f2937;
  --site-muted: #6b7280;
  --site-soft: #f9fafb;
  --site-border: rgba(249, 115, 22, 0.16);
  --site-orange: #f97316;
  --site-pink: #ec4899;
  --site-blue: #3b82f6;
  --site-shadow: 0 24px 60px rgba(251, 146, 60, 0.18);
  --site-radius: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--site-strong);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 45%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

.site-page {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(251, 146, 60, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--site-strong);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-logo-mark {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899, #60a5fa);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.26);
}

.site-logo-text {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  background: linear-gradient(90deg, #f97316, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #4b5563;
  font-weight: 700;
}

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--site-orange);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 260px;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.nav-search input,
.site-search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #374151;
  font: inherit;
}

.nav-search button,
.primary-button,
.secondary-button,
.player-start,
.mobile-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.nav-search button {
  flex: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.mobile-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  color: #374151;
  background: rgba(255, 255, 255, 0.78);
}

.mobile-menu {
  display: none;
  padding: 0 0 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.8rem;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 0 0 2.5rem 2.5rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 2rem;
  min-height: 680px;
  padding: 4rem 0 5rem;
  color: white;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.secondary-button {
  color: #c2410c;
  border: 1px solid rgba(251, 146, 60, 0.26);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.hero .secondary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero-box .eyebrow {
  color: #c2410c;
  border-color: rgba(251, 146, 60, 0.22);
  background: #ffedd5;
}

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

.hero-panel {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.hero-thumbs {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.13);
  color: white;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(2px);
}

.hero-thumb img {
  width: 5.6rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.hero-thumb strong {
  display: block;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.section {
  padding: 3.5rem 0 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-subtitle {
  margin: 0.45rem 0 0;
  max-width: 720px;
  color: var(--site-muted);
  line-height: 1.8;
}

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

.category-tile {
  min-height: 160px;
  padding: 1.2rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-row:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(251, 146, 60, 0.22);
}

.category-tile strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 0.85rem;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ffedd5, #fce7f3, #dbeafe);
}

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

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

.movie-badge,
.rank-badge {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  z-index: 2;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-duration {
  position: absolute;
  right: 0.72rem;
  bottom: 0.72rem;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

.movie-body {
  padding: 0.92rem;
}

.movie-title {
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.3em;
  margin: 0.55rem 0 0;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.12);
}

.site-search-panel input {
  padding: 0.85rem 1rem;
}

.search-count {
  align-self: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 4.5rem 7.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  color: #f97316;
  font-size: 1.45rem;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 7.5rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
}

.rank-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.rank-row p {
  margin: 0.35rem 0 0;
  color: var(--site-muted);
  line-height: 1.6;
}

.rank-views {
  min-width: 8rem;
  color: #c2410c;
  font-weight: 950;
  text-align: right;
}

.page-hero {
  padding: 3.5rem 0 0;
}

.page-hero-box {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--site-shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumbs a {
  color: #ea580c;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 1.7rem;
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.18);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-line {
  margin: 1rem 0 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.86rem;
  font-weight: 850;
}

.tag-pill {
  background: #fdf2f8;
  color: #be185d;
}

.player-section {
  padding: 2rem 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: #111827;
  box-shadow: 0 35px 90px rgba(17, 24, 39, 0.34);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.player-shell.is-playing .player-overlay,
.player-shell.is-ready .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-start {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.34);
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(17, 24, 39, 0.6);
  font-size: 0.82rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
}

.info-card {
  padding: 1.25rem;
  border: 1px solid var(--site-border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 950;
}

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

.sidebar-list {
  display: grid;
  gap: 0.7rem;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.7rem;
  align-items: center;
  color: #374151;
}

.sidebar-item img {
  width: 4.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.9rem;
}

.sidebar-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  color: #6b7280;
  text-align: center;
}

.site-footer strong {
  color: #1f2937;
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--site-muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 4rem 0 3rem;
  }

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

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

  .rank-row {
    grid-template-columns: 3rem 5.5rem 1fr;
  }

  .rank-views {
    grid-column: 3;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-panel {
    border-radius: 1.4rem;
  }

  .hero-thumb {
    grid-template-columns: 4.5rem 1fr;
  }

  .hero-thumb img {
    width: 4.5rem;
  }

  .section {
    padding-top: 2.4rem;
  }

  .section-head {
    display: block;
  }

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

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

  .movie-body {
    padding: 0.78rem;
  }

  .rank-row {
    grid-template-columns: 2.5rem 4.75rem 1fr;
    gap: 0.7rem;
  }

  .rank-row img {
    width: 4.75rem;
  }

  .page-hero-box {
    padding: 1.2rem;
    border-radius: 1.5rem;
  }

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