
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --slate: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.26);
  --soft: #eff6ff;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 42%, #ecfeff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #0891b2, #0d9488);
  box-shadow: 0 16px 30px rgba(8, 47, 73, 0.25);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: #dbeafe;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

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

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 46px 11px 18px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #dbeafe;
}

.header-search button {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  padding: 0 18px;
  font-weight: 700;
}

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

.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(6, 182, 212, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  z-index: 2;
}

.hero-kicker,
.movie-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  max-width: 720px;
}

.hero-tags,
.detail-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags a {
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  font-size: 13px;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 36px;
  line-height: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

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

.section-light {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #eff6ff, #ecfeff);
}

.section-white {
  background: rgba(255, 255, 255, 0.68);
}

.section-gradient {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

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

.section-head h2 {
  display: inline;
  margin: 0 0 0 10px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-head-invert h2,
.section-head-invert p {
  color: #ffffff;
}

.section-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.section-icon-orange {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.section-icon-green {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.section-icon-soft {
  background: rgba(255, 255, 255, 0.18);
}

.section-more {
  color: var(--blue);
  font-weight: 800;
}

.section-more-invert {
  color: #ffffff;
}

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

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

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

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

.movie-card article {
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover article {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #0891b2);
}

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

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

.movie-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  transition: opacity 0.24s ease;
}

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

.movie-info {
  padding: 20px;
}

.movie-info h3 {
  margin: 12px 0 9px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.32;
  transition: color 0.2s ease;
}

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

.movie-info p {
  min-height: 48px;
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span {
  padding-right: 9px;
  border-right: 1px solid var(--line);
}

.movie-meta span:last-child {
  border-right: 0;
}

.movie-card-small .movie-info p {
  min-height: auto;
}

.movie-card-wide {
  width: 320px;
  flex: 0 0 320px;
}

.movie-card-wide article {
  background: rgba(255, 255, 255, 0.96);
}

.horizontal-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x proximity;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover,
.ranking-card:hover,
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  width: 88px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-poster img,
.mini-thumb img,
.ranking-image img,
.category-cover img,
.overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rank-copy strong,
.mini-copy strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.rank-copy small,
.mini-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.spotlight-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 30px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.72;
}

.spotlight-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.spotlight-card span {
  color: #67e8f9;
  font-weight: 800;
}

.spotlight-card h3 {
  margin: 12px 0;
  font-size: 34px;
  line-height: 1.12;
}

.spotlight-card p {
  color: #e5e7eb;
  line-height: 1.7;
}

.spotlight-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #ffffff;
  font-weight: 800;
}

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

.category-card,
.overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.category-cover {
  display: block;
  height: 150px;
  overflow: hidden;
  background: #0f172a;
}

.category-copy,
.overview-copy {
  display: block;
  padding: 20px;
}

.category-copy strong,
.overview-copy strong {
  display: block;
  color: #1f2937;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-copy small,
.overview-copy small {
  color: #64748b;
  line-height: 1.6;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  height: 170px;
  overflow: hidden;
  background: #0f172a;
}

.overview-copy em {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.callout-card {
  position: relative;
  overflow: hidden;
  margin-top: 58px;
  padding: 52px;
  border-radius: 34px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: var(--shadow-strong);
}

.callout-card h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 44px);
}

.callout-card p {
  margin: 0 auto 26px;
  max-width: 760px;
  color: #e0f2fe;
  line-height: 1.7;
}

.primary-button-white {
  color: var(--blue);
  background: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.page-hero-blue {
  background: linear-gradient(90deg, #2563eb, #0891b2);
}

.page-hero-cyan {
  background: linear-gradient(90deg, #0891b2, #2563eb);
}

.page-hero-orange {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.16), transparent 28%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 96px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
}

.page-hero p {
  margin: 0 auto;
  max-width: 760px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.7;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-search-row input,
.filter-selects select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 16px;
  color: #1f2937;
  outline: 0;
  background: #f8fafc;
  padding: 13px 15px;
}

.filter-search-row input:focus,
.filter-selects select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-search-row button {
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 0 22px;
  font-weight: 800;
}

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

.filter-selects label {
  color: #475569;
  font-weight: 700;
}

.filter-selects select {
  display: block;
  margin-top: 8px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 70px 20px;
  text-align: center;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.empty-state h2 {
  margin: 0 0 8px;
  color: #1f2937;
}

.empty-state p {
  margin: 0;
  color: #64748b;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 62px 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-index {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 24px;
  font-weight: 900;
}

.ranking-image {
  height: 92px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.ranking-content strong {
  display: block;
  color: #1f2937;
  font-size: 22px;
  margin-bottom: 7px;
}

.ranking-content small {
  display: block;
  color: #64748b;
  margin-bottom: 8px;
}

.ranking-content em {
  display: block;
  color: #475569;
  font-style: normal;
  line-height: 1.6;
}

.detail-main {
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.detail-top {
  padding: 34px 0 0;
}

.detail-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  margin-bottom: 22px;
  font-size: 14px;
}

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

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

.detail-primary {
  min-width: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
  display: block;
  font-size: 20px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: none;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.9);
  padding: 12px 14px;
  text-align: center;
}

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

.detail-card,
.side-card {
  margin-top: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 18px 0 12px;
  color: #1f2937;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.16;
}

.detail-intro {
  margin: 0 0 20px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span {
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.detail-tags a {
  color: var(--blue);
  background: #dbeafe;
  box-shadow: none;
}

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

.side-card {
  padding: 22px;
}

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

.mini-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-thumb {
  width: 112px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.mini-copy {
  min-width: 0;
  align-self: center;
}

.side-info dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
  color: #475569;
}

.side-info dt {
  color: #64748b;
}

.side-info dd {
  margin: 0;
  font-weight: 700;
}

.side-info a {
  color: var(--blue);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-wave {
  height: 22px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer p {
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom span {
  margin: 0 8px;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    top: 54%;
  }

  .hero-arrow {
    display: none;
  }

  .section,
  .section-light,
  .section-gradient {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .movie-grid-4,
  .movie-grid-3,
  .category-grid,
  .overview-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-card {
    grid-template-columns: 48px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-index {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .ranking-image {
    height: 64px;
  }

  .ranking-content strong {
    font-size: 17px;
  }

  .ranking-content em {
    display: none;
  }

  .detail-card {
    padding: 22px;
  }

  .footer-bottom {
    display: block;
  }
}

@media (max-width: 520px) {
  .movie-grid-4,
  .movie-grid-3,
  .category-grid,
  .overview-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .hero-tags {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .movie-card-wide {
    width: 280px;
    flex-basis: 280px;
  }

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