:root {
  color-scheme: light;
  --site-bg: #f9fafb;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-ocean: #0284c7;
  --site-island: #16a34a;
  --site-sand: #ca8a04;
  --site-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --site-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background: var(--site-bg);
}

.site-nav {
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-ocean), var(--site-island));
  box-shadow: var(--site-shadow);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.1);
}

.brand-text {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, var(--site-ocean), var(--site-island));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--site-ocean);
}

.nav-toggle {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--site-line);
}

.mobile-menu {
  display: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.5rem;
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #374151;
  font-weight: 600;
  border: 1px solid var(--site-line);
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

.hero-feature {
  position: absolute;
  inset: 0;
  display: block;
  color: #ffffff;
}

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

.hero-feature:hover img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.1));
}

.hero-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2rem;
  max-width: 56rem;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-desc {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

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

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-ocean), var(--site-island));
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--site-hover);
}

.action-button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section.full {
  max-width: none;
  background: #ffffff;
}

.section.full .section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 850;
  color: #111827;
}

.section-desc {
  margin-top: 0.35rem;
  color: var(--site-muted);
  line-height: 1.7;
}

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

.scroll-row {
  overflow-x: auto;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0 1rem 1rem;
}

.scroll-track {
  display: flex;
  gap: 1rem;
}

.scroll-track .movie-card {
  flex: 0 0 16rem;
}

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

.movie-card {
  display: block;
  min-width: 0;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  color: inherit;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: var(--site-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-frame {
  transform: translateY(-2px);
  box-shadow: var(--site-hover);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16), transparent);
}

.poster-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #ffffff;
}

.poster-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.poster-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.45;
}

.poster-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(2, 132, 199, 0.85);
  backdrop-filter: blur(6px);
}

.badge.green {
  background: rgba(22, 163, 74, 0.82);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
  color: var(--site-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.filter-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--site-line);
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-ocean);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.filter-empty {
  display: none;
  padding: 2rem 1rem;
  color: var(--site-muted);
  text-align: center;
}

.filter-empty.is-visible {
  display: block;
}

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

.category-tile {
  display: block;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--site-hover);
}

.category-tile strong {
  display: block;
  color: #111827;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.category-tile span {
  color: var(--site-muted);
  line-height: 1.65;
}

.detail-layout {
  display: grid;
  gap: 2rem;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--site-hover);
}

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

.detail-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.detail-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  color: #075985;
  background: #e0f2fe;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.detail-lead {
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.85;
}

.content-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 850;
  margin-bottom: 0.8rem;
}

.content-card p {
  color: #374151;
  line-height: 1.9;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
}

.play-ring {
  position: relative;
  z-index: 2;
  width: 4.75rem;
  height: 4.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  border-left: 1.3rem solid #ffffff;
}

.ranking-list {
  display: grid;
  gap: 0.8rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
  color: inherit;
}

.rank-number {
  color: var(--site-sand);
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f172a;
}

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

.rank-title {
  font-weight: 850;
  color: #111827;
  margin-bottom: 0.25rem;
}

.rank-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 850;
  margin-bottom: 0.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: #d1d5db;
}

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

.breadcrumb {
  color: var(--site-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--site-ocean);
  font-weight: 700;
}

@media (min-width: 640px) {
  .nav-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-copy {
    left: 2rem;
    right: 2rem;
    bottom: 3rem;
  }

  .filter-panel {
    grid-template-columns: minmax(0, 1fr) 12rem 12rem 12rem;
  }

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

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

  .nav-toggle {
    display: none;
  }

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

  .detail-layout {
    grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 1.15rem;
  }

  .ranking-row {
    grid-template-columns: 2.5rem 4.2rem minmax(0, 1fr);
  }
}
