:root {
  --red-50: #fff1f2;
  --red-100: #ffe4e6;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
  --shadow-strong: 0 25px 55px rgba(153, 27, 27, 0.24);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 4px solid var(--red-600);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22), transparent 65%);
  opacity: 0.8;
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translate(-45%, -50%);
  z-index: 1;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--red-600), var(--red-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.desktop-nav > a,
.nav-dropdown > a {
  position: relative;
  color: var(--gray-700);
  font-weight: 700;
  padding: 28px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red-600), var(--red-800));
  transition: width 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: var(--red-600);
}

.desktop-nav > a:hover::after,
.nav-dropdown:hover > a::after,
.desktop-nav a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 72px;
  left: -18px;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
  font-size: 14px;
  transition: 0.2s ease;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, var(--red-50), var(--red-100));
  color: var(--red-600);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.search-page-input,
.filter-select {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--gray-800);
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.search-page-input:focus,
.filter-select:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.search-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.search-button {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(220, 38, 38, 0.30);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--red-50);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--red-700);
}

.mobile-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 16px 0;
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-panel nav a:hover {
  color: var(--red-700);
  background: var(--red-50);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 45%, #7f1d1d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.36) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, var(--gray-50));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 20px 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-kicker::before {
  content: "▶";
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-700);
  background: #fff;
  animation: pulse 1.8s infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 18px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.hero-lead {
  max-width: 730px;
  margin: 26px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-actions a,
.slide-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.hero-actions a:first-child,
.slide-actions a:first-child {
  background: #fff;
  color: var(--red-700);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.22);
}

.hero-actions a:last-child,
.slide-actions a:last-child {
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hero-actions a:hover,
.slide-actions a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-slider {
  position: relative;
  min-height: 486px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 280px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: 0.5s ease;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

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

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

.hero-slide-content {
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.76));
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.18;
}

.hero-slide-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.slide-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.slide-tags span {
  padding: 5px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.slide-actions {
  display: flex;
  gap: 10px;
}

.slide-actions a {
  padding: 10px 16px;
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--red-700);
  background: #fff;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.2);
  cursor: pointer;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.section,
.detail-main,
.category-hero,
.search-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

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

.section-title {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
}

.section-title span {
  color: var(--red-600);
}

.section-subtitle {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--gray-600);
}

.more-link {
  color: var(--red-600);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -46px;
  bottom: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 48px rgba(153, 27, 27, 0.24);
}

.category-card strong {
  position: relative;
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 900;
}

.category-card span,
.category-card p {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.category-card p {
  margin: 14px 0 0;
  font-size: 14px;
}

.feature-band {
  margin-top: 72px;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--red-50), var(--red-100), var(--red-50));
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px rgba(17, 24, 39, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-100), var(--gray-200));
}

.movie-grid.featured .movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-cover img,
.simple-card img,
.ranking-item img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img,
.simple-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  font-size: 12px;
  box-shadow: 0 10px 18px rgba(153, 27, 27, 0.26);
}

.play-float {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-700);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

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

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

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

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--red-700);
  background: var(--red-50);
}

.card-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-stats span:first-child {
  color: #f59e0b;
  font-weight: 900;
}

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

.simple-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.simple-card:hover {
  transform: translateY(-4px);
}

.simple-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.simple-card span,
.simple-card small {
  display: block;
  padding: 0 12px;
}

.simple-card span {
  margin-top: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-card small {
  padding-bottom: 14px;
  color: var(--gray-500);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 112px 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.16);
}

.rank-num {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  font-size: 28px;
  font-weight: 900;
}

.ranking-item.top .rank-num {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.ranking-item img {
  width: 112px;
  height: 112px;
}

.rank-info {
  min-width: 0;
  padding: 16px;
}

.rank-info strong,
.rank-info small,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.rank-info small {
  margin: 5px 0 8px;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 900;
}

.cta-band {
  margin-top: 72px;
  padding: 78px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.cta-band p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

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

.category-hero {
  padding-top: 52px;
}

.page-panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: var(--shadow-strong);
}

.page-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.page-panel h1 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  z-index: 1;
}

.page-panel p {
  position: relative;
  max-width: 800px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
  gap: 14px;
  margin: 28px 0 30px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-input,
.filter-select {
  padding: 12px 16px;
}

.detail-main {
  padding-top: 42px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: 0.25s ease;
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-700);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateX(2px);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(185, 28, 28, 0.84);
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.detail-title-block {
  margin: 28px 0 0;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-title-block h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.detail-title-block .movie-meta {
  margin-bottom: 18px;
}

.detail-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-600);
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.info-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

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

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.prev-next a {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.prev-next a:hover {
  color: var(--red-600);
}

.search-box-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  margin-top: 28px;
}

.search-page-input {
  padding: 15px 20px;
  font-size: 17px;
}

.search-results-grid {
  margin-top: 30px;
}

.site-footer {
  margin-top: 78px;
  color: #fff;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 1fr;
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

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

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

.site-footer a:hover {
  color: #fff;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.62);
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

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

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

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

  .hero-slider {
    min-height: 470px;
  }

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

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

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 72px;
  }

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

  .hero-inner {
    padding-top: 48px;
    gap: 34px;
  }

  .hero-slide {
    grid-template-rows: 230px 1fr;
  }

  .section,
  .detail-main,
  .category-hero,
  .search-main {
    padding-top: 46px;
  }

  .section-header {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.featured,
  .related-grid,
  .ranking-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 58px 92px 1fr;
  }

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

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

  .page-panel,
  .detail-title-block,
  .detail-section,
  .info-card {
    padding: 22px;
    border-radius: 20px;
  }

  .prev-next,
  .footer-bottom {
    flex-direction: column;
  }

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