* {
  box-sizing: border-box;
}

:root {
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --teal-500: #14b8a6;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --gray-800: #1f2937;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--cyan-50) 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: relative;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-600));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px 0 18px;
}

.header-wave,
.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: none;
}

.header-wave {
  bottom: -1px;
  background: radial-gradient(80px 16px at 80px 0, transparent 62%, rgba(255,255,255,0.95) 63%);
  opacity: 0.55;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.site-logo:hover .logo-mark {
  background: rgba(255, 255, 255, 0.30);
}

.logo-text strong,
.footer-logo strong {
  display: block;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.logo-text em,
.footer-logo em {
  display: block;
  margin-top: 3px;
  color: #dbeafe;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-weight: 650;
  color: rgba(255,255,255,0.88);
  transition: color 0.25s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.mobile-search {
  position: relative;
}

.header-search input,
.mobile-search input {
  width: 260px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 46px 0 18px;
  color: #ffffff;
  outline: none;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

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

.header-search input:focus,
.mobile-search input:focus {
  background: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.32);
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
}

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

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

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

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}

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

.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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.74), rgba(0,0,0,0.48), rgba(0,0,0,0.10));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.hero-kicker,
.page-kicker,
.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.hero-kicker,
.page-kicker {
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

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

.hero-copy p {
  max-width: 650px;
  margin: 0 0 32px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.secondary-button {
  color: var(--blue-600);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

.content-section {
  position: relative;
  padding: 76px 0;
}

.section-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 8% 20%, rgba(14, 165, 233, 0.16), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(20, 184, 166, 0.16), transparent 30%);
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: var(--shadow-sm);
}

.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--gray-600);
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.card-poster img,
.category-thumbs img,
.detail-poster,
.ranking-card img,
.rank-link img {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

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

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

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0,0,0,0.78);
  font-size: 12px;
  font-weight: 700;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255,255,255,0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.card-content {
  padding: 18px;
}

.category-badge {
  margin-bottom: 10px;
  padding: 5px 11px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  font-size: 12px;
}

.card-content h2,
.card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

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

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

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

.card-meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.tag-cloud a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--cyan-600);
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.card-horizontal .card-link {
  display: flex;
  gap: 16px;
}

.card-horizontal .wide-poster {
  width: 190px;
  flex: 0 0 190px;
  aspect-ratio: auto;
  min-height: 132px;
}

.ranking-section {
  background: rgba(255,255,255,0.58);
}

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

.rank-row {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 22px;
  font-weight: 900;
}

.rank-main {
  min-width: 0;
  flex: 1;
}

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

.rank-main em {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.rank-link img {
  width: 120px;
  height: 76px;
  border-radius: 15px;
  object-fit: cover;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.scroll-item {
  scroll-snap-align: start;
}

.editor-section {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-600));
}

.editor-section .section-heading p,
.editor-section .section-heading h2 {
  color: #ffffff;
}

.editor-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.category-cta {
  position: relative;
  margin: 48px 0 28px;
  padding: 48px 24px;
  border-radius: var(--radius-2xl);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500), var(--teal-500));
}

.category-cta h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.category-cta p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #eff6ff;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  height: 100%;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile strong,
.category-overview-content h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile span,
.category-overview-content p {
  color: var(--gray-600);
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,0.20), transparent 22%),
    linear-gradient(90deg, var(--blue-600), var(--cyan-600));
}

.compact-hero {
  padding-top: 70px;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.category-overview-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  width: 100%;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-content span {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-600);
  font-weight: 800;
}

.filter-panel {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.filter-input,
.overlay-search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--gray-800);
  outline: none;
  background: #ffffff;
}

.filter-input:focus,
.overlay-search-input:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.20);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gray-600);
  background: #eff6ff;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
}

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

.ranking-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.ranking-index {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.ranking-card img {
  width: 160px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-info strong {
  display: block;
  font-size: 19px;
}

.ranking-info em,
.ranking-info small {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) scale(1.06);
  opacity: 0.38;
}

.detail-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.92), rgba(15,23,42,0.70), rgba(15,23,42,0.40));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 50px 0;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

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

.player-card,
.text-card,
.info-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.player-card,
.text-card {
  padding: 22px;
  margin-bottom: 24px;
}

.player-card h2,
.text-card h2,
.info-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

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

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255,255,255,0.22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-shell.is-playing .video-play-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.video-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

.video-controls button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(255,255,255,0.18);
}

.video-progress {
  width: 100%;
}

.video-time {
  min-width: 112px;
  font-size: 13px;
  text-align: center;
}

.text-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 22px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

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

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.prev-next a {
  max-width: 48%;
  padding: 14px 18px;
  border-radius: 16px;
  color: var(--blue-600);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 18px 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.search-overlay.is-open {
  display: flex;
}

.search-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 82vh;
  overflow: auto;
  padding: 26px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eff6ff;
}

.search-dialog h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-dialog p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-result {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.search-result img {
  width: 82px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.search-result strong {
  display: block;
  font-size: 16px;
}

.search-result span {
  display: block;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  position: relative;
  padding: 70px 0 24px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-wave {
  top: -1px;
  background: radial-gradient(90px 18px at 90px 18px, transparent 64%, var(--slate-800) 65%);
  opacity: 0.72;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 36px;
}

.footer-logo .logo-mark {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

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

.site-footer p,
.site-footer li,
.site-footer a {
  color: #94a3b8;
  font-size: 14px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.20);
  color: #94a3b8;
  font-size: 13px;
}

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

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

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

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .logo-text strong {
    font-size: 19px;
  }

  .hero-carousel {
    height: 540px;
  }

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

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

  .content-section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-horizontal .card-link {
    display: block;
  }

  .card-horizontal .wide-poster {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .rank-link {
    align-items: flex-start;
  }

  .rank-link img {
    width: 92px;
    height: 62px;
  }

  .ranking-card a {
    grid-template-columns: 48px 96px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 96px;
    height: 62px;
  }

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

  .detail-poster {
    width: min(240px, 70vw);
  }

  .video-controls {
    grid-template-columns: auto 1fr auto;
  }

  .video-time,
  .video-mute {
    display: none;
  }

  .prev-next {
    display: grid;
  }

  .prev-next a {
    max-width: none;
  }

  .footer-bottom {
    display: grid;
    text-align: center;
  }
}
