/* Static movie site stylesheet inspired by the uploaded dark gradient React/Tailwind layout. */
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --emerald: #34d399;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --purple: #c084fc;
  --orange: #fb923c;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.10), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

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

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

.brand-text,
.footer-brand span:last-child {
  font-size: 1.18rem;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06221c;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-2);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--emerald);
}

.search-form {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.search-form input,
.big-search input,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-form input::placeholder,
.big-search input::placeholder,
.filter-row input::placeholder {
  color: #94a3b8;
}

.search-form button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: #061512;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button {
  padding: 6px 14px;
}

.search-form button:hover,
.big-search button:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 34px rgba(52, 211, 153, 0.24);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.7);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 22px;
  background: rgba(2, 6, 23, 0.98);
  border-top: 1px solid var(--border);
}

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

.hero-carousel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05) brightness(0.68);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.82) 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 36%, rgba(16, 185, 129, 0.20), transparent 24rem);
}

.hero-content {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 70px 0 90px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 18px var(--emerald);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  color: white;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.hero-copy p {
  max-width: 670px;
  margin: 0;
  color: #d1d5db;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta-pills span,
.hero-meta span,
.side-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span,
.detail-meta-pills span {
  padding: 8px 13px;
  font-size: 0.92rem;
}

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

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

.primary-button {
  color: #061512;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.ghost-button {
  color: var(--text);
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.ghost-button:hover {
  background: rgba(30, 41, 59, 0.82);
  transform: translateY(-1px);
}

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2.3rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--emerald);
}

.home-search-panel,
.section-block,
.filter-panel,
.search-results-panel,
.page-hero {
  margin-top: 52px;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.56));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.home-search-panel span {
  color: var(--emerald);
  font-weight: 800;
}

.home-search-panel h2 {
  margin: 5px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid var(--border);
}

.big-search input {
  padding: 0 18px;
}

.big-search button {
  min-width: 110px;
  padding: 12px 22px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--emerald);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.12)),
    #0f172a;
}

.poster-frame::before,
.detail-poster::before,
.hero-poster::before {
  content: "精选";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.22);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.poster-frame img,
.detail-poster img,
.hero-poster img,
.side-list-item img {
  position: relative;
  z-index: 1;
}

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

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

.rating-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.rating-badge {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.54);
}

.type-badge {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.70);
}

.rank-badge {
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  color: #fff7ed;
  background: rgba(234, 88, 12, 0.72);
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 42px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.movie-meta-line span + span::before {
  content: "•";
  margin-right: 8px;
  color: #64748b;
}

.tag-row {
  margin-top: 10px;
}

.region-groups {
  display: grid;
  gap: 32px;
}

.region-block h3 {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 1.28rem;
}

.featured-panel {
  padding: 34px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.70), rgba(15, 23, 42, 0.38));
}

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

.category-tile a,
.category-card-large {
  display: block;
  min-height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile a:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(30, 41, 59, 0.78);
}

.category-count {
  color: var(--emerald);
  font-weight: 900;
  font-size: 0.86rem;
}

.category-tile h3,
.category-card-large strong {
  display: block;
  margin: 8px 0;
  font-size: 1.28rem;
}

.category-tile p,
.category-card-large p,
.category-card-large li,
.category-mini-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a,
.category-card-large li a {
  color: #bfdbfe;
  font-size: 0.82rem;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  padding: 58px 0 22px;
}

.compact-page-hero h1,
.ranking-hero h1 {
  max-width: 850px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.compact-page-hero p,
.ranking-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-2);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

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

.filter-panel,
.search-results-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid var(--border);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: var(--muted-2);
  font-weight: 700;
}

.filter-row input,
.filter-row select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-row option {
  color: #0f172a;
}

.filter-count,
.search-status {
  color: var(--muted);
  margin: 0 0 18px;
}

.top-ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.top-ranking-list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061512;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.top-ranking-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-ranking-list em {
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.category-card-large ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.category-card-top span {
  color: var(--emerald);
  font-weight: 900;
}

.category-mini-meta {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  background-position: center;
  background-size: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.28));
}

.detail-hero-inner {
  position: relative;
  padding: 40px 0 70px;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 1.1rem;
}

.detail-tags {
  margin: 18px 0 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: -36px;
  position: relative;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.content-card,
.side-card {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.player-card,
.content-card {
  padding: 22px;
}

.player-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.player-topline h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.player-topline span {
  color: var(--emerald);
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: black;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.video-play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.video-play-button span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #061512;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 0 44px rgba(52, 211, 153, 0.45);
}

.video-play-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  margin: 0;
  color: #fecaca;
  font-size: 0.9rem;
}

.content-card p {
  margin: 12px 0 0;
  color: #d1d5db;
  font-size: 1.02rem;
}

.info-table {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-table dt {
  color: var(--muted);
}

.info-table dd {
  margin: 0;
  color: var(--text);
}

.info-table a {
  color: var(--emerald);
}

.side-card {
  padding: 18px;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-list-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-list-item img {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-list-item strong,
.side-list-item em {
  display: block;
}

.side-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-list-item em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.side-chip {
  margin: 12px 8px 0 0;
  padding: 8px 12px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.98));
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 1rem;
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer section a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.9rem;
}

.search-page-form {
  margin-bottom: 20px;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .search-form {
    min-width: 220px;
  }

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

@media (max-width: 980px) {
  .main-nav,
  .search-form {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 76vh;
    align-content: end;
    gap: 26px;
  }

  .hero-poster {
    display: none;
  }

  .home-search-panel,
  .detail-hero-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 220px;
  }

  .detail-layout {
    margin-top: 24px;
  }

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

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

  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-carousel,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 54px 0 74px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .home-search-panel,
  .featured-panel,
  .filter-panel,
  .search-results-panel,
  .player-card,
  .content-card {
    padding: 18px;
  }

  .big-search,
  .filter-row {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .big-search {
    display: grid;
  }

  .big-search input {
    min-height: 44px;
  }

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

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

  .movie-card-body p,
  .tag-row {
    display: none;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .detail-hero-inner {
    padding: 28px 0 46px;
  }

  .detail-poster {
    width: 170px;
  }

  .detail-meta-pills span {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-bottom {
    display: grid;
  }
}
