:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-300: #67e8f9;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--cyan-50), var(--white) 360px, var(--slate-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.95), rgba(239, 246, 255, 0.95), rgba(236, 254, 255, 0.95));
  box-shadow: 0 8px 26px rgba(8, 145, 178, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(6, 182, 212, 0.32);
}

.logo-text {
  display: grid;
  gap: 2px;
}

.logo-text strong {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-text small {
  color: var(--slate-500);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 15px;
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 12px 25px rgba(6, 182, 212, 0.24);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select,
.search-hero input,
.search-hero select {
  border: 2px solid rgba(6, 182, 212, 0.18);
  outline: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  padding: 11px 16px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  width: 230px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.rank-action,
.search-submit {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus,
.search-hero input:focus,
.search-hero select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.rank-action:hover,
.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 5s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(8, 145, 178, 0.72), rgba(37, 99, 235, 0.44));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.8s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--cyan-50);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  color: var(--cyan-50);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.secondary-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.58);
}

.hero-panel {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-panel-body {
  padding: 22px;
}

.hero-panel-body h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.hero-panel-body p {
  color: var(--cyan-50);
  line-height: 1.7;
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--white);
}

.wave-fade {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  background: linear-gradient(0deg, var(--cyan-50), transparent);
}

.main-section,
.page-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-header,
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header h2,
.page-title h1 {
  margin: 8px 0 8px;
  color: var(--slate-800);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.section-header p,
.page-title p {
  max-width: 720px;
  color: var(--slate-500);
  line-height: 1.8;
}

.section-link {
  color: var(--cyan-600);
  font-weight: 900;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: -30px auto 18px;
  position: relative;
  z-index: 5;
}

.stat-card,
.category-card,
.movie-card,
.info-card,
.filter-panel,
.search-box-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.95rem;
}

.stat-card span {
  color: var(--slate-500);
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(6, 182, 212, 0.42);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-100), #dbeafe);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--cyan-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--slate-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 0.84rem;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--slate-100);
}

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

.category-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--slate-800);
}

.category-card p {
  margin: 0 0 18px;
  color: var(--slate-500);
  line-height: 1.7;
}

.category-card span {
  color: var(--cyan-600);
  font-weight: 900;
}

.band {
  padding: 74px 0;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
}

.band .section-header h2,
.band .section-header p,
.band .section-link {
  color: var(--white);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 900;
}

.top-rank .rank-number {
  color: var(--white);
  background: linear-gradient(135deg, #facc15, #fb923c);
}

.rank-thumb img {
  width: 116px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: var(--slate-800);
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--slate-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
  padding: 72px 0;
}

.page-hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--cyan-50);
  font-size: 1.12rem;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 28px;
}

.filter-panel h2 {
  margin: 0 0 6px;
  color: var(--slate-800);
}

.filter-panel p {
  margin: 0;
  color: var(--slate-500);
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cards-hidden {
  display: none !important;
}

.no-results {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.no-results.show {
  display: block;
}

.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.08));
  cursor: pointer;
  z-index: 2;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-size: 2.1rem;
  box-shadow: 0 22px 45px rgba(6, 182, 212, 0.36);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.detail-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 14px 0 16px;
  color: var(--slate-800);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.detail-card .lead {
  color: var(--slate-500);
  font-size: 1.08rem;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--cyan-50);
  color: var(--cyan-600);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-chip {
  border-radius: 16px;
  padding: 14px;
  background: var(--slate-50);
}

.info-chip span {
  display: block;
  color: var(--slate-500);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.info-chip strong {
  color: var(--slate-800);
}

.detail-article {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  padding: 28px;
}

.info-card h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 1.45rem;
}

.info-card p {
  margin: 0;
  color: var(--slate-600, #475569);
  line-height: 1.9;
}

.search-hero {
  display: grid;
  gap: 20px;
}

.search-box-card {
  padding: 24px;
}

.search-box-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

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

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-inner h2 {
  margin: 0 0 16px;
  color: var(--cyan-300);
  font-size: 1.1rem;
}

.footer-brand p {
  max-width: 360px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--cyan-300);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--cyan-50);
  background: rgba(255, 255, 255, 0.10);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-panel {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-copy h1 {
    letter-spacing: -0.03em;
  }

  .feature-stats,
  .movie-grid,
  .search-results,
  .category-grid,
  .footer-inner,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-title,
  .filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 42px 84px minmax(0, 1fr);
  }

  .rank-thumb img {
    width: 84px;
    height: 58px;
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .search-box-card form {
    grid-template-columns: 1fr;
  }
}
