@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");

:root {
  --blackboard: #1a2e1a;
  --blackboard-dark: #0f1a0f;
  --blackboard-light: #2d4a2d;
  --chalk-white: #f5f5dc;
  --chalk-yellow: #fffacd;
  --chalk-green: #90ee90;
  --chalk-blue: #add8e6;
  --chalk-pink: #ffb6c1;
  --vintage-gold: #d4af37;
  --muted: rgba(245, 245, 220, 0.68);
  --line: rgba(255, 250, 205, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--chalk-white);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 250, 205, 0.10), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(255, 182, 193, 0.08), transparent 24rem),
    linear-gradient(135deg, var(--blackboard-dark), var(--blackboard));
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(245, 245, 220, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 220, 0.45) 1px, transparent 1px);
  background-size: 46px 46px;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 26, 15, 0.92);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blackboard);
  background: var(--chalk-yellow);
  box-shadow: 0 0 0 5px rgba(255, 250, 205, 0.08);
}

.brand-name {
  color: var(--chalk-white);
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--chalk-white);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--chalk-yellow);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-panel input,
.big-search input,
.filter-panel input,
.filter-panel select {
  color: var(--chalk-white);
  background: var(--blackboard-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
}

.header-search input {
  width: 190px;
  padding: 10px 12px;
}

.header-search button,
.mobile-panel button,
.big-search button,
.primary-button,
.ghost-button,
.more-link {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.big-search button,
.primary-button {
  color: var(--blackboard);
  background: var(--chalk-yellow);
}

.header-search button {
  width: 42px;
  height: 42px;
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover {
  color: var(--blackboard-dark);
  background: var(--chalk-white);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--chalk-yellow);
  background: var(--blackboard-light);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 18px;
  background: rgba(15, 26, 15, 0.98);
}

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

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
}

.mobile-panel button {
  padding: 0 16px;
  color: var(--blackboard);
  background: var(--chalk-yellow);
}

.hero {
  position: relative;
  height: min(760px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--blackboard-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 26, 15, 0.96), rgba(26, 46, 26, 0.70) 48%, rgba(26, 46, 26, 0.35)),
    linear-gradient(0deg, var(--blackboard), transparent 48%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 88px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--chalk-yellow);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-content h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--chalk-white);
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(245, 245, 220, 0.90);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-tags,
.movie-meta,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.70);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

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

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

.ghost-button,
.more-link {
  color: var(--chalk-white);
  background: rgba(45, 74, 45, 0.7);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.more-link:hover {
  color: var(--blackboard);
  background: var(--chalk-yellow);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 42px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls > button,
.hero-dot {
  border: 1px solid var(--line);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.72);
  border-radius: 50%;
  font-size: 1.5rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(245, 245, 220, 0.45);
  border-radius: 50%;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--chalk-yellow);
  border-radius: 999px;
}

.search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -44px;
  padding: 24px;
  background: rgba(45, 74, 45, 0.88);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel h2 {
  margin: 0 0 6px;
  color: var(--chalk-yellow);
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
}

.big-search button {
  padding: 0 20px;
}

.page-stack {
  padding: 62px 0;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-title-row h2 {
  margin: 0;
  color: var(--chalk-white);
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-title-row p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: rgba(45, 74, 45, 0.92);
  border: 2px solid rgba(255, 250, 205, 0.20);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--chalk-yellow);
  box-shadow: 0 18px 44px rgba(255, 250, 205, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: var(--blackboard-dark);
}

.movie-card-small .movie-poster {
  height: 220px;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 26, 15, 0.88), transparent 64%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after {
  opacity: 1;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  color: var(--blackboard);
  background: rgba(255, 250, 205, 0.94);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 10px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--chalk-white);
  font-size: 1.12rem;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.ranking-info a:hover,
.detail-meta a:hover {
  color: var(--chalk-yellow);
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  margin-bottom: 12px;
  color: rgba(245, 245, 220, 0.62);
  font-size: 0.86rem;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: rgba(255, 250, 205, 0.38);
}

.movie-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.78rem;
}

.chalk-box,
.category-preview,
.ranking-preview,
.chalk-green-box {
  padding: 30px;
  background: rgba(45, 74, 45, 0.86);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chalk-green-box {
  border-color: rgba(144, 238, 144, 0.28);
  background: linear-gradient(135deg, rgba(45, 74, 45, 0.92), rgba(26, 46, 26, 0.82));
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blackboard-dark);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.40;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 26, 15, 0.94), rgba(15, 26, 15, 0.08));
}

.category-tile:hover img {
  opacity: 0.56;
  transform: scale(1.07);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: var(--chalk-yellow);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-list,
.latest-rows,
.ranking-page-list {
  display: grid;
  gap: 14px;
}

.rank-row,
.latest-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(15, 26, 15, 0.58);
  border: 1px solid rgba(255, 250, 205, 0.16);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 44px 58px 1fr auto;
}

