* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

body.lock-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand {
  font-size: 1.45rem;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #14b8a6);
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.25);
}

.brand-name,
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-link {
  position: relative;
  font-weight: 700;
  color: #374151;
  transition: color 0.25s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  content: "";
  background: #06b6d4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0891b2;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 0;
  border-radius: 0.75rem;
  background: #f3f4f6;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 999px;
}

.nav-categories {
  border-top: 1px solid #eef2f7;
  background: rgba(248, 250, 252, 0.8);
}

.nav-categories-inner {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav-categories-inner a {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #475569;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.nav-categories-inner a:hover {
  color: #0891b2;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #f0fdfa 100%);
}

.bg-pattern::before,
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.52;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 3rem;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 3px 3px 6px rgba(15, 23, 42, 0.08);
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

.hero-lead {
  max-width: 42rem;
  font-size: 1.12rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 34px rgba(6, 182, 212, 0.32);
}

.btn-secondary {
  color: #374151;
  background: #ffffff;
  border: 2px solid #d1d5db;
}

.btn-secondary:hover {
  color: #0891b2;
  border-color: #06b6d4;
}

.btn-light {
  color: #0891b2;
  background: #ffffff;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-links a,
.filter-chip,
.movie-tags span,
.detail-tags span,
.footer-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-links a,
.filter-chip {
  padding: 0.55rem 0.9rem;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hero-frame {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 1.5rem;
  overflow: hidden;
  color: #ffffff;
  border-radius: 1.6rem;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-slide.active img {
  transform: scale(1.08);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.88));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
}

.hero-slide h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.15;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.42);
}

.hero-slide p {
  color: rgba(255, 255, 255, 0.88);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.hero-badges span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-dot.active {
  width: 2rem;
  background: #ffffff;
}

.section {
  padding: 4.5rem 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.section-gradient {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
}

.section-gradient .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.36);
  transform: translateY(-5px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.13);
}

.poster-wrap {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.region-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  max-width: 78%;
  padding: 0.32rem 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  color: #0891b2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.78);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

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

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.movie-body h3 {
  display: -webkit-box;
  min-height: 3rem;
  margin: 0 0 0.5rem;
  overflow: hidden;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover .movie-body h3 {
  color: #0891b2;
}

.movie-body p {
  display: -webkit-box;
  margin: 0 0 0.85rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  color: #64748b;
  font-size: 0.85rem;
}

.movie-tags,
.detail-tags,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.movie-tags span,
.detail-tags span,
.footer-tags a {
  padding: 0.28rem 0.6rem;
  color: #0f766e;
  background: #ecfeff;
  font-size: 0.78rem;
}

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

.category-tile {
  position: relative;
  min-height: 11rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.28s ease;
}

.category-tile::after {
  position: absolute;
  right: -1rem;
  bottom: -1.4rem;
  content: "剧";
  color: rgba(6, 182, 212, 0.08);
  font-size: 6.5rem;
  font-weight: 900;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.12);
}

.category-tile strong {
  display: block;
  margin-bottom: 0.7rem;
  color: #0f172a;
  font-size: 1.25rem;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #f8fafc);
}

.page-hero > .container-custom {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 64rem;
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 54rem;
  margin: 0;
  color: #5b6473;
  font-size: 1.1rem;
  line-height: 1.8;
}

.filter-panel {
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.9rem;
  outline: none;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
  padding: 0 1rem;
}

.filter-select {
  padding: 0 0.8rem;
}

.search-box input:focus,
.filter-select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.empty-state {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0.9rem;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

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

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 4rem 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.11);
}

.rank-number {
  color: transparent;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.7rem;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 0.35rem;
  color: #111827;
  font-size: 1.05rem;
}

.rank-info em {
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-play {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: #0891b2;
  background: #ecfeff;
  font-weight: 800;
}

.detail-hero {
  padding: 2.4rem 0;
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #f8fafc);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  color: #64748b;
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #0891b2;
}

.detail-head {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.18);
}

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

.detail-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.detail-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
  font-weight: 800;
}

.detail-intro {
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.85;
}

.player-section {
  padding: 3rem 0 1.5rem;
  background: #0f172a;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #000000;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.24), rgba(0, 0, 0, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.play-overlay span {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.35);
  font-size: 2rem;
}

.player-side {
  padding: 1.2rem;
  border-radius: 1.2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.player-side h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.player-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
}

.article-card,
.side-card {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-card + .article-card,
.side-card + .side-card {
  margin-top: 1rem;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 1rem;
  color: #111827;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.small-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease;
}

.small-card:hover {
  background: #f8fafc;
}

.small-card img {
  width: 4.5rem;
  height: 4rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

.small-card span {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 4rem;
  color: #4b5563;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 0.9rem;
  color: #111827;
}

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

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a:hover {
  color: #0891b2;
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #06b6d4;
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.back-top.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-in both;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out both;
}

@media (max-width: 1080px) {
  .hero-inner,
  .player-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 430px;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
  }

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

  .nav-link {
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
  }

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

  .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-frame {
    min-height: 370px;
  }

  .section-head,
  .detail-head {
    display: block;
  }

  .detail-poster {
    max-width: 18rem;
    margin-bottom: 1.5rem;
  }

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

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

  .rank-row {
    grid-template-columns: 3rem 4rem minmax(0, 1fr);
  }

  .rank-play {
    display: none;
  }
}

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

  .nav-categories-inner {
    padding-left: 1rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-frame {
    min-height: 330px;
  }

  .hero-slide {
    padding: 1rem;
    border-radius: 1.2rem;
  }

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

  .poster-wrap {
    height: 15rem;
  }

  .page-hero,
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .rank-info em {
    white-space: normal;
  }
}
