* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  box-shadow: 0 10px 26px rgba(13, 148, 136, 0.26);
}

.brand-text {
  background: linear-gradient(90deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.nav a:hover,
.dropdown:hover .dropdown-button {
  color: #0d9488;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  border: 0;
  background: transparent;
  padding: 22px 0;
  font: inherit;
  color: #374151;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.dropdown-menu a:hover {
  background: #ecfdf5;
  color: #0d9488;
}

.header-search {
  width: min(280px, 30vw);
  position: relative;
}

.search-input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  outline: 0;
  padding: 11px 16px;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
}

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

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  color: #374151;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.34), transparent 34%), linear-gradient(135deg, #0f172a, #0f766e 48%, #1d4ed8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.75));
  pointer-events: none;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding: 86px 0 76px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
  border: 1px solid rgba(153, 246, 228, 0.38);
  color: #ccfbf1;
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  font-size: 18px;
  color: #dbeafe;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #0d9488, #2563eb);
  box-shadow: 0 18px 42px rgba(13, 148, 136, 0.28);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.32);
}

.hero-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.32);
}

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

.hero-meta {
  padding: 18px 6px 4px;
}

.hero-meta h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-meta p {
  margin: 0;
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: #5eead4;
}

.section {
  padding: 58px 0;
}

.section-muted {
  background: #f3f4f6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #6b7280;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.15);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  place-items: center;
  color: #0d9488;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.14), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.play-round {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0d9488;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-cover .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-desc {
  margin: 0;
  min-height: 44px;
  color: #6b7280;
  font-size: 14px;
}

.card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 18px 44px rgba(13, 148, 136, 0.17);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 12px;
  margin-bottom: 26px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.rank-num {
  font-size: 30px;
  font-weight: 900;
  color: #0d9488;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

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

.page-hero {
  padding: 70px 0;
  color: #fff;
  background: radial-gradient(circle at 10% 10%, rgba(45, 212, 191, 0.38), transparent 30%), linear-gradient(135deg, #0f172a, #0f766e 52%, #1d4ed8);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: #ccfbf1;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.28);
}

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

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

.play-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
}

.play-button span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  box-shadow: 0 20px 44px rgba(13, 148, 136, 0.3);
  font-size: 34px;
  font-weight: 900;
}

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

.detail-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.content-box {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.content-box h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-box p {
  margin: 0 0 16px;
  color: #374151;
}

.footer {
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a 55%, #134e4a);
}

.footer-inner {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
}

.footer p,
.footer a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer a:hover {
  color: #5eead4;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 0;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

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

@media (max-width: 980px) {
  .nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

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

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

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

  .rank-item {
    grid-template-columns: 52px 110px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 54px 0 72px;
  }

  .movie-grid,
  .category-grid,
  .filters,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }
}
