:root {
  --site-primary: #009999;
  --site-primary-dark: #007a7a;
  --site-secondary: #102a43;
  --site-muted: #627d98;
  --site-soft: #f0f4f8;
  --site-card: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.site-header {
  backdrop-filter: blur(14px);
}

.logo-title {
  display: block;
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 800;
  color: var(--site-secondary);
}

.logo-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--site-muted);
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1ab0b0, #007a7a);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 153, 153, 0.22);
}

.nav-link {
  color: #486581;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--site-primary-dark);
}

.mobile-menu {
  display: none;
}

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

.hero-section {
  min-height: 620px;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
}

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

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: rgba(0, 153, 153, 0.9);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.hero-movie-title {
  color: #d9e2ec;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

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

.hero-search {
  display: flex;
  max-width: 34rem;
  width: 100%;
  margin-top: 1.25rem;
  background-color: rgba(255, 255, 255, 0.94);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16, 42, 67, 0.28);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  color: #102a43;
}

.hero-search button {
  padding: 0.875rem 1.25rem;
  background-color: var(--site-primary);
  color: #ffffff;
  font-weight: 700;
}

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

.hero-dot.is-active {
  width: 2rem;
  background-color: #009999;
}

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

.section-heading h2,
.section-heading h1 {
  color: var(--site-secondary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  color: var(--site-muted);
  max-width: 42rem;
  line-height: 1.75;
}

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

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

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

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

.movie-card {
  display: block;
  color: inherit;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #d9e2ec, #f0f4f8);
}

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

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

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

.movie-card-title {
  color: var(--site-secondary);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
  color: var(--site-primary-dark);
}

.movie-card-desc {
  color: #486581;
  font-size: 0.9rem;
  line-height: 1.65;
  min-height: 2.95rem;
  margin-bottom: 0.875rem;
}

.movie-card-meta {
  color: #829ab1;
  font-size: 0.78rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-region {
  top: 0.75rem;
  left: 0.75rem;
  background-color: rgba(0, 153, 153, 0.92);
  color: #ffffff;
}

.badge-year {
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(16, 42, 67, 0.78);
  color: #ffffff;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-primary-dark);
  background-color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 900;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.category-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 16px 35px rgba(16, 42, 67, 0.08);
  border: 1px solid rgba(188, 204, 220, 0.5);
}

.category-panel h2,
.category-panel h3 {
  color: var(--site-secondary);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.category-panel p {
  color: #486581;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.category-samples {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.category-samples a {
  color: #334e68;
  font-size: 0.92rem;
}

.category-samples a:hover {
  color: var(--site-primary-dark);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: auto 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background-color: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
}

.ranking-num {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #1ab0b0, #007a7a);
}

.ranking-cover {
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  overflow: hidden;
  background-color: #d9e2ec;
}

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

.ranking-title {
  color: var(--site-secondary);
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.ranking-desc {
  color: #486581;
  font-size: 0.88rem;
  line-height: 1.6;
}

.search-panel {
  border-radius: 1.25rem;
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.08);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.search-control {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid #bcccdc;
  padding: 0.85rem 1rem;
  color: var(--site-secondary);
  background-color: #ffffff;
}

.search-control:focus {
  outline: none;
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.15);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #0f609b;
  background-color: #d9e2ec;
  font-weight: 700;
  font-size: 0.86rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list span {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #007a7a;
  background-color: #e6f7f7;
  font-size: 0.84rem;
  font-weight: 700;
}

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

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: minmax(0, 2fr) minmax(19rem, 0.8fr);
  }
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #0b1f33;
  box-shadow: 0 22px 50px rgba(16, 42, 67, 0.24);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0b1f33;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 153, 153, 0.18), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  z-index: 3;
}

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

.play-button {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--site-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.content-card {
  padding: 1.5rem;
  border-radius: 1.1rem;
  background-color: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 42, 67, 0.08);
}

.content-card h2,
.content-card h3 {
  color: var(--site-secondary);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.content-card p {
  color: #334e68;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #627d98;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #007a7a;
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #486581;
  background-color: #ffffff;
  border-radius: 1rem;
}

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

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

  .hero-section {
    min-height: 720px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 1rem;
  }

  .hero-search button {
    width: 100%;
  }

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

  .ranking-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ranking-cover {
    display: none;
  }
}
