:root {
  --site-cyan: #0891b2;
  --site-cyan-dark: #0e7490;
  --site-teal: #0f766e;
  --site-emerald: #059669;
  --site-gray: #111827;
  --site-muted: #6b7280;
  --site-soft: #f3f4f6;
}

body {
  color: #111827;
  background: #f8fafc;
}

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

.nav-bar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--site-cyan-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-emerald));
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--site-cyan-dark);
  background: #f3f4f6;
  transform: translateY(-1px);
}

.nav-link.active {
  color: white;
  background: var(--site-cyan);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-link {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  font-weight: 700;
  color: #374151;
}

.mobile-link:hover {
  background: #f3f4f6;
  color: var(--site-cyan-dark);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: white;
  background: linear-gradient(135deg, #0891b2, #0f766e, #059669);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 47, 46, 0.88), rgba(8, 145, 178, 0.56), rgba(2, 6, 23, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 2.8rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #cffafe;
  font-weight: 800;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 1.2rem;
}

.hero-content p {
  max-width: 680px;
  font-size: 1.13rem;
  line-height: 1.85;
  color: #ecfeff;
  margin-bottom: 1.6rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border-radius: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--site-cyan-dark);
  background: white;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-soft {
  color: white;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-teal));
}

.hero-search {
  display: flex;
  width: min(100%, 560px);
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: white;
  padding: 0 1rem;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  min-height: 2.55rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  color: var(--site-cyan-dark);
  background: white;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-mini-list a {
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-mini-list strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.hero-mini-list span {
  display: block;
  color: #cffafe;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

.hero-dot.active {
  width: 2rem;
  background: white;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: #f3f4f6;
}

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

.section-kicker {
  color: var(--site-cyan-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  color: var(--site-gray);
}

.section-desc {
  margin-top: 0.65rem;
  color: var(--site-muted);
  line-height: 1.8;
  max-width: 760px;
}

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

.category-card {
  min-height: 188px;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.category-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-emerald));
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
  font-size: 1.25rem;
}

.category-card h3 {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.category-card p {
  color: #6b7280;
  line-height: 1.75;
  font-size: 0.94rem;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

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

.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-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.year-badge {
  right: 0.75rem;
  top: 0.75rem;
  background: rgba(8, 145, 178, 0.95);
}

.rank-badge {
  left: 0.75rem;
  top: 0.75rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-meta {
  color: var(--site-cyan-dark);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.movie-card h3 {
  min-height: 3rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.movie-card h3 a:hover {
  color: var(--site-cyan-dark);
}

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75rem;
  color: #6b7280;
  line-height: 1.55;
  font-size: 0.92rem;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.card-tags span,
.detail-tags span {
  color: var(--site-cyan-dark);
  background: #ecfeff;
}

.filter-panel {
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.search-row,
.filter-row {
  display: flex;
  gap: 0.8rem;
}

.search-row {
  margin-bottom: 0.8rem;
}

.search-row input,
.filter-row select {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  outline: none;
}

.search-row input:focus,
.filter-row select:focus {
  border-color: var(--site-cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.13);
}

.search-row button {
  min-width: 6rem;
  min-height: 3rem;
  border-radius: 0.9rem;
  color: white;
  background: var(--site-cyan);
  font-weight: 800;
}

.page-hero {
  padding: 4rem 0 3rem;
  color: white;
  background: linear-gradient(135deg, #0891b2, #0f766e, #059669);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.page-hero p {
  max-width: 820px;
  color: #ecfeff;
  line-height: 1.85;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #cffafe;
  font-weight: 700;
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: white;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
}

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

.compact-link {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.compact-link img {
  width: 58px;
  height: 78px;
  border-radius: 0.7rem;
  object-fit: cover;
}

.compact-link strong {
  display: block;
  color: #111827;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link em {
  display: block;
  margin-top: 0.28rem;
  color: #6b7280;
  font-size: 0.86rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-num,
.rank-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-dot {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--site-cyan);
}

.detail-hero {
  padding: 2rem 0 3.5rem;
  color: white;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, #061a23, #0f766e 48%, #064e3b);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 1.35rem;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.player-card {
  background: #020617;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.82));
}

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

.play-button {
  position: relative;
  z-index: 4;
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--site-cyan-dark);
  background: white;
  font-size: 1.75rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.detail-copy {
  padding: 1.4rem;
}

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

.detail-copy p {
  color: #ecfeff;
  line-height: 1.85;
  max-width: 920px;
}

.detail-card {
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.detail-card h2,
.side-card h2 {
  color: #111827;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.9rem;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-item {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.info-item span {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.info-item strong {
  color: #111827;
  font-weight: 900;
}

.side-card {
  padding: 1rem;
  position: sticky;
  top: 5.5rem;
}

.site-footer {
  padding: 3.5rem 0 2rem;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.site-footer h3 {
  color: white;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.85;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 0.45rem 0;
}

.site-footer a:hover {
  color: #22d3ee;
}

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

.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  color: white;
  background: var(--site-cyan);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-2px);
}

.empty-result {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  color: #6b7280;
  background: white;
  border: 1px solid #e5e7eb;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .brand-text {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 5.4rem;
  }

  .hero-panel {
    max-width: 360px;
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .hero-search {
    flex-direction: column;
  }

  .section {
    padding: 3.2rem 0;
  }

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

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

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

  .search-row,
  .filter-row {
    flex-direction: column;
  }

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

  .info-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .compact-link {
    grid-template-columns: auto 54px minmax(0, 1fr);
  }

  .play-button {
    width: 4rem;
    height: 4rem;
  }
}
