* {
  box-sizing: border-box;
}

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  margin: 0;
  color: #1f2937;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

.brand-icon::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #ffffff;
}

.brand-text strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-weight: 700;
}

.main-nav a {
  color: #374151;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 340px;
}

.nav-search input,
.big-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.big-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.nav-search button,
.big-search button {
  border: none;
  border-radius: 14px;
  background: var(--red);
  color: white;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.big-search button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-panel a,
.mobile-cats a {
  padding: 11px 12px;
  border-radius: 12px;
  background: #f9fafb;
  font-weight: 700;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.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.88), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 44%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 86px;
  color: white;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-main-card h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-desc {
  max-width: 720px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: 20px;
}

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

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-glass {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-text {
  color: white;
  padding-left: 6px;
}

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

.hero-dot {
  width: 30px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--red);
}

.quick-search-panel {
  position: relative;
  margin-top: -44px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  z-index: 3;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-cats a,
.category-tile,
.section-more,
.board-link {
  color: var(--red);
  font-weight: 900;
}

.quick-cats a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fee2e2;
}

.page-section,
.inner-page {
  padding-top: 56px;
}

.inner-page {
  padding-bottom: 64px;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  letter-spacing: -0.03em;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.movie-card-wide .poster {
  aspect-ratio: 16 / 10;
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.poster:hover .poster-mask,
.movie-card:hover .poster-mask {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

.play-dot,
.big-play {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.35);
}

.play-dot::after,
.big-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #ffffff;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.movie-info h2 {
  margin: 13px 0 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-body h2 a:hover,
.category-block h2 a:hover {
  color: var(--red);
}

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

.desc-line {
  margin-top: 6px;
}

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

.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
  padding: 4px 8px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

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

.category-tile {
  min-height: 132px;
  border-radius: 22px;
  padding: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  color: #111827;
  font-size: 22px;
}

.category-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.hot-board,
.detail-side-card,
.detail-main-card {
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hot-board {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 92px;
}

.hot-board h2,
.detail-side-card h2 {
  margin: 0 0 18px;
  color: #111827;
}

.compact-list {
  display: grid;
  gap: 13px;
}

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
  transition: transform 0.25s ease;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #111827;
  line-height: 1.3;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.board-link {
  display: inline-flex;
  margin-top: 18px;
}

.page-hero {
  border-radius: 28px;
  padding: 56px;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.6), transparent 30%), linear-gradient(135deg, #111827, #991b1b);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: #f3f4f6;
  font-size: 18px;
}

.category-block {
  padding-top: 48px;
}

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

.category-full-grid {
  margin-top: 34px;
}

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

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

.breadcrumb.dark {
  color: #d1d5db;
}

.rank-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fee2e2;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-thumb img {
  width: 110px;
  height: 148px;
  object-fit: cover;
  background: #111827;
  transition: transform 0.25s ease;
}

.rank-body h2 {
  margin: 0 0 8px;
  color: #111827;
}

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

.rank-meta span {
  background: #f3f4f6;
  color: #4b5563;
}

.search-page-form {
  max-width: 760px;
  margin-top: 28px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.search-empty {
  grid-column: 1 / -1;
  border-radius: 22px;
  padding: 28px;
  color: var(--muted);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.player-wrap {
  background: #050505;
  padding: 24px 0 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 84px;
  height: 84px;
}

.big-play::after {
  left: 34px;
  top: 25px;
  border-top-width: 17px;
  border-bottom-width: 17px;
  border-left-width: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  padding-top: 42px;
}

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-main-card h1 {
  color: #111827;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span,
.detail-tags span {
  background: #f3f4f6;
  color: #374151;
}

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

.content-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-block h2 {
  margin: 0 0 12px;
  color: #111827;
}

.content-block p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

.detail-side-card {
  align-self: start;
  position: sticky;
  top: 92px;
}

.detail-side-card > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px;
  background: #111827;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px 12px;
  margin: 0 0 24px;
  font-size: 14px;
}

.detail-side-card dt {
  color: var(--muted);
}

.detail-side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.detail-side-card dd a {
  color: var(--red);
}

.site-footer {
  margin-top: 72px;
  background: #111827;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand .brand-icon {
  width: 36px;
  height: 36px;
}

.footer-brand .brand-icon::after {
  left: 14px;
  top: 10px;
  border-top-width: 8px;
  border-bottom-width: 8px;
  border-left-width: 12px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  padding: 18px 0 22px;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .hot-board,
  .detail-side-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: 64px;
  }

  .main-nav,
  .nav-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .quick-search-panel {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .big-search {
    grid-template-columns: 1fr;
  }

  .poster-grid,
  .small-grid,
  .wide-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero {
    padding: 34px 24px;
  }

  .rank-item {
    grid-template-columns: 52px 86px 1fr;
    gap: 12px;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .rank-thumb img {
    width: 86px;
    height: 116px;
  }
}

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

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

  .brand-text em {
    display: none;
  }

  .hero {
    height: 520px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .poster-grid,
  .small-grid,
  .wide-grid,
  .search-results {
    gap: 16px;
  }

  .movie-info h2 {
    font-size: 14px;
  }

  .desc-line,
  .tag-row {
    display: none;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-main-card,
  .detail-side-card {
    padding: 20px;
  }

  .detail-title-row {
    flex-direction: column;
  }
}
