:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --gold: #facc15;
  --slate: #0f172a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 42%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-container {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-menu a {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--red);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-board input,
.search-board select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.header-search input {
  width: 180px;
  padding: 8px 4px 8px 12px;
}

.header-search button,
.mobile-search button,
.search-board button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-menu nav,
.mobile-category-links {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 16px;
}

.mobile-search input {
  flex: 1;
  padding: 8px;
}

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

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

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

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

.hero-image,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2));
  right: 24px;
  bottom: 84px;
  max-width: 760px;
  color: #ffffff;
  animation: riseIn 0.7s ease both;
}

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 700;
  font-size: 0.82rem;
}

.hero-content .tag-list span,
.detail-copy .tag-list span {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 46px;
  padding: 12px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-button.small {
  min-height: 40px;
  padding: 10px 18px;
}

.ghost-button {
  min-height: 46px;
  padding: 12px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

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

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

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

.hero-category-strip {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 84px;
  display: grid;
  gap: 10px;
  width: 180px;
}

.hero-category-strip a {
  padding: 10px 14px;
  color: #ffffff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.content-block {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.section-more,
.text-link {
  color: var(--red);
  font-weight: 800;
}

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

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

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

.poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #111827;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

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

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 62%);
  transition: opacity 0.25s ease;
}

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

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

.card-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 0.72rem;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-item h3 {
  margin: 12px 0 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card-item h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-item:hover h3 a {
  color: var(--red);
}

.movie-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filter-panel,
.search-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.filter-panel select,
.search-board input,
.search-board select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.filter-panel input,
.search-board input {
  flex: 1 1 260px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

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

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.22) 100%);
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 20px;
  right: 20px;
}

.category-card strong {
  bottom: 70px;
  font-size: 1.4rem;
}

.category-card em {
  bottom: 20px;
  display: -webkit-box;
  overflow: hidden;
  color: #e5e7eb;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card:hover img {
  transform: scale(1.08);
}

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

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #111827, #7f1d1d);
  box-shadow: var(--shadow);
}

.ranking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: #ffffff;
}

.ranking-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ranking-title a {
  color: #fecaca;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: #ffffff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.rank-number {
  color: #fed7aa;
  font-weight: 900;
  font-size: 1.1rem;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: #d1d5db;
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.5), transparent 28%), linear-gradient(135deg, #0f172a, #7f1d1d 58%, #f97316);
}

.page-hero > div {
  width: min(1200px, calc(100% - 32px));
  min-height: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #f3f4f6;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

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

.category-summary-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.category-summary-head h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.category-summary-head p {
  color: var(--muted);
}

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

.mini-card {
  display: grid;
  gap: 10px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.mini-card span {
  display: grid;
  gap: 4px;
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card em {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

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

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.ranking-copy p {
  color: var(--muted);
}

.search-board {
  position: sticky;
  top: 92px;
  z-index: 10;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-background {
  position: absolute;
  inset: 0;
}

.detail-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) scale(1.08);
  opacity: 0.42;
}

.detail-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(127, 29, 29, 0.7));
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: #e5e7eb;
  font-size: 1.15rem;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 2;
}

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

.overlay-play {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.25rem;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-text article {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.detail-text p {
  color: #4b5563;
  margin: 0;
}

.next-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.next-links a {
  flex: 1;
  padding: 18px 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--red);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 58%, #0f172a);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.copyright {
  margin: 22px 0 0;
  color: #9ca3af;
}

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

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

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

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: relative;
    top: auto;
  }

  .hero-category-strip {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-container {
    height: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy em {
    display: none;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-content {
    left: 16px;
    right: 16px;
    bottom: 74px;
  }

  .hero-meta span,
  .detail-meta span {
    min-height: 30px;
    font-size: 0.86rem;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

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

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

  .category-summary-card,
  .detail-inner,
  .detail-text,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    gap: 28px;
    padding: 36px 0;
  }

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

  .page-hero > div {
    min-height: 240px;
  }

  .video-shell {
    border-radius: 18px;
  }

  .next-links {
    display: grid;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .wide-grid,
  .catalog-grid,
  .related-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-block {
    width: min(100% - 24px, 1200px);
    padding-top: 40px;
  }

  .rank-row {
    grid-template-columns: 34px 50px minmax(0, 1fr);
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-button,
  .ghost-button {
    min-height: 42px;
    padding: 10px 16px;
  }
}
