:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  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: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.topbar {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.05) rotate(2deg);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.header-search {
  width: min(360px, 32vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
}

.header-search input,
.mobile-search input,
.search-tool-card input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
}

.header-search button,
.mobile-search button,
.search-tool-card button,
.filter-reset {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0f172a;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #eff6ff;
  color: var(--blue);
}

.mobile-search {
  display: flex;
  margin: 10px 0;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

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

.mobile-category-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
}

.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 20px;
}

.hero-carousel {
  position: relative;
  min-height: 500px;
  margin-bottom: 42px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top left, #1d4ed8, #020617 55%, #111827 100%);
  box-shadow: var(--shadow);
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
}

.hero-slide.has-image-error .hero-image,
.poster-frame.has-image-error img {
  display: none;
}

.hero-slide.has-image-error {
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.55), transparent 32%),
              linear-gradient(135deg, #0f172a, #1d4ed8 48%, #0891b2);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.56) 48%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px min(8vw, 86px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 13px 22px;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.home-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 52px;
}

.tool-card,
.about-card,
.detail-content-card,
.category-overview-card a,
.ranking-board,
.ranking-cards,
.filter-panel,
.player-shell {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.tool-card {
  padding: 24px;
}

.tool-card span {
  color: var(--muted);
  font-weight: 750;
}

.tool-card strong {
  display: block;
  margin: 8px 0;
  color: var(--deep);
  font-size: 26px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-tool-card form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
}

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

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 25px;
}

.section-more {
  padding: 10px 14px;
  color: var(--blue);
  background: #eff6ff;
}

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

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

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

.movie-link {
  display: block;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 24px 44px rgba(37, 99, 235, 0.14);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.55), transparent 28%),
              linear-gradient(145deg, #0f172a, #1d4ed8 50%, #06b6d4);
}

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

.movie-link:hover .poster-frame img {
  transform: scale(1.05);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.64) 100%);
  pointer-events: none;
}

.poster-title-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.poster-frame:not(.has-image-error) .poster-title-fallback {
  opacity: 0;
}

.play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-line {
  min-height: 45px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

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

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

.category-tile,
.category-overview-card a {
  display: block;
  min-height: 148px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid #e0f2fe;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.13);
}

.category-mark {
  display: inline-flex;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.category-tile strong,
.category-stats span {
  color: var(--blue);
  font-weight: 850;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #dbeafe;
}

.ranking-panel,
.ranking-board,
.ranking-cards {
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 58px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #475569;
  background: #e2e8f0;
  font-weight: 900;
}

.rank-number.top-one {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-number.top-two {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.rank-number.top-three {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.rank-name {
  overflow: hidden;
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-extra,
.rank-heat {
  color: var(--muted);
  font-size: 13px;
}

.rank-heat {
  color: var(--blue);
  font-weight: 850;
  text-align: right;
}

.page-hero {
  margin-bottom: 26px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.70), transparent 28%),
              linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0891b2);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.filter-reset {
  height: 44px;
  padding: 0 18px;
}

.filter-count {
  min-width: 96px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.movie-card.hidden-by-filter {
  display: none;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.full-rank-list {
  max-height: 1140px;
  overflow: auto;
  padding-right: 4px;
}

.about-grid,
.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

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

.about-card h2,
.detail-content-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
}

.about-card p,
.detail-content-card p {
  margin: 0;
  color: #475569;
  line-height: 1.85;
}

.detail-main {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 34px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  color: #334155;
  background: #f1f5f9;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.movie-video {
  width: 100%;
  min-height: 440px;
  max-height: 72vh;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.big-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 32px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay small {
  color: #cbd5e1;
}

.player-status {
  margin: 0;
  padding: 12px 16px;
  color: #cbd5e1;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

.wide-card {
  grid-column: 1 / -1;
}

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

.info-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.info-list a {
  color: var(--blue);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  gap: 32px;
}

.footer-about h2,
.footer-links h3 {
  margin: 0 0 14px;
  color: #0f172a;
}

.footer-about p,
.footer-small {
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-links a {
  color: #475569;
}

.footer-links a:hover {
  color: var(--blue);
}

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

.footer-categories h3 {
  grid-column: 1 / -1;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

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

  .nav-toggle {
    display: block;
  }

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

  .two-column-section,
  .ranking-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    order: -1;
  }

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

  .filter-count {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 62px;
    padding: 0 16px;
  }

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

  .page-main {
    width: min(100% - 22px, 1280px);
    padding-top: 20px;
  }

  .hero-carousel {
    min-height: 560px;
    border-radius: 20px;
  }

  .hero-content {
    padding: 40px 24px 70px;
    justify-content: end;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .home-tools,
  .category-grid,
  .category-overview-grid,
  .about-grid,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    font-size: 16px;
  }

  .movie-line {
    min-height: 42px;
    font-size: 13px;
  }

  .section-heading,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

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

  .rank-extra {
    display: none;
  }

  .detail-hero {
    padding: 16px;
  }

  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

  .movie-video {
    min-height: 260px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

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