* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 48%, #e2e8f0 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1280px;
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.22rem;
  background: linear-gradient(90deg, #2dd4bf, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #2dd4bf, #67e8f9);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.28);
  font-size: 0.85rem;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: #0d9488;
}

.nav-search {
  width: min(24vw, 310px);
  display: flex;
  gap: 0.45rem;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: 0;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.64);
  color: #fff;
  padding: 0.55rem 0.8rem;
}

.nav-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-bar button,
.player-button {
  border: 0;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  padding: 0.58rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.filter-bar button:hover,
.player-button:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.48rem 0.7rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.75rem 1rem 1rem;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 0.9rem;
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #020617;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  background: radial-gradient(circle at 70% 20%, rgba(45, 212, 191, 0.24), transparent 35%), linear-gradient(135deg, #0f172a, #111827);
}

.hero-slide img.is-missing {
  opacity: 0;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 15%, rgba(45, 212, 191, 0.28), transparent 28%), linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.45) 46%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 5rem 1.25rem 4.5rem;
}

.hero-content-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.45fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  color: #fff;
  background: #14b8a6;
  font-weight: 700;
}

.hero-kicker {
  padding: 0.48rem 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 14px 35px rgba(20, 184, 166, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 1.4rem;
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-panel h2 {
  margin: 0 0 0.7rem;
  color: #cffafe;
  font-size: 1rem;
}

.hero-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
}

.hero-panel a:last-child {
  border-bottom: 0;
}

.hero-panel span {
  color: #2dd4bf;
  font-weight: 800;
}

.hero-arrow,
.hero-dot {
  position: absolute;
  z-index: 2;
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 1rem;
}

.hero-arrow.next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-dot {
  position: static;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 2.2rem;
  background: #14b8a6;
}

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.section-block {
  margin-bottom: 4rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0.35rem 0 0;
  color: #64748b;
}

.more-link {
  color: #0d9488;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 70% 15%, rgba(20, 184, 166, 0.32), transparent 36%), linear-gradient(135deg, #111827, #334155);
}

.poster-large {
  height: 440px;
  aspect-ratio: auto;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-image.is-missing {
  opacity: 0;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 0.28rem 0.58rem;
  font-size: 0.75rem;
}

.badge-category {
  left: 0.75rem;
  top: 0.75rem;
}

.badge-year {
  right: 0.75rem;
  top: 0.75rem;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #14b8a6;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: all 0.22s ease;
  box-shadow: 0 15px 35px rgba(20, 184, 166, 0.35);
}

.movie-card:hover .play-mark,
.video-shell:hover .player-cover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 1rem;
}

.card-body h3,
.large-info h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.32;
}

.card-body p,
.large-info p {
  margin: 0 0 0.75rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-info {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  color: #fff;
}

.large-info p {
  color: #d1d5db;
}

.meta-line {
  color: #64748b;
  font-size: 0.9rem;
}

.tag-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  border-radius: 1.2rem;
  padding: 1.25rem;
  min-height: 170px;
  background: linear-gradient(135deg, #0f172a, #164e63 55%, #0f766e);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.26);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 0.7rem;
}

.category-card p {
  margin: 0;
  color: #cffafe;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 72% 18%, rgba(20, 184, 166, 0.24), transparent 28%), linear-gradient(135deg, #020617, #1e293b 55%, #0f766e);
  padding: 4rem 0;
}

.page-hero .container {
  padding: 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: #99f6e4;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #ccfbf1;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  color: #0f172a;
  background: #f8fafc;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.rank-index {
  color: #0f766e;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 76px;
  height: 96px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #111827, #334155);
}

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

.rank-main strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f172a;
  font-size: 1.05rem;
}

.rank-main p {
  margin: 0 0 0.25rem;
  color: #64748b;
}

.rank-score {
  color: #f97316;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14b8a6;
  color: #fff;
  cursor: pointer;
  opacity: 0.96;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(20, 184, 166, 0.35);
}

.video-shell.playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  display: none;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.player-message.show {
  display: block;
}

.detail-card,
.side-card {
  border-radius: 1.2rem;
  background: #fff;
  padding: 1.3rem;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 1.25rem;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 1rem;
  color: #334155;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.detail-meta div {
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: #f8fafc;
  color: #475569;
}

.detail-meta strong {
  display: block;
  color: #0f172a;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.side-list {
  display: grid;
  gap: 0.75rem;
}

.side-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.side-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-list img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #111827, #334155);
}

.side-list strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-list span {
  color: #64748b;
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  background: #fff;
  color: #64748b;
  text-align: center;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.9rem;
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  margin: 1rem 0 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a:hover {
  color: #2dd4bf;
}

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

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

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

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

  .hero-panel {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.5rem, 1280px);
    padding: 2rem 0;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 4rem 1rem 4rem;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .movie-grid.compact-grid,
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .poster-large {
    height: 330px;
  }

  .card-body {
    padding: 0.8rem;
  }

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

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

  .rank-score {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.large-grid,
  .movie-grid.compact-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1rem;
  }

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