:root {
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-primary-light: #14b8a6;
  --color-accent: #0891b2;
  --color-amber: #d97706;
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-text: #171717;
  --color-muted: #525252;
  --color-line: #e5e5e5;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 24px 80px rgba(15, 118, 110, 0.20);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.brand-mark,
.footer-brand span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.28);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.desktop-nav a,
.mobile-panel a {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  color: #3f3f46;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--color-primary);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  background: var(--color-primary);
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-search {
  display: flex;
  width: 280px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.nav-search input,
.hero-search input,
.search-band form input,
.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--color-text);
}

.nav-search button,
.hero-search button,
.search-band form button,
.mobile-panel button {
  border: 0;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.search-band form button:hover,
.mobile-panel button:hover {
  background: var(--color-primary-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-primary);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-panel form {
  display: flex;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #071514;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.78)), var(--poster), linear-gradient(135deg, #0f766e, #0891b2);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 86px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.65);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--color-primary);
  background: #ccfbf1;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 740px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-glass,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.26);
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
}

.btn-secondary {
  color: var(--color-primary);
  background: #ccfbf1;
}

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

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

.full {
  width: 100%;
  margin-top: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 40px;
  line-height: 0;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.search-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 30px;
  align-items: center;
  padding: 28px 0;
}

.search-band h2,
.section-head h2,
.detail-main h1,
.card-panel h2 {
  margin: 0;
  line-height: 1.2;
}

.search-band p {
  margin: 6px 0 0;
  color: #ccfbf1;
}

.search-band form,
.hero-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 72px 0;
}

.section.muted {
  background: #f4f4f5;
}

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

.section-head.compact {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.text-link {
  color: var(--color-primary);
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.feature-card {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
  color: #ffffff;
  background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.20)), var(--poster), linear-gradient(135deg, #0f766e, #0891b2);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.feature-card p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 17px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list.compact {
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 98px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover,
.movie-card:hover,
.ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.compact-poster,
.ranking-poster {
  display: block;
  height: 78px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.66), rgba(8, 145, 178, 0.50)), var(--poster);
  background-size: cover;
  background-position: center;
}

.compact-card strong,
.rank-item strong,
.ranking-row strong {
  display: block;
  color: #18181b;
  line-height: 1.35;
}

.compact-card em,
.rank-item em,
.ranking-row em,
.movie-info em {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.72), rgba(8, 145, 178, 0.54)), var(--poster);
  background-size: cover;
  background-position: center;
}

.poster-box::after,
.compact-poster::after,
.ranking-poster::after {
  content: "";
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.32), transparent 28%), linear-gradient(0deg, rgba(0, 0, 0, 0.30), transparent 58%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  display: block;
  color: #18181b;
  font-size: 18px;
  line-height: 1.32;
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18)), var(--poster), linear-gradient(135deg, #0f766e, #0891b2);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}

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

.rank-panel,
.card-panel {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.rank-item:hover {
  background: #ccfbf1;
}

.rank-item span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--color-primary);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.40)), var(--poster), linear-gradient(135deg, #0f766e, #0891b2);
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  padding: 90px 0 72px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero .hero-search {
  max-width: 620px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 38px auto 0;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--color-primary);
  background: #ffffff;
  font-weight: 800;
}

.pagination a.is-current,
.pagination a:hover {
  color: #ffffff;
  background: var(--color-primary);
}

.player-section {
  padding: 44px 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.70)), var(--poster), linear-gradient(135deg, #071514, #0f766e);
  background-size: cover;
  background-position: center;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.92);
  font-size: 38px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.player-wrap.is-playing .big-play {
  display: none;
}

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

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-main h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
}

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

.meta-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #3f3f46;
  background: #f4f4f5;
  font-size: 14px;
  font-weight: 700;
}

.lead-text {
  border-left: 4px solid var(--color-primary);
  margin: 0 0 26px;
  padding: 14px 18px;
  color: #134e4a;
  background: #ccfbf1;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

.detail-main h2,
.card-panel h2 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-main p {
  margin: 0 0 16px;
  color: #3f3f46;
  font-size: 17px;
}

.tag-row.large span {
  padding: 8px 13px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.prev-next a {
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 14px;
  color: var(--color-primary);
  background: #f8fafc;
  font-weight: 800;
}

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

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 138px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  font-weight: 900;
}

.ranking-poster {
  height: 86px;
}

.ranking-row small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--color-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  color: #d4d4d8;
  background: #18181b;
}

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

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

.site-footer p {
  max-width: 480px;
  margin: 0;
  color: #a1a1aa;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d4d4d8;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  margin: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding: 18px;
  text-align: center;
  color: #71717a;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 18px;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 19px;
  }

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

  .hero-content {
    padding: 110px 0 84px;
  }

  .hero-arrow {
    top: auto;
    bottom: 20px;
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .hero-dots {
    bottom: 34px;
  }

  .search-band-inner,
  .detail-title-row,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .search-band-inner,
  .detail-title-row {
    display: grid;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .movie-info {
    padding: 13px;
  }

  .movie-info strong {
    font-size: 16px;
  }

  .feature-card {
    min-height: 390px;
    padding: 24px;
  }

  .compact-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 46px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-poster {
    height: 68px;
  }

  .page-hero .container {
    padding: 70px 0 54px;
  }

  .video-shell {
    border-radius: 16px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.small,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-search,
  .search-band form {
    flex-direction: column;
  }

  .hero-search button,
  .search-band form button {
    min-height: 46px;
  }

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