:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  color: #334155;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 999px;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-dark);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #334155;
  background: #f1f5f9;
  border-radius: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

.btn-secondary {
  color: var(--cyan-dark);
  background: #ffffff;
  border: 2px solid rgba(6, 182, 212, 0.28);
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(105deg, rgba(2, 6, 23, 0.88), rgba(8, 47, 73, 0.72), rgba(15, 23, 42, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.36), transparent 34%), radial-gradient(circle at 85% 40%, rgba(37, 99, 235, 0.25), transparent 32%);
}

.hero-inner {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 80px 0;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
  animation: slideUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgba(2, 6, 23, 0.5);
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #e2e8f0;
  font-size: 20px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #0e7490;
  background: rgba(207, 250, 254, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.hero-search {
  display: flex;
  max-width: 620px;
  margin-top: 30px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
}

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

.hero-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  padding: 12px 22px;
  border-radius: 13px;
  font-weight: 900;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.86);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

.quick-categories {
  position: relative;
  margin-top: -34px;
  z-index: 5;
}

.quick-category-links {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-category-links a {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #334155;
  background: #f8fafc;
  border-radius: 16px;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.quick-category-links a:hover {
  color: #ffffff;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  transform: translateY(-2px);
}

.content-section {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #f8fafc, #eef7fb);
}

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

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

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

.section-more {
  color: var(--cyan-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.54));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 12px;
  font-weight: 900;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

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

.tag-list span {
  color: #475569;
  background: #f8fafc;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

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

.category-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

.category-card div {
  padding: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.category-card span {
  color: var(--cyan-dark);
  font-weight: 900;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.ranking-panel.wide {
  position: static;
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-title span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 18px;
  font-weight: 900;
}

.ranking-title h2 {
  margin: 0;
  font-size: 28px;
}

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

.compact-list.small {
  gap: 10px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.compact-card img {
  width: 82px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.compact-card span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.mini-rank {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 10px;
}

.page-main {
  background: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #ffffff;
  background-image: linear-gradient(120deg, rgba(2, 6, 23, 0.88), rgba(8, 145, 178, 0.76)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.small-hero {
  background-image: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.32), transparent 36%), linear-gradient(120deg, #020617, #075985);
}

.category-hero,
.rank-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
}

.filter-panel {
  margin-bottom: 30px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-line {
  display: flex;
  gap: 12px;
}

.search-line input {
  flex: 1;
  min-width: 0;
  border: 2px solid #e2e8f0;
  outline: 0;
  border-radius: 16px;
  padding: 12px 16px;
  transition: border-color 0.25s ease;
}

.search-line input:focus {
  border-color: var(--cyan);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  border: 0;
  color: #475569;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.chip.active,
.chip:hover {
  color: #ffffff;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
}

.empty-result {
  display: none;
  margin-top: 24px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  font-weight: 800;
}

.empty-result.show {
  display: block;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 22px;
}

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

.category-overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  padding: 34px 0 64px;
  color: #ffffff;
  background-image: linear-gradient(120deg, rgba(2, 6, 23, 0.94), rgba(8, 47, 73, 0.82), rgba(15, 23, 42, 0.76)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
}

.video-shell video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-large {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.38);
  font-size: 34px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(18px);
}

.detail-card img {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

.detail-card h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.18;
}

.detail-card p {
  margin: 0 0 14px;
  color: #475569;
}

.detail-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-article,
.side-box {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.side-box h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.detail-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.detail-nav-row a {
  color: var(--cyan-dark);
  font-weight: 900;
}

.site-footer {
  color: #334155;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 30px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  padding: 20px 0 32px;
  color: var(--muted);
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-inner,
  .split-layout,
  .detail-layout,
  .detail-content-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .hero-poster {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: #ecfeff;
  }

  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 760px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 62px 0 88px;
  }

  .hero-poster {
    max-width: 100%;
    transform: none;
  }

  .hero-poster img {
    height: 360px;
  }

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

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

  .category-card img,
  .category-cover img {
    height: 260px;
  }

  .detail-card img {
    width: 100%;
    height: 320px;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }

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

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-search,
  .search-line,
  .hero-actions,
  .section-head,
  .detail-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-grid,
  .movie-grid.two-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 300px;
  }

  .video-shell {
    min-height: 220px;
    border-radius: 20px;
  }

  .detail-article,
  .side-box,
  .ranking-panel,
  .filter-panel {
    padding: 18px;
    border-radius: 20px;
  }
}
