*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-bg: #f8fafc;
  --panel-bg: #ffffff;
  --text-main: #0f172a;
  --text-soft: #64748b;
  --text-muted: #94a3b8;
  --brand-blue: #2563eb;
  --brand-cyan: #38bdf8;
  --brand-dark: #0f172a;
  --brand-mid: #1e3a8a;
  --border-soft: #e2e8f0;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  font-size: 18px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.24);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.3);
}

.header-search {
  width: min(310px, 26vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(226, 232, 240, 0.78);
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-box button {
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  cursor: pointer;
  background: var(--brand-blue);
  font-weight: 800;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-box button:hover {
  background: #1d4ed8;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e293b;
}

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

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(59, 130, 246, 0.24);
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.55), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 0);
  background-size: 34px 34px;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 42px;
  min-height: 650px;
  padding: 72px 0;
}

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

.hero-copy p,
.page-hero p {
  max-width: 690px;
  color: #cbd5e1;
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 999px;
  padding: 7px 13px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.32);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-search {
  max-width: 590px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-height: 56px;
  font-size: 16px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-stats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  backdrop-filter: blur(18px);
}

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

.hero-kicker {
  color: #93c5fd;
  font-weight: 800;
}

.hero-slide h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.hero-slide p {
  color: #cbd5e1;
  font-size: 16px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.22);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.ghost-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--brand-blue);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.ghost-dark-btn {
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #1e293b;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

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

.hero-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  width: 28px;
  background: #60a5fa;
}

.feature-strip {
  padding: 42px 0;
  background: #f8fafc;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-grid span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 900;
}

.feature-grid h2 {
  margin: 16px 0 6px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: var(--text-soft);
}

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #ffffff 100%);
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading span {
  color: var(--brand-blue);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark-section .section-heading span {
  color: #93c5fd;
}

.section-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

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

.category-movie-grid {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.poster-play {
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  right: 12px;
  background: rgba(37, 99, 235, 0.92);
}

.poster-year {
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.78);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--brand-blue);
}

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

.movie-tags {
  margin-bottom: 12px;
}

.movie-tags span {
  color: #1d4ed8;
  background: #dbeafe;
}

.card-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

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

.compact-grid.small-gap {
  gap: 14px;
}

.compact-grid.one-column {
  grid-template-columns: 1fr;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 152px;
}

.compact-cover {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

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

.compact-body {
  padding: 14px;
}

.compact-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-title:hover {
  color: var(--brand-blue);
}

.compact-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 50px 68px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
  border-color: rgba(37, 99, 235, 0.36);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--brand-blue);
  font-size: 24px;
  font-weight: 950;
}

.rank-card img {
  width: 68px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-main);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-info em {
  color: var(--text-soft);
  font-size: 13px;
  font-style: normal;
}

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

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.32);
}

.category-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.44);
  filter: blur(10px);
}

.category-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 950;
}

.category-desc {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #dbeafe;
  font-size: 14px;
}

.category-preview {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 18px;
}

.category-preview img {
  width: 54px;
  height: 76px;
  margin-right: -14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.category-action {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 900;
}

.page-hero {
  padding: 78px 0;
}

.small-hero,
.category-hero,
.rank-hero,
.search-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-page-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-box input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.empty-state,
.search-status {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed #bfdbfe;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: #eff6ff;
  text-align: center;
  font-weight: 800;
}

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

.category-preview-list {
  display: grid;
  gap: 30px;
}

.category-preview-block {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.preview-heading h2 {
  margin: 0;
}

.preview-heading a {
  color: var(--brand-blue);
  font-weight: 900;
}

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

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

.rank-side {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-side h2 {
  margin: 0 0 16px;
}

.search-page-box {
  max-width: 800px;
  margin: 0 auto 22px;
  border-color: var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-page-box input {
  border: 0;
  border-radius: 0;
  min-height: 56px;
}

.detail-shell {
  padding: 34px 0 72px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--brand-blue);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-wrap.is-playing .play-layer,
.player-wrap.is-ready .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
  font-size: 34px;
}

.play-layer strong {
  font-size: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  margin-top: 34px;
}

.detail-poster img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: #e2e8f0;
  box-shadow: var(--shadow-card);
}

.detail-content {
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-badges,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges a,
.detail-badges span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}

.detail-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12;
}

.one-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
}

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

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.detail-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.detail-links a {
  display: -webkit-box;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--brand-blue);
  background: #f8fafc;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.site-footer {
  color: #dbeafe;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 42px;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 430px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 520px;
  }

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

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

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

  .rank-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .nav-container {
    gap: 12px;
  }

  .hero-container {
    min-height: auto;
    padding: 54px 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .hero-carousel {
    min-height: auto;
  }

  .hero-controls {
    position: static;
    margin-top: 18px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .wide-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    max-width: 320px;
  }

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

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

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

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-search,
  .search-page-box {
    display: grid;
    border-radius: 18px;
  }

  .hero-search button,
  .search-page-box button {
    min-height: 48px;
  }

  .hero-slide {
    padding: 20px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-grid,
  .wide-category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 104px 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .page-hero {
    padding: 56px 0;
  }

  .detail-content {
    padding: 22px;
  }

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

  .play-layer span {
    width: 70px;
    height: 70px;
  }
}
