:root {
  --site-teal: #0d9488;
  --site-teal-dark: #0f766e;
  --site-amber: #f59e0b;
  --site-slate: #0f172a;
  --site-soft: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

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

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

.brand-mark,
.footer-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-link {
  position: relative;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fde68a;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 0.18rem;
  border-radius: 999px;
  background: #fbbf24;
}

.mobile-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.15rem;
}

.mobile-nav {
  display: none;
  padding: 0 0 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-link {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.mobile-link.is-active {
  background: #f59e0b;
  color: #ffffff;
}

.search-submit {
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 40%, rgba(13, 148, 136, 0.45), transparent 35%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.82) 0%, transparent 50%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 8rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  z-index: 4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(13, 148, 136, 0.85);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

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

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

.hero-dot.is-active {
  width: 2.2rem;
  background: #f59e0b;
}

.hero-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.6rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-thumb img {
  width: 3.8rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.hero-thumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.home-search-panel {
  position: relative;
  z-index: 6;
  margin-top: -3rem;
}

.hero-search {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
  margin-bottom: 1rem;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.9rem 1.1rem;
  color: #111827;
}

.hero-search button,
.primary-button {
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 700;
  padding: 0.9rem 1.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-search button:hover,
.primary-button:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.category-tile {
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 8rem;
  justify-content: flex-end;
  background-image: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
}

.category-tile span {
  font-size: 2rem;
  margin-bottom: auto;
}

.category-tile strong {
  font-size: 1.2rem;
}

.category-tile em {
  font-size: 0.86rem;
  opacity: 0.86;
  font-style: normal;
}

.section-icon {
  font-size: 1.75rem;
}

.movie-grid {
  align-items: stretch;
}

.movie-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.play-badge {
  width: 3.8rem;
  height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.55rem;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.42);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.card-tag {
  display: inline-flex;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.feature-band {
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.08);
}

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

.mini-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-item:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.mini-item img {
  width: 4rem;
  height: 5.2rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.mini-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-text strong {
  color: #111827;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-text em {
  color: #64748b;
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.35;
}

.page-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(20, 184, 166, 0.38), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
  color: #ffffff;
  padding: 4.5rem 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: #111827;
  background: #ffffff;
}

.empty-filter {
  display: none;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  margin-bottom: 1rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
}

.rank-row img {
  width: 4rem;
  height: 5.3rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.rank-row h3 {
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}

.rank-row p {
  color: #64748b;
  font-size: 0.9rem;
}

.detail-hero {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

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

.player-shell {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.38), rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.66));
  transition: opacity 0.2s ease;
}

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

.meta-panel,
.content-panel {
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.meta-panel {
  padding: 1.25rem;
}

.meta-panel img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.meta-list {
  display: grid;
  gap: 0.6rem;
  color: #334155;
  font-size: 0.95rem;
}

.meta-list strong {
  color: #0f172a;
}

.content-panel {
  padding: 1.5rem;
  line-height: 1.85;
  color: #334155;
}

.content-panel h2 {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

.tag-cloud a,
.tag-cloud span {
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

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

.search-box-large {
  display: flex;
  gap: 0.8rem;
  max-width: 52rem;
  margin-top: 1.5rem;
}

.search-box-large input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  color: #111827;
}

.search-box-large button {
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
}

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .hero-carousel {
    min-height: 640px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 10rem;
  }

  .hero-labels {
    flex-wrap: wrap;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-control {
    display: none;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-dots {
    bottom: 1.5rem;
  }

  .home-search-panel {
    margin-top: 0;
    padding-top: 1rem;
  }

  .hero-search,
  .search-box-large {
    flex-direction: column;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: auto 3.5rem minmax(0, 1fr);
  }

  .rank-row .primary-button {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.mt-8 {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
