:root {
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-emerald-light: #d1fae5;
  --color-emerald-soft: #ecfdf5;
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  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", sans-serif;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, var(--color-slate-50), var(--color-white));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-emerald), #10b981);
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-slate-500);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.desktop-nav a {
  font-weight: 650;
  color: var(--color-slate-700);
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-emerald);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 6px;
  border: 1px solid var(--color-slate-200);
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--color-slate-900);
}

.header-search button,
.button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-emerald);
  transition: background 180ms ease;
}

.header-search button:hover {
  background: var(--color-emerald-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-slate-200);
  background: var(--color-white);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--color-slate-700);
  font-weight: 650;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-emerald);
  background: var(--color-emerald-soft);
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-nav button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-emerald);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.35), transparent 32%), var(--color-slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide img.image-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.56) 50%, rgba(2, 6, 23, 0.10) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.45) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 680px;
  color: var(--color-white);
}

.hero-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-emerald);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--color-white);
  background: var(--color-emerald);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.34);
}

.button-primary:hover {
  background: var(--color-emerald-dark);
}

.button-ghost {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button-light {
  color: var(--color-emerald);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--color-white);
}

.stats-strip {
  position: relative;
  z-index: 4;
  margin-top: -34px;
}

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

.stat-card {
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  color: var(--color-emerald);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--color-slate-600);
  font-weight: 650;
}

.content-wrap {
  padding: 72px 0;
}

.content-wrap.compact {
  padding-top: 40px;
}

.section-block {
  margin-bottom: 76px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--color-emerald);
  background: var(--color-emerald-soft);
  font-size: 20px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-slate-900);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--color-slate-600);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-slate-300);
}

.scroll-card {
  width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.32);
  box-shadow: var(--shadow-lg);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 185, 129, 0.42), transparent 28%),
    linear-gradient(135deg, #0f172a, #065f46);
}

.movie-cover::before {
  content: "高清";
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.movie-cover.cover-missing::before {
  display: grid;
}

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

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

.movie-cover-large img {
  transition-duration: 520ms;
}

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 58%);
}

.year-badge,
.category-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: var(--color-white);
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(12px);
}

.category-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 11px;
  color: var(--color-white);
  background: var(--color-emerald);
}

.rank-badge {
  padding: 4px 8px;
  color: var(--color-white);
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--color-white);
  background: rgba(5, 150, 105, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.35);
}

.play-hover-large {
  width: 68px;
  height: 68px;
  font-size: 24px;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 8px 0 8px;
  overflow: hidden;
  color: var(--color-slate-900);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 180ms ease;
}

.movie-card:hover h3 {
  color: var(--color-emerald);
}

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

.card-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-slate-500);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill-soft {
  color: var(--color-emerald-dark);
  background: var(--color-emerald-light);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.card-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot strong {
  flex: 0 0 auto;
  color: var(--color-emerald);
  font-weight: 800;
}

.movie-card-large .movie-info h3 {
  font-size: 22px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
}

.movie-cover-small {
  height: 100%;
  min-height: 122px;
  aspect-ratio: auto;
}

.movie-info-horizontal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--color-emerald);
  background: var(--color-emerald-soft);
  font-size: 22px;
}

.category-tile h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--color-slate-600);
}

.category-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--color-emerald);
  font-weight: 800;
}

.page-hero {
  padding: 58px 0 38px;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid var(--color-slate-200);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-slate-600);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-slate-500);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: var(--color-white);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(5, 150, 105, 0.65);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.10);
}

.filter-count {
  color: var(--color-slate-600);
  font-weight: 750;
  white-space: nowrap;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-emerald), #10b981);
  font-weight: 900;
  font-size: 20px;
}

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

.ranking-main p {
  margin: 0;
  color: var(--color-slate-600);
}

.ranking-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-slate-500);
  font-weight: 750;
}

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

.search-sidebar {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.search-sidebar label {
  display: block;
  margin: 14px 0 6px;
  color: var(--color-slate-700);
  font-weight: 750;
}

.search-sidebar input,
.search-sidebar select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 11px 12px;
}

.search-sidebar button {
  width: 100%;
  margin-top: 16px;
}

.empty-state {
  padding: 50px 24px;
  border: 1px dashed var(--color-slate-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-align: center;
  color: var(--color-slate-500);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.video-shell {
  background: var(--color-slate-950);
}

.player-wrap {
  padding: 28px 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 185, 129, 0.22), transparent 28%),
    #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.player-card video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--color-white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.32));
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--color-emerald);
  box-shadow: 0 20px 55px rgba(5, 150, 105, 0.48);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 20px;
}

.player-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  pointer-events: none;
}

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

.detail-card,
.sidebar-card,
.article-card {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.detail-card {
  padding: 34px;
}

.detail-title {
  margin: 16px 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
  font-weight: 700;
  font-size: 13px;
}

.detail-meta span:first-child {
  color: var(--color-emerald-dark);
  background: var(--color-emerald-light);
}

.detail-card h2,
.sidebar-card h2,
.article-card h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.detail-card p,
.article-card p {
  color: var(--color-slate-700);
  font-size: 16px;
  line-height: 1.85;
}

.review-box {
  padding: 20px;
  border-left: 4px solid var(--color-emerald);
  border-radius: 16px;
  background: var(--color-slate-50);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.sidebar-card h2 {
  margin-top: 0;
}

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

.article-card {
  padding: 32px;
}

.article-card h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card ul {
  color: var(--color-slate-700);
  line-height: 1.85;
}

.site-footer {
  margin-top: 32px;
  color: var(--color-slate-300);
  background: var(--color-slate-900);
}

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

.brand-footer .brand-text strong {
  color: var(--color-white);
}

.brand-footer .brand-text small {
  color: var(--color-slate-300);
}

.footer-brand p {
  max-width: 520px;
  color: var(--color-slate-400);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--color-white);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: var(--color-slate-300);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--color-slate-500);
}

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

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

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

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

  .sidebar-card,
  .search-sidebar {
    position: static;
  }
}

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    height: 78vh;
    min-height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

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

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

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

  .movie-grid,
  .movie-grid.two,
  .movie-grid.three,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .movie-cover-small {
    min-height: 124px;
  }

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

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

  .ranking-meta {
    grid-column: 1 / -1;
  }

  .detail-card,
  .article-card {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .scroll-card {
    width: 82vw;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-cover-small {
    aspect-ratio: 16 / 9;
  }
}
