:root {
  --yellow: #facc15;
  --yellow-dark: #eab308;
  --orange: #fb923c;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #facc15, #fb923c, #f59e0b);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.header-search button,
.mobile-toggle {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
  padding: 9px 14px;
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
}

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

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

.mobile-nav a,
.category-pill {
  display: inline-flex;
  margin: 5px 6px 5px 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.page-main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 600px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition:
    opacity 0.65s ease,
    transform 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-content {
  max-width: 680px;
  margin-left: clamp(24px, 7vw, 88px);
  padding: 24px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #f3f4f6;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.7;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  color: #111827;
  background: var(--yellow);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.35);
}

.btn-primary:hover,
.btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-primary.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 30px;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.07);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  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.is-active {
  width: 34px;
  background: var(--yellow);
}

.sub-hero {
  margin-bottom: 28px;
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at top left,
      rgba(250, 204, 21, 0.55),
      transparent 32%
    ),
    linear-gradient(135deg, #111827, #3f2600 55%, #d97706);
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
}

.sub-hero p {
  max-width: 720px;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
}

.section-block {
  margin: 34px 0;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
}

.section-head p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.section-head > a {
  flex: 0 0 auto;
  color: #92400e;
  font-weight: 900;
}

.soft-card {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.1);
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.search-box {
  flex: 0 1 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-region,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-region {
  left: 12px;
  color: #111827;
  background: var(--yellow);
}

.rank-badge {
  right: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card:hover .movie-title {
  color: #d97706;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.category-card {
  min-height: 176px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 34px;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: #78350f;
  line-height: 1.6;
}

.masonry-grid {
  columns: 4 240px;
  column-gap: 22px;
}

.masonry-grid .movie-card {
  break-inside: avoid;
  margin-bottom: 22px;
}

.horizontal-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
  display: none;
}

.horizontal-row .movie-card {
  flex: 0 0 278px;
}

.scroll-actions {
  display: flex;
  gap: 10px;
}

.scroll-actions button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.wide-list {
  display: grid;
  gap: 22px;
}

.wide-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.wide-card:nth-child(even) .wide-cover {
  order: 2;
}

.wide-cover {
  min-height: 220px;
  background: #111827;
}

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

.wide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wide-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #78350f;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 900;
}

.wide-title {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 950;
}

.wide-content p {
  color: var(--muted);
  line-height: 1.8;
}

.empty-tip {
  display: none;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #b45309;
  font-weight: 800;
}

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

.detail-main-card,
.related-card,
.poster-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.static-player {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  color: #111827;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.player-play span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
}

.static-player.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.detail-content {
  padding: clamp(20px, 4vw, 34px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill-main,
.pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.pill-main {
  color: #111827;
  background: var(--yellow);
}

.pill-soft {
  color: #374151;
  background: #f3f4f6;
}

.detail-content h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 950;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.lead-text {
  margin: 0 0 26px;
  color: #374151;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.75;
}

.article-section {
  margin-top: 26px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.article-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.large-tags .tag {
  padding: 7px 12px;
  font-size: 13px;
}

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

.poster-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #111827;
}

.related-card {
  padding: 20px;
}

.related-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fffbeb;
}

.related-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

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

.related-item strong {
  margin-bottom: 6px;
  font-style: normal;
  font-weight: 900;
  -webkit-line-clamp: 2;
}

.related-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.rank-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.rank-board {
  position: sticky;
  top: 90px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.rank-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-num {
  color: #b45309;
  font-weight: 950;
}

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

.rank-meta {
  grid-column: 3;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 60px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--yellow);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 8px 0;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

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

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

  .rank-board,
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-slider {
    height: 520px;
    border-radius: 22px;
  }

  .search-panel,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    flex-basis: auto;
  }

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

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

  .wide-card:nth-child(even) .wide-cover {
    order: 0;
  }

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

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

  .hero-slider {
    height: 500px;
    margin-top: 18px;
  }

  .hero-content {
    margin-left: 0;
    padding: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .soft-card,
  .search-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .category-grid,
  .movie-grid,
  .all-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-row .movie-card {
    flex-basis: 82vw;
  }

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

  .detail-content {
    padding: 20px;
  }

  .player-play {
    padding: 12px 18px;
  }
}
