* {
  box-sizing: border-box;
}

:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --teal-50: #f0fdfa;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(8, 145, 178, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #ffffff 0%, #f8fdff 48%, #ffffff 100%);
}

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

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

.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.84);
  border-bottom: 1px solid rgba(8, 145, 178, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

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

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

.brand-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.36);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--slate-700);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-button:hover {
  color: var(--cyan-600);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 44px;
  left: 0;
  width: 190px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: white;
  border: 1px solid var(--cyan-100);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-600);
  font-size: 14px;
}

.dropdown-menu a:hover {
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: var(--cyan-50);
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan-600);
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--cyan-100);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav-link,
.mobile-nav-title {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--cyan-50);
  color: var(--cyan-600);
}

.mobile-nav-title {
  margin-top: 8px;
  color: var(--slate-500);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 64px 0 34px;
  background: linear-gradient(135deg, #cffafe 0%, #eff6ff 48%, #ccfbf1 100%);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.34;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: -160px;
  right: -120px;
  background: var(--cyan-500);
}

.hero-glow-two {
  left: -120px;
  bottom: -180px;
  background: var(--teal-500);
  animation-delay: 2s;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 28px, 0) scale(1.12); }
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 44px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 58%, rgba(255, 255, 255, 0.52) 100%),
    var(--hero-image) center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(8, 145, 178, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--cyan-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.category-hero p,
.detail-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--cyan-700, #0e7490);
  background: rgba(236, 254, 255, 0.92);
  border: 1px solid var(--cyan-100);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.25);
}

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

.ghost-button {
  color: var(--cyan-700, #0e7490);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 145, 178, 0.22);
}

.text-button {
  min-height: 40px;
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan-100), var(--teal-50));
  box-shadow: var(--shadow-soft);
}

.hero-poster.small {
  width: min(360px, 100%);
}

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

.hero-poster:hover img,
.movie-card:hover img,
.rank-item:hover img,
.detail-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span,
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: white;
  background: rgba(6, 182, 212, 0.88);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.36);
}

.hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(8, 145, 178, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 8px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.hero-search input,
.filter-fields input,
.filter-fields select {
  width: 100%;
  border: 1px solid var(--cyan-100);
  outline: none;
  border-radius: 12px;
  background: white;
  color: var(--slate-700);
  font: inherit;
}

.hero-search input {
  height: 42px;
  padding: 0 14px;
  border-color: transparent;
}

.hero-search a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: white;
  background: var(--cyan-600);
  font-weight: 800;
}

.stats-strip {
  padding: 24px 0;
  background: white;
  border-bottom: 1px solid var(--cyan-100);
}

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

.stats-grid div {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cyan-50), white);
  border: 1px solid var(--cyan-100);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
}

.stats-grid strong {
  display: block;
  color: var(--cyan-600);
  font-size: 32px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--slate-500);
  font-weight: 700;
}

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

.section-soft {
  background: linear-gradient(135deg, var(--cyan-50), var(--blue-50));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

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

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

.cards-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.32);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cyan-100), var(--teal-50));
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.64));
  opacity: 0.75;
}

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

.duration {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 10px;
  color: white;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  z-index: 3;
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.card-meta a {
  color: var(--cyan-600);
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: auto;
}

.card-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  padding: 24px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -38px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.35s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px rgba(8, 145, 178, 0.26);
}

.category-tile:hover::after {
  transform: scale(1.35);
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  font-size: 20px;
  font-weight: 850;
}

.category-tile strong {
  margin: 12px 0;
  font-size: 36px;
  line-height: 1;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
}

.two-column-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel,
.content-panel,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--slate-100);
}

.rank-item:first-of-type {
  border-top: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  font-size: 14px;
}

.rank-info em {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.sub-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-50), var(--teal-50));
}

.sub-hero .container {
  max-width: 900px;
  text-align: center;
}

.category-hero {
  background:
    linear-gradient(90deg, rgba(236, 254, 255, 0.98), rgba(255, 255, 255, 0.84)),
    var(--hero-image) center / cover no-repeat;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 36px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

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

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

.category-overview-head h2,
.category-overview-head p {
  margin: 0;
}

.category-overview-head p {
  margin-top: 8px;
  color: var(--slate-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
}

.filter-panel strong {
  display: block;
  font-size: 20px;
}

.filter-panel p {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.filter-fields {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr;
  gap: 12px;
}

.filter-fields label {
  display: grid;
  gap: 6px;
}

.filter-fields span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.filter-fields input,
.filter-fields select {
  height: 44px;
  padding: 0 12px;
}

.filter-count {
  justify-self: end;
  color: var(--cyan-600) !important;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-600);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.88), rgba(255, 255, 255, 0.75)),
    var(--detail-image) center / cover no-repeat;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: var(--cyan-50);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.18);
}

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

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

.detail-meta-grid span {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--slate-700);
  font-weight: 750;
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-500);
  font-size: 12px;
}

.player-block {
  background: #061725;
  color: white;
}

.player-block .section-heading h2 {
  color: white;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .player-overlay,
.video-shell.is-ready .player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  box-shadow: 0 22px 52px rgba(6, 182, 212, 0.34);
  font-size: 28px;
}

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

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(2, 6, 23, 0.58);
  font-size: 12px;
}

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

.content-panel {
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
}

.content-panel p {
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.9;
}

.content-panel .eyebrow:not(:first-child) {
  margin-top: 28px;
}

.tag-cloud {
  margin-top: 24px;
}

.side-panel dl {
  margin: 0;
}

.side-panel dt {
  margin-top: 16px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.side-panel dd {
  margin: 5px 0 0;
  color: var(--slate-700);
  line-height: 1.6;
}

.side-panel a {
  color: var(--cyan-600);
  font-weight: 800;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prev-next a {
  padding: 12px;
  border-radius: 14px;
  background: var(--cyan-50);
}

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

.site-footer {
  padding: 52px 0 24px;
  border-top: 1px solid var(--cyan-100);
  background: linear-gradient(180deg, white, var(--cyan-50));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

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

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: var(--cyan-600);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--cyan-100);
  color: var(--slate-500);
  font-size: 13px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .cards-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-grid,
  .detail-grid,
  .category-hero-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

  .filter-count {
    justify-self: start;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    max-height: 310px;
  }

  .hero-controls {
    align-items: stretch;
    flex-direction: column;
  }

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

  .cards-grid-three,
  .cards-grid-four,
  .cards-grid-two,
  .large-ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

  .hero-slide,
  .category-overview-card,
  .content-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-copy h1,
  .sub-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .cards-grid-three,
  .cards-grid-four,
  .cards-grid-two,
  .stats-grid,
  .category-grid,
  .footer-grid,
  .large-ranking-list {
    grid-template-columns: 1fr;
  }

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

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

  .hero-search a {
    width: 100%;
    justify-content: center;
  }

  .rank-item {
    grid-template-columns: 36px 64px minmax(0, 1fr);
  }
}
