:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --teal-500: #14b8a6;
  --emerald-500: #10b981;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 46%, rgba(207, 250, 254, 0.48) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #115e59 0%, #164e63 46%, #1e293b 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #67e8f9;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.nav-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 10px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.nav-search button,
.search-page-form button,
.home-search-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-500), var(--teal-500));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.search-page-form button:hover,
.home-search-panel button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(20, 184, 166, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  margin: 28px clamp(16px, 4vw, 36px) 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--slate-900);
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay,
.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.48) 52%, rgba(2, 6, 23, 0.06) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 7vw, 80px);
  right: clamp(28px, 12vw, 160px);
  bottom: clamp(34px, 8vh, 90px);
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.86);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero-tags,
.tag-list,
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.genre-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--cyan-700);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(240, 253, 250, 0.96));
  border: 1px solid rgba(6, 182, 212, 0.20);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--teal-500));
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.52);
  cursor: pointer;
  font-size: 36px;
  line-height: 42px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.home-search-panel,
.content-section,
.wide-section,
.page-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(6, 182, 212, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-card);
}

.home-search-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.home-search-panel p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.home-search-panel form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.home-search-panel input,
.search-page-form input,
.filter-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: var(--slate-800);
  background: #ffffff;
}

.content-section {
  padding: 54px 24px 0;
}

.wide-section {
  margin-top: 54px;
  padding: 46px 24px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(207, 250, 254, 0.42));
  border-radius: var(--radius-xl);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading span,
.related-panel h2 span {
  display: inline-block;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan-500), var(--teal-500));
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(24px, 3vw, 34px);
}

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

.section-row .section-heading {
  margin-bottom: 0;
}

.more-link {
  min-height: 38px;
  color: var(--cyan-700);
  background: rgba(6, 182, 212, 0.10);
}

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

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

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

.movie-card,
.category-card,
.detail-card,
.related-panel,
.ranking-item,
.filter-panel,
.search-summary {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--slate-900);
}

.portrait-card .movie-thumb {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .movie-thumb img,
.feature-card:hover img,
.mini-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.movie-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
  transition: opacity 0.28s ease;
}

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

.movie-thumb figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  opacity: 0;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: opacity 0.28s ease;
}

.movie-card:hover figcaption {
  opacity: 1;
}

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.70);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  opacity: 0;
  background: var(--cyan-500);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.portrait-card .movie-card-body h3 {
  min-height: 44px;
  font-size: 15px;
}

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

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

.portrait-card .movie-card-body p {
  display: none;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.feature-large {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card span,
.feature-card strong,
.feature-card em {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
}

.feature-card span {
  bottom: 96px;
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.86);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.feature-card strong {
  bottom: 58px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-large strong {
  font-size: 32px;
}

.feature-card em {
  bottom: 22px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

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

.scroll-controls {
  display: flex;
  gap: 8px;
}

.scroll-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  cursor: pointer;
  font-size: 26px;
}

.page-shell {
  padding: 30px 24px 62px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--slate-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan-600);
}

.breadcrumb strong {
  color: var(--slate-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.32), transparent 32%), linear-gradient(135deg, #0f766e, #164e63 48%, #0f172a);
  box-shadow: var(--shadow-soft);
}

.page-hero span {
  display: inline-flex;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.compact-hero {
  text-align: center;
}

.compact-hero p {
  margin-left: auto;
  margin-right: auto;
}

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

.category-card {
  overflow: hidden;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.category-card span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cyan-700);
  background: rgba(6, 182, 212, 0.10);
  font-size: 13px;
}

.category-card h2 {
  margin: 16px 0 12px;
  color: var(--slate-800);
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.75;
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.09);
  font-size: 13px;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  color: var(--slate-700);
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  display: none;
  margin: 22px 0;
  padding: 32px;
  color: var(--slate-600);
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

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

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

.ranking-item {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.ranking-item a {
  display: grid;
  grid-template-columns: 76px 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
}

.rank-number {
  color: var(--cyan-600);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 138px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.ranking-copy {
  display: grid;
  gap: 8px;
}

.ranking-copy b {
  color: var(--slate-800);
  font-size: 20px;
}

.ranking-copy small {
  color: var(--slate-600);
}

.ranking-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 28px 58px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.50), rgba(2, 6, 23, 0.08));
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.28);
  font-size: 34px;
  transition: transform 0.22s ease;
}

.player-start:hover span {
  transform: scale(1.06);
}

.player-start.is-hidden {
  display: none;
}

.detail-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 34px);
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--slate-600);
}

.detail-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
}

.detail-card section {
  margin-top: 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 24px;
}

.detail-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.lead-text {
  color: var(--slate-800) !important;
  font-size: 18px !important;
  font-style: italic;
}

.review-box {
  padding: 24px !important;
  border: 1px solid rgba(6, 182, 212, 0.14) !important;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(207, 250, 254, 0.40));
}

.genre-list {
  margin-top: 12px;
}

.genre-list span {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.10);
}

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

.related-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-card img {
  width: 116px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.search-page-form {
  max-width: 680px;
  margin: 24px auto 0;
}

.search-summary {
  margin-bottom: 24px;
  padding: 18px 22px;
  color: var(--slate-600);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px 34px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 18px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-carousel {
    height: 64vh;
    min-height: 460px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-panel {
    grid-template-columns: 1fr;
    margin-left: 14px;
    margin-right: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .feature-large {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

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

  .ranking-item a {
    grid-template-columns: 52px 104px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .ranking-item img {
    width: 104px;
  }

  .ranking-copy em {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-carousel {
    min-height: 430px;
    border-radius: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

  .hero-content p {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .home-search-panel form,
  .search-page-form,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .content-section,
  .wide-section,
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .four-cols {
    grid-template-columns: 1fr;
  }

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

  .movie-card-body h3 {
    min-height: auto;
  }

  .ranking-item a {
    grid-template-columns: 42px 88px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 88px;
  }

  .rank-number {
    font-size: 22px;
  }

  .mini-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .mini-card img {
    width: 100px;
  }

  .player-start span {
    width: 72px;
    height: 72px;
  }
}
