:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-500: #14b8a6;
  --cyan-50: #ecfeff;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --amber-50: #fffbeb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), #ffffff 36rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 8px 13px;
}

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

.nav-link-soft {
  color: var(--gray-500);
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-search {
  display: flex;
  align-items: center;
  width: 300px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
}

.quick-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--gray-700);
}

.quick-search button,
.large-search-form button {
  border: 0;
  color: #ffffff;
  background: var(--emerald-600);
  padding: 10px 18px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 11px 14px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 26px;
  color: #ffffff;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 20px;
  padding: 9px 15px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.22);
  box-shadow: inset 0 0 0 1px rgba(167, 243, 208, 0.22);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--emerald-600);
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  background: var(--emerald-700);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn-outline {
  color: var(--emerald-700);
  background: #ffffff;
  border-color: var(--emerald-100);
}

.btn.full {
  width: 100%;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

.home-search-panel {
  margin-top: -36px;
  position: relative;
  z-index: 6;
}

.search-panel-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  padding: 26px;
}

.search-panel-inner h2,
.section-heading h2,
.hot-rank-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.large-search-form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.large-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  background: transparent;
}

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

.white-section {
  background: transparent;
}

.gradient-section {
  width: 100%;
  margin-top: 72px;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, var(--emerald-50), var(--cyan-50));
}

.split-section {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(135deg, #ffffff, var(--gray-50));
}

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

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

.section-heading a {
  color: var(--emerald-700);
  font-weight: 800;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--emerald-700);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--shadow-md);
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-200), var(--emerald-50));
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.duration {
  right: 8px;
  bottom: 8px;
}

.rank-badge {
  left: 8px;
  top: 8px;
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
}

.movie-info {
  padding: 13px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info h3 a:hover {
  color: var(--emerald-700);
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--gray-100);
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 8px;
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.movie-card-featured {
  position: relative;
  min-height: 380px;
}

.movie-card-featured .movie-cover {
  height: 100%;
  min-height: 380px;
  aspect-ratio: auto;
}

.movie-card-featured .movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.08) 68%);
}

.movie-card-featured .movie-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px;
}

.movie-card-featured .movie-info h3,
.movie-card-featured .movie-info p {
  color: #ffffff;
}

.movie-card-featured .movie-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-wide .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-tile {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(209, 250, 229, 0.8);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, var(--emerald-50));
  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-kicker {
  color: var(--emerald-700);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile em {
  color: var(--gray-500);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 14px;
}

.hot-rank-card,
.sidebar-card,
.detail-content-card,
.player-card,
.category-overview-card,
.filter-panel {
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.hot-rank-card {
  padding: 26px;
}

.hot-rank-card ol {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.hot-rank-card li a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: var(--gray-50);
}

.hot-rank-card li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald-600);
  font-weight: 900;
}

.hot-rank-card li strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-rank-card li em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.58), transparent 28%), linear-gradient(135deg, var(--emerald-700), #0f172a);
  padding: 72px 0;
}

.page-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(740px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

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

.page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-stats span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.filter-panel {
  padding: 22px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 190px 190px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: var(--gray-50);
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-row button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--emerald-700);
  background: var(--emerald-50);
  font-weight: 900;
  padding: 0 18px;
}

.filter-wide {
  grid-column: span 3;
}

.filter-count {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.all-category-grid,
.all-search-grid {
  margin-top: 20px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 128px minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.ranking-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  font-weight: 900;
}

.ranking-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--gray-100);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.24);
}

.ranking-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-main p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-views {
  text-align: right;
}

.ranking-views strong {
  display: block;
  color: var(--emerald-700);
  font-size: 18px;
}

.ranking-views span {
  color: var(--gray-500);
  font-size: 13px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding: 60px 0;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-600);
}

.detail-shell {
  padding: 34px 0 72px;
}

.detail-shell .breadcrumb {
  color: var(--gray-500);
}

.detail-shell .breadcrumb a:hover {
  color: var(--emerald-700);
}

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

.player-card {
  overflow: hidden;
  background: #020617;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
}

.movie-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, background 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 20px 48px rgba(5, 150, 105, 0.38);
  font-size: 34px;
  text-indent: 5px;
}

.movie-player.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-loading {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: none;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 13px;
}

.movie-player.loading .player-loading {
  display: inline-flex;
}

.player-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-player:hover .player-toolbar,
.movie-player.playing .player-toolbar {
  opacity: 1;
}

.player-toolbar button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-content-card {
  margin-top: 20px;
  padding: 28px;
}

.detail-content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  font-size: 13px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.text-section {
  margin-top: 26px;
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-section p {
  margin: 0 0 12px;
  color: var(--gray-700);
}

.lead-text {
  color: var(--gray-900) !important;
  font-size: 18px;
  font-weight: 750;
}

.detail-tags span {
  padding: 8px 12px;
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.review-box {
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, var(--emerald-50), var(--cyan-50));
}

.review-box p {
  margin: 0;
  color: var(--gray-800);
}

.detail-sidebar {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.compact-ranking-list .ranking-row {
  grid-template-columns: 34px 88px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.compact-ranking-list .ranking-views {
  display: none;
}

.compact-ranking-list .ranking-main p,
.compact-ranking-list .movie-meta {
  display: none;
}

.compact-ranking-list .ranking-main h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-ranking-list .ranking-number {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.related-section {
  padding-bottom: 0;
}

.sitemap-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.sitemap-layout h2 {
  margin: 0 0 16px;
}

.sitemap-cat-list,
.sitemap-movie-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.sitemap-cat-list a {
  display: block;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-weight: 800;
}

.sitemap-movie-list {
  columns: 3;
  column-gap: 24px;
}

.sitemap-movie-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.sitemap-movie-list a {
  display: block;
  border-radius: 12px;
  padding: 9px 10px;
  background: var(--gray-50);
}

.sitemap-movie-list a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.sitemap-movie-list span {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-grid p {
  color: var(--gray-600);
}

.footer-grid h3 {
  margin: 0 0 12px;
}

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

.footer-grid li {
  margin: 7px 0;
}

.footer-grid a:hover {
  color: var(--emerald-700);
}

.footer-count {
  font-weight: 750;
}

.footer-cat-list {
  columns: 2;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 18px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

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

  .quick-search {
    width: 250px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

  .sticky-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 62px;
  }

  .site-logo {
    font-size: 21px;
  }

  .quick-search {
    display: none;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-copy {
    padding-top: 40px;
  }

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

  .search-panel-inner,
  .large-search-form,
  .section-heading,
  .category-overview-head,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .large-search-form {
    border-radius: 22px;
  }

  .large-search-form button {
    min-height: 48px;
  }

  .section-block {
    padding: 46px 0;
  }

  .gradient-section {
    margin-top: 46px;
  }

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

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-wide {
    grid-column: auto;
  }

  .ranking-row {
    grid-template-columns: 36px 92px minmax(0, 1fr);
  }

  .ranking-views {
    display: none;
  }

  .detail-content-card {
    padding: 20px;
  }

  .player-toolbar {
    opacity: 1;
    overflow-x: auto;
  }

  .sitemap-movie-list {
    columns: 1;
  }
}

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

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .detail-actions {
    display: grid;
  }
}
