:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #1f2937;
  --panel-light: #273449;
  --border: #334155;
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #facc15;
  --accent-hover: #fde047;
  --accent-deep: #f97316;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.10), transparent 30%), linear-gradient(135deg, #111827 0%, #1f2937 46%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
}

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: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 32px rgba(250, 204, 21, 0.26);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  color: #d1d5db;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--accent);
  background: rgba(31, 41, 55, 0.92);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111827;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-input {
  border: 0;
  outline: 0;
  color: #ffffff;
  background: #1f2937;
}

.header-search input {
  width: 220px;
  padding: 11px 13px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #111827;
  background: var(--accent);
  font-weight: 800;
  padding: 11px 16px;
  cursor: pointer;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.button.primary:hover {
  background: var(--accent-hover);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #1f2937;
  cursor: pointer;
  padding: 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e5e7eb;
  border-radius: 20px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  background: #111827;
}

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

.mobile-search {
  display: flex;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 12px;
}

.mobile-link {
  display: block;
  padding: 12px 10px;
  font-weight: 700;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.84) 42%, rgba(17, 24, 39, 0.2)), linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1) 45%, rgba(17, 24, 39, 0.85));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.hero-copy {
  max-width: 650px;
  padding: 78px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span,
.hero h2 span,
.section-title span,
.page-hero h1 span {
  color: var(--accent);
}

.hero-movie {
  font-size: clamp(24px, 3vw, 42px);
  margin: 0 0 18px;
}

.hero-text {
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  margin: 0 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-card {
  width: 270px;
  min-height: 390px;
  padding: 12px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 17px;
  background: linear-gradient(135deg, #273449, #111827);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border 0.22s ease;
}

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

.button.primary {
  color: #111827;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(250, 204, 21, 0.24);
}

.button.ghost {
  color: #ffffff;
  background: rgba(31, 41, 55, 0.92);
  border: 1px solid #374151;
}

.button.ghost:hover {
  background: #374151;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--accent);
}

.section {
  padding: 64px 0;
}

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

.section-title,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-hero p,
.category-card p,
.movie-content p,
.rank-card p,
.article-card p,
.detail-summary p {
  color: var(--muted);
  line-height: 1.72;
}

.section-subtitle {
  margin: 9px 0 0;
  max-width: 740px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(250, 204, 21, 0.52);
  background: #273449;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #273449, #111827);
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.22s ease;
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.86));
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.movie-content {
  padding: 16px;
}

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

.badge,
.tag-row span,
.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #d1d5db;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.85);
}

.badge.accent,
.tag-link:hover {
  color: #111827;
  background: var(--accent);
  border-color: var(--accent);
}

.movie-content h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-content h3 a:hover,
.rank-title:hover,
.breadcrumb a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.movie-content p {
  min-height: 72px;
  margin: 0 0 14px;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(51, 65, 85, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border 0.24s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -45px;
  top: -45px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.54);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p,
.category-card .button {
  position: relative;
  z-index: 1;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.9);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #273449, #111827);
}

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

.rank-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111827;
  background: var(--accent);
  font-weight: 900;
}

.rank-title {
  font-size: 19px;
  font-weight: 850;
}

.rank-card p {
  margin: 8px 0;
  font-size: 14px;
}

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

.page-hero {
  padding: 62px 0 44px;
  background: linear-gradient(90deg, rgba(31, 41, 55, 0.88), rgba(17, 24, 39, 0.92));
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  margin-bottom: 16px;
  font-size: 14px;
}

.filter-bar,
.search-panel {
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.9);
}

.filter-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.85);
}

.pagination a:hover,
.pagination .active {
  color: #111827;
  background: var(--accent);
  border-color: var(--accent);
}

.detail-hero {
  padding: 28px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-area {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.85);
  box-shadow: var(--shadow);
}

.player-area video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #111827;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.26), rgba(15, 23, 42, 0.76) 46%, rgba(2, 6, 23, 0.86));
  cursor: pointer;
}

.play-overlay strong {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.play-overlay span {
  color: #ffffff;
  font-weight: 850;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.player-area.is-playing .play-overlay {
  display: none;
}

.detail-side,
.article-card,
.search-result-card {
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.detail-side {
  overflow: hidden;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #273449, #111827);
}

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

.detail-meta-box {
  padding: 20px;
}

.detail-meta-box h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
}

.meta-list {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-list strong {
  color: #ffffff;
}

.article-card {
  padding: 26px;
  margin-top: 24px;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0 0 14px;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.search-panel form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 15px;
}

.search-panel button {
  padding: 0 22px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 16px;
  padding: 12px;
}

.search-result-card img {
  width: 95px;
  height: 136px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #273449, #111827);
}

.search-result-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.search-result-card p {
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.65;
}

.empty-state {
  padding: 34px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(31, 41, 55, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(15, 23, 42, 0.94);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

img.is-hidden {
  opacity: 0;
}

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

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

  .hero-card {
    display: none;
  }
}

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

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

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .section-header,
  .page-header-row,
  .footer-inner {
    display: block;
  }

  .section-actions,
  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }

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

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

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

  .hero-copy {
    padding: 58px 0 82px;
  }

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

  .hero-movie {
    font-size: 24px;
  }

  .button {
    width: 100%;
  }

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

  .movie-content {
    padding: 13px;
  }

  .movie-content p {
    min-height: auto;
  }

  .rank-card,
  .search-result-card {
    grid-template-columns: 82px 1fr;
  }

  .search-result-card img {
    width: 82px;
    height: 118px;
  }

  .search-panel form {
    display: block;
  }

  .search-panel input,
  .search-panel button {
    width: 100%;
  }
}
