:root {
  --site-teal: #0f766e;
  --site-teal-dark: #134e4a;
  --site-teal-light: #14b8a6;
  --site-amber: #d97706;
  --site-bg: #f8fafc;
  --site-text: #1f2937;
  --site-muted: #64748b;
  --site-card: #ffffff;
  --site-border: #e5e7eb;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f1f5f9 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 0;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-weight: 650;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #ccfbf1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(290px, 24vw);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
  outline: none;
}

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

.header-search button {
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  text-align: left;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.mobile-search input {
  flex: 1;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

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

.mobile-search button {
  width: auto;
  background: rgba(255, 255, 255, 0.14);
}

.hero-slider {
  position: relative;
  margin: 28px auto 44px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--site-shadow);
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 20%, rgba(20, 184, 166, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.96) 0%, rgba(15, 23, 42, 0.78) 47%, rgba(15, 23, 42, 0.30) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.70), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: 32px;
  align-items: end;
  min-height: 560px;
  padding: 56px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(15, 118, 110, 0.42);
  box-shadow: inset 0 0 0 1px rgba(153, 246, 228, 0.28);
  font-weight: 800;
}

.hero-title {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 750;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  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(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.34);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 2.65;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

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

.hero-poster .poster-fallback {
  color: #ffffff;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hero-meta span {
  padding: 10px 8px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.34);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(15, 118, 110, 0.72);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 32px;
  background: #2dd4bf;
}

.section {
  margin: 48px 0;
}

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

.section-title {
  color: #1f2937;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 7px;
  color: var(--site-muted);
  line-height: 1.7;
}

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

.text-link:hover {
  color: #115e59;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  opacity: 0;
}

.poster-missing .poster-fallback {
  opacity: 1;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.90);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.36);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.20);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 18px;
  font-weight: 850;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 24px;
}

.rank-list {
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f7;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  font-weight: 900;
}

.rank-title {
  color: #1f2937;
  font-weight: 850;
}

.rank-title:hover {
  color: #0f766e;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.page-hero {
  margin: 30px 0 34px;
  border-radius: 28px;
  padding: 46px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.38), transparent 30%),
    linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.85;
}

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

.breadcrumb a {
  color: #0f766e;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.player-card {
  overflow: hidden;
  background: #0f172a;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.video-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.42);
  font-size: 34px;
}

.video-overlay strong {
  font-size: 18px;
  font-weight: 900;
}

.player-note {
  padding: 14px 18px;
  color: #cbd5e1;
  background: #0f172a;
  font-size: 14px;
}

.detail-card {
  padding: 28px;
}

.detail-title {
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
}

.detail-meta-grid dt {
  color: #ccfbf1;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta-grid dd {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 850;
}

.content-block {
  margin-top: 26px;
}

.content-block h2 {
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
}

.content-block p {
  color: #475569;
  line-height: 1.92;
  white-space: pre-line;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin-bottom: 16px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e, #0f172a);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
}

.side-info {
  margin-top: 16px;
  color: #64748b;
  line-height: 1.8;
}

.search-panel {
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px 150px;
  gap: 12px;
}

.search-controls input,
.search-controls select {
  width: 100%;
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  outline: none;
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.empty-state {
  border-radius: 22px;
  padding: 38px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-text {
  margin-top: 14px;
  color: #94a3b8;
  line-height: 1.85;
}

.footer-heading {
  color: #ffffff;
  font-weight: 850;
  margin-bottom: 14px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 0 26px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .mobile-menu.is-open {
    display: block;
  }

  .site-nav {
    gap: 12px;
  }

  .hero-slider,
  .hero-track {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 680px;
    padding: 38px 24px 72px;
  }

  .hero-panel {
    max-width: 340px;
  }

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

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-slider,
  .hero-track {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid.compact,
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .detail-card {
    padding: 20px;
  }

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