:root {
  --sky: #0ea5e9;
  --sky-deep: #0284c7;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft-sky: #f0f9ff;
  --soft-amber: #fffbeb;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 72px rgba(15, 23, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.28);
}

.brand-text {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--sky-deep), var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: #475569;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--sky-deep);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.12));
}

.header-search,
.mobile-search,
.explore-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.explore-search input {
  width: 220px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.explore-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.mobile-search button,
.explore-search button,
.primary-button,
.ghost-button,
.section-more {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button,
.mobile-search button,
.explore-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}

.header-search button,
.mobile-search button {
  padding: 11px 18px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.explore-search button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.14));
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #334155;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero {
  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 0.9s ease;
}

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

.hero-slide img,
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.54) 46%, rgba(2, 6, 23, 0.12));
}

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

.hero-content > * {
  max-width: 690px;
}

.hero-badge,
.detail-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.88), rgba(245, 158, 11, 0.88));
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.24);
}

.hero h1,
.page-hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.hero p,
.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.detail-tags a,
.card-tags span {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.14));
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

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

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

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

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.soft-band {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(245, 158, 11, 0.1));
}

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

.section-kicker {
  display: inline-block;
  width: 6px;
  height: 32px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(180deg, var(--sky), var(--amber));
}

.section-head h2 {
  display: inline;
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0 18px;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: #ffffff;
  padding: 11px 20px;
  background: linear-gradient(90deg, var(--sky), var(--amber));
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media,
.large-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.14));
}

.card-media {
  aspect-ratio: 16 / 9;
}

.card-media img,
.large-media img,
.mini-media img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-media::after,
.large-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.54));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-media::after,
.movie-card:hover .large-media::after {
  opacity: 1;
}

.card-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  color: #ffffff;
}

.card-category {
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.92), rgba(245, 158, 11, 0.92));
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h3,
.large-content h3,
.mini-content h3 {
  margin: 0;
  color: #1e293b;
  font-weight: 850;
  line-height: 1.38;
  transition: color 0.22s ease;
}

.card-body h3 {
  min-height: 52px;
  font-size: 18px;
}

.movie-card:hover h3,
.movie-mini-card:hover h3 {
  color: var(--sky-deep);
}

.card-body p,
.large-content p,
.mini-content p {
  color: var(--muted);
}

.card-body p {
  min-height: 46px;
  margin: 8px 0 14px;
  font-size: 14px;
}

.card-meta,
.detail-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 13px;
}

.card-tags {
  margin-top: 14px;
}

.card-tags span,
.detail-tags a {
  padding: 5px 9px;
}

.horizontal-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card-large {
  width: 330px;
  min-width: 330px;
  scroll-snap-align: start;
}

.movie-card-large {
  min-height: 430px;
}

.large-media {
  height: 430px;
}

.large-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.large-content h3 {
  color: #ffffff;
  font-size: 23px;
}

.large-content p,
.large-content .card-meta {
  color: rgba(255, 255, 255, 0.84);
}

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

.category-tile {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-main-link span,
.category-overview-text a {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--sky-deep), var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.category-main-link strong {
  display: block;
  color: #475569;
  font-weight: 600;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-mini-links a {
  max-width: 100%;
  overflow: hidden;
  padding: 7px 11px;
  border-radius: 999px;
  color: #334155;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(245, 158, 11, 0.1));
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-preview-card,
.explore-panel,
.detail-card,
.sidebar-card,
.player-card,
.filter-panel,
.category-overview-block {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.rank-preview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 28px;
}

.rank-mini-list,
.rank-list,
.related-list,
.category-overview-list {
  display: grid;
  gap: 12px;
}

.movie-mini-card {
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.movie-mini-card:hover {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(245, 158, 11, 0.08));
  transform: translateX(3px);
}

.movie-mini-card a {
  display: flex;
  gap: 13px;
  padding: 10px;
}

.mini-media {
  position: relative;
  width: 112px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.12));
}

.mini-media .rank-badge {
  left: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 12px;
}

.mini-content {
  min-width: 0;
}

.mini-content h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.explore-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 76px;
  padding: 56px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: var(--shadow-xl);
}

.explore-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.explore-panel p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.explore-search {
  justify-content: center;
}

.explore-search input {
  width: min(420px, 100%);
}

.explore-search button {
  padding: 12px 24px;
  color: var(--sky-deep);
  background: #ffffff;
}

.page-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0f172a, #0369a1 58%, #b45309);
}

.compact-hero {
  display: flex;
  align-items: center;
  padding: 72px max(16px, calc((100% - 1180px) / 2));
}

.compact-hero > div {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.category-hero {
  height: 420px;
}

.category-hero > div:last-child {
  position: absolute;
  z-index: 2;
  left: max(16px, calc((100% - 1180px) / 2));
  bottom: 52px;
  max-width: 740px;
}

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

.category-overview-block {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 24px;
  padding: 26px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.empty-state {
  margin-bottom: 26px;
  padding: 34px;
  border-radius: 22px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.empty-state h2 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.rank-feature-scroll .movie-card-large {
  width: 300px;
  min-width: 300px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
}

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

.player-card {
  padding: 12px;
  background: #020617;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.7));
}

.player-start span {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  font-size: 34px;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.player-frame.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-card,
.sidebar-card {
  padding: 26px;
}

.title-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
}

.detail-meta {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-tags {
  margin-top: 18px;
}

.story-card h2,
.review-card h2,
.related-card h2,
.footer-links h2 {
  margin: 0 0 16px;
  color: #1e293b;
}

.story-card p,
.review-card p {
  margin: 0 0 14px;
  color: #374151;
  text-align: justify;
}

.story-card p:last-child,
.review-card p:last-child {
  margin-bottom: 0;
}

.review-card {
  border-left: 5px solid var(--sky);
}

.detail-sidebar {
  position: sticky;
  top: 98px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(245, 158, 11, 0.14));
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

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

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  color: #64748b;
}

.footer-link-grid {
  display: grid;
  gap: 9px;
}

.footer-link-grid a {
  color: #64748b;
  font-size: 14px;
}

.footer-link-grid a:hover {
  color: var(--sky-deep);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    padding: 0 52px 0 0;
  }

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

  .category-grid,
  .rank-preview-card,
  .category-overview-block,
  .rank-list,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 680px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding: 0;
  }

  .hero-arrow {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    margin-top: 18px;
  }

  .hero-actions,
  .explore-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-button,
  .primary-button,
  .mobile-search button,
  .explore-search button {
    width: 100%;
  }

  .content-section {
    width: min(100% - 24px, 1180px);
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

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

  .four-columns,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .horizontal-scroll .movie-card-large,
  .rank-feature-scroll .movie-card-large {
    width: 286px;
    min-width: 286px;
  }

  .large-media {
    height: 390px;
  }

  .explore-panel {
    width: min(100% - 24px, 1180px);
    padding: 34px 20px;
  }

  .compact-hero {
    padding: 56px 16px;
  }

  .category-hero > div:last-child {
    left: 16px;
    right: 16px;
    bottom: 34px;
  }

  .detail-layout {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .detail-card,
  .sidebar-card {
    padding: 20px;
  }
}
