:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(2, 132, 199, 0.12);
  --shadow-card: 0 18px 40px rgba(17, 24, 39, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 44%, #fff8e6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(125, 211, 252, 0.46);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.95), rgba(255, 251, 235, 0.95), rgba(240, 249, 255, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 22px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-400));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-500));
  background-clip: text;
  -webkit-background-clip: text;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-600);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.95), rgba(254, 243, 199, 0.95));
  transform: translateY(-1px);
}

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

.nav-search input,
.mobile-panel input,
.wide-search input,
.filter-input,
.filter-year {
  border: 1px solid rgba(125, 211, 252, 0.7);
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gray-800);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 238px;
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.wide-search input:focus,
.filter-input:focus,
.filter-year:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
  background: #ffffff;
}

.nav-search button,
.mobile-panel button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--gray-800);
  background: rgba(224, 242, 254, 0.9);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  margin-top: 10px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--gray-900);
}

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

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(17, 24, 39, 0.66) 46%, rgba(17, 24, 39, 0.14) 100%),
    linear-gradient(180deg, rgba(2, 132, 199, 0.18), rgba(245, 158, 11, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 760px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 96px 22px 160px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.88), rgba(245, 158, 11, 0.88));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.22);
}

.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-actions,
.center-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.22);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot,
.hero-thumb {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: scale(1.08);
}

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

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

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.hero-thumbs {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 520px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 18px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(251, 191, 36, 0.72);
}

.hero-thumb img {
  width: 50px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.intro-panel,
.page-main,
.detail-main,
.content-section,
.filter-panel,
.breadcrumb {
  width: min(1240px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 26px;
  margin-top: -56px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 6;
}

.intro-panel h1,
.page-hero h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.intro-panel p,
.page-hero p,
.section-title p,
.category-overview-card p,
.story-card p,
.footer-inner p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.85;
}

.wide-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.78), rgba(254, 243, 199, 0.78));
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
}

.wide-search button {
  padding: 14px 20px;
}

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

.soft-band {
  width: 100%;
  max-width: none;
  padding: 60px max(22px, calc((100% - 1240px) / 2));
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.48), rgba(254, 243, 199, 0.55));
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title > span {
  width: 6px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky-500), var(--amber-500));
  flex: 0 0 auto;
}

.section-title h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.story-card,
.filter-panel,
.detail-hero,
.player-section {
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(14, 165, 233, 0.18);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.68;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.82));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.category-tile span {
  display: block;
  margin-top: 82px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.6;
}

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

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

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

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

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease, filter 0.48s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.62));
  opacity: 0.86;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.22);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta span {
  padding: 5px 8px;
  color: var(--sky-600);
  background: rgba(224, 242, 254, 0.85);
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.8em;
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 6px 9px;
  color: var(--gray-700);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.88), rgba(254, 243, 199, 0.88));
}

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

.center-actions {
  justify-content: center;
  margin-top: 28px;
}

.page-main,
.detail-main {
  padding-top: 30px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 12%, rgba(245, 158, 11, 0.20), transparent 18rem),
    radial-gradient(circle at 8% 8%, rgba(14, 165, 233, 0.22), transparent 18rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.compact-hero p,
.category-hero p {
  max-width: 780px;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  padding: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-cover {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
}

.category-cover img {
  height: 100%;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 26px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sample-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--sky-600);
  background: rgba(224, 242, 254, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 24px;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 999px;
}

.filter-year {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 999px;
}

.empty-note {
  margin: 16px 4px 0;
  color: var(--gray-500);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.18);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-info h1 {
  color: var(--gray-900);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
}

.detail-one-line {
  margin: 0;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--sky-600);
  background: rgba(224, 242, 254, 0.86);
}

.detail-tags span {
  font-size: 13px;
}

.player-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.10), rgba(5, 8, 22, 0.42));
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  text-indent: 5px;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 24px 46px rgba(14, 165, 233, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-layer:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 30px 60px rgba(245, 158, 11, 0.30);
}

.player-shell.is-playing .play-layer {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.story-card {
  padding: 28px;
  border-radius: 24px;
}

.story-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.story-card p {
  color: var(--gray-700);
  font-size: 16px;
}

.related-section {
  padding-bottom: 70px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(125, 211, 252, 0.34);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.95), rgba(255, 251, 235, 0.95));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: transparent;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--sky-600), var(--amber-500));
  background-clip: text;
  -webkit-background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--sky-600);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .nav-search {
    display: none;
  }

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

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

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.open .mobile-panel {
    display: block;
  }

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 86px 22px 128px;
  }

  .hero-thumbs {
    display: none;
  }

  .intro-panel {
    grid-template-columns: 1fr;
    margin-top: -34px;
    padding: 24px;
  }

  .wide-search,
  .filter-form,
  .search-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .wide-search button,
  .filter-year,
  .search-form button {
    width: 100%;
  }

  .category-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .ranking-grid,
  .rank-list,
  .full-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-cover,
  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .mobile-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text small {
    display: none;
  }

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

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-content h2 {
    font-size: 40px;
  }

  .hero-controls {
    bottom: 36px;
  }

  .intro-panel,
  .page-main,
  .detail-main,
  .content-section,
  .filter-panel,
  .breadcrumb {
    width: min(100% - 28px, 1240px);
  }

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

  .soft-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-grid,
  .ranking-grid,
  .rank-list,
  .full-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .story-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
