* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #d97706;
  --yellow: #facc15;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
  --shadow-soft: 0 12px 28px rgba(154, 52, 18, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.20);
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.32);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-deep);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--orange-deep);
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-link.is-active,
.mobile-link.is-active {
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.22);
}

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

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(110deg, #ea580c 0%, #d97706 48%, #f59e0b 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.26) 0 2px, transparent 2px), radial-gradient(circle at 50px 50px, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px);
  background-size: 70px 70px;
}

.hero-inner {
  position: relative;
  min-height: 640px;
  padding: 92px 0 140px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.20);
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 42px);
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: 19px;
}

.hero-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.28);
}

.hero .primary-btn {
  color: var(--orange-deep);
  background: white;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.86);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 82px;
  display: flex;
  gap: 10px;
}

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

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

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  line-height: 0;
}

.section {
  padding: 62px 0;
}

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

.section-heading h2,
.page-hero h1,
.content-card h2,
.side-card h2,
.category-overview-head h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.text-link {
  color: var(--orange-deep);
  font-size: 15px;
}

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

.category-tile {
  position: relative;
  min-height: 138px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -32px;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 850;
}

.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffedd5;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(154, 52, 18, 0.20);
}

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

.all-movies {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.year-badge {
  right: 10px;
  top: 10px;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  padding: 14px;
}

.card-body h2 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--orange-deep);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-panel {
  padding-bottom: 80px;
}

.ranking-list {
  display: grid;
  gap: 12px;
  background: white;
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  transition: background 0.24s ease, transform 0.24s ease;
}

.rank-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  color: var(--orange-deep);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 72px 0;
  color: white;
  background: linear-gradient(105deg, #f97316, #d97706);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

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

.search-panel {
  margin-bottom: 28px;
  padding: 20px;
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 52px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf3;
}

.search-box span {
  color: var(--orange-deep);
  font-size: 22px;
  font-weight: 900;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-pill {
  border: 0;
  padding: 9px 15px;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

.filter-pill.is-active {
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.result-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.result-line span {
  color: var(--orange-deep);
  font-weight: 900;
}

.categories-stack {
  display: grid;
  gap: 28px;
}

.category-overview-card,
.content-card,
.side-card,
.player-card {
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

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

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  font-size: 28px;
}

.category-overview-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-topbar {
  padding: 24px 0;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  color: white;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

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

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.44);
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding-left: 6px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38);
  font-size: 34px;
  transition: transform 0.25s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.08);
}

.player-info {
  padding: 28px;
}

.player-info h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-tags span,
.tag-cloud span {
  color: #9a3412;
  background: #ffedd5;
}

.one-line {
  margin: 20px 0 0;
  padding-left: 16px;
  color: #374151;
  border-left: 4px solid var(--orange);
  font-size: 17px;
  font-style: italic;
}

.content-card {
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.review-card {
  background: #fffaf3;
}

.detail-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 22px;
}

.side-card {
  padding: 20px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
  border-radius: 20px;
}

.cover-card h2 {
  margin-top: 16px;
}

.cover-card p {
  color: var(--muted);
}

.side-btn {
  width: 100%;
  margin-top: 8px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.24s ease;
}

.related-card:hover {
  background: #fff7ed;
}

.related-poster {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

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

.related-info {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.related-info strong,
.related-info small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.related-info strong {
  -webkit-line-clamp: 2;
}

.related-info small {
  color: var(--muted);
  font-size: 12px;
  -webkit-line-clamp: 2;
}

.related-info em {
  color: #9a3412;
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fb923c;
  font-size: 26px;
  font-weight: 900;
}

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

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

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

.footer-links a {
  color: #9ca3af;
}

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    min-height: auto;
    padding: 62px 0 112px;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(300px, 84vw);
    justify-self: start;
    transform: none;
  }

  .hero-dots {
    bottom: 62px;
  }

  .section-heading,
  .category-overview-head {
    align-items: start;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }

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

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

  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    display: none;
  }

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

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

  .section {
    padding: 42px 0;
  }

  .movie-grid,
  .all-movies,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 14px;
  }

  .player-info,
  .content-card {
    padding: 20px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
