* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9fafb;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-nav {
  width: min(100% - 32px, 1280px);
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 12px 24px 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937 48%, #111827);
}

.hero-bg {
  position: absolute;
  inset: -24px;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: blur(8px);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.45) 52%, rgba(17, 24, 39, 0.08) 100%);
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, 1280px);
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 42px;
  padding: 56px 0;
}

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

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-info-line,
.feature-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag {
  border-radius: 999px;
  padding: 6px 12px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more,
.detail-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #dc2626);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.detail-category-link:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.hero-search input {
  min-height: 44px;
  border: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 800;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-categories a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.11);
}

.hero-panel,
.side-panel,
.detail-card,
.category-tile,
.feature-card,
.movie-card-link {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 900;
}

.hero-panel-head a,
.section-more,
.detail-category-link {
  color: #ea580c;
}

.hero-mini-list,
.side-list,
.category-preview-list {
  display: grid;
  gap: 14px;
}

.content-section {
  padding: 56px 0 8px;
}

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

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

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

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

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

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

.movie-card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover,
.feature-card:hover,
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-cover,
.feature-cover,
.mini-cover {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-cover {
  aspect-ratio: 16 / 9;
}

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

.movie-card-link:hover .movie-cover img,
.feature-card:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.movie-cover::after,
.feature-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge,
.feature-cover span,
.feature-cover strong,
.category-count {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  left: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body,
.feature-body {
  padding: 18px;
}

.movie-meta-row,
.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.movie-meta-row {
  justify-content: flex-start;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ea580c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3,
.feature-card h3,
.mini-card h3 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.feature-card p,
.mini-card p {
  color: #6b7280;
}

.movie-card p {
  min-height: 45px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info-line {
  margin-top: 12px;
  color: #9ca3af;
  font-size: 12px;
}

.feature-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.feature-cover span {
  left: 14px;
  bottom: 14px;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.22);
}

.feature-cover strong {
  top: 14px;
  right: 14px;
}

.feature-body h3 {
  font-size: 20px;
}

.feature-body p {
  line-height: 1.7;
}

.tag {
  color: #92400e;
  background: #ffedd5;
}

.mini-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-cover {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.mini-rank {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 12px;
  font-weight: 900;
}

.mini-card h3 {
  font-size: 15px;
}

.mini-card p {
  margin: 6px 0 0;
  font-size: 13px;
}

.page-hero {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
  color: #ffffff;
}

.compact-hero .container,
.ranking-hero-inner {
  padding: 64px 0;
}

.compact-hero h1,
.ranking-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 900;
}

.category-tile p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.75;
}

.category-count {
  position: static;
  display: inline-flex;
  color: #ea580c;
  background: #fff7ed;
}

.filter-panel {
  padding: 42px 0 18px;
}

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

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #4b5563;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #dc2626);
}

.ranking-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.ranking-lead-list {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.detail-top {
  background: #111827;
  padding: 28px 0 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  padding: 30px 0 10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 42px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 22px;
  max-width: calc(100% - 40px);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  transform: translateX(-50%);
  font-size: 13px;
  display: none;
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-meta {
  margin-top: 18px;
  color: #6b7280;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #f3f4f6;
}

.detail-one-line {
  margin: 22px 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.detail-text h2,
.side-panel h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-text p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-panel {
  padding: 22px;
}

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

.side-actions {
  display: grid;
  gap: 10px;
}

.side-actions a {
  border-radius: 14px;
  padding: 13px 14px;
  color: #ea580c;
  background: #fff7ed;
  font-weight: 900;
}

.detail-more-section {
  padding-top: 42px;
}

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

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

.footer-inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 48px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-category-list {
  columns: 2;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  text-align: center;
}

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

@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }

  .hero-inner,
  .ranking-hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .ranking-lead-list {
    max-width: 620px;
  }

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

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-inner {
    padding: 42px 0;
  }

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

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

  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container,
  .site-nav,
  .footer-inner,
  .hero-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-section,
  .hero-inner {
    min-height: 620px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-grid,
  .feature-grid,
  .category-grid,
  .movie-grid--compact,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .detail-card,
  .side-panel,
  .category-tile {
    border-radius: 18px;
    padding: 18px;
  }
}
