:root {
  --brand-cyan: #06b6d4;
  --brand-blue: #2563eb;
  --brand-deep: #0f172a;
  --brand-soft: #e0f7ff;
  --text-main: #111827;
  --text-muted: #64748b;
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  font-size: 30px;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.12) rotate(-6deg);
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0.02em;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  background: transparent;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
}

.dropdown-menu a:hover {
  background: #ecfeff;
  color: #0891b2;
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px 9px 16px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.header-search button {
  border: 0;
  color: var(--brand-blue);
  background: #ffffff;
  padding: 9px 14px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

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

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

.mobile-nav > a,
.mobile-category-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 52%, #1e40af 100%);
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.30), transparent 35%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.45) 48%, rgba(37, 99, 235, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  max-width: 1180px;
}

.hero-content .eyebrow {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #cffafe;
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  margin: 0 0 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.tag-pill,
.ranking-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dff8ff;
  color: #0369a1;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero .tag-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-btn,
.ghost-btn,
.watch-link,
.section-head > a,
.category-card-head a,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  color: #2563eb;
  background: #ffffff;
  padding: 12px 24px;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.watch-link:hover,
.section-head > a:hover,
.category-card-head a:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
}

.primary-btn.wide {
  width: 100%;
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 22px;
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: 330px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
  backdrop-filter: blur(22px);
}

.hero-side-title {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: auto 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.36);
  margin-bottom: 10px;
  transition: 0.22s ease;
}

.mini-card:hover {
  background: rgba(15, 23, 42, 0.58);
  transform: translateX(3px);
}

.mini-card img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

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

.mini-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  font-weight: 900;
  font-size: 12px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease;
}

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

.search-banner,
.section-wrap,
.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-banner {
  margin-top: -46px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-banner h2,
.section-head h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.search-banner h2 {
  font-size: 26px;
}

.search-banner p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.search-banner form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.search-banner input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 16px;
  outline: 0;
}

.search-banner input,
.filter-bar input {
  width: 100%;
}

.search-banner button,
.filter-bar button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  padding: 0 22px;
  white-space: nowrap;
}

.section-wrap {
  padding: 58px 0 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head p {
  margin: 0 0 6px;
  color: #0891b2;
  font-weight: 900;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-head > a,
.category-card-head a,
.watch-link {
  color: #2563eb;
  background: #e0f2fe;
  padding: 9px 16px;
}

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

.category-tile,
.category-overview-card {
  display: block;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  font-weight: 900;
  font-size: 18px;
  color: #0f172a;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
  font-size: 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.76);
  transition: 0.24s ease;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #cffafe);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.movie-meta-line,
.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.movie-meta-line {
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
  color: #2563eb;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 62px;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card-foot > a:first-child {
  color: var(--text-muted);
  font-size: 13px;
}

.watch-link {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 90px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #0f172a, #1e3a8a);
  color: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.ranking-panel .section-head p,
.ranking-panel .section-head a {
  color: #cffafe;
}

.ranking-panel .section-head a {
  background: rgba(255, 255, 255, 0.12);
}

.rank-list .mini-card {
  background: rgba(255, 255, 255, 0.08);
}

.page-hero,
.detail-hero {
  min-height: 290px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(103, 232, 249, 0.38), transparent 32%),
    linear-gradient(135deg, #06b6d4, #2563eb 58%, #1e3a8a);
  display: flex;
  align-items: center;
}

.page-hero > div,
.detail-hero > div,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p,
.detail-title-block p {
  margin: 0 0 8px;
  color: #cffafe;
  font-weight: 900;
}

.page-hero h1,
.detail-title-block h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.page-hero span,
.detail-title-block span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.7;
}

.filter-bar {
  margin-top: -25px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.category-card-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

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

.category-samples .mini-card,
.rank-page-list .mini-card {
  color: var(--text-main);
  background: #f8fafc;
}

.category-samples .mini-card em,
.rank-page-list .mini-card em {
  color: var(--text-muted);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 124px 1fr 82px;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.ranking-cover {
  position: relative;
  display: block;
}

.ranking-cover span {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.ranking-cover img {
  width: 124px;
  height: 168px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info h2 a:hover {
  color: #2563eb;
}

.ranking-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.score-box {
  justify-self: end;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 24px;
  font-weight: 900;
}

.detail-hero {
  display: block;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 42px;
}

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

.detail-title-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 6;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.10));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-overlay button {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay button:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.25);
}

.play-overlay span {
  display: inline-block;
  margin-left: 5px;
  font-size: 32px;
}

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

.detail-poster {
  position: sticky;
  top: 90px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.detail-content {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.detail-content h2 {
  margin: 28px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

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

.detail-meta div {
  border-radius: 16px;
  background: #f8fafc;
  padding: 13px 15px;
}

.detail-meta dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-meta a {
  color: #2563eb;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #1f2937, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand span {
  font-size: 28px;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.7;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: #94a3b8;
  padding: 18px 0;
  font-size: 14px;
}

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

  .hero-panel {
    display: none;
  }

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

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

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 94px;
  }

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

  .search-banner form,
  .filter-bar,
  .search-filter {
    flex-direction: column;
  }

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

  .movie-grid,
  .catalog-grid,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ranking-row {
    grid-template-columns: 90px 1fr;
  }

  .ranking-cover img {
    width: 90px;
    height: 124px;
  }

  .score-box {
    grid-column: 2;
    justify-self: start;
    width: auto;
    height: auto;
    padding: 8px 14px;
    font-size: 18px;
    border-radius: 999px;
  }

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

  .detail-poster {
    position: static;
    max-width: 320px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-title-block h1 {
    font-size: 36px;
  }

  .hero-content p,
  .page-hero span,
  .detail-title-block span {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

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

  .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .movie-cover {
    height: 100%;
    min-height: 178px;
  }

  .movie-card h3 a {
    min-height: auto;
  }

  .movie-card p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

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

  .play-overlay button {
    width: 72px;
    height: 72px;
  }

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