* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 32%, #ffffff 100%);
  color: #111827;
}

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: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 2px solid #fed7aa;
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.15);
  backdrop-filter: blur(18px);
}

.nav-shell,
.quick-nav-inner,
.page-shell,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-icon,
.footer-logo span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  color: #374151;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.quick-nav {
  border-top: 1px solid rgba(251, 191, 36, 0.35);
}

.quick-nav-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 12px;
}

.quick-nav-inner a,
.mobile-category-grid a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #374151;
  font-size: 14px;
  box-shadow: 0 5px 14px rgba(251, 146, 60, 0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.quick-nav-inner a:hover,
.mobile-category-grid a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #374151;
}

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

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #fef3c7, #ffedd5);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.7;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-button,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(249, 115, 22, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-main,
.home-page {
  min-height: 60vh;
}

.section-stack {
  display: grid;
  gap: 58px;
  padding-top: 54px;
  padding-bottom: 64px;
}

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

.section-title-pack {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.18);
  font-size: 22px;
}

.section-heading h2,
.center-heading h2,
.story-card h2,
.player-section h2 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.center-heading p {
  margin: 6px 0 0;
  color: #6b7280;
}

.section-more {
  padding: 10px 18px;
  font-size: 14px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.14);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-thumb-wide {
  width: 190px;
  min-height: 100%;
  aspect-ratio: 16 / 10;
  flex: 0 0 190px;
}

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

.movie-card:hover .movie-thumb img,
.category-tile:hover img,
.poster-panel:hover img {
  transform: scale(1.08);
}

.duration-badge,
.rank-corner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.rank-corner {
  top: 10px;
  bottom: auto;
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-meta,
.tiny-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 12px;
}

.movie-card-meta span:first-child {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 999px;
  padding: 4px 9px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-horizontal .movie-card-link {
  display: flex;
  min-height: 150px;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-panel,
.ranking-panel {
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

.blue-panel {
  background: linear-gradient(120deg, #eff6ff, #ecfeff);
}

.green-panel {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5, #f0fdfa);
}

.center-heading {
  margin-bottom: 28px;
  text-align: center;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.category-tile a {
  position: relative;
  display: block;
  min-height: 230px;
  color: #ffffff;
}

.category-tile img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 0.45s ease;
}

.category-tile span,
.category-tile strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile span {
  bottom: 58px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong {
  bottom: 18px;
  color: #f3f4f6;
  font-size: 13px;
  line-height: 1.45;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
}

.warm-hero {
  color: #111827;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 36%), linear-gradient(135deg, #fff7ed, #ffedd5 45%, #ffffff);
}

.dark-hero {
  background: linear-gradient(135deg, #111827, #030712);
}

.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

.dark-hero p {
  color: #d1d5db;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-main-link {
  display: block;
}

.category-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 26px;
  font-weight: 950;
}

.category-overview-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 210px));
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.large-filter {
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  background: #fffaf0;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.rank-row {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.13);
}

.rank-row a {
  display: grid;
  grid-template-columns: 56px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}

.rank-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 950;
}

.rank-row img {
  width: 92px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-content {
  min-width: 0;
}

.rank-content strong,
.rank-content em {
  display: block;
}

.rank-content strong {
  font-size: 17px;
}

.rank-content em {
  margin-top: 5px;
  color: #6b7280;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero {
  padding: 48px 0;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 32%), linear-gradient(135deg, #111827, #1f2937 52%, #431407);
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 38px;
  align-items: center;
}

.poster-panel {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffedd5;
}

.player-section {
  padding-top: 44px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.22);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-orb {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 24px 46px rgba(249, 115, 22, 0.42);
  font-size: 36px;
  transform: translateX(3px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 34px;
}

.story-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.story-card p {
  margin: 14px 0 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.review-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.related-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.site-footer {
  background: linear-gradient(180deg, #111827, #030712);
  color: #d1d5db;
  padding-top: 48px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  margin: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-carousel {
    height: 540px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 17px;
  }

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

  .movie-grid-5,
  .movie-grid-4,
  .movie-grid-3,
  .horizontal-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .movie-card-link {
    display: block;
  }

  .movie-thumb-wide {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .poster-panel {
    max-width: 280px;
  }

  .rank-row a {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .page-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text em {
    font-size: 11px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-arrow {
    display: none;
  }

  .feature-panel,
  .ranking-panel,
  .story-card {
    padding: 20px;
    border-radius: 20px;
  }

  .section-heading h2,
  .center-heading h2,
  .story-card h2,
  .player-section h2 {
    font-size: 26px;
  }
}
