:root {
  --orange: #ea580c;
  --orange-light: #fb923c;
  --red: #dc2626;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --card: #ffffff;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff1f2 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.site-nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  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;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-light), var(--red));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #374151;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-top: 68px;
  background: linear-gradient(115deg, #ea580c, #dc2626 52%, #facc15);
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(251, 146, 60, 0.28), transparent 38%), linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.78));
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(880px, calc(100% - 36px));
  transform: translate(-50%, -46%);
  text-align: center;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.eyebrow.dark {
  color: var(--orange);
  background: #ffedd5;
  text-shadow: none;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: clamp(18px, 2.5vw, 25px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
}

.hero .btn.primary {
  color: var(--orange);
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.page-hero .btn.ghost {
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

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

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

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

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

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

.stat-card,
.search-panel,
.category-card,
.text-card,
.info-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 42px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.search-panel {
  padding: 44px;
}

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

.section-title.centered {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

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

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

.section-title a,
.text-link {
  color: var(--orange);
  font-weight: 800;
}

.search-box,
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(820px, 100%);
  margin: 0 auto;
}

.search-box.slim {
  margin: 0 0 24px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.search-box input,
.filter-bar input {
  flex: 1 1 auto;
  padding: 0 18px;
}

.filter-bar select {
  width: 150px;
  padding: 0 12px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 15px;
}

.movie-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.movie-card.compact .movie-body h3 {
  font-size: 15px;
}

.movie-body h3 a:hover {
  color: var(--orange);
}

.movie-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.meta-row {
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.warm-block {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(254, 242, 242, 0.92));
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile h3,
.category-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile p,
.category-card p,
.category-card li {
  color: var(--muted);
  font-size: 14px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 22px;
}

.category-card ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.rank-section {
  padding-top: 20px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-list img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  flex: 0 0 auto;
}

.rank-info {
  display: grid;
  gap: 4px;
}

.rank-info strong {
  line-height: 1.25;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  margin-top: 68px;
  padding: 96px 16px;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(circle at 22% 20%, rgba(250, 204, 21, 0.36), transparent 28%), linear-gradient(120deg, #ea580c, #dc2626 62%, #7f1d1d);
}

.compact-hero {
  padding-top: 86px;
  padding-bottom: 70px;
}

.page-hero > div {
  width: min(820px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #ffffff;
}

.rank-table th,
.rank-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rank-table th {
  color: #9a3412;
  background: #ffedd5;
  font-size: 14px;
}

.table-movie {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-movie img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.table-movie span {
  display: grid;
  gap: 4px;
}

.table-movie em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.detail-poster {
  display: grid;
  gap: 22px;
}

.detail-poster > img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.info-card,
.text-card {
  padding: 24px;
}

.info-card h2,
.text-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

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

.detail-title {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.detail-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.watch-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.watch-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.big-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.38), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.big-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.36);
  font-size: 30px;
}

.big-play strong {
  font-size: 20px;
}

.watch-card.is-playing .big-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-state {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  pointer-events: none;
}

.watch-card.is-playing .play-state {
  display: none;
}

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

.related-block {
  padding-top: 36px;
}

.site-footer {
  margin-top: 40px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937 56%, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 19px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fb923c;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

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

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

@media (max-width: 820px) {
  .site-nav-wrap {
    width: min(100% - 24px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-current {
    background: #fff7ed;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .stat-grid,
  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .category-card-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar select {
    width: 100%;
  }

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

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

  .detail-poster > img {
    width: min(360px, 100%);
    margin: 0 auto;
  }

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

@media (max-width: 540px) {
  .brand-name {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .stat-grid,
  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .category-card-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    padding: 28px 18px;
  }

  .section-pad,
  .detail-wrap {
    width: min(100% - 24px, 1180px);
  }

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