.rank-row:hover,
.latest-row:hover {
  transform: translateX(4px);
  border-color: var(--chalk-yellow);
}

.rank-row img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number,
.latest-row span,
.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blackboard);
  background: var(--chalk-yellow);
  border-radius: 14px;
  font-weight: 900;
}

.rank-number,
.latest-row span {
  width: 40px;
  height: 40px;
}

.rank-row em,
.latest-row em {
  color: var(--muted);
  font-style: normal;
}

.latest-row {
  grid-template-columns: 44px 1fr auto;
}

.page-layout,
.detail-layout {
  padding: 34px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(245, 245, 220, 0.62);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--chalk-yellow);
}

.breadcrumb a::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 250, 205, 0.32);
}

.page-hero {
  padding: 42px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(45, 74, 45, 0.94), rgba(15, 26, 15, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(255, 250, 205, 0.10), transparent 22rem);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.slim-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.slim-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  height: 100%;
  min-height: 188px;
  padding: 18px;
  background: rgba(45, 74, 45, 0.90);
  border: 2px solid rgba(255, 250, 205, 0.18);
  border-radius: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card-large a:hover {
  transform: translateY(-5px);
  border-color: var(--chalk-yellow);
}

.category-card-large img {
  width: 112px;
  height: 152px;
  border-radius: 14px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 0 0 8px;
  color: var(--chalk-yellow);
}

.category-card-large p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-preview-names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-preview-names span {
  padding: 3px 8px;
  color: var(--chalk-blue);
  background: rgba(173, 216, 230, 0.10);
  border: 1px solid rgba(173, 216, 230, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px;
  background: rgba(45, 74, 45, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
}

.empty-state {
  margin: 18px 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 26, 15, 0.58);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ranking-index {
  width: 48px;
  height: 48px;
}

.ranking-thumb img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-card {
  overflow: hidden;
  background: rgba(45, 74, 45, 0.86);
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.player-section {
  padding: 24px;
  background: rgba(15, 26, 15, 0.72);
}

.player-section h1 {
  margin: 0 0 20px;
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(15, 26, 15, 0.55), rgba(15, 26, 15, 0.18));
  border: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-layer.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-button {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  color: var(--blackboard);
  background: var(--chalk-yellow);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  font-size: 2.15rem;
  transform: translateX(3px);
}

.detail-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
}

.detail-poster img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.detail-text h2 {
  margin: 0 0 12px;
  color: var(--chalk-yellow);
  font-size: 1.6rem;
}

.detail-text h2:not(:first-child) {
  margin-top: 28px;
}

.detail-text p {
  margin: 0 0 14px;
  color: rgba(245, 245, 220, 0.86);
}

.lead-text {
  font-size: 1.12rem;
  font-weight: 700;
}

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

.detail-meta div {
  padding: 12px;
  background: rgba(15, 26, 15, 0.52);
  border: 1px solid rgba(255, 250, 205, 0.16);
  border-radius: 14px;
}

.detail-meta dt {
  color: rgba(245, 245, 220, 0.55);
  font-size: 0.84rem;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: var(--chalk-white);
  font-weight: 800;
}

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

.related-section {
  margin-top: 42px;
}

.site-footer {
  margin-top: 34px;
  padding: 48px 0 0;
  background: rgba(15, 26, 15, 0.94);
  border-top: 2px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--chalk-yellow);
}

.site-footer h2 {
  font-family: \"Patrick Hand\", \"Microsoft YaHei\", cursive;
  font-size: 2rem;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: rgba(245, 245, 220, 0.78);
}

.site-footer a:hover {
  color: var(--chalk-yellow);
}

.footer-bottom {
  padding: 18px 16px;
  color: rgba(245, 245, 220, 0.62);
  text-align: center;
  border-top: 1px solid rgba(255, 250, 205, 0.16);
}

[hidden],
.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .hero {
    min-height: 580px;
    height: 72vh;
  }

  .hero-content {
    padding-bottom: 108px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 42px;
  }

  .search-panel,
  .detail-main,
  .filter-panel,
  .category-card-large a,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .movie-poster {
    height: 230px;
  }

  .movie-card-small .movie-poster {
    height: 210px;
  }

  .movie-info {
    padding: 12px;
  }

  .rank-row,
  .latest-row {
    grid-template-columns: 40px 1fr;
  }

  .rank-row img,
  .rank-row em,
  .latest-row em {
    display: none;
  }

  .page-hero {
    padding: 28px 22px;
  }

  .player-section,
  .detail-main {
    padding: 16px;
  }

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

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.25rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-tags span:nth-child(n + 5) {
    display: none;
  }

  .movie-grid,
  .page-movie-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster,
  .movie-card-small .movie-poster {
    height: 330px;
  }

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