:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --teal-600: #0d9488;
  --ink: #172033;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --paper: #ffffff;
  --soft: #f7fee7;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 46%, #fefce8 100%);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, var(--green-600), var(--green-700));
  box-shadow: 0 12px 32px rgba(4, 120, 87, 0.25);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.logo-icon,
.footer-logo span {
  font-size: 32px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-link:hover,
.nav-link.is-active {
  color: #1f2937;
  background: var(--yellow-400);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  background: var(--green-800);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.94);
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--yellow-300);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--green-700), var(--teal-600));
}

.hero-stage,
.hero-slide,
.hero-image,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-mask {
  background:
    radial-gradient(circle at 74% 30%, rgba(250, 204, 21, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(4, 78, 59, 0.98), rgba(4, 120, 87, 0.75) 45%, rgba(15, 23, 42, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 52px;
  color: #fff;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.1vw, 23px);
}

.hero-kicker,
.section-kicker,
.page-hero span,
.category-hero-copy span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #172033;
  background: var(--yellow-400);
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.28);
}

.btn-primary:hover {
  background: var(--yellow-300);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  height: 480px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #172033;
  background: var(--yellow-400);
  transform: translate(-50%, -50%);
}

.hero-poster span {
  width: 78px;
  height: 78px;
  font-size: 28px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

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

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

.hero-dot.is-active {
  width: 56px;
  background: var(--yellow-400);
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 22px;
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-search input,
.inline-search input,
.search-panel input,
.search-panel select,
.filter-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.hero-search input {
  padding: 0 20px;
  border-radius: 999px;
}

.hero-search button,
.inline-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--green-600), var(--green-700));
  font-weight: 800;
  cursor: pointer;
}

.hero-search button {
  min-height: 46px;
  padding: 0 24px;
}

.content-section,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 68px 0 0;
}

.page-shell {
  padding: 46px 0 72px;
}

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

.section-heading h2,
.page-hero h1,
.category-hero-copy h1,
.detail-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-hero-copy p,
.detail-card p,
.overview-card p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more,
.text-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  color: var(--green-700);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.overview-card:hover,
.ranking-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.category-tile img,
.category-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-cover {
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.16), rgba(6, 78, 59, 0.92));
}

.category-icon,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 20px;
}

.category-icon {
  padding-top: 28px;
  font-size: 34px;
}

.category-tile strong {
  margin-top: 48px;
  font-size: 21px;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--teal-600));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #172033;
  background: var(--yellow-400);
  font-size: 12px;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.movie-info {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-info strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: -webkit-box;
  overflow: hidden;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.movie-card-wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 210px;
}

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

.ranking-panel,
.side-card,
.detail-card,
.overview-card,
.filter-bar,
.search-panel,
.search-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.ranking-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-head span {
  font-size: 28px;
}

.ranking-head h2,
.side-card h2 {
  margin: 0;
}

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

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

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

.rank-no {
  color: var(--green-700);
  font-weight: 900;
  font-size: 18px;
}

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

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

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

.rank-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.rank-score {
  color: #b45309;
  font-weight: 900;
}

.panel-link {
  margin-top: 18px;
}

.page-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-700), var(--teal-600));
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 64px;
  color: #fff;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
}

.category-hero {
  min-height: 420px;
}

.category-hero > img,
.category-hero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-hero > img {
  object-fit: cover;
  opacity: 0.62;
}

.category-hero-mask {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.96), rgba(6, 95, 70, 0.7), rgba(15, 23, 42, 0.35));
}

.category-hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 70px 58px;
  color: #fff;
}

.category-hero-copy h1,
.category-hero-copy p {
  color: #fff;
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.inline-search input {
  padding: 0 16px;
  border-radius: 999px;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.overview-image {
  overflow: hidden;
  border-radius: 18px;
}

.overview-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.overview-icon {
  font-size: 30px;
}

.overview-card h2 {
  margin: 8px 0 0;
}

.preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.preview-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
}

.filter-bar h2 {
  margin: 0;
}

.filter-bar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.filter-bar input {
  width: min(360px, 100%);
  padding: 13px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.empty-state {
  display: none;
  padding: 36px;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.big-rank {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #172033;
  background: var(--yellow-400);
  font-size: 24px;
  font-weight: 900;
}

.ranking-card img {
  width: 118px;
  height: 158px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-body {
  display: grid;
  gap: 6px;
}

.ranking-body strong {
  font-size: 22px;
}

.ranking-body em,
.ranking-body span {
  color: var(--muted);
  font-style: normal;
}

.ranking-body b {
  color: var(--green-700);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px auto;
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
}

.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
}

.search-panel button {
  min-height: 48px;
  padding: 0 24px;
}

.search-summary {
  margin-bottom: 20px;
  padding: 18px 20px;
  color: var(--green-800);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--green-700);
  font-weight: 800;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.site-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow);
}

.video-element,
.player-cover,
.player-cover img,
.player-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-element {
  object-fit: contain;
  background: #020617;
}

.player-cover {
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.64;
}

.player-gradient {
  background:
    radial-gradient(circle at 50% 45%, rgba(250, 204, 21, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
}

.play-ring {
  z-index: 2;
  width: 88px;
  height: 88px;
  font-size: 34px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 28px;
  font-size: clamp(20px, 3vw, 34px);
  text-align: left;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.site-player.is-playing .player-cover {
  display: none;
}

.detail-card {
  padding: 28px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-weight: 800;
  font-size: 13px;
}

.lead-text {
  color: #374151 !important;
  font-size: 18px;
  font-weight: 700;
}

.detail-card h2 {
  margin: 28px 0 8px;
  color: #111827;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.side-ranks .rank-row {
  grid-template-columns: 34px 48px minmax(0, 1fr);
}

.side-ranks .rank-row img {
  width: 48px;
  height: 62px;
}

.side-ranks .rank-score {
  display: none;
}

.site-footer {
  margin-top: 84px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937 45%, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.28);
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

  .hero-content {
    grid-template-columns: 1fr 290px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 110px;
  }

  .hero-poster {
    width: min(320px, 88vw);
    height: 380px;
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    bottom: 86px;
  }

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

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

  .filter-bar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input {
    width: 100%;
  }

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

  .page-hero,
  .category-hero-copy {
    padding: 42px 24px;
  }

  .ranking-card {
    grid-template-columns: 56px 86px minmax(0, 1fr);
  }

  .ranking-card img {
    width: 86px;
    height: 116px;
  }
}

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

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-search,
  .inline-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search input,
  .inline-search input {
    min-height: 46px;
  }

  .category-grid,
  .movie-grid,
  .latest-grid,
  .compact-grid,
  .wide-grid,
  .category-movie-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-wide .poster-wrap {
    aspect-ratio: 3 / 4;
  }

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

  .rank-score {
    display: none;
  }

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

  .big-rank {
    position: absolute;
    left: 24px;
    top: 24px;
    z-index: 2;
  }

  .ranking-card img {
    width: 100%;
    height: 260px;
  }

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

  .detail-card {
    padding: 22px;
  }

  .play-ring {
    width: 70px;
    height: 70px;
  }
}
