:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-600: #2563eb;
  --indigo-700: #4338ca;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --emerald-500: #10b981;
  --white: #ffffff;
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

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: var(--slate-800);
  background: linear-gradient(135deg, #f8fafc 0%, #eef8ff 45%, #eef2ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky-600);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-text {
  white-space: nowrap;
  font-size: clamp(20px, 2vw, 26px);
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.32);
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-600);
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  border: 0;
  background: transparent;
}

.dropdown-panel {
  position: absolute;
  top: 48px;
  right: 0;
  display: grid;
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-category-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--slate-700);
  font-size: 14px;
}

.dropdown-panel a:hover,
.mobile-category-links a:hover {
  color: var(--sky-700);
  background: var(--sky-50);
}

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

.header-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: 0;
  background: white;
  color: var(--slate-800);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.header-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.header-search button,
.search-page-form button,
.filter-panel button,
.primary-button,
.back-to-top {
  border: 0;
  border-radius: 999px;
  background: var(--sky-600);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.search-page-form button:hover,
.filter-panel button:hover,
.primary-button:hover,
.back-to-top:hover {
  background: var(--sky-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.3);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sky-50);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--sky-700);
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--slate-200);
  background: white;
}

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

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--sky-600), var(--blue-600), var(--indigo-700));
}

.hero-slides,
.hero-slide,
.hero-image-layer,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image-layer {
  right: 0;
  left: auto;
  width: min(58%, 760px);
  opacity: 0.68;
}

.hero-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-image-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(15, 23, 42, 0.15));
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(90deg, rgba(2, 132, 199, 0.98) 0%, rgba(37, 99, 235, 0.84) 48%, rgba(67, 56, 202, 0.68) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #bae6fd;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-button {
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: white;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: white;
  color: var(--sky-700);
  transform: translateY(-1px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 92px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: white;
}

.hero-search {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 28px;
  display: flex;
  width: min(680px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  transform: translateX(50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 18px 22px;
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 28px;
  background: var(--sky-600);
  color: white;
  font-weight: 900;
}

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

.wide-section {
  background: rgba(255, 255, 255, 0.72);
}

.wide-section.soft-blue {
  background: linear-gradient(135deg, #eef8ff, #f8fafc);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky-600);
  font-weight: 900;
}

.section-more span {
  font-size: 24px;
}

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

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.latest-grid,
.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.archive-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

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

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

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

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, var(--sky-600), var(--blue-600));
}

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

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

.poster-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: white;
  font-weight: 900;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.02));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after,
.poster-frame.image-missing::after,
.detail-poster.poster-frame::after {
  opacity: 1;
}

.movie-card:hover .poster-frame figcaption,
.poster-frame.image-missing figcaption,
.detail-poster.poster-frame figcaption {
  opacity: 1;
  transform: translateY(0);
}

.play-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sky-700);
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--rose-500);
  color: white;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.3);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta span {
  border-radius: 999px;
  background: var(--slate-100);
  padding: 4px 8px;
}

.tag-row span {
  padding: 5px 8px;
  background: var(--sky-50);
  color: var(--sky-700);
}

.compact-card {
  display: flex;
}

.compact-card .card-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  width: 100%;
}

.compact-card .poster-frame {
  height: 100%;
  min-height: 135px;
  aspect-ratio: auto;
}

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

.category-tile,
.category-overview-card,
.text-card {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.category-tile a {
  display: grid;
  min-height: 250px;
  padding: 26px;
  text-align: center;
  place-items: center;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sky-50), #dbeafe);
  color: var(--sky-700);
  font-size: 28px;
  font-style: normal;
  font-weight: 900;
}

.category-tile strong {
  color: var(--slate-800);
  font-size: 22px;
}

.category-tile em,
.category-tile small {
  color: var(--sky-700);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(120deg, var(--sky-600), var(--blue-600), var(--indigo-700));
  color: white;
}

.slim-hero,
.category-hero {
  padding: 88px 0 74px;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

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

.hero-stats span,
.hero-stats a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

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

.category-overview-head p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.category-overview-head strong {
  color: var(--sky-700);
  font-size: 22px;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.filter-panel button {
  min-height: 45px;
  padding: 0 18px;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(240px, auto) 120px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rose-500);
  color: white;
  font-weight: 900;
}

.ranking-row a {
  overflow: hidden;
  color: var(--slate-800);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em,
.ranking-row strong {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.ranking-row strong {
  color: var(--sky-700);
}

.search-page-form {
  display: flex;
  width: min(700px, 100%);
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-md);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 18px 22px;
}

.search-page-form button {
  border-radius: 0;
  padding: 0 30px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--slate-500);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--slate-900);
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.03);
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66)),
    radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.35), transparent 30%);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.detail-meta dt {
  margin-bottom: 5px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 0;
  color: white;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags span {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.player-section {
  padding-bottom: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.player-shell video,
.player-poster,
.player-poster img {
  width: 100%;
  height: 100%;
}

.player-shell video {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
  background: #020617;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.player-poster img {
  object-fit: cover;
  opacity: 0.58;
}

.player-poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.76));
  color: white;
}

.player-start {
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  background: white;
  color: var(--sky-700);
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.player-poster-overlay span {
  color: #dbeafe;
  font-weight: 800;
}

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

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: min(520px, calc(100% - 36px));
  margin: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #dbeafe;
  font-size: 13px;
}

.player-message:empty {
  display: none;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 34px;
}

.text-card {
  padding: 26px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 16px;
  color: white;
  font-size: 20px;
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: white;
}

.back-to-top {
  margin-top: 12px;
  padding: 10px 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  text-align: center;
}

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-image-layer {
    width: 100%;
    opacity: 0.35;
  }

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

  .detail-poster {
    width: min(420px, 100%);
  }

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

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

  .mini-card-row {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-row em,
  .ranking-row strong {
    grid-column: 2;
  }
}

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

  .site-nav {
    min-height: 62px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

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

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
    min-height: 54px;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .category-overview-head {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    padding: 30px 0 44px;
  }

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

  .search-page-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .search-page-form button {
    min-height: 54px;
  }
}
