:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  font-size: 0.9rem;
}

.footer-logo {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 460px;
  overflow: hidden;
  border-radius: 1rem;
  background: #111827;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22);
}

@media (min-width: 768px) {
  .hero-wrap {
    height: 70vh;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3rem;
  }
}

.hero-panel {
  max-width: 44rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-desc {
  color: #e5e7eb;
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: #2563eb;
}

.primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.secondary-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 9999px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 0.45rem;
  padding: 0.25rem 0.45rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.category-badge {
  border-radius: 0.35rem;
  padding: 0.18rem 0.5rem;
  color: #ffffff;
  background: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 0.75rem;
}

.section-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.feature-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 1rem;
  background: #111827;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
}

.feature-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2rem;
}

@media (min-width: 768px) {
  .feature-content {
    padding: 4rem;
  }
}

.category-tile {
  display: block;
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 11rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.32);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .filter-bar {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.input-control {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: #ffffff;
  background: #111827;
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #050505;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35));
  cursor: pointer;
  z-index: 4;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.95rem 1.7rem;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
}

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

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 360px 1fr;
  }
}

.poster-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

.meta-box {
  border-radius: 0.75rem;
  background: #f9fafb;
  padding: 0.85rem;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  -webkit-line-clamp: 4;
}

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

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

  .rank-item {
    grid-template-columns: 2.5rem 4rem 1fr;
    gap: 0.7rem;
  }
}
