:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f0fdff 0%, #ffffff 28%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: all 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.26);
  transform: translateY(-1px);
}

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

.header-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 2px solid #bae6fd;
  border-radius: 999px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  transition: all 0.22s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.header-search button,
.big-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.24s ease;
}

.header-search button,
.big-search button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.header-search button:hover,
.big-search button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn.full {
  width: 100%;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(34, 211, 238, 0.25), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.26)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  min-height: 620px;
  padding: 110px 24px 110px max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 0.9s ease both;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(103, 232, 249, 0.35);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 30px;
  color: #d1d5db;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.hero-dot.active {
  width: 34px;
  background: #22d3ee;
}

.search-panel,
.page-section,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-panel {
  margin-top: -58px;
  position: relative;
  z-index: 5;
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
}

.search-page-panel {
  margin-top: 24px;
}

.search-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.big-search {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
}

.page-section {
  padding-top: 54px;
  padding-bottom: 36px;
}

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

.section-head h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head.light h2,
.section-head.light p {
  color: #ffffff;
}

.section-more {
  min-width: max-content;
  color: var(--cyan-dark);
  font-weight: 800;
}

.category-grid,
.large-category-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-large,
.movie-card,
.ranking-card,
.content-card {
  border: 1px solid rgba(186, 230, 253, 0.7);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 20px;
  min-height: 155px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.24s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 55px rgba(8, 145, 178, 0.18);
  border-color: rgba(6, 182, 212, 0.65);
}

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

.category-tile strong {
  font-size: 34px;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.55;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.24s ease;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.movie-badge,
.poster-overlay {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.movie-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--cyan);
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.26);
}

.poster-overlay {
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.78);
  transition: all 0.24s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-info h3 a:hover {
  color: var(--cyan-dark);
}

.movie-info p {
  margin: 0 0 14px;
  min-height: 46px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-tags {
  margin-top: 12px;
  color: var(--cyan-dark);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 22px;
}

.ranking-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.ranking-card ol {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.ranking-card li a {
  display: grid;
  grid-template-columns: 34px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-no,
.table-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.page-shell,
.detail-shell {
  padding-top: 28px;
}

.page-hero,
.detail-hero {
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a, #0e7490 58%, #2563eb);
  box-shadow: var(--shadow);
}

.small-hero {
  padding: clamp(36px, 7vw, 72px);
}

.small-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.small-hero p {
  max-width: 830px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 750;
}

.filter-bar {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-bar input {
  flex: 1 1 280px;
  padding: 13px 16px;
}

.filter-bar select {
  padding: 13px 16px;
}

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

.category-card-large {
  overflow: hidden;
  min-height: 230px;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 26px;
  transition: all 0.24s ease;
}

.category-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-large div {
  padding: 26px;
}

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

.category-card-large h2 {
  margin: 12px 0;
  font-size: 30px;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.75;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: #0e7490;
  background: #ecfeff;
}

.ranking-table td a {
  font-weight: 800;
}

.detail-hero {
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.28);
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.lead {
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span,
.detail-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.player-section {
  margin-top: 34px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #111827);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.36);
  font-size: 34px;
  cursor: pointer;
}

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

.video-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #0e7490;
  font-size: 28px;
}

.content-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.content-card dl {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  margin: 0;
}

.content-card dt {
  color: #64748b;
}

.content-card dd {
  margin: 0;
  font-weight: 750;
}

.site-footer {
  margin-top: 72px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #1f2937, #111827);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #22d3ee;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a:hover {
  color: #22d3ee;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

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

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

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

  .ranking-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .main-nav.open {
    display: flex;
  }

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

  .hero-content {
    padding: 92px 20px;
  }

  .big-search {
    flex-direction: column;
  }

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

  .category-card-large,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-card-large img {
    height: 210px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
