:root {
  --bg: #f6f8fc;
  --text: #111827;
  --muted: #657185;
  --line: rgba(148, 163, 184, 0.24);
  --card: #ffffff;
  --dark: #0f172a;
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --cyan: #06b6d4;
  --cyan-soft: #cffafe;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius: 18px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  overflow: hidden;
}

.nav-link {
  padding: 10px 13px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input {
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.top-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.filter-reset,
.text-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-button {
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.top-search button:hover,
.mobile-search button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 10px 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px 20px;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1 1 auto;
  width: auto;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.hero-slider {
  position: relative;
  min-height: 760px;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(6, 182, 212, 0.4), transparent 34%), linear-gradient(135deg, #172554 0%, #1e3a8a 48%, #0891b2 100%);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.72) 48%, rgba(8, 145, 178, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 640px;
  padding: 88px 22px 160px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: var(--cyan-soft);
  border: 1px solid rgba(207, 250, 254, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #a5f3fc;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-poster-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
  transition: 0.25s ease;
}

.hero-poster-card:hover {
  transform: rotate(0deg) translateY(-8px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster-card div {
  padding: 18px;
}

.hero-poster-card strong,
.hero-poster-card span {
  display: block;
}

.hero-poster-card span {
  color: #a5f3fc;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 4;
  width: min(var(--max-width), calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border-radius: 99px;
  opacity: 0.55;
}

.hero-dot.active {
  width: 46px;
  opacity: 1;
  background: #67e8f9;
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: min(var(--max-width), calc(100% - 44px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.34);
}

.hero-search-card form {
  display: flex;
  gap: 12px;
}

.hero-search-card input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 15px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero-search-card input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  color: #0f172a;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.quick-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-category-row a {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.stats-strip {
  max-width: var(--max-width);
  margin: -34px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  box-shadow: var(--shadow-soft);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  font-size: 28px;
  line-height: 1;
}

.stats-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.content-section,
.filter-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 22px 0;
}

.soft-section {
  max-width: none;
  margin-top: 64px;
  padding: 64px max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.soft-section .content-section {
  padding-top: 0;
}

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

.section-heading span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.section-more,
.text-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.category-tile span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.category-tile p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

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

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: 0.22s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.28s ease;
}

.movie-card-link:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.72) 100%);
}

.year-badge,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.year-badge,
.rank-badge {
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-play {
  right: 13px;
  bottom: 13px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.movie-card-body {
  padding: 16px;
}

.card-meta-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 8px 0 8px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: #1e3a8a;
  background: #dbeafe;
}

.card-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.card-footer-line strong {
  color: var(--primary);
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filter-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-title strong {
  font-size: 20px;
}

.filter-title span {
  color: var(--muted);
  font-size: 14px;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-reset {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.48), transparent 36%), linear-gradient(135deg, #0f172a, #1e3a8a 56%, #0e7490);
}

.page-hero > div {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 78px 22px;
}

.compact-hero h1,
.category-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.compact-hero p,
.category-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body > span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-body p {
  color: var(--muted);
}

.preview-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.preview-title-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 12px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ranking-number {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 950;
  font-size: 20px;
}

.ranking-poster img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.heat-value {
  color: var(--primary);
  font-size: 20px;
  text-align: right;
}

.detail-top {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.05);
}

.detail-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.78));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

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

.player-section {
  scroll-margin-top: 90px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.36), rgba(2, 6, 23, 0.82));
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.76);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  pointer-events: none;
}

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

.text-article,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.text-article h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.text-article p {
  margin: 0 0 22px;
  color: #334155;
  font-size: 17px;
}

.text-article p:last-child {
  margin-bottom: 0;
}

.detail-side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.detail-side-card dd {
  margin: 0;
}

.article-section {
  padding-bottom: 64px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 80px auto 0;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 34px;
  color: #cbd5e1;
}

.site-footer {
  margin-top: 72px;
  background: #0f172a;
}

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

.site-footer p {
  max-width: 470px;
  color: #94a3b8;
}

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

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

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 22px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}

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

  .menu-toggle {
    display: flex;
  }

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

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

@media (max-width: 960px) {
  .top-search {
    display: none;
  }

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

  .hero-content {
    padding-top: 68px;
    padding-bottom: 190px;
  }

  .hero-poster-card {
    max-width: 260px;
    transform: none;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .filter-controls .wide-field {
    grid-column: 1 / -1;
  }

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

  .ranking-row {
    grid-template-columns: 52px 76px minmax(0, 1fr);
  }

  .heat-value {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .hero-slider {
    min-height: 720px;
  }

  .hero-content {
    min-height: 610px;
    padding: 54px 16px 210px;
    gap: 26px;
  }

  .hero-search-card {
    width: calc(100% - 28px);
    padding: 14px;
  }

  .hero-search-card form {
    display: grid;
  }

  .hero-search-card button {
    min-height: 44px;
  }

  .hero-controls {
    bottom: 142px;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .ranking-grid,
  .featured-grid,
  .filter-controls {
    grid-template-columns: 1fr 1fr;
  }

  .content-section,
  .filter-section,
  .soft-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .category-cover img {
    min-height: 220px;
  }

  .detail-inner,
  .page-hero > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-poster {
    max-width: 240px;
  }

  .text-article,
  .detail-side-card {
    padding: 22px;
  }

  .footer-grid,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 460px) {
  .stats-strip,
  .category-grid,
  .movie-grid,
  .ranking-grid,
  .featured-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}
