:root {
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-600), #2563eb);
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28);
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--cyan-700);
  background: var(--cyan-50);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.page-shell {
  min-height: 70vh;
  padding-bottom: 48px;
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 600px;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 56px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay,
.category-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.46) 48%, rgba(2, 6, 23, 0.14));
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  color: var(--white);
}

.hero-badge,
.page-hero span,
.category-hero-content span,
.detail-title-block span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--cyan-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.hero-search-form button,
.category-hero-content .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--cyan-600);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:hover,
.hero-search-form button:hover,
.category-hero-content .primary-button:hover {
  background: var(--cyan-700);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-mini-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.hero-search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--cyan-50), var(--blue-50));
  box-shadow: var(--shadow-card);
}

.hero-search-panel strong {
  display: block;
  color: var(--slate-900);
  font-size: 20px;
}

.hero-search-panel span {
  color: var(--slate-600);
}

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

.hero-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.hero-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan-600);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.content-section {
  margin-top: 56px;
}

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

.section-heading span {
  padding: 6px 10px;
  font-size: 13px;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--cyan-700);
  font-weight: 700;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-100), var(--cyan-50));
}

.poster-small {
  height: 170px;
}

.poster-medium {
  height: 230px;
}

.poster-large {
  height: 300px;
}

.poster-horizontal {
  width: 190px;
  min-height: 152px;
  flex: 0 0 190px;
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-panel:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 44px;
  opacity: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.46);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient,
.movie-card:hover .poster-play {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--cyan-600);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(8, 145, 178, 0.24);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--cyan-700);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-row span,
.badge-soft,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--cyan-700);
  background: var(--cyan-50);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-horizontal {
  display: flex;
  min-height: 152px;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.gradient-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--cyan-50), var(--blue-50));
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.scroll-item {
  width: 280px;
  flex: 0 0 280px;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.category-tile img,
.category-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 22px;
}

.category-tile small {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.page-hero {
  margin-top: 34px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--slate-900), #155e75);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

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

.category-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 180px;
  overflow: hidden;
}

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

.category-panel-body h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--slate-900);
}

.category-panel-body p {
  margin: 0 0 16px;
  color: var(--slate-600);
  line-height: 1.7;
}

.category-panel-body span {
  color: var(--cyan-700);
  font-weight: 800;
}

.category-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  margin-top: 0;
  padding: 72px 0 48px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

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

.category-hero-content h1 {
  margin: 16px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.category-hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 88px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.rank-no {
  color: var(--cyan-700);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 88px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-main strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 18px;
}

.rank-main small {
  color: var(--slate-600);
  line-height: 1.5;
}

.rank-meta {
  color: var(--slate-500);
  white-space: nowrap;
}

.rank-side {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--cyan-50), var(--blue-50));
}

.rank-side h2 {
  margin: 0 0 16px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-700);
  font-weight: 700;
}

.player-section {
  margin-top: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: var(--slate-950);
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: transparent;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
}

.player-dark {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.28));
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--cyan-600);
  box-shadow: 0 20px 40px rgba(8, 145, 178, 0.32);
  font-size: 42px;
  transform: translate(-50%, -50%);
}

.player-name {
  position: absolute;
  left: 32px;
  bottom: 28px;
  right: 32px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  text-align: left;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.detail-main,
.detail-side .side-info-card,
.text-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-main {
  padding: 30px;
}

.detail-title-block h1 {
  margin: 16px 0 12px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-title-block p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

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

.detail-meta-grid div {
  padding: 16px;
  border-radius: 14px;
  background: var(--slate-50);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.detail-meta-grid span {
  color: var(--slate-900);
  font-weight: 800;
}

.text-panel {
  margin-top: 18px;
  padding: 22px;
  background: var(--slate-50);
  box-shadow: none;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--slate-900);
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.next-prev a {
  padding: 14px;
  border-radius: 12px;
  color: var(--cyan-700);
  background: var(--cyan-50);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: var(--slate-100);
}

.side-info-card {
  padding: 20px;
}

.side-info-card h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
}

.side-info-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  line-height: 1.7;
}

.side-info-card a {
  color: var(--cyan-700);
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-logo {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.25s ease;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

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

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

  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-side,
  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-panel,
  .filter-panel,
  .footer-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-meta {
    display: none;
  }

  .detail-meta-grid,
  .next-prev {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .hero-carousel {
    width: min(100% - 20px, 1180px);
  }

  .header-inner {
    height: 64px;
  }

  .site-logo,
  .footer-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-carousel {
    height: 480px;
    margin-top: 18px;
    border-radius: 18px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-content p {
    font-size: 15px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-button,
  .ghost-button,
  .hero-search-form button {
    min-height: 42px;
    padding: 0 14px;
  }

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

  .poster-medium,
  .poster-large {
    height: 270px;
  }

  .movie-card-horizontal {
    display: block;
  }

  .poster-horizontal {
    width: 100%;
    height: 230px;
  }

  .page-hero,
  .detail-main {
    padding: 24px;
  }

  .category-covers {
    height: 128px;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }

  .player-name {
    left: 18px;
    bottom: 18px;
    right: 18px;
  }
}
