:root {
  --site-primary: #0073e6;
  --site-primary-dark: #004380;
  --site-primary-soft: #e6f1ff;
  --site-bg: #fafafa;
  --site-card: #ffffff;
  --site-text: #171717;
  --site-muted: #737373;
  --site-border: #e5e5e5;
  --site-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

body {
  background: var(--site-bg);
  color: var(--site-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), #4da9ff);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 115, 230, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.2rem;
  color: #111827;
}

.brand-text small {
  display: none;
  color: var(--site-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #404040;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--site-primary);
}

.nav-search {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.nav-search input,
.mobile-search input,
.filter-input {
  border: 1px solid #d4d4d4;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.72rem 1rem;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--site-primary);
}

.nav-search button,
.mobile-search button,
.btn-primary {
  border-radius: 0.75rem;
  background: var(--site-primary);
  color: #ffffff;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
}

.nav-search button:hover,
.mobile-search button:hover,
.btn-primary:hover {
  background: var(--site-primary-dark);
}

.menu-toggle {
  border-radius: 0.75rem;
  color: #404040;
  padding: 0.55rem 0.75rem;
  font-size: 1.35rem;
}

.menu-toggle:hover {
  background: #f5f5f5;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--site-border);
  padding: 1rem;
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  border-radius: 0.75rem;
  color: #404040;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--site-primary-soft);
  color: var(--site-primary);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.75s ease;
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 590px;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 7rem;
}

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

.hero-kicker {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.42rem 0.85rem;
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-copy p {
  margin-top: 1rem;
  max-width: 620px;
  color: #e5e7eb;
  font-size: 1.08rem;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1rem;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: var(--site-primary-soft);
  color: var(--site-primary-dark);
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  display: none;
  overflow: hidden;
  width: min(320px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.5rem;
  box-shadow: var(--site-shadow);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  width: min(100% - 2rem, 1280px);
  gap: 0.75rem;
  overflow-x: auto;
  transform: translateX(-50%);
  padding-bottom: 0.25rem;
}

.hero-thumb {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  padding: 0.45rem;
  text-align: left;
  backdrop-filter: blur(8px);
}

.hero-thumb.is-active,
.hero-thumb:hover {
  background: rgba(0, 115, 230, 0.72);
}

.hero-thumb img {
  width: 42px;
  height: 56px;
  border-radius: 0.65rem;
  object-fit: cover;
}

.main-section {
  padding-top: 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-head h1,
.section-head h2 {
  color: #171717;
  font-weight: 800;
}

.section-head p {
  color: var(--site-muted);
  margin-top: 0.35rem;
}

.section-link {
  color: var(--site-primary);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 1rem;
  background: var(--site-card);
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 115, 230, 0.35);
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-card-body h2 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card-body h2 a:hover {
  color: var(--site-primary);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin-top: 0.45rem;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  color: #525252;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-row {
  margin-top: 0.7rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.category-card:before {
  position: absolute;
  right: -2.2rem;
  top: -2.2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
  content: "";
}

.category-card h2 {
  position: relative;
  font-size: 1.35rem;
  font-weight: 800;
}

.category-card p {
  position: relative;
  margin-top: 0.6rem;
  color: var(--site-muted);
}

.category-card a {
  position: relative;
  display: inline-flex;
  margin-top: 1rem;
  color: var(--site-primary);
  font-weight: 800;
}

.category-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1rem;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.55rem;
  object-fit: cover;
}

.page-hero {
  background: linear-gradient(135deg, #ffffff, #e6f1ff);
  border-bottom: 1px solid var(--site-border);
  padding: 3rem 0;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
}

.page-hero p {
  max-width: 760px;
  margin-top: 1rem;
  color: #525252;
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.filter-input {
  width: min(100%, 420px);
}

.filter-chip {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  color: #404040;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--site-primary);
  background: var(--site-primary-soft);
  color: var(--site-primary-dark);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rank-panel {
  border: 1px solid var(--site-border);
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.rank-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.85rem;
  padding: 0.55rem;
}

.rank-row:hover {
  background: #f5f5f5;
}

.rank-row img {
  width: 44px;
  height: 58px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  color: #262626;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--site-primary);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

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

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
}

.detail-hero-bg:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52)), linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  content: "";
}

.detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.detail-cover {
  overflow: hidden;
  max-width: 320px;
  border-radius: 1.35rem;
  box-shadow: var(--site-shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #bfdbfe;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-info h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

.detail-info p {
  max-width: 760px;
  margin-top: 1rem;
  color: #e5e7eb;
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.38rem 0.75rem;
  font-weight: 700;
}

.player-section {
  margin-top: 2.5rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000000;
  box-shadow: var(--site-shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.95);
  color: #ffffff;
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(0, 115, 230, 0.36);
}

.play-button span {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--site-primary);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.article-card {
  border: 1px solid var(--site-border);
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.article-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.article-card p {
  color: #404040;
  line-height: 1.85;
}

.search-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 1.25rem;
  background: #ffffff;
  color: #64748b;
  padding: 2rem;
  text-align: center;
}

.site-footer {
  margin-top: 5rem;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid p {
  max-width: 520px;
  margin-top: 1rem;
  color: #9ca3af;
}

.footer-grid h2 {
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .brand-text small {
    display: block;
  }

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

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

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .hero-poster {
    display: block;
  }

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

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

  .detail-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .detail-content {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }

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

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-search {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

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

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

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
