:root {
  --bg: #fff7ed;
  --bg-strong: #ffedd5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --brand: #f97316;
  --brand-strong: #f59e0b;
  --brand-dark: #c2410c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -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(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.26);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f97316;
  background: #fff;
  border-radius: 15px;
  box-shadow: inset 0 -6px 12px rgba(249, 115, 22, 0.12);
}

.logo-text {
  white-space: nowrap;
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.92;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: #fff;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  overflow: hidden;
  width: 290px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  color: #fff;
  border: 0;
  outline: none;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button {
  padding: 8px 16px;
  color: #9a3412;
  border: 0;
  background: #fff;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 18px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transition: opacity 0.65s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58) 52%, rgba(17, 24, 39, 0.78)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0));
  backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  color: #fff;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-tags,
.detail-tags,
.tag-row,
.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.genre-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.tag-row span,
.genre-row span {
  color: #9a3412;
  background: #ffedd5;
}

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

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

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.primary-button.slim {
  min-height: 42px;
  margin-top: 22px;
  padding: 0 18px;
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: #fff;
}

.text-link {
  color: #ea580c;
}

.hero-cover {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 64px 0;
}

.compact-top {
  padding-top: 46px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-panel h2,
.rank-side h2,
.category-preview h2,
.sitemap-group h2 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

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

.with-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.inline-filter,
.toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.inline-filter input,
.toolbar input,
.toolbar select,
.large-search input,
.search-page-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #fff;
  box-shadow: 0 8px 22px rgba(124, 45, 18, 0.06);
}

.inline-filter input,
.toolbar input,
.toolbar select {
  padding: 0 16px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  color: #fff;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
}

.category-tile:hover img {
  opacity: 0.64;
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin-top: 72px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 4px;
  color: #fbbf24;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 42px rgba(124, 45, 18, 0.16);
  transform: translateY(-6px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 62px;
  margin-top: 10px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.rank-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 237, 213, 0.72));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.rank-main,
.rank-side,
.category-preview,
.detail-article,
.detail-panel,
.table-wrap,
.sitemap-group {
  padding: 28px;
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 86px;
  height: 58px;
  object-fit: cover;
}

.rank-item h3,
.rank-item p {
  margin: 0;
}

.rank-item h3 {
  color: #111827;
  font-size: 17px;
}

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

.rank-side {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #ea580c, #f59e0b);
}

.rank-side h2 {
  color: #fff;
  font-size: 36px;
}

.rank-side p {
  color: rgba(255, 255, 255, 0.86);
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.large-search input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
}

.large-search button {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #111827;
  font-weight: 900;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 0%, rgba(251, 191, 36, 0.32), transparent 36%),
    linear-gradient(135deg, #7c2d12, #ea580c 58%, #f59e0b);
}

.page-hero.small {
  padding: 74px 0;
}

.page-hero h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

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

.stacked {
  display: grid;
  gap: 26px;
}

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

.category-preview h2 {
  font-size: 34px;
}

.category-preview p {
  margin: 8px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.toolbar input,
.toolbar select {
  min-width: 220px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.88)),
    var(--detail-bg);
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 54px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.detail-copy h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  min-height: 58px;
  padding: 0 30px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.42);
  font-size: 18px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.player-start.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

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

.detail-article h2,
.detail-panel h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
}

.detail-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 18px;
}

.detail-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-panel dd {
  margin: 0;
  color: #111827;
}

.table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  text-align: left;
  vertical-align: top;
}

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

.table-title {
  color: #111827;
  font-weight: 900;
}

.ranking-table p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.table-rank {
  width: 38px;
  height: 38px;
}

.sitemap-group h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group li a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #111827;
  font-weight: 800;
}

.sitemap-group small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
}

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

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

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

[hidden],
.is-filtered-out {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .header-search {
    display: none;
  }

  .hero {
    height: 680px;
  }

  .hero-content,
  .detail-layout,
  .rank-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-content: center;
    gap: 28px;
    padding: 42px 0;
  }

  .hero-cover {
    width: min(280px, 82vw);
    margin: 0 auto;
  }

  .hero-cover img {
    height: 260px;
  }

  .hero-control {
    display: none;
  }

  .with-search,
  .category-preview-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-filter,
  .toolbar label,
  .large-search {
    width: 100%;
  }

  .inline-filter input,
  .toolbar input,
  .toolbar select {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.dense,
  .sitemap-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-poster {
    width: min(320px, 88vw);
  }

  .detail-poster img {
    height: 410px;
  }
}

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

  .logo-text {
    font-size: 18px;
  }

  .hero {
    height: 720px;
  }

  .hero-copy p:not(.eyebrow),
  .detail-one-line {
    font-size: 16px;
  }

  .section {
    padding: 44px 0;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.dense,
  .sitemap-group ul {
    grid-template-columns: 1fr;
  }

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

  .rank-thumb img {
    width: 76px;
    height: 54px;
  }

  .large-search {
    flex-direction: column;
  }

  .player-start {
    min-height: 50px;
    padding: 0 22px;
    font-size: 16px;
  }
}
