:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --teal: #0d9488;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --paper: rgba(255, 255, 255, 0.86);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #f0fdfa 100%);
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb, #0d9488);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.26);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand {
  font-size: 21px;
}

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

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #cffafe;
  transform: translateY(-1px);
}

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

.header-search input,
.search-page-form input,
.inline-filter input {
  border: 0;
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 11px 16px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
}

.header-search button {
  color: var(--blue);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px;
  background: rgba(14, 116, 144, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
}

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(90deg, #0891b2 0%, #2563eb 52%, #0d9488 100%);
}

.hero-section {
  padding: 86px 0 92px;
}

.hero-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(22px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-orb-one {
  top: -120px;
  left: -80px;
}

.hero-orb-two {
  right: -100px;
  bottom: -150px;
  animation-delay: 1.2s;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #cffafe;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead,
.page-hero p,
.detail-one-line {
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.hero-section .btn-primary,
.detail-hero .btn-primary {
  background: #ffffff;
  color: var(--blue);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  color: #cffafe;
  box-shadow: inset 0 0 0 1px rgba(207, 250, 254, 0.56);
}

.btn-light {
  color: var(--blue);
  background: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 28px;
}

.hero-stats span {
  color: #cffafe;
  font-size: 13px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88));
}

.hero-slide-panel {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-slide-panel h2 {
  margin: 12px 0 8px;
  font-size: 34px;
}

.hero-slide-panel p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

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

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

.page-main {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  padding: 64px 0;
}

.page-hero .container {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #cffafe;
  font-size: 14px;
}

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

.content-section {
  margin: 44px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.section-heading p {
  margin: 0 0 6px;
  color: var(--cyan);
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

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

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

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

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.26);
}

.movie-card-body {
  padding: 15px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--cyan-dark);
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  padding: 7px 12px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
}

.category-card a {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 150px;
}

.category-card img {
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.category-card div {
  padding: 18px;
}

.category-card span {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
}

.category-card h3 {
  margin: 8px 0;
  color: var(--slate);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 800;
}

.inline-filter input {
  color: var(--slate);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.ranking-stack {
  display: grid;
  gap: 16px;
}

.ranking-row {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.ranking-number {
  display: inline-flex;
  justify-content: center;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.ranking-row img {
  width: 120px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.ranking-row h2 {
  margin: 0 0 8px;
  color: var(--slate);
}

.ranking-row p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.7;
}

.detail-hero {
  padding-bottom: 76px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.28);
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.player-section {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.player-section h2 {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
  font-size: 32px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
}

.article-card,
.next-links {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}

.article-card h2 {
  margin: 0 0 12px;
  color: var(--slate);
}

.article-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.next-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.next-links a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  color: var(--slate);
  background: #ffffff;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 20px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

.site-footer {
  margin-top: 60px;
  color: #e2e8f0;
  background: linear-gradient(90deg, #1e293b, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

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

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

  .hero-section {
    padding: 60px 0;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }

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

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

  .ranking-row a {
    grid-template-columns: 52px 92px 1fr;
  }

  .ranking-row img {
    width: 92px;
    height: 124px;
  }
}

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-lead,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .search-page-form,
  .mobile-panel form {
    flex-direction: column;
  }

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

  .hero-slide-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }

  .hero-slide-panel h2 {
    font-size: 24px;
  }

  .content-section {
    padding: 18px;
  }

  .movie-grid,
  .ranking-list,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

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

  .category-card img {
    height: 190px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    font-size: 12px;
  }

  .tag-row span {
    font-size: 11px;
  }

  .ranking-row a {
    grid-template-columns: 42px 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-row img {
    width: 78px;
    height: 110px;
  }

  .ranking-row p,
  .ranking-row .tag-row {
    display: none;
  }

  .play-circle {
    width: 66px;
    height: 66px;
  }
}
