* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}

.text-gradient {
  color: transparent;
  background: linear-gradient(90deg, #0d9488, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.25rem;
}

.brand-copy em {
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  color: #475569;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #0f766e;
  background: #ccfbf1;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.7rem;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
}

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

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

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 35%, rgba(20, 184, 166, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.45) 48%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 5rem;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5eead4;
  text-transform: uppercase;
}

.eyebrow.teal {
  color: #0d9488;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  max-width: 760px;
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta span,
.detail-meta span {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions,
.section-head,
.detail-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-actions.small {
  margin-top: 1rem;
}

.btn-primary,
.btn-glass,
.btn-soft,
.filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.75rem;
  border: 0;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #0d9488;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.26);
}

.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.34);
}

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

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

.btn-soft,
.filter-clear {
  color: #0f766e;
  background: #ccfbf1;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.section-block {
  padding: 4rem 1rem;
}

.section-block.compact {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head.with-filter {
  align-items: flex-end;
}

.section-title {
  margin: 0;
  color: #1e293b;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.text-link {
  color: #0d9488;
  font-weight: 800;
}

.text-link:hover {
  color: #0f766e;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.filter-input,
.filter-year {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  outline: none;
  color: #334155;
  background: #ffffff;
}

.filter-input:focus,
.filter-year:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

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

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

.video-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-0.28rem);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

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

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.card-media img,
.detail-cover img,
.related-row img,
.category-cover {
  height: 100%;
  object-fit: cover;
}

.card-media img {
  transition: transform 0.5s ease;
}

.video-card:hover .card-media img {
  transform: scale(1.08);
}

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08));
  transition: opacity 0.25s ease;
}

.video-card:hover .card-shade {
  opacity: 1;
}

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  opacity: 0;
  font-size: 1.25rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-mark::before {
  position: absolute;
  content: "";
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.play-mark {
  z-index: 2;
}

.play-mark::after {
  position: relative;
  content: "▶";
  padding-left: 0.2rem;
}

.play-mark {
  color: transparent;
}

.video-card:hover .play-mark {
  opacity: 1;
  transform: scale(1.04);
}

.rating-badge,
.rank-badge {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.55rem;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rating-badge {
  right: 0.75rem;
}

.rank-badge {
  left: 0.75rem;
  background: #0d9488;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.card-content h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 850;
}

.card-content p {
  display: -webkit-box;
  min-height: 2.9rem;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-meta span {
  color: #64748b;
  font-size: 0.78rem;
}

.mini-tags span,
.tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.75rem;
  font-weight: 700;
}

.soft-section {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
}

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

.category-tile,
.category-cover {
  position: relative;
  display: flex;
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.category-tile {
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.category-tile:hover,
.category-cover:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.16);
}

.category-tile span,
.category-cover span {
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0.5rem 0 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.page-hero {
  padding: 5rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #0891b2 48%, #0f766e);
}

.page-hero.category-hero {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.page-hero.ranking-hero {
  background: linear-gradient(135deg, #334155, #0f172a);
}

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

.category-card {
  overflow: hidden;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.category-cover {
  align-items: flex-end;
  min-height: 12rem;
  padding: 1rem;
}

.category-card-body {
  padding: 1.15rem;
}

.category-card-body h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.category-card-body p {
  margin: 0 0 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

.category-card-body ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card-body a:hover {
  color: #0d9488;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  opacity: 0.34;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-mask {
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.66) 54%, rgba(15, 23, 42, 0.4));
}

.detail-hero-content {
  position: relative;
  padding-top: 2.2rem;
  padding-bottom: 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: #5eead4;
}

.detail-heading {
  align-items: flex-end;
}

.detail-cover {
  width: min(260px, 34vw);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 1.1rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.detail-intro {
  max-width: 780px;
}

.detail-intro p {
  color: #dbeafe;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.player-card,
.content-card,
.side-card {
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.player-card,
.content-card,
.side-card {
  padding: 1.25rem;
}

.player-card h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 1rem;
  color: #1e293b;
  font-size: 1.35rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #0f766e;
  background: rgba(2, 6, 23, 0.38);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  padding-left: 0.3rem;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

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

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

.side-card {
  position: sticky;
  top: 92px;
}

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

.related-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.related-row img {
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.related-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-row em {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-style: normal;
  font-size: 0.78rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-grid p {
  max-width: 460px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  padding: 1.1rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-card {
    position: static;
  }
}

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

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

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-content {
    padding-bottom: 4.5rem;
  }

  .hero-control {
    display: none;
  }

  .hero-actions,
  .section-head,
  .detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-grid,
  .movie-grid.three-col,
  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(220px, 72vw);
  }

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