:root {
  --brand-blue: #2563eb;
  --brand-cyan: #22d3ee;
  --brand-dark: #0f172a;
  --text-main: #111827;
  --text-muted: #64748b;
  --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
  color: var(--text-main);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #ecfeff 100%);
}

.page-main {
  padding-top: 72px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--brand-blue);
  font-weight: 800;
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid #e2e8f0;
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.mobile-link.sub {
  color: #2563eb;
  background: #eff6ff;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 560px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.28) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.7s ease both;
}

.hero-inner {
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  color: white;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #bae6fd;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: clamp(17px, 2vw, 23px);
  color: #dbeafe;
  line-height: 1.75;
  max-width: 720px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: var(--brand-blue);
  background: white;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.secondary-button {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(37, 99, 235, 0.24);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.36);
}

.hero-poster {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.08)), var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -80px 80px rgba(15, 23, 42, 0.45);
}

.hero-mini-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hero-mini-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

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

.section-title h1,
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #0f172a;
}

.section-title p {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 740px;
}

.more-link {
  flex: 0 0 auto;
  color: var(--brand-blue);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.08)), var(--poster-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-cover::after,
.compact-poster::after,
.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.26), transparent 32%);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.32);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 9px;
}

.card-desc {
  min-height: 48px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

.category-visual {
  position: relative;
  border-radius: 20px;
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(34, 211, 238, 0.62)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.category-card h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #0f172a;
}

.category-card p {
  color: #64748b;
  line-height: 1.72;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(140px, 0.7fr));
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  color: #0f172a;
  outline: none;
  transition: 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.rank-number {
  font-size: 28px;
  font-weight: 900;
  color: #cbd5e1;
  text-align: center;
}

.rank-row:nth-child(-n+3) .rank-number {
  color: #f59e0b;
}

.rank-poster {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.06)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.rank-info h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.rank-info p {
  color: #64748b;
  line-height: 1.62;
}

.rank-meta {
  color: #2563eb;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.28) 100%), var(--poster-image);
  background-size: cover;
  background-position: center;
  color: white;
}

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.05)), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #bae6fd;
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.detail-copy p {
  font-size: 18px;
  color: #dbeafe;
  line-height: 1.78;
  max-width: 780px;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.player-section {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: white;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.74));
  transition: opacity 0.25s ease;
  z-index: 3;
}

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

.play-icon-large {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
  font-size: 32px;
  padding-left: 5px;
}

.player-overlay strong {
  font-size: 22px;
  font-weight: 900;
}

.content-grid {
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.article-panel,
.side-panel {
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.article-panel {
  padding: 34px;
}

.article-panel h2,
.side-panel h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
  color: #0f172a;
}

.article-panel p {
  color: #334155;
  line-height: 1.95;
  margin-bottom: 24px;
  font-size: 16px;
}

.side-panel {
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

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

.compact-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.05)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.compact-info {
  min-width: 0;
}

.compact-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: #0f172a;
  font-weight: 900;
}

.compact-info small {
  display: block;
  color: #64748b;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-box {
  max-width: 860px;
  margin: 0 auto 28px;
}

.search-box input {
  min-height: 60px;
  font-size: 18px;
  border-radius: 999px;
  padding: 0 24px;
}

.search-results {
  min-height: 160px;
}

.empty-state {
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  background: white;
  color: #64748b;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.static-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.static-card {
  padding: 36px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.static-card h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.static-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 28px 0 12px;
}

.static-card p {
  color: #475569;
  line-height: 1.9;
  margin-bottom: 16px;
}

.site-footer {
  margin-top: 80px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.site-footer p {
  line-height: 1.8;
}

.site-footer h2 {
  color: white;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}

.footer-links a {
  color: #cbd5e1;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-panel {
    display: none;
  }

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

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

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

  .rank-meta {
    display: none;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .compact-list {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-visual {
    aspect-ratio: 16 / 9;
  }

  .detail-poster {
    display: none;
  }

  .article-panel {
    padding: 24px;
  }
}
