:root {
  --bg: #f6faf7;
  --surface: #ffffff;
  --surface-soft: #edf7f1;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --green: #15803d;
  --green-deep: #14532d;
  --teal: #0f766e;
  --gold: #f59e0b;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  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: radial-gradient(circle at top left, rgba(21, 128, 61, 0.10), transparent 32rem), var(--bg);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
body:not(.home-page) .site-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #334155;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--green);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 282px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.header-search input,
.large-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.header-search input {
  padding: 8px 4px 8px 14px;
}

.header-search button,
.large-search button,
.filter-buttons button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  padding: 8px 15px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--ink);
}

.mobile-panel {
  display: none;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #052e16, #166534 48%, #0f766e);
}

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

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

.hero-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) saturate(1.08);
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 38%), radial-gradient(circle at 22% 38%, rgba(20, 184, 166, 0.28), transparent 28rem);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
  padding-top: 86px;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--green);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(34px, 5.2vw, 68px);
}

.hero-copy h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 54px);
}

.hero-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.category-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.category-pill-row a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 6px 12px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.category-pill-row a {
  border-color: rgba(21, 128, 61, 0.14);
  color: #166534;
  background: rgba(22, 163, 74, 0.08);
}

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

.primary-button,
.ghost-button,
.text-link,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.primary-button {
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  box-shadow: 0 18px 40px rgba(21, 128, 61, 0.36);
}

.ghost-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 32px;
  left: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

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

.quick-search-section {
  margin-top: -58px;
  position: relative;
  z-index: 10;
}

.quick-search-card,
.filter-panel,
.content-card,
.rank-panel,
.category-overview-card,
.detail-navigation {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.rank-heading h2,
.content-card h2,
.compact-heading h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.quick-search-card p,
.section-heading p,
.page-hero p,
.content-card p,
.detail-one-line,
.movie-card p,
.rank-card p,
.category-overview-card p,
.footer-shell p {
  color: var(--muted);
}

.quick-search-card p {
  margin: 8px 0 0;
}

.quick-search-card form,
.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.quick-search-card input,
.large-search input {
  padding: 0 14px;
}

.quick-search-card button,
.large-search button {
  padding: 12px 22px;
}

.section-shell {
  padding: 70px 0 0;
}

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

.section-heading a,
.text-link,
.rank-more {
  color: var(--green);
  font-weight: 850;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72)), var(--category-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.category-card span {
  font-size: 13px;
  color: #bbf7d0;
  font-weight: 850;
}

.category-card strong {
  margin-top: 6px;
  font-size: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 46%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 128, 61, 0.88);
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.movie-card h3,
.rank-card h2 {
  margin: 10px 0 8px;
  line-height: 1.25;
  font-size: 18px;
}

.movie-card p,
.rank-card p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 13px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.movie-card-compact h3 {
  font-size: 16px;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.rank-heading {
  margin-bottom: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px 1fr;
  gap: 11px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.rank-item:hover {
  background: var(--surface-soft);
}

.rank-num {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.rank-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  color: var(--muted);
}

.rank-more {
  margin-top: 18px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.page-main {
  padding-top: 106px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 58px;
  color: #fff;
  background: linear-gradient(135deg, #052e16, #166534 52%, #0f766e);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.page-hero .section-kicker,
.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero h1 {
  position: relative;
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 62px);
  z-index: 1;
}

.page-hero p {
  position: relative;
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 18px;
  z-index: 1;
}

.small-hero,
.category-hero,
.rank-hero {
  min-height: 280px;
}

.category-pill-row {
  position: relative;
  margin-top: 28px;
  z-index: 1;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.filter-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 13px 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  padding: 10px 16px;
  background: #e2f6e8;
  color: var(--green);
}

.filter-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

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

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

.category-overview-media {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.category-overview-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 30px;
}

.category-overview-card p {
  margin: 10px 0 16px;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-link-row a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(22, 163, 74, 0.08);
  font-size: 13px;
  font-weight: 750;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.rank-card-media span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  font-weight: 900;
}

.rank-card-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.large-search {
  position: relative;
  max-width: 720px;
  margin-top: 26px;
  z-index: 2;
}

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

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

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #052e16, #166534 50%, #0f766e);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info .section-kicker,
.detail-info .detail-one-line {
  color: rgba(255, 255, 255, 0.86);
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  margin: 18px 0;
  font-size: 18px;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-meta-grid b {
  color: #bbf7d0;
  font-size: 12px;
}

.detail-tags span {
  color: #ecfdf5;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.detail-section {
  scroll-margin-top: 96px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 66px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.30);
  font-size: 28px;
  padding-left: 4px;
}

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

.player-panel.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 12px 0 0;
  font-size: 16px;
}

.detail-navigation {
  margin-top: 30px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.detail-navigation a {
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  margin-top: 80px;
  padding: 46px 0 30px;
  color: #d1fae5;
  background: #052e16;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.footer-shell p {
  max-width: 780px;
  color: rgba(209, 250, 229, 0.80);
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  max-width: 420px;
}

.footer-shell nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: rgba(209, 250, 229, 0.62);
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

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

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

  .hero-poster {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .mobile-panel {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 110;
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  body.menu-open .mobile-panel {
    display: grid;
  }

  .mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    font-weight: 800;
  }

  .mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .mobile-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
  }

  .mobile-panel button {
    border: 0;
    border-radius: 14px;
    padding: 8px 12px;
    color: #fff;
    background: var(--green);
    font-weight: 800;
  }

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

  .hero-content {
    padding-top: 96px;
  }

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

  .quick-search-card,
  .filter-panel,
  .footer-shell,
  .detail-hero,
  .category-overview-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 38px 24px;
  }

  .detail-hero {
    padding: 22px;
  }

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

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

  .filter-panel {
    align-items: stretch;
  }

  .footer-shell nav {
    justify-content: start;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero-content,
  .quick-search-section,
  .section-shell,
  .page-hero,
  .breadcrumb,
  .filter-panel,
  .detail-hero {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-actions,
  .detail-navigation {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .quick-search-card {
    padding: 20px;
  }

  .quick-search-card form,
  .large-search {
    flex-direction: column;
    border-radius: 24px;
  }

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

  .scroll-row {
    grid-auto-columns: 78%;
  }

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

  .player-panel {
    border-radius: 20px;
  }
}
