* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #dc2626;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.site-nav {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 20px 18px;
}

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

.mobile-link {
  padding: 11px 0;
  color: #374151;
  font-weight: 650;
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

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

.hero-content {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 90px 0 80px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 710px;
  margin: 0 0 30px;
  color: #d1d5db;
  font-size: 20px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover,
.home-search button:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: #d1d5db;
  font-size: 14px;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-cover span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  font-size: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.panel,
.content-section,
.page-hero,
.detail-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.quick-search {
  margin-top: -52px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.home-search {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 0 15px;
  color: var(--text);
  outline: none;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.content-section {
  margin-top: 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading > span {
  align-self: start;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--orange);
  background: #ffedd5;
  font-weight: 800;
  font-size: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--orange);
  font-weight: 800;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-tile span,
.category-card em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.card-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.card-year,
.card-play {
  position: absolute;
  border-radius: 999px;
}

.card-year {
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

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

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.side-panel,
.story-panel {
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rank-head span,
.rank-head a {
  font-weight: 850;
}

.rank-head a {
  color: var(--orange);
  font-size: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.rank-num {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 13px;
  font-weight: 850;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-info {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.ranking-list-wide {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: #ffffff;
  padding: 14px 24px;
}

.ranking-list-wide .ranking-row {
  grid-template-columns: 58px minmax(220px, 1fr) minmax(0, 1.6fr);
  align-items: center;
}

.ranking-list-wide .rank-info {
  grid-column: auto;
  text-align: right;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
  width: 76px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: #e5e7eb;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  margin-top: 36px;
  padding: 58px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #ffffff;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.detail-hero {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: stretch;
}

.player-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.82));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.play-ring {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.94);
  font-size: 36px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: #4b5563;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 750;
}

.detail-info .primary-btn {
  width: fit-content;
  margin-top: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.story-panel,
.side-panel {
  padding: 28px;
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-panel p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 750;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 28px;
}

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

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-hero,
  .detail-layout,
  .split-section,
  .quick-search {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 590px;
  }

  .hero-content {
    width: min(100% - 32px, 1240px);
    padding: 70px 0 88px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-arrow {
    top: auto;
    bottom: 26px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .quick-search,
  .page-hero,
  .detail-info,
  .story-panel,
  .side-panel {
    padding: 22px;
  }

  .home-search,
  .filter-bar,
  .section-heading,
  .footer-inner,
  .ranking-list-wide .ranking-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: grid;
  }

  .library-grid,
  .movie-grid,
  .movie-grid-small,
  .compact-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list-wide .rank-info {
    text-align: left;
  }

  .player-panel,
  .movie-video {
    min-height: 280px;
  }

